1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="84394c65-3a4c-4bf9-b94e-060e2b0c69f1",e._sentryDebugIdIdentifier="sentry-dbid-84394c65-3a4c-4bf9-b94e-060e2b0c69f1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{415:(e,t,r)=>{"use strict";r.d(t,{C5:()=>s,Rp:()=>u,wJ:()=>a,Qq:()=>l,Xh:()=>c}),r(585);var n=r(44107);r(73829);let i="default"in n?n.default:n,o="default"in n?n.default:n,l=(e,{hasMany:t,maxLength:r,maxRows:n,minLength:i,minRows:o,req:{payload:{config:l},t:a},required:s})=>{let u;if(!s&&null==e)return!0;if(!0===t){let t=d(e,{maxRows:n,minRows:o,required:s,t:a});if("string"==typeof t)return t}for(let t of("number"==typeof l?.defaultMaxTextLength&&(u=l.defaultMaxTextLength),"number"==typeof r&&(u=r),Array.isArray(e)?e:[e])){let e=t?.length||0;if("number"==typeof u&&e>u)return a("validation:shorterThanMax",{label:a("general:value"),maxLength:u,stringValue:t});if("number"==typeof i&&e<i)return a("validation:longerThanMin",{label:a("general:value"),minLength:i,stringValue:t})}return!(s&&(!e||("string"==typeof e||Array.isArray(e))&&0===e.length))||a("validation:required")},a=(e,{maxLength:t,minLength:r=3,req:{payload:{config:n},t:i},required:o})=>{let l;return("number"==typeof n?.defaultMaxTextLength&&(l=n.defaultMaxTextLength),"number"==typeof t&&(l=t),e&&l&&e.length>l)?i("validation:shorterThanMax",{maxLength:l}):e&&r&&e.length<r?i("validation:longerThanMin",{minLength:r}):!o||!!e||i("validation:required")},s=(e,{req:{t},required:r,siblingData:n})=>r&&!e?t("validation:required"):!e||e===n.password||t("fields:passwordsDoNotMatch"),u=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:o,siblingData:l})=>{if(t){let o=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);if(o.auth.loginWithUsername&&!o.auth.loginWithUsername?.requireUsername&&!o.auth.loginWithUsername?.requireEmail&&!e&&!l?.username)return i("validation:required")}return(!e||!!/^(?!.*\.\.)[\w!#$%&'*+/=?^`{|}~-](?:[\w!#$%&'*+/=?^`{|}~.-]*[\w!#$%&'*+/=?^`{|}~-])?@[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*\.[a-z]{2,}$/i.test(e))&&(!!e||!o)||i("validation:emailAddress")},c=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:o,siblingData:l})=>{let a;if(t){let o=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);if(o.auth.loginWithUsername&&!o.auth.loginWithUsername?.requireUsername&&!o.auth.loginWithUsername?.requireEmail&&!e&&!l?.email)return i("validation:required")}return("number"==typeof n?.defaultMaxTextLength&&(a=n.defaultMaxTextLength),e&&a&&e.length>a)?i("validation:shorterThanMax",{maxLength:a}):!!e||!o||i("validation:required")},d=(e,t)=>{let{maxRows:r,minRows:n,required:i,t:o}=t,l=Array.isArray(e)?e.length:e||0;return!i&&0===l||(n&&l<n?o("validation:requiresAtLeast",{count:n,label:o("general:rows")}):r&&l>r?o("validation:requiresNoMoreThan",{count:r,label:o("general:rows")}):!i||!!l||o("validation:requiresAtLeast",{count:1,label:o("general:row")}))}},585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;let n=r(12241),i=r(49199),o=r(53466),l=r(45572),a=["/properties"],s="http://json-schema.org/draft-07/schema";class u extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(l,a):l;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=r(45693);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=r(5462);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(80197);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(94540);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},1317:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var n=r(35509),i=r(34023);let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function l(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>
1e.registerEditableListener(t)}}function a(){let[e]=(0,n.DF)(),t=(0,i.useMemo)(()=>l(e),[e,l]),[r,a]=(0,i.useState)(()=>t.initialValueFn()),s=(0,i.useRef)(r);return o(()=>{let{initialValueFn:e,subscribe:r}=t,n=e();return s.current!==n&&(s.current=n,a(n)),r(e=>{s.current=e,a(e)})},[t,l]),r}},1763:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(69043),i=r(35509),o=r(34023);function l({disableTakeFocusOnClick:e=!1}){let[t]=(0,i.DF)();return(0,o.useEffect)(()=>(0,n.GO)(t,{disableTakeFocusOnClick:e}),[t,e]),null}},2334:e=>{"use strict";let t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(48!==(r=e[n].charCodeAt(0))){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(!((r=e[n].charCodeAt(0))>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}function i(e){return e.length=0,!0}function o(e,t,r){if(e.length){let i=n(e);if(""===i)return r.error=!0,!1;t.push(i),e.length=0}return!0}function l(e){if(2>function(e,t){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(e,":"))return{host:e,isIPV6:!1};let t=function(e){let t=0,r={error:!1,address:"",zone:""},l=[],a=[],s=!1,u=!1,c=o;for(let n=0;n<e.length;n++){let o=e[n];if("["!==o&&"]"!==o)if(":"===o){if(!0===s&&(u=!0),!c(a,l,r))break;if(++t>7){r.error=!0;break}n>0&&":"===e[n-1]&&(s=!0),l.push(":");continue}else if("%"===o){if(!c(a,l,r))break;c=i}else{a.push(o);continue}}return a.length&&(c===i?r.zone=a.join(""):u?l.push(a.join("")):l.push(n(a))),r.address=l.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}e.exports={nonSimpleDomain:RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u),recomposeAuthority:function(e){let t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let n=unescape(e.host);if(!r(n)){let t=l(n);n=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(n)}return("number"==typeof e.port||"string"==typeof e.port)&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){let r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(1===i)if("."===t)break;else if("/"===t){r.push("/");break}else{r.push(t);break}if(2===i){if("."===t[0]){if("."===t[1])break;else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===i&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}else if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(n=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:l,stringArrayToHexStripped:n}},2831:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(69538);let i=e=>{let{adminRoute:t,apiRoute:r,includeBasePath:i,path:o="",relative:l=!1,serverURL:a}=e,s=n.env.NEXT_BASE_PATH||e.basePath||"",u=t||r,c=[u&&"/"!==u&&u,o&&o].filter(Boolean).join("")||"/",d=(s+c).replace(/\/$/,"")||"/";if(l||!a)return(i??!t)&&s?d:c;let f=new URL(a);return new URL(d,f.origin).toString()}},2866:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});let n={BROWSE_BY_FOLDER:"browse-by-folder",DASHBOARD_LAYOUT:"dashboard-layout",NAV:"nav"}},3143:(e,t,r)=>{"use strict";r.d(t,{aG:()=>n});let n=["ar","fa","he"]},3515:(e,t,r)=>{"use strict";r.d(t,{NT:()=>i});let n=({req:{user:e}})=>!!e,i={access:{create:n,delete:n,read:n,unlock:n,update:n},admin:{components:{},custom:{},enableRichTextLink:!0,enableRichTextRelationship:!0,pagination:{defaultLimit:10,limits:[5,10,25,50,100]},useAsTitle:"id"},auth:!1,custom:{},endpoints:[],fields:[],hooks:{afterChange:[],afterDelete:[],afterForgotPassword:[],afterLogin:[],afterLogout:[],afterMe:[],afterOperation:[],afterRead:[],afterRefresh:[],beforeChange:[],beforeDelete:[],beforeLogin:[],beforeOperation:[],beforeRead:[],beforeValidate:[],me:[],refresh:[]},indexes:[],timestamps:!0,upload:!1,versions:!1}},3535:(e,t,r)=>{"use strict";r.d(t,{AX:()=>E,FJ:()=>h});var n=r(76270),i=r(9971),o=r(12671);let l=new Set(["http:","https:","mailto:","sms:","tel:"]);class a extends n.fGB{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new a(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},r){super(r);let{target:n=null,rel:i=null,title:o=null}=t;this.__url=e,this.__target=n,this.__rel=i,this.__title=o}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),(0,n.ZB7)(t,e.theme.link),t}updateLinkDOM(e,t,r){if((0,n.nYP)(t))for(let r of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let n=`__${r}`,i=this[n];e&&e[n]===i||(i?t[r]=i:t.removeAttribute(r))}}updateDOM(e,t,r){return this.updateLinkDOM(e,t,r),!1}static importDOM(){return{a:e=>({conversion:d,priority:1})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=w(e);try{let t=new URL(w(e));if(!l.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let r=f(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,n.I2P)(t))return!1;let i=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(i)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function s(e){let t=(0,n.Ave)(e,"next");return[t,t.getFlipped()]}function u(e,t){for(let r of t)if(r.origin.isAttached()){let t=(0,n.lSZ)(r);return void(0,n.wp6)(e,t)}}function c(e){let t=(0,n.vJq)(),r=null,o=null;for(let l of((0,n.I2P)(t)&&(r=s(t.anchor),o=s(t.focus)),(0,n.uwZ)(e,"next"))){let t=l.origin;if((0,n.ff4)(t)&&!t.isInline()){let r=t.getChildren();if(r.length>0){let i=(0,n.CHU)(e);i.append(...r),t.append(i)}(0,i.rd)(t,(0,n.NG9)(l),{$shouldSplit:()=>!1})}}if(e.isEmpty()){let t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}(0,n.I2P)(t)&&(u(t.anchor,r),u(t.focus,o),(0,n.CaD)(t))}function d(e){let t=null;if((0,n.nYP)(e)){let r=e.textContent;(null!==r&&""!==r||e.children.length>0)&&(t=f(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function f(e="",t){return(0,n.pTq)(new a(e,t))}function h(e){return e instanceof a}class p extends a{__isUnlinked;constructor(e="",t={},r){super(e,t,r),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new p(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return m().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let r=m(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}}function m(e="",t){return(0,n.pTq)(new p(e,t))}function y(e){return e instanceof p}let v=(0,n.guI)("TOGGLE_LINK_COMMAND");function _(e,t){if("element"===e.type){let r=e.getNode();return(0,n.ff4)(r)||function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",252),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${252}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),r.getChildren()[e.offset+t]||null}return null}function b(e,t={}){let r;if(e&&"object"==typeof e){let{url:n,...i}=e;r=n,t={...i,...t}}else r=e;let{target:i,title:o}=t,l=void 0===t.rel?"noreferrer":t.rel,a=(0,n.vJq)();if(null===a||!(0,n.I2P)(a)&&!(0,n.RTZ)(a))return;if((0,n.RTZ)(a)){let e=a.getNodes();if(0===e.length)return;
1return void e.forEach(e=>{if(null===r){let t=(0,n.BtT)(e,e=>!y(e)&&h(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{let t=(0,n.BtT)(e,e=>!y(e)&&h(e));if(t)t.setURL(r),void 0!==i&&t.setTarget(i),void 0!==l&&t.setRel(l);else{let t=f(r,{rel:l,target:i});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===r)for(let e of a.getNodes()){let t=(0,n.BtT)(e,e=>!y(e)&&h(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}let s=a.extract();if(null===r){let e=new Set;return void s.forEach(t=>{let r=(0,n.BtT)(t,e=>!y(e)&&h(e));if(null!==r){let t=r.getKey();if(e.has(t))return;!function(e,t){let r=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),i=e.getChildren(),o=i=>r.has(i.getKey())||(0,n.ff4)(i)&&t.some(t=>e.isParentOf(t)&&i.isParentOf(t)),l=i.filter(o);if(l.length===i.length)return i.forEach(t=>e.insertBefore(t)),e.remove();let a=i.findIndex(o),s=i.findLastIndex(o),u=s===i.length-1;if(0===a)l.forEach(t=>e.insertBefore(t));else if(u)for(let t=l.length-1;t>=0;t--)e.insertAfter(l[t]);else{for(let t=l.length-1;t>=0;t--)e.insertAfter(l[t]);let t=i.slice(s+1);if(t.length>0){let r=f(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});l[l.length-1].insertAfter(r),t.forEach(e=>r.append(e))}}}(r,s),e.add(t)}})}let u=new Set,c=e=>{u.has(e.getKey())||(u.add(e.getKey()),e.setURL(r),void 0!==i&&e.setTarget(i),void 0!==l&&e.setRel(l),void 0!==o&&e.setTitle(o))};if(1===s.length){let e=s[0],t=(0,n.BtT)(e,h);if(null!==t)return c(t)}!function(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return e();let r=(0,n.CaD)(t),i=r.isBackward(),o=_(r.anchor,i?-1:0),l=_(r.focus,i?0:-1);if(e(),o||l){let e=(0,n.vJq)();if((0,n.I2P)(e)){let t=e.clone();if(o){let e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+ +!!i,"element")}if(l){let e=l.getParent();e&&t.focus.set(e.getKey(),l.getIndexWithinParent()+ +!i,"element")}(0,n.n1P)((0,n.CaD)(t))}}}(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let a=(0,n.BtT)(t,h);if(a){c(a);continue}if((0,n.ff4)(t)){if(!t.isInline())continue;if(h(t)){if(!(y(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();h(s)&&s.is(e)?s.append(t):(e=f(r,{rel:l,target:i,title:o}),t.insertAfter(e),e.append(t))}})}let S=/^\+?[0-9\s()-]{5,}$/;function w(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:S.test(e)?`tel:${e}`:`https://${e}`}let x=(0,n.vE9)({build:(e,t,r)=>(0,o.v)(t),config:{attributes:void 0,validateUrl:void 0},mergeConfig(e,t){let r=(0,n.Tc1)(e,t);return e.attributes&&(r.attributes=(0,n.Tc1)(e.attributes,r.attributes)),r},name:"@lexical/link/Link",nodes:()=>[a],register:(e,t,r)=>(function(e,t){return(0,n.Sdt)(e.registerNodeTransform(a,c),(0,o.QZ)(()=>e.registerCommand(v,e=>{let r=t.validateUrl.peek(),n=t.attributes.peek();if(null===e)return b(null),!0;if("string"==typeof e)return!(void 0!==r&&!r(e))&&(b(e,n),!0);{let{url:t,target:r,rel:i,title:o}=e;return b(t,{...n,rel:i,target:r,title:o}),!0}},n.AcJ)),(0,o.QZ)(()=>{let r=t.validateUrl.value;if(!r)return;let o=t.attributes.value;return e.registerCommand(n.waI,t=>{let l=(0,n.vJq)();if(!(0,n.I2P)(l)||l.isCollapsed()||!(0,i.xj)(t,ClipboardEvent)||null===t.clipboardData)return!1;let a=t.clipboardData.getData("text");return!!r(a)&&!l.getNodes().some(e=>(0,n.ff4)(e))&&(e.dispatchCommand(v,{...o,url:a}),t.preventDefault(),!0)},n.AcJ)}))})(e,r.getOutput())});function E(e,t,r={}){let i=r=>{let i=r.target;if(!(0,n.vAA)(i))return;let o=(0,n.scG)(i);if(null===o)return;let l=null,a=null;if(o.update(()=>{let e=(0,n.xL4)(i);if(null!==e){let r=(0,n.BtT)(e,n.ff4);if(!t.disabled.peek())if(h(r))l=r.sanitizeUrl(r.getURL()),a=r.getTarget();else{let e=function(e,t){let r=e;for(;null!=r;){if(t(r))return r;r=r.parentNode}return null}(i,n.nYP);null!==e&&(l=e.href,a=e.target)}}}),null===l||""===l)return;let s=e.getEditorState().read(n.vJq);if((0,n.I2P)(s)&&!s.isCollapsed())return void r.preventDefault();let u="auxclick"===r.type&&1===r.button;window.open(l,t.newTab.peek()||u||r.metaKey||r.ctrlKey||"_blank"===a?"_blank":"_self"),r.preventDefault()},o=e=>{1===e.button&&i(e)};return e.registerRootListener((e,t)=>
1{null!==t&&(t.removeEventListener("click",i),t.removeEventListener("mouseup",o)),null!==e&&(e.addEventListener("click",i,r),e.addEventListener("mouseup",o,r))})}function C(e,t){for(let r=0;r<t.length;r++){let n=t[r](e);if(n)return n}return null}(0,n.vE9)({build:(e,t,r)=>(0,o.v)(t),config:(0,n.lVE)({disabled:!1,newTab:!1}),dependencies:[x],name:"@lexical/link/ClickableLink",register:(e,t,r)=>E(e,r.getOutput())});let T=/[.,;\s]/;function N(e){return T.test(e)}function k(e){return N(e[e.length-1])}function A(e){let t=e.getPreviousSibling();return(0,n.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&k(t.getTextContent())}function O(e){let t=e.getNextSibling();return(0,n.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&N(t.getTextContent()[0])}function R(e,t,r){let i=e.getChildren(),o=i.length;for(let t=0;t<o;t++){let o=i[t];if(!(0,n.kFe)(o)||!o.isSimpleText())return P(e),void r(null,e.getURL())}let l=e.getTextContent(),a=C(l,t);if(null===a||a.text!==l||!A(e)||!O(e))return P(e),void r(null,e.getURL());let s=e.getURL();if(s!==a.url&&(e.setURL(a.url),r(a.url,s)),a.attributes){let t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),r(a.attributes.rel||null,t));let n=e.getTarget();n!==a.attributes.target&&(e.setTarget(a.attributes.target||null),r(a.attributes.target||null,n))}}function P(e){let t=e.getChildren();for(let r=t.length-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(e=>e.getLatest())}let M={changeHandlers:[],excludeParents:[],matchers:[]};(0,n.vE9)({config:M,dependencies:[x],mergeConfig(e,t){let r=(0,n.Tc1)(e,t);for(let n of["matchers","changeHandlers","excludeParents"]){let i=t[n];Array.isArray(i)&&(r[n]=[...e[n],...i])}return r},name:"@lexical/link/AutoLink",nodes:[p],register:function(e,t=M){let{matchers:r,changeHandlers:i,excludeParents:o}=t,l=(e,t)=>{for(let r of i)r(e,t)};return(0,n.Sdt)(e.registerNodeTransform(n.Ey8,e=>{let t=e.getParentOrThrow(),i=e.getPreviousSibling();y(t)&&!t.getIsUnlinked()?R(t,r,l):h(t)||o.some(e=>e(t))||(e.isSimpleText()&&(N(e.getTextContent()[0])||!y(i))&&function(e,t,r){for(let t of e){let e=t.getParent();if(y(e)&&!e.getIsUnlinked())return}let i=[...e],o=i.map(e=>e.getTextContent()).join(""),l,a=o,s=0;for(;(l=C(a,t))&&null!==l;){var u,c,d;let e=l.index,t=e+l.length;if(u=s+e,c=s+t,d=i,(u>0?N(o[u-1]):A(d[0]))&&(c<o.length?N(o[c]):O(d[d.length-1]))){let[o,,u,c]=function(e,t,r){let n=[],i=[],o=[],l=0,a=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=a;a+u<=t?(n.push(e),l+=u):c>=r?o.push(e):i.push(e),a+=u,s.shift()}return[l,n,i,o]}(i,s+e,s+t),d=!1;for(let e of u){let t=e.getParent();if(y(t)&&!t.getIsUnlinked()){d=!0;break}}if(d){s+=t,a=a.substring(t);continue}let f=function(e,t,r,i){let o=m(i.url,i.attributes);if(1===e.length){let l,a=e[0];0===t?[l,a]=a.splitText(r):[,l,a]=a.splitText(t,r);let s=(0,n.sTu)(i.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),o.append(s),l.replace(o),a}if(e.length>1){let i,l=e[0],a,s=l.getTextContent().length;0===t?a=l:[,a]=l.splitText(t);let u=[];for(let t=1;t<e.length;t++){let n=e[t],o=n.getTextContent().length,l=s;if(l<r)if(s+o<=r)u.push(n);else{let[e,t]=n.splitText(r-l);u.push(e),i=t}s+=o}let c=(0,n.vJq)(),d=c?c.getNodes().find(n.kFe):void 0,f=(0,n.sTu)(a.getTextContent());return f.setFormat(a.getFormat()),f.setDetail(a.getDetail()),f.setStyle(a.getStyle()),o.append(f,...u),d&&d===a&&((0,n.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,n.RTZ)(c)&&f.select(0,f.getTextContent().length)),a.replace(o),i}}(u,s+e-o,s+t-o,l);i=f?[f,...c]:c,r(l.url,null),s=0}else s+=t;a=a.substring(t)}}(function(e){let t=[e],r=e.getNextSibling();for(;null!==r&&(0,n.kFe)(r)&&r.isSimpleText()&&(t.push(r),!/[\s]/.test(r.getTextContent()));)r=r.getNextSibling();return t}(e),r,l),!function(e,t,r){let n=e.getParent(),i=e.getPreviousSibling(),o=e.getNextSibling(),l=e.getTextContent();if(!y(n)||n.getIsUnlinked()){if(y(i)&&!i.getIsUnlinked()&&i.is(e.getPreviousSibling())&&e.getParent()===i.getParent()){if(!N(l[0]))return P(i),r(null,i.getURL());if(i.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(l):/^\.[a-zA-Z0-9]{1,}/.test(l)){let n=i.getTextContent()+l,o=C(n,t);null!==o&&o.text===n&&(i.append(e),R(i,t,r),r(null,i.getURL()))}}!y(o)||o.getIsUnlinked()||k(l)||o.is(e.getNextSibling())&&e.getParent()===o.getParent()&&
1(P(o),r(null,o.getURL()))}}(e,r,l))}),e.registerCommand(v,e=>{let t=(0,n.vJq)();return null===e&&!!(0,n.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();y(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},n.AcJ))}})},4534:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;let i=r(90051);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n||(t.UsedValueState=n={})),t.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class l{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof i.Name?e:this.name(e)}name(e){return new i.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if((null==(r=null==(t=this._parent)?void 0:t._prefixes)?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=l;class a extends i.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,i._)`.${new i.Name(t)}[${r}]`}}t.ValueScopeName=a;let s=(0,i._)`\n`;class u extends l{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:i.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=null!=(r=t.key)?r:t.ref,l=this._values[i];if(l){let e=l.get(o);if(e)return e}else l=this._values[i]=new Map;l.set(o,n);let a=this._scope[i]||(this._scope[i]=[]),s=a.length;return a[s]=t.ref,n.setValue(t,{property:i,itemIndex:s}),n}getValue(e,t){let r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw Error(`CodeGen: name "${t}" has no value`);return(0,i._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,l={},a){let s=i.nil;for(let u in e){let c=e[u];if(!c)continue;let d=l[u]=l[u]||new Map;c.forEach(e=>{if(d.has(e))return;d.set(e,n.Started);let l=r(e);if(l){let r=this.opts.es5?t.varKinds.var:t.varKinds.const;s=(0,i._)`${s}${r} ${e} = ${l};${this.opts._n}`}else if(l=null==a?void 0:a(e))s=(0,i._)`${s}${l}${this.opts._n}`;else throw new o(e);d.set(e,n.Completed)})}return s}}t.ValueScope=u},5405:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},5462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;let n=r(90051),i=r(4534);var o=r(90051);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var l=r(4534);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return l.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return l.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return l.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}
1){let r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=M(this.rhs,e,t),this}get names(){return P(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){let t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=M(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,n=r.length;for(;n--;){let i=r[n];i.optimizeNames(e,t)||(function(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>R(e,t.names),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends m{}class _ extends y{}_.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new _(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(I(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null==(r=this.else)?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=M(this.condition,e,t),this}get names(){let e=super.names;return P(e,this.condition),this.else&&R(e,this.else.names),e}}b.kind="if";class S extends y{}S.kind="for";class w extends S{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=M(this.iteration,e,t),this}get names(){return R(super.names,this.iteration.names)}}class x extends S{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){let t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){let e=P(super.names,this.from);return P(e,this.to)}}class E extends S{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=M(this.iterable,e,t),this}get names(){return R(super.names,this.iterable.names)}}class C extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){let t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class T extends m{render(e){return"return "+super.render(e)}}T.kind="return";class N extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null==(e=this.catch)||e.optimizeNodes(),null==(t=this.finally)||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null==(r=this.catch)||r.optimizeNames(e,t),null==(n=this.finally)||n.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&R(e,this.catch.names),this.finally&&R(e,this.finally.names),e}}class k extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class A extends y{render(e){return"finally"+super.render(e)}}A.kind="finally";class O{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){let i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new s(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new c(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){let t=["{"];for(let[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}
1if(e,t,r){if(this._blockNode(new b(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new _)}endIf(){return this._endBlockNode(b,_)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,n,o=this.opts.es5?i.varKinds.var:i.varKinds.let){let l=this._scope.toName(e);return this._for(new x(o,l,t,r),()=>n(l))}forOf(e,t,r,o=i.varKinds.const){let l=this._scope.toName(e);if(this.opts.es5){let e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,t=>{this.var(l,(0,n._)`${e}[${t}]`),r(l)})}return this._for(new E("of",o,l,t),()=>r(l))}forIn(e,t,r,o=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,n._)`Object.keys(${t})`,r);let l=this._scope.toName(e);return this._for(new E("in",o,l,t),()=>r(l))}endFor(){return this._endBlockNode(S)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){let t=new T;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new N;if(this._blockNode(n),this.code(e),t){let e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new A,this.code(r)),this._endBlockNode(k,A)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(void 0===t)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new C(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof b))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}function R(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,t){return t instanceof n._CodeOrName?R(e,t.names):e}function M(e,t,r){var i;if(e instanceof n.Name)return o(e);if(!((i=e)instanceof n._Code&&i._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str])))return e;return new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[]));function o(e){let n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,n._)`!${j(e)}`}t.CodeGen=O,t.not=I;let D=L(t.operators.AND);t.and=function(...e){return e.reduce(D)};let $=L(t.operators.OR);function L(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${j(t)} ${e} ${j(r)}`}function j(e){return e instanceof n.Name?e:(0,n._)`(${e})`}t.or=function(...e){return e.reduce($)}},6894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;let n=r(94540),i=r(43510),o=r(5462),l=r(72792),a=r(21715),s=r(19792);function u(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,o._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function c(e,t,r,n){let{gen:a,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,h=f.passContext?l.default.this:o.nil;function p(e){let t=(0,o._)`${e}.errors`;a.assign(l.default.vErrors,(0,o._)`${l.default.vErrors} === null ? ${t} : ${l.default.vErrors}.concat(${t})`),a.assign(l.default.errors,(0,o._)`${l.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;let n=null==(t=null==r?void 0:r.validate)?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=s.mergeEvaluated.props(a,n.props,u.props));else{let t=a.var("props",(0,o._)`${e}.evaluated.props`);u.props=s.mergeEvaluated.props(a,t,u.props,o.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=s.mergeEvaluated.items(a,n.items,u.items));else{let t=a.var("items",(0,o._)`${e}.evaluated.items`);u.items=s.mergeEvaluated.items(a,t,u.items,o.Name)}}n?function(){if(!d.$async)throw Error("async schema referenced by sync schema");let r=a.let("valid");a.try(()=>{a.code((0,o._)`await ${(0,i.callValidateCode)(e,t,h)}`),m(t),c||a.assign(r,!0)},e=>{a.if((0,o._)`!(${e} instanceof ${u.ValidationError})`,()=>a.throw(e)),p(e),c||a.assign(r,!1)}),e.ok(r)}
1():e.result((0,i.callValidateCode)(e,t,h),()=>m(t),()=>p(t))}t.getValidate=u,t.callRef=c,t.default={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:l,schemaEnv:s,validateName:d,opts:f,self:h}=i,{root:p}=s;if(("#"===r||"#/"===r)&&l===p.baseId){if(s===p)return c(e,d,s,s.$async);let r=t.scopeValue("root",{ref:p});return c(e,(0,o._)`${r}.validate`,p,p.$async)}let m=a.resolveRef.call(h,p,l,r);if(void 0===m)throw new n.default(i.opts.uriResolver,l,r);return m instanceof a.SchemaEnv?function(t){let r=u(e,t);c(e,r,t,t.$async)}(m):function(n){let i=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),l=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:r},l);e.mergeEvaluated(a),e.ok(l)}(m)}}},7272:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=({collectionPermissions:e,field:t,operation:r,parentName:n,permissions:i})=>{let o=!0===i||i?.[r]===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||r in i[t.name]&&i[t.name][r]),l=null==i||!0===i||("name"in t?i[t.name]:i),a=!0===i||i?.read===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||"read"in i[t.name]&&i[t.name].read);if(!(!0===i||"object"==typeof i&&null!==i&&Object.keys(i).length>0)&&e){let t=!!e.read,n=!1;return"create"===r&&"create"in e?n=!!e.create:"update"===r&&(n=!!e.update),{operation:n,permissions:{read:t},read:t}}return{operation:!!o,permissions:l,read:!!a}}},7564:(e,t,r)=>{"use strict";var n=r(43789),i=r(67e3),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function l(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|h(n,i),s=l(o),u=s.write(n,i);return u!==o&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return a.from(c,t,r);var p=function(e){if(a.isBuffer(e)){var t=0|f(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?l(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),l(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.hp=a,t.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(i)return n?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,l,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=R[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,l=r,0===o&&l===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,l));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,l=1,a=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;l=2,a/=2,s/=2,r/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(o=r;o<a;
vendor: 12,392 bytes, line 1
1o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*l}else -1!==c&&(o-=o-c),c=-1}else for(r+s>a&&(r=a-s),o=r;o>=0;o--){for(var d=!0,f=0;f<s;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(O(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,l=r-t,s=Math.min(o,l),u=this.slice(n,i),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],l=c[d];break}return o<l?-1:+(l<o)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function _(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,l,a,s,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(s=(31&u)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],l=e[i+2],(192&o)==128&&(192&l)==128&&(s=(15&u)<<12|(63&o)<<6|63&l)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],l=e[i+2],a=e[i+3],(192&o)==128&&(192&l)==128&&(192&a)==128&&(s=(15&u)<<18|(63&o)<<12|(63&l)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",m=0;m<h;)p+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return p}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,l,a,s,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var l=0;l<n;++l){var a,s=parseInt(t.substr(2*l,2),16);if((a=s)!=a)break;e[r+l]=s}return l}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,A(T(e,this.length-i),this,i,o);case"ascii":return l=t,a=r,A(N(e),this,l,a);case"latin1":case"binary":return function(e,t,r,n){return A(N(t),e,r,n)}(this,e,t,r);case"base64":return s=t,u=r,A(k(e),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,A(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var o=1,l=0;for(this[t]=255&e;++l<r&&(o*=256);)this[t+l]=e/o&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var o=r-1,l=1;for(this[t+o]=255&e;--o>=0&&(l*=256);)this[t+o]=e/l&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var o=0,l=1,a=0;for(this[t]=255&e;++o<r&&(l*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/l|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var o=r-1,l=1,a=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/l|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var l=a.isBuffer(e)?e:a.from(e,n),s=l.length;
1if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=l[i%s]}return this};var C=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],l=0;l<n;++l){if((r=e.charCodeAt(l))>55295&&r<57344){if(!i){if(r>56319||l+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function N(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function k(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},8208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(43510),i=r(5462),o=r(19792);t.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,i.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,i._)`{missingProperty: ${e}}`},code(e){let{gen:t,schema:r,schemaCode:l,data:a,$data:s,it:u}=e,{opts:c}=u;if(!s&&0===r.length)return;let d=r.length>=c.loopRequired;if(u.allErrors?function(){if(d||s)e.block$data(i.nil,f);else for(let t of r)(0,n.checkReportMissingProp)(e,t)}():function(){let o=t.let("missing");if(d||s){let r=t.let("valid",!0);e.block$data(r,()=>{var s,u;return s=o,u=r,void(e.setParams({missingProperty:s}),t.forOf(s,l,()=>{t.assign(u,(0,n.propertyInData)(t,a,s,c.ownProperties)),t.if((0,i.not)(u),()=>{e.error(),t.break()})},i.nil))}),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,o)),(0,n.reportMissingProp)(e,o),t.else()}(),c.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of r)if((null==t?void 0:t[e])===void 0&&!n.has(e)){let t=u.schemaEnv.baseId+u.errSchemaPath,r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,o.checkStrictMode)(u,r,u.opts.strictRequired)}}function f(){t.forOf("prop",l,r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,c.ownProperties),()=>e.error())})}}}},8567:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i,d:()=>o});let n=e=>0===Object.keys(e).length,i=(e,t)=>n(t)?e:n(e)?t:("and"in e&&e.and?e.and.push(t):("or"in e,e={and:[e,t]}),e),o=({collectionConfig:e,search:t,where:r={}})=>{if(t){let o={...r||{}},l=(e.admin.listSearchableFields||[e.admin?.useAsTitle||"id"]).map(e=>({[e]:{like:t}}));l.length>0&&(o=i(o,{or:l})),n(o)||(r=o)}return r}},8756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792),o=r(42901);t.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`},code(e){let t,r,{gen:l,data:a,$data:s,schema:u,schemaCode:c,it:d}=e;if(!s&&0===u.length)throw Error("enum must have non-empty array");let f=u.length>=d.opts.loopEnum,h=()=>null!=t?t:t=(0,i.useFunc)(l,o.default);if(f||s)r=l.let("valid"),e.block$data(r,function(){l.assign(r,!1),l.forOf("v",c,e=>l.if((0,n._)`${h()}(${a}, ${e})`,()=>l.assign(r,!0).break()))});else{if(!Array.isArray(u))throw Error("ajv implementation error");let e=l.const("vSchema",c);r=(0,n.or)(...u.map((t,r)=>(function(e,t){let r=u[t];return"object"==typeof r&&null!==r?(0,n._)`${h()}(${a}, ${e}[${t}])`:(0,n._)`${a} === ${r}`})(e,r)))}e.pass(r)}}},8980:(e,t,r)=>{"use strict";r.d(t,{VersionsPill:()=>l});
1var n=r(11241),i=r(94799),o=r(67331);r(34023);var l=function(){var e,t=(0,n.c)(2),r=(0,o.useDocumentInfo)().versionCount;return r?(t[0]!==r?(e=(0,i.jsx)("span",{className:"pill-version-count",children:r}),t[0]=r,t[1]=e):e=t[1],e):null}},9971:(e,t,r)=>{"use strict";r.d(t,{Ie:()=>s,Jy:()=>v,K2:()=>_,OV:()=>S,Pe:()=>h,YF:()=>u,cE:()=>x,cj:()=>m,eu:()=>d,mB:()=>f,rd:()=>p,vF:()=>w,xj:()=>y});var n=r(76270);function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=o&&"documentMode"in document?document.documentMode:null,a=(o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),o&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function s(e,t){return Array.from(u(e,t))}function u(e,t){return function(e,t,r){let i=(0,n.NiT)(),o=t||i,l=(0,n.ff4)(o)?(0,n.uwZ)(o,e):(0,n.IlV)(o,e),a=function(e){let t=-1;for(let r=e;null!==r;r=r.getParent())t++;return t}(o),s=r?(0,n.erb)((0,n.P6U)((0,n.IlV)(r,e)))||c(r,e):c(o,e),u=a;return(0,n.Bts)({hasNext:e=>null!==e,initial:l,map:e=>({depth:u,node:e.origin}),step:e=>{if(e.isSameNodeCaret(s))return null;(0,n.cmH)(e)&&u++;let t=(0,n.FtC)(e);return!t||t[0].isSameNodeCaret(s)?null:(u+=t[1],t[0])}})}("next",e,t)}function c(e,t){let r=(0,n.FtC)((0,n.IlV)(e,t));return r&&r[0]}function d(e,t){let r=e;for(;null!=r;){if(r instanceof t)return r;r=r.getParent()}return null}function f(e){let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());return(0,n.ff4)(t)||i(4,e.__key),t}function h(e){let t,r=(0,n.vJq)()||(0,n.S1w)();if((0,n.I2P)(r))t=(0,n.Ave)(r.focus,"next");else{if(null!=r){let e=r.getNodes(),i=e[e.length-1];i&&(t=(0,n.IlV)(i,"next"))}t=t||(0,n.uwZ)((0,n.NiT)(),"previous").getFlipped().insert((0,n.lJ7)())}let i=p(e,t),o=(0,n.erb)(i),l=(0,n.cmH)(o)?(0,n.lSZ)(o):i;return(0,n.xQ8)((0,n.sWS)(l)),e.getLatest()}function p(e,t,r){let o=(0,n.Csq)(t,"next");for(let e=o;e;e=(0,n.k1Q)(e,r))o=e;return(0,n.rN)(o)&&i(283),o.insert(e.isInline()?(0,n.lJ7)().append(e):e),(0,n.Csq)((0,n.IlV)(e.getLatest(),"next"),t.direction)}function m(e,t){let r=t();return e.replace(r),r.append(e),r}function y(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function v(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return!1;let r=new Set,i=t.getNodes();for(let t=0;t<i.length;t++){let o=i[t],l=o.getKey();if(r.has(l))continue;let a=(0,n.BtT)(o,e=>(0,n.ff4)(e)&&!e.isInline());if(null===a)continue;let s=a.getKey();a.canIndent()&&!r.has(s)&&(r.add(s),e(a))}return r.size>0}function _(e,t){(0,n.uwZ)(e,"next").insert(t)}o&&"InputEvent"in window&&!l&&new window.InputEvent("input"),o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,o&&/Android/.test(navigator.userAgent),o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),o&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let b=!(a||!o)&&void 0;function S(e,t=!1){let r=1;if(function(){if(void 0===b){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),b=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return b}()||t)for(;e;)r*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return r}function w(e,t){return function e(t,r,i){let o=!1;for(let l of E(t))r(l)?null!==i&&i(l):(o=!0,(0,n.ff4)(l)&&e(l,r,i||(e=>l.insertAfter(e))),l.remove());return o}(e,t,null)}function x(e,t){let r=[],i=Array.from(e).reverse();for(let e=i.pop();void 0!==e;e=i.pop())if(t(e))r.push(e);else if((0,n.ff4)(e))for(let t of E(e))i.push(t);return r}function E(e){var t;return t=(0,n.uwZ)(e,"previous"),(0,n.Bts)({hasNext:n.OpE,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}},10046:(e,t,r)=>{"use strict";r.d(t,{Banner:()=>a});var n=r(94799),i=r(34023);r(15811);var o=r(65690),l="banner",a=function(e){var t=e.type,r=e.alignIcon,a=void 0===r?"right":r,s=e.children,u=e.className,c=e.icon,d=e.onClick,f=e.to,h=[l,"".concat(l,"--type-").concat(void 0===t?"default":t),u&&u,f&&"".concat(l,"--has-link"),(f||d)&&"".concat(l,"--has-action"),c&&"".concat(l,"--has-icon"),c&&"".concat(l,"--align-icon-").concat(a)].filter(
1Boolean).join(" "),p="div";return d&&!f&&(p="button"),f&&(p=o.N),(0,n.jsxs)(p,{className:h,href:f||null,onClick:d,children:[c&&"left"===a&&(0,n.jsx)(i.Fragment,{children:c}),(0,n.jsx)("span",{className:"".concat(l,"__content"),children:s}),c&&"right"===a&&(0,n.jsx)(i.Fragment,{children:c})]})}},10115:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(21815),i=r(35254);let o=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,d=i.Ay,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.lF,encodeValuesOnly:!1,format:d,formatter:i._J[d],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h={},p=function(e,t,r,i,o,l,s,c,d,m,y,v,_,b,S,w,x){var E;let C,T=e,N=x,k=0,A=!1;for(;void 0!==(N=N.get(h))&&!A;){let t=N.get(e);if(k+=1,void 0!==t)if(t===k)throw RangeError("Cyclic object value");else A=!0;void 0===N.get(h)&&(k=0)}if("function"==typeof m?T=m(t,T):T instanceof Date?T=_(T):"comma"===r&&a(T)&&(T=n.F7(T,function(e){return e instanceof Date?_(e):e})),null===T){if(l)return d&&!w?d(t,f.encoder,"key",b):t;T=""}if("string"==typeof(E=T)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.Pe(T))return d?[S(w?t:d(t,f.encoder,"key",b))+"="+S(d(T,f.encoder,"value",b))]:[S(t)+"="+S(String(T))];let O=[];if(void 0===T)return O;if("comma"===r&&a(T))w&&d&&(T=n.F7(T,d)),C=[{value:T.length>0?T.join(",")||null:void 0}];else if(a(m))C=m;else{let e=Object.keys(T);C=y?e.sort(y):e}let R=c?t.replace(/\./g,"%2E"):t,P=i&&a(T)&&1===T.length?R+"[]":R;if(o&&a(T)&&0===T.length)return P+"[]";for(let t=0;t<C.length;++t){let n=C[t],f="object"==typeof n&&void 0!==n.value?n.value:T[n];if(s&&null===f)continue;let E=v&&c?n.replace(/\./g,"%2E"):n,N=a(T)?"function"==typeof r?r(P,E):P:P+(v?"."+E:"["+E+"]");x.set(e,k);let A=new WeakMap;A.set(h,x),u(O,p(f,N,r,i,o,l,s,c,"comma"===r&&w&&a(T)?null:d,m,y,v,_,b,S,w,A))}return O},m=function(e){let t;if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let r=i.Ay;if(void 0!==e.format){if(!o.call(i._J,e.format))throw TypeError("Unknown format option provided.");r=e.format}let n=i._J[r],s=f.filter;if(("function"==typeof e.filter||a(e.filter))&&(s=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};function y(e,t){let r,n=e,i=m(t);"function"==typeof i.filter?n=(0,i.filter)("",n):a(i.filter)&&(r=i.filter);let o=[];if("object"!=typeof n||null===n)return"";
1let s=l[i.arrayFormat],c="comma"===s&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);let d=new WeakMap;for(let e=0;e<r.length;++e){let t=r[e];i.skipNulls&&null===n[t]||u(o,p(n[t],t,s,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,d))}let f=o.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return f.length>0?h+f:""}},10485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;let n=r(5462),i=r(19792),o=r(43510);function l(e,t,r=e.schema){let{gen:o,parentSchema:a,data:s,keyword:u,it:c}=e;(function(e){let{opts:n,errSchemaPath:o}=c,l=r.length,a=l===e.minItems&&(l===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){let e=`"${u}" is ${l}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,n.strictTuples)}})(a),c.opts.unevaluated&&r.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,r.length,c.items));let d=o.name("valid"),f=o.const("len",(0,n._)`${s}.length`);r.forEach((t,r)=>{(0,i.alwaysValidSchema)(c,t)||(o.if((0,n._)`${f} > ${r}`,()=>e.subschema({keyword:u,schemaProp:r,dataProp:r},d)),e.ok(d))})}t.validateTuple=l,t.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return l(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}}},11241:(e,t,r)=>{"use strict";e.exports=r(44941)},11449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(43510),i=r(19792),o=r(5462);t.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,o.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,o._)`{pattern: ${e}}`},code(e){let{gen:t,data:r,$data:l,schema:a,schemaCode:s,it:u}=e,c=u.opts.unicodeRegExp?"u":"";if(l){let{regExp:n}=u.opts.code,l="new RegExp"===n.code?(0,o._)`new RegExp`:(0,i.useFunc)(t,n),a=t.let("valid");t.try(()=>t.assign(a,(0,o._)`${l}(${s}, ${c}).test(${r})`),()=>t.assign(a,!1)),e.fail$data((0,o._)`!${a}`)}else{let t=(0,n.usePattern)(e,a);e.fail$data((0,o._)`!${t}.test(${r})`)}}}},11825:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>_,Nx:()=>d,Rk:()=>S,SD:()=>c,Vs:()=>h,Wh:()=>l,Xg:()=>f,dt:()=>u,zI:()=>m});var n=r(76270);let i=new Map;function o(e){let t={};if(!e)return t;for(let r of e.split(";"))if(""!==r){let[e,n]=r.split(/:([^]+)/);e&&n&&(t[e.trim()]=n.trim())}return t}function l(e){let t=i.get(e);return void 0===t&&(t=o(e),i.set(e,t)),t}function a(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return null;let r=t.ownerDocument.defaultView;return null===r?null:r.getComputedStyle(t)}function s(e){return a((0,n.hVZ)(e)?e:e.getParentOrThrow())}function u(e){let t=s(e);return null!==t&&"rtl"===t.direction}function c(e,t,r="self"){let i=e.getStartEndPoints();if(t.isSelected(e)&&!(0,n.Rb_)(t)&&null!==i){let[o,l]=i,a=e.isBackward(),s=o.getNode(),u=l.getNode(),c=t.is(s),d=t.is(u);if(c||d){let[i,o]=(0,n.Cku)(e),l=s.is(u),c=t.is(a?u:s),d=t.is(a?s:u),f,h=0;l?(h=i>o?o:i,f=i>o?i:o):c?(h=a?o:i,f=void 0):d&&(h=0,f=a?i:o);let p=t.__text.slice(h,f);p!==t.__text&&("clone"===r&&(t=(0,n.U5P)(t)),t.__text=p)}}return t}function d(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,n.ff4)(t)||function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",177),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${177}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),e.offset===t.getChildrenSize()}function f(e){let t=e.getStyle(),r=o(t);i.set(t,r)}function h(e){let t=(0,n.vJq)();if(!t)return;let r=new Map,i=e=>r.get(e.getKey())||[0,e.getTextContentSize()];if((0,n.I2P)(t))for(let e of(0,n.$iu)(t).getTextSlices())e&&r.set(e.caret.origin.getKey(),e.getSliceIndices());for(let r of t.getNodes()){if(!(0,n.kFe)(r)||!r.canHaveFormat())continue;let[t,o]=i(r);o!==t&&e((0,n.Rb_)(r)||0===t&&o===r.getTextContentSize()?r:r.splitText(t,o)[+(0!==t)])}(0,n.I2P)(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){let{anchor:t,focus:r}=e,{key:n,offset:i,type:o}=t;t.set(r.key,r.offset,r.type),r.set(n,i,o)}}(t)}function p(e,t){let r=e.getFormatType(),n=e.getIndent();r!==t.getFormatType()&&t.setFormat(r),n!==t.getIndent()&&t.setIndent(n)}
1function m(e,t,r=p){if(null===e)return;let i=e.getStartEndPoints(),o=new Map,l=null;if(i){let[e,t]=i;(l=(0,n.uTE)()).anchor.set(e.key,e.offset,e.type),l.focus.set(t.key,t.offset,t.type);let r=(0,n.BtT)(e.getNode(),n.w3H),a=(0,n.BtT)(t.getNode(),n.w3H);(0,n.ff4)(r)&&o.set(r.getKey(),r),(0,n.ff4)(a)&&o.set(a.getKey(),a)}for(let t of e.getNodes())if((0,n.ff4)(t)&&(0,n.w3H)(t))o.set(t.getKey(),t);else if(null===i){let e=(0,n.BtT)(t,n.w3H);(0,n.ff4)(e)&&o.set(e.getKey(),e)}for(let[e,n]of o){let i=t();r(n,i),n.replace(i,!0),l&&(e===l.anchor.key&&l.anchor.set(i.getKey(),l.anchor.offset,l.anchor.type),e===l.focus.key&&l.focus.set(i.getKey(),l.focus.offset,l.focus.type))}l&&e.is((0,n.vJq)())&&(0,n.n1P)(l)}function y(e){let t=v(e);return null!==t&&"vertical-rl"===t.writingMode}function v(e){let t=e.anchor.getNode();return(0,n.ff4)(t)?a(t):s(t)}function _(e,t){let r=y(e)?!t:t;b(e)&&(r=!r);let i=(0,n.Ave)(e.focus,r?"previous":"next");if((0,n.pGK)(i))return!1;for(let e of(0,n.mWO)(i)){if((0,n.cmH)(e))return!e.origin.isInline();if(!(0,n.ff4)(e.origin)){if((0,n.Cyw)(e.origin))return!0;break}}return!1}function b(e){let t=v(e);return null!==t&&"rtl"===t.direction}function S(e,t,r){let n,i=b(e);n=y(e)||i?!r:r,e.modify(t?"extend":"move",n,"character")}},12021:e=>{"use strict";var t=e.exports=function(e,r,n){"function"==typeof r&&(n=r,r={});var i="function"==typeof(n=r.cb||n)?n:n.pre||function(){};!function e(r,n,i,o,l,a,s,u,c,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,l,a,s,u,c,d),o){var h=o[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var p=0;p<h.length;p++)e(r,n,i,h[p],l+"/"+f+"/"+p,a,l,f,o,p)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)e(r,n,i,h[m],l+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,l,f,o,m)}else(f in t.keywords||r.allKeys&&!(f in t.skipKeywords))&&e(r,n,i,h,l+"/"+f,a,l,f,o)}i(o,l,a,s,u,c,d)}}(r,i,n.post||function(){},e,"",e)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},12241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(45693);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(5462);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});let o=r(80197),l=r(94540),a=r(45367),s=r(21715),u=r(5462),c=r(56548),d=r(98347),f=r(19792),h=r(93822),p=r(46887),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";let y=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated
1ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};class S{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...function(e){var t,r,n,i,o,l,a,s,u,c,d,f,h,y,v,_,b,S,w,x,E,C,T,N,k;let A=e.strict,O=null==(t=e.code)?void 0:t.optimize,R=!0===O||void 0===O?1:O||0,P=null!=(n=null==(r=e.code)?void 0:r.regExp)?n:m,M=null!=(i=e.uriResolver)?i:p.default;return{strictSchema:null==(l=null!=(o=e.strictSchema)?o:A)||l,strictNumbers:null==(s=null!=(a=e.strictNumbers)?a:A)||s,strictTypes:null!=(c=null!=(u=e.strictTypes)?u:A)?c:"log",strictTuples:null!=(f=null!=(d=e.strictTuples)?d:A)?f:"log",strictRequired:null!=(y=null!=(h=e.strictRequired)?h:A)&&y,code:e.code?{...e.code,optimize:R,regExp:P}:{optimize:R,regExp:P},loopRequired:null!=(v=e.loopRequired)?v:200,loopEnum:null!=(_=e.loopEnum)?_:200,meta:null==(b=e.meta)||b,messages:null==(S=e.messages)||S,inlineRefs:null==(w=e.inlineRefs)||w,schemaId:null!=(x=e.schemaId)?x:"$id",addUsedSchema:null==(E=e.addUsedSchema)||E,validateSchema:null==(C=e.validateSchema)||C,validateFormats:null==(T=e.validateFormats)||T,unicodeRegExp:null==(N=e.unicodeRegExp)||N,int32range:null==(k=e.int32range)||k,uriResolver:M}}(e)};let{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return k;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,_,e,"NOT SUPPORTED"),w.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=N.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),E.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,n=h;"id"===r&&((n={...h}).id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);let r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof l.default))throw t;return a.call(this,t),await s.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function s(e){let r=await u.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){let i;
1if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,r,n);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(i=e[t])&&"string"!=typeof i)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){let r;if("boolean"==typeof e)return!0;if(void 0!==(r=e.$schema)&&"string"!=typeof r)throw Error("$schema must be a string");if(!(r=r||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(r,e);if(!n&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){let{schemaId:r}=this.opts,n=new s.SchemaEnv({schema:{},schemaId:r});if(!(t=s.resolveSchema.call(this,n,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,c.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if("object"==typeof e&&void 0===t){if(Array.isArray(r=(t=e).keyword)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(O.call(this,r,t),!t)return(0,f.eachItem)(r,e=>R.call(this,e)),this;M.call(this,t);let n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>R.call(this,e,n):e=>n.type.forEach(t=>R.call(this,e,n,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let r of(delete t.keywords[e],delete t.all[e],t.rules)){let t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){let r=this.RULES.all;for(let n of(e=JSON.parse(JSON.stringify(e)),t)){let t=n.split("/").slice(1),i=e;for(let e of t)i=i[e];for(let e in r){let t=r[e];if("object"!=typeof t)continue;let{$data:n}=t.definition,o=i[e];n&&o&&(i[e]=D(o))}}return e}_removeAllSchemas(e,t){for(let r in e){let n=e[r];(!t||t.test(r))&&("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o,{schemaId:l}=this.opts;if("object"==typeof e)o=e[l];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof e)throw Error("schema must be object or boolean");let a=this._cache.get(e);if(void 0!==a)return a;r=(0,c.normalizeId)(o||r);let u=c.getSchemaRefs.call(this,e,r);return a=new s.SchemaEnv({schema:e,schemaId:l,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(let i in e)i in t&&this.logger[n](`${r}: option ${i}. ${e[i]}`)}
1function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function E(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function C(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))return void this.addVocabulary(e);for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function N(){let e={...this.opts};for(let t of y)delete e[t];return e}S.ValidationError=o.default,S.MissingRefError=l.default,t.default=S;let k={log(){},warn(){},error(){}},A=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){let{RULES:r}=this;if((0,f.eachItem)(e,e=>{if(r.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!A.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function R(e,t,r){var n;let i=null==t?void 0:t.post;if(r&&i)throw Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,l=i?o.post:o.rules.find(({type:e})=>e===r);if(l||(l={type:r,rules:[]},o.rules.push(l)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?P.call(this,l,a,t.before):l.rules.push(a),o.all[e]=a,null==(n=t.implements)||n.forEach(e=>this.addKeyword(e))}function P(e,t,r){let n=e.rules.findIndex(e=>e.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function M(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}let I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,I]}}},12671:(e,t,r)=>{"use strict";let n,i;r.d(t,{MM:()=>X,QZ:()=>T,iZ:()=>q,v:()=>N,vA:()=>u,vP:()=>y,xT:()=>V});var o=r(76270),l=r(9971);let a=Symbol.for("preact-signals");function s(){if(d>1)return void d--;let e,t=!1;for(;void 0!==i;){let r=i;for(i=void 0,f++;void 0!==r;){let n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&v(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(f=0,d--,t)throw e}function u(e){if(d>0)return e();d++;try{return e()}finally{s()}}function c(e){let t=n;n=void 0;try{return e()}finally{n=t}}let d=0,f=0,h=0;function p(e){if(void 0===n)return;let t=e.n;return void 0===t||t.t!==n?(t={i:0,S:e,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:t},void 0!==n.s&&(n.s.n=t),n.s=t,e.n=t,32&n.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=n.s,t.n=void 0,n.s.n=t,n.s=t),t):void 0}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function y(e,t){return new m(e,t)}function v(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _(e){for(let t=e.s;void 0!==t;t=t.n){let r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function b(e){let t,r=e.s;for(;void 0!==r;){let e=r.p;-1===r.i?(r.S.U(r),void 0!==e&&(e.n=r.n),void 0!==r.n&&(r.n.p=e)):t=r,r.S.n=r.r,void 0!==r.r&&(r.r=void 0),r=e}e.s=t}function S(e,t){m.call(this,void 0),this.x=e,this.s=void 0,this.g=h-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function w(e){let t=e.u;if(e.u=void 0,"function"==typeof t){d++;let r=n;n=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,x(e),t}finally{n=r,s()}}}function x(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,w(e)}function E(e){if(n!==this)throw Error("Out-of-order effect");b(this),n=e,this.f&=-2,8&this.f&&x(this),s()}function C(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function T(e,t){let r=new C(e,t);try{r.c()}catch(e){throw r.d(),e}let n=r.d.bind(r);return n[Symbol.dispose]=n,n}function N(e,t={}){let r={};for(let n in e){let i=t[n],o=y(void 0===i?e[n]:i);r[n]=o}return r}function k(){let e=(0,o.NiT)(),t=(0,o.vJq)(),r=(0,o.lJ7)();e.clear(),e.append(r),null!==t&&r.select(),(0,o.I2P)(t)&&(t.format=0)}m.prototype.brand=a,m.prototype.h=function(){return!0},m.prototype.S=function(e){let t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:c(()=>{var e;null==(e=this.W)||e.call(this)}))},m.prototype.U=function(e){if(void 0!==this.t){let t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&c(()=>{var e;null==(e=this.Z)||e.call(this)}))}},m.prototype.subscribe=function(e){return T(()=>{let t=this.value,r=n;n=void 0;try{e(t)}finally{n=r}},{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){let e=n;n=void 0;try{return this.value}finally{n=e}},Object.defineProperty(m.prototype,"value",{get(){let e=p(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(f>100)throw Error("Cycle detected");this.v=e,this.i++,h++,d++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{s()}}}}),S.prototype=new m,S.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===h))return!0;
1if(this.g=h,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;let e=n;try{_(this),n=this;let e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return n=e,b(this),this.f&=-2,!0},S.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}m.prototype.S.call(this,e)},S.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},S.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(S.prototype,"value",{get(){if(1&this.f)throw Error("Cycle detected");let e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),C.prototype.c=function(){let e=this.S();try{if(8&this.f||void 0===this.x)return;let e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},C.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,w(this),_(this),d++;let e=n;return n=this,E.bind(this,e)},C.prototype.N=function(){2&this.f||(this.f|=2,this.o=i,i=this)},C.prototype.d=function(){this.f|=8,1&this.f||x(this)},C.prototype.dispose=function(){this.d()},(0,o.vE9)({build:(e,t,r)=>N(t),config:(0,o.lVE)({defaultSelection:"rootEnd",disabled:!1}),name:"@lexical/extension/AutoFocus",register(e,t,r){let n=r.getOutput();return T(()=>n.disabled.value?void 0:e.registerRootListener(t=>{e.focus(()=>{let e=document.activeElement;null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})},{defaultSelection:n.defaultSelection.peek()})}))}}),(0,o.vE9)({build:(e,t,r)=>N(t),config:(0,o.lVE)({$onClear:k}),name:"@lexical/extension/ClearEditor",register(e,t,r){let{$onClear:n}=r.getOutput();return T(()=>(function(e,t=k){return e.registerCommand(o.SKc,r=>(e.update(t),!0),o.jZM)})(e,n.value))}});let A=(0,o.urt)("format",{parse:e=>"number"==typeof e?e:0});class O extends o.Kp7{$config(){return this.config("decorator-text",{extends:o.Kp7,stateConfigs:[{flat:!0,stateConfig:A}]})}getFormat(){return(0,o.I8X)(this,A)}getFormatFlags(e,t){return(0,o.FyW)(this.getFormat(),e,t)}hasFormat(e){let t=o.LZn[e];return 0!=(this.getFormat()&t)}setFormat(e){return(0,o.Chh)(this,A,e)}toggleFormat(e){let t=this.getFormat(),r=(0,o.FyW)(t,e,null);return this.setFormat(r)}isInline(){return!0}createDOM(){return document.createElement("span")}updateDOM(){return!1}}function R(e,t){let r;return y(e(),{unwatched(){r&&(r(),r=void 0)},watched(){this.value=e(),r=t(this)}})}(0,o.vE9)({name:"@lexical/extension/DecoratorText",nodes:()=>[O],register:(e,t,r)=>e.registerCommand(o.mB,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)||(0,o.I2P)(t))for(let r of t.getNodes())r instanceof O&&r.toggleFormat(e);return!1},o.AcJ)});let P=(0,o.vE9)({build:e=>R(()=>e.getEditorState(),t=>e.registerUpdateListener(e=>{t.value=e.editorState})),name:"@lexical/extension/EditorState"});function M(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let I=new Set;class D{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):o.Tc1;for(let r of this.configs)e=t(e,r);return e}init(e){let t,r=this.state;2===r.id||M(306,String(r.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},i={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=Object.assign(r,{config:this.mergeConfigs(),id:3,registerState:n});this.state=o,this.extension.init&&(t=this.extension.init(e,o.config,n)),this.state=Object.assign(o,{id:4,initResult:t,registerState:i})}build(e){let t,r=this.state;4!==r.id&&M(307,String(r.id),String(5)),this.extension.build&&(t=this.extension.build(e,r.config,r.registerState));let n={...r.registerState,getOutput:()=>t,getSignal:this.getSignal.bind(this)};this.state=Object.assign(r,{id:5,output:t,registerState:n})}register(e,t){this._signal=t;let r=this.state;5!==r.id&&M(308,String(r.id),String(5));let n=this.extension.register&&this.extension.register(e,r.config,r.registerState);return this.state=Object.assign(r,{id:6}),()=>{let e=this.state;7!==e.id&&M(309,String(r.id),String(7)),this.state=Object.assign(e,{id:5}),n&&n()}}afterRegistration(e){let t,r=this.state;return 6!==r.id&&M(310,String(r.id),String(6)),this.extension.afterRegistration&&(t=this.extension.afterRegistration(e,r.config,r.registerState)),this.state=Object.assign(r,{id:7}),t}getSignal(){return void 0===this._signal&&M(311),this._signal}getInitResult(){void 0===this.extension.init&&M(312,this.extension.name);let e=this.state;return e.id>=4||M(313,String(e.id),String(4)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return e.id>=3||M(314,String(e.id),String(3)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&M(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&M(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return e.id>=7||M(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||I}getPeerNameSet(){let e=this._peerNameSet;
1return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;e.id>=5||M(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}let $={tag:o.T40};function L(){let e=(0,o.NiT)();e.isEmpty()&&e.append((0,o.lJ7)())}let j=(0,o.vE9)({config:(0,o.lVE)({setOptions:$,updateOptions:$}),init:({$initialEditorState:e=L})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:r},n){let i=n.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:n}=i;if((0,o.v0B)(n))e.setEditorState(n,r);else if("function"==typeof n)e.update(()=>{n(e)},t);else if(n&&("string"==typeof n||"object"==typeof n)){let t=e.parseEditorState(n);e.setEditorState(t,r)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[o.haT,o.Ey8,o.GRK,o.MZu,o.fD3]}),F=Symbol.for("@lexical/extension/LexicalBuilder");function B(){}function U(e){throw e}function z(e){return Array.isArray(e)?e:[e]}let K="0.41.0+prod.esm";class q{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){for(let t of(this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=K,this.roots=e,e))this.addExtension(t)}static fromExtensions(e){let t=[z(j)];for(let r of e)t.push(z(r));return new q(t)}static maybeFromEditor(e){let t=e[F];return t&&(t.PACKAGE_VERSION!==K&&M(292,t.PACKAGE_VERSION,K),t instanceof q||M(293)),t}static fromEditor(e){let t=q.maybeFromEditor(e);return void 0===t&&M(294),t}constructEditor(){let{$initialEditorState:e,onError:t,...r}=this.buildCreateEditorArgs(),n=Object.assign((0,o.ieJ)({...r,...t?{onError:e=>{t(e,n)}}:{}}),{[F]:this});for(let e of this.sortedExtensionReps())e.build(n);return n}buildEditor(){let e=B;function t(){try{e()}finally{e=B}}let r=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});
1return e=(0,o.Sdt)(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&M(295,e.name),t}addEdge(e,t,r){let n=this.outgoingConfigEdges.get(e);n?n.set(t,r):this.outgoingConfigEdges.set(e,new Map([[t,r]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&M(296);let[t]=z(e);"string"!=typeof t.name&&M(297,typeof t.name);let r=this.extensionNameMap.get(t.name);if(void 0!==r&&r.extension!==t&&M(298,t.name),!r){r=new D(this,t),this.extensionNameMap.set(t.name,r);let e=this.conflicts.get(t.name);for(let r of("string"==typeof e&&M(299,t.name,e),t.conflictsWith||[]))this.extensionNameMap.has(r)&&M(299,t.name,r),this.conflicts.set(r,t.name);for(let e of t.dependencies||[]){let r=z(e);this.addEdge(t.name,r[0].name,r.slice(1)),this.addExtension(r)}for(let[e,r]of t.peerDependencies||[])this.addEdge(t.name,e,r?[r]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(r,n)=>{var i,o;let l=r.state;if(2===l.id)return;let a=r.extension.name;0===l.id||M(300,a,n||"[unknown]"),0===(i=l).id||M(304,String(i.id),String(0)),r.state=l=Object.assign(i,{id:1});let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let r=this.extensionNameMap.get(e);r&&t(r,a)}1===(o=l).id||M(305,String(o.id),String(1)),r.state=l=Object.assign(o,{id:2}),e.push(r)};for(let e of this.extensionNameMap.values())0===e.state.id&&t(e);for(let t of e)for(let[e,r]of this.outgoingConfigEdges.get(t.extension.name)||[])if(r.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of r)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let r=this.extensionNameMap.get(e.name);for(let n of(void 0===r&&M(301,e.name),t))r.configs.add(n)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),r=new AbortController,n=[()=>r.abort()],i=r.signal;for(let r of t){let t=r.register(e,i);t&&n.push(t)}for(let r of t){let t=r.afterRegistration(e);t&&n.push(t)}return(0,o.Sdt)(...n)}buildCreateEditorArgs(){let e={},t=new Set,r=new Map,n=new Map,i={},o={},l=this.sortedExtensionReps();for(let a of l){let{extension:l}=a;if(void 0!==l.onError&&(e.onError=l.onError),void 0!==l.disableEvents&&(e.disableEvents=l.disableEvents),void 0!==l.parentEditor&&(e.parentEditor=l.parentEditor),void 0!==l.editable&&(e.editable=l.editable),void 0!==l.namespace&&(e.namespace=l.namespace),void 0!==l.$initialEditorState&&(e.$initialEditorState=l.$initialEditorState),l.nodes){for(let e of("function"==typeof l.nodes?l.nodes():l.nodes)||[]){if("function"!=typeof e){let t=r.get(e.replace);t&&M(302,l.name,e.replace.name,t.extension.name),r.set(e.replace,a)}t.add(e)}}if(l.html){if(l.html.export)for(let[e,t]of l.html.export.entries())n.set(e,t);l.html.import&&Object.assign(i,l.html.import)}l.theme&&function e(t,r){if(t&&r&&!Array.isArray(r)&&"object"==typeof t&&"object"==typeof r){for(let n in r)t[n]=e(t[n],r[n]);return t}return r}(o,l.theme)}Object.keys(o).length>0&&(e.theme=o),t.size&&(e.nodes=[...t]);let a=Object.keys(i).length>0,s=n.size>0;for(let t of((a||s)&&(e.html={},a&&(e.html.import=i),s&&(e.html.export=n)),l))t.init(e);return e.onError||(e.onError=U),e}}function V(e,t){let r=q.fromEditor(e).extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}let W=new Set,J=(0,o.vE9)({build(e,t,r){let n=r.getDependency(P).output,i=y({watchedNodeKeys:new Map}),l=R(()=>{},()=>T(()=>{let e=l.peek(),{watchedNodeKeys:t}=i.value,r,a=!1;n.value.read(()=>{if((0,o.vJq)())for(let[n,i]of t.entries()){if(0===i.size){t.delete(n);continue}let l=(0,o.nsf)(n),s=l&&l.isSelected()||!1;a=a||s!==(!!e&&e.has(n)),s&&(r=r||new Set).add(n)}}),!a&&r&&e&&r.size===e.size||(l.value=r)}));
1return{watchNodeKey:function(e){let t=new S(()=>(l.value||W).has(e),void 0),{watchedNodeKeys:r}=i.peek(),n=r.get(e),o=void 0!==n;return(n=n||new Set).add(t),o||(r.set(e,n),i.value={watchedNodeKeys:r}),t}}},dependencies:[P],name:"@lexical/extension/NodeSelection"});(0,o.guI)("INSERT_HORIZONTAL_RULE_COMMAND");class H extends o.Kp7{static getType(){return"horizontalrule"}static clone(e){return new H(e.__key)}static importJSON(e){return Y().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:G,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,o.ZB7)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function G(){return{node:Y()}}function Y(){return(0,o.phO)(H)}function Z(e){return e.canBeEmpty()}function X(e,t,r=Z){return(0,o.Sdt)(e.registerCommand(o.OXk,t=>{let r=(0,o.vJq)();if(!(0,o.I2P)(r))return!1;t.preventDefault();let n=!function(e){if(e.getNodes().filter(e=>(0,o.y68)(e)&&e.canIndent()).length>0)return!0;let t=e.anchor,r=e.focus,n=r.isBefore(t)?r:t,i=n.getNode(),a=(0,l.mB)(i);if(a.canIndent()){let e=a.getKey(),t=(0,o.uTE)();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,o.CaD)(t)).anchor.is(n))return!0}return!1}(r)?o.YW5:t.shiftKey?o.sik:o.PiT;return e.dispatchCommand(n,void 0)},o.jZM),e.registerCommand(o.PiT,()=>{let e="number"==typeof t?t:t?t.peek():null,n=(0,o.vJq)();if(!(0,o.I2P)(n))return!1;let i="function"==typeof r?r:r.peek();return(0,l.Jy)(t=>{if(i(t)){let r=t.getIndent()+1;(!e||r<e)&&t.setIndent(r)}})},o.da8))}(0,o.vE9)({dependencies:[P,J],name:"@lexical/extension/HorizontalRule",nodes:()=>[H],register(e,t,r){let{watchNodeKey:n}=r.getDependency(J).output,i=y({nodeSelections:new Map}),l=e._config.theme.hrSelected??"selected";return(0,o.Sdt)(e.registerCommand(o.d8p,e=>{if((0,o.vAA)(e.target)){let t=(0,o.pJU)(e.target);if(t instanceof H)return function(e,t=!1){let r,n=(0,o.vJq)(),i=e.isSelected(),l=e.getKey();t&&(0,o.RTZ)(n)?r=n:(r=(0,o.rUs)(),(0,o.n1P)(r)),i?r.delete(l):r.add(l)}(t,e.shiftKey),!0}return!1},o.AcJ),e.registerMutationListener(H,(t,r)=>{u(()=>{let r=!1,{nodeSelections:o}=i.peek();for(let[i,l]of t.entries())if("destroyed"===l)o.delete(i),r=!0;else{let t=o.get(i),l=e.getElementByKey(i);t?t.domNode.value=l:(r=!0,o.set(i,{domNode:y(l),selectedSignal:n(i)}))}r&&(i.value={nodeSelections:o})})}),T(()=>{let e=[];for(let{domNode:t,selectedSignal:r}of i.value.nodeSelections.values())e.push(T(()=>{let e=t.value;e&&(r.value?(0,o.ZB7)(e,l):(0,o.HEf)(e,l))}));return(0,o.Sdt)(...e)}))}}),(0,o.vE9)({build:(e,t,r)=>N(t),config:(0,o.lVE)({$canIndent:Z,disabled:!1,maxIndent:null}),name:"@lexical/extension/TabIndentation",register(e,t,r){let{disabled:n,maxIndent:i,$canIndent:o}=r.getOutput();return T(()=>{if(!n.value)return X(e,i,o)})}})},12900:()=>{},14288:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));let a=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();var a=e,s=r;let u=(a=a||{}).random??a.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((s=s||0)<0||s+16>t.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[s+e]=u[e];return t}return function(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}(u)}},14625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;let n=r(5462),i=r(19792);function o(e,t,r){let{gen:o,compositeRule:l,data:a,opts:s}=e;if(void 0===r)return;let u=(0,n._)`${a}${(0,n.getProperty)(t)}`;if(l)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=(0,n._)`${u} === undefined`;"empty"===s.useDefaults&&(c=(0,n._)`${c} || ${u} === null || ${u} === ""`),o.if(c,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){let{properties:r,items:n}=e.schema;if("object"===t&&r)for(let t in r)o(e,t,r[t].default);
1else"array"===t&&Array.isArray(n)&&n.forEach((t,r)=>o(e,r,t.default))}},15423:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});let n=async e=>{let t;switch(e){case"ar":t=(await r.e(783).then(r.bind(r,20783))).ar;break;case"az":t=(await r.e(9611).then(r.bind(r,29611))).az;break;case"bg":t=(await r.e(8683).then(r.bind(r,38683))).bg;break;case"bn-BD":case"bn-IN":t=(await r.e(559).then(r.bind(r,90559))).bn;break;case"ca":t=(await r.e(1056).then(r.bind(r,61056))).ca;break;case"cs":t=(await r.e(5538).then(r.bind(r,55538))).cs;break;case"da":t=(await r.e(2740).then(r.bind(r,32740))).da;break;case"de":t=(await r.e(6891).then(r.bind(r,96891))).de;break;case"en-US":t=(await Promise.resolve().then(r.bind(r,45593))).enUS;break;case"es":t=(await r.e(9050).then(r.bind(r,26669))).es;break;case"et":t=(await r.e(5016).then(r.bind(r,55016))).et;break;case"fa-IR":t=(await r.e(7510).then(r.bind(r,87510))).faIR;break;case"fr":t=(await r.e(331).then(r.bind(r,50331))).fr;break;case"he":t=(await r.e(3703).then(r.bind(r,16084))).he;break;case"hr":t=(await r.e(6669).then(r.bind(r,6669))).hr;break;case"hu":t=(await r.e(4783).then(r.bind(r,24783))).hu;break;case"id":t=(await r.e(4838).then(r.bind(r,34838))).id;break;case"is":t=(await r.e(4875).then(r.bind(r,94875))).is;break;case"it":t=(await r.e(6395).then(r.bind(r,96395))).it;break;case"ja":t=(await r.e(2807).then(r.bind(r,12807))).ja;break;case"ko":t=(await r.e(6578).then(r.bind(r,16578))).ko;break;case"lt":t=(await r.e(4013).then(r.bind(r,34013))).lt;break;case"lv":t=(await r.e(3235).then(r.bind(r,43235))).lv;break;case"nb":t=(await r.e(3685).then(r.bind(r,93685))).nb;break;case"nl":t=(await r.e(3415).then(r.bind(r,93415))).nl;break;case"pl":t=(await r.e(9785).then(r.bind(r,39785))).pl;break;case"pt":t=(await r.e(880).then(r.bind(r,80880))).pt;break;case"ro":t=(await r.e(3533).then(r.bind(r,83533))).ro;break;case"rs":t=(await r.e(7321).then(r.bind(r,67321))).sr;break;case"rs-Latin":t=(await r.e(9707).then(r.bind(r,79707))).srLatn;break;case"ru":t=(await r.e(2617).then(r.bind(r,32617))).ru;break;case"sk":t=(await r.e(2357).then(r.bind(r,52357))).sk;break;case"sl-SI":t=(await r.e(9155).then(r.bind(r,39155))).sl;break;case"sv":t=(await r.e(6497).then(r.bind(r,6497))).sv;break;case"ta":t=(await r.e(9803).then(r.bind(r,69803))).ta;break;case"th":t=(await r.e(9908).then(r.bind(r,89908))).th;break;case"tr":t=(await r.e(2216).then(r.bind(r,32216))).tr;break;case"uk":t=(await r.e(731).then(r.bind(r,20731))).uk;break;case"vi":t=(await r.e(2297).then(r.bind(r,82297))).vi;break;case"zh-CN":t=(await r.e(1964).then(r.bind(r,1964))).zhCN;break;case"zh-TW":t=(await r.e(5654).then(r.bind(r,85654))).zhTW}return t?.default?t.default:t}},15609:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>l});var n=r(11241),i=r(94799),o=r(67331);r(34023);var l=function(){var e,t=(0,n.c)(2),r=(0,o.useNav)().navOpen;return t[0]!==r?(e=(0,i.jsx)(o.Hamburger,{closeIcon:"collapse",isActive:r}),t[0]=r,t[1]=e):e=t[1],e}},15629:()=>{},15745:(e,t,r)=>{"use strict";r.d(t,{DefaultVersionView:()=>I});var n=r(78300),i=r(94799),o=r(83390),l=r(67331),a=r(50614),s=r(27357),u=r(34023),c=r(27470),d=r(25526),f=r(52223),h=r(84924),p=r(2831),m="restore-version",y="restore-version",v=function(e){var t,r=e.className,v=e.collectionConfig,_=e.globalConfig,b=e.label,S=e.originalDocID,w=e.status,x=e.versionDateFormatted,E=e.versionID,C=(0,o.c)().config.routes,T=C.admin,N=C.api,k=(0,l.useModal)().toggleModal,A=(0,s.useRouter)(),O=(0,a.d)(),R=O.i18n,P=O.t,M=(0,n._)((0,u.useState)(!1),2),I=M[0],D=M[1],$=(0,l.useRouteTransition)().startRouteTransition,L=P(_?"version:aboutToRestoreGlobal":"version:aboutToRestore",{label:(0,f.s)(b,R),versionDate:x}),j="draft"!==w&&(null==v||null==(t=v.versions)?void 0:t.drafts),F=(0,u.useCallback)(function(){return(0,c._)(function(){var e,t,r,n;return(0,d.YH)(this,function(i){switch(i.label){case 0:return e=(0,p.Q)({apiRoute:N,path:""}),v&&(e="".concat(e,"/").concat(v.slug,"/versions/").concat(E,"?draft=").concat(I),t=(0,p.Q)({adminRoute:T,path:"/collections/".concat(v.slug,"/").concat(S)})),_&&(e="".concat(e,"/globals/").concat(_.slug,"/versions/").concat(E,"?draft=").concat(I
1),t=(0,p.Q)({adminRoute:T,path:"/globals/".concat(_.slug)})),[4,h.zG.post(e,{headers:{"Accept-Language":R.language}})];case 1:if(200!==(r=i.sent()).status)return[3,3];return[4,r.json()];case 2:return n=i.sent(),l.toast.success(n.message),[2,$(function(){return A.push(t)})];case 3:l.toast.error(P("version:problemRestoringVersion")),i.label=4;case 4:return[2]}})})()},[N,v,_,R.language,E,I,T,S,$,A,P]);return(0,i.jsxs)(u.Fragment,{children:[(0,i.jsx)("div",{className:[m,r].filter(Boolean).join(" "),children:(0,i.jsx)(l.Button,{buttonStyle:"primary",className:[j&&"".concat(m,"__restore-as-draft-button")].filter(Boolean).join(" "),onClick:function(){return k(y)},size:"xsmall",SubMenuPopupContent:j?function(){return(0,i.jsx)(l.PopupList.ButtonGroup,{children:(0,i.jsx)(l.PopupList.Button,{onClick:function(){return[D(!0),k(y)]},children:P("version:restoreAsDraft")})})}:null,children:P("version:restoreThisVersion")})}),(0,i.jsx)(l.ConfirmationModal,{body:L,confirmingLabel:P("version:restoring"),heading:P("version:confirmVersionRestoration"),modalSlug:y,onConfirm:F})]})},_=r(15335),b=r(11241),S=function(e){var t=e.depth,r=e.uuid;return"version-drawer_".concat(t,"_").concat(r)},w=function(e){var t=e.collectionSlug,r=e.docID,o=e.drawerSlug,f=e.globalSlug,h=(0,l.useDocumentInfo)().isTrashed,p=(0,l.useModal)().closeModal,m=(0,s.useSearchParams)(),y=(0,u.useRef)(m),v=(0,l.useServerFunctions)().renderDocument,b=(0,n._)((0,u.useState)(void 0),2),S=b[0],w=b[1],x=(0,n._)((0,u.useState)(!0),2),E=x[0],C=x[1],T=(0,u.useRef)(!1),N=(0,a.d)().t,k=(0,u.useCallback)(function(e){(0,c._)(function(){var r,n,i,a;return(0,d.YH)(this,function(s){switch(s.label){case 0:C(!0),s.label=1;case 1:return s.trys.push([1,3,,4]),r=!!f,[4,v({collectionSlug:n=null!=t?t:f,docID:e,drawerSlug:o,paramsOverride:{segments:[r?"globals":"collections",n].concat((0,_._)(h?["trash"]:[]),[r?void 0:String(e),"versions"]).filter(Boolean)},redirectAfterDelete:!1,redirectAfterDuplicate:!1,searchParams:Object.fromEntries(m.entries()),versions:{disableGutter:!0,useVersionDrawerCreatedAtCell:!0}})];case 2:return(null==(i=s.sent())?void 0:i.Document)&&(w(i.Document),C(!1)),[3,4];case 3:return a=s.sent(),l.toast.error((null==a?void 0:a.message)||N("error:unspecific")),p(o),[3,4];case 4:return[2]}})})()},[p,t,o,f,h,v,m,N]);return((0,u.useEffect)(function(){T.current&&y.current===m||(y.current=m,k(r),T.current=!0)},[r,k,m]),E)?(0,i.jsx)(l.LoadingOverlay,{}):S},x=function(e){var t,r=(0,b.c)(6),n=e.collectionSlug,o=e.docID,s=e.drawerSlug,u=e.globalSlug,c=(0,a.d)().t;return r[0]!==n||r[1]!==o||r[2]!==s||r[3]!==u||r[4]!==c?(t=(0,i.jsx)(l.Drawer,{className:"version-drawer",gutter:!0,slug:s,title:c("version:selectVersionToCompare"),children:(0,i.jsx)(w,{collectionSlug:n,docID:o,drawerSlug:s,globalSlug:u})}),r[0]=n,r[1]=o,r[2]=s,r[3]=u,r[4]=c,r[5]=t):t=r[5],t},E=function(e){var t,r,o,a,s,c,d,f,h=(0,b.c)(29),p=e.collectionSlug,m=e.docID,y=e.globalSlug,v=(0,l.useEditDepth)(),_=(0,u.useId)(),w=(0,l.useModal)(),E=w.closeModal,C=w.modalState,T=w.openModal,N=w.toggleModal,k=(0,n._)((0,u.useState)(!1),2),A=k[0],O=k[1];h[0]!==v||h[1]!==_?(t=S({depth:v,uuid:_}),h[0]=v,h[1]=_,h[2]=t):t=h[2];var R=t;h[3]!==R||h[4]!==C?(r=function(){var e;O(!!(null==(e=C[R])?void 0:e.isOpen))},o=[C,R],h[3]=R,h[4]=C,h[5]=r,h[6]=o):(r=h[5],o=h[6]),(0,u.useEffect)(r,o),h[7]!==R||h[8]!==N?(a=function(){N(R)},h[7]=R,h[8]=N,h[9]=a):a=h[9];var P=a;h[10]!==E||h[11]!==R?(s=function(){E(R)},h[10]=E,h[11]=R,h[12]=s):s=h[12];var M=s;h[13]!==R||h[14]!==T?(c=function(){T(R)},h[13]=R,h[14]=T,h[15]=c):c=h[15];var I=c;h[16]!==p||h[17]!==m||h[18]!==R||h[19]!==y?(d=function(){return(0,i.jsx)(x,{collectionSlug:p,docID:m,drawerSlug:R,globalSlug:y})},h[16]=p,h[17]=m,h[18]=R,h[19]=y,h[20]=d):d=h[20];var D=d;return h[21]!==D||h[22]!==M||h[23]!==v||h[24]!==R||h[25]!==A||h[26]!==I||h[27]!==P?(f={closeDrawer:M,Drawer:D,drawerDepth:v,drawerSlug:R,isDrawerOpen:A,openDrawer:I,toggleDrawer:P},h[21]=D,h[22]=M,h[23]=v,h[24]=R,h[25]=A,h[26]=I,h[27]=P,h[28]=f):f=h[28],f},C="compare-version",T=(0,u.memo)(function(e){var t=e.collectionSlug,r=e.docID,n=e.globalSlug,o=e.onChange,s=e.versionFromID,c=e.versionFromOptions,d=(0,a.d)().t,f=E({collectionSlug:t,docID:r,globalSlug:n}),h=f.Drawer,p=f.openDrawer,m=(0,u.useMemo)(function(){return(0,_._)(c).concat([{label:(0,i.jsx)("span",{className:"".concat(C,"-moreVersions"),children:d("version:moreVersions")}),value:"more"}])},[d,c]),y=(0,u.useMemo)(function(){return c.find(function(e){return e.value===s})},[c,s]),v=(0,u.useCallback)(function(e){if("more"===e.value)return void p();o(e)},[o,p]);
1return(0,i.jsxs)("div",{className:[l.fieldBaseClass,C].filter(Boolean).join(" "),children:[(0,i.jsx)(l.ReactSelect,{isClearable:!1,isSearchable:!1,onChange:v,options:m,placeholder:d("version:selectVersionToCompare"),value:y}),(0,i.jsx)(h,{})]})}),N=r(54947),k=r(82998),A="select-version-locales",O=function(e){var t=e.locales,r=e.localeSelectorOpen,n=e.onChange;return(0,i.jsx)(l.AnimateHeight,{className:A,height:r?"auto":0,id:"".concat(A,"-locales"),children:(0,i.jsx)(l.PillSelector,{onClick:function(e){var r=e.pill;n({locales:t.map(function(e){return e.name===r.name?(0,k._)((0,N._)({},e),{selected:!r.selected}):e})})},pills:t})})},R=r(19095),P=function(e){var t,r,n=(0,b.c)(24),i=e.id,s=e.collectionConfig,c=e.globalConfig,d=e.isTrashed,h=e.versionToCreatedAtFormatted,m=e.versionToID,y=(0,o.c)().config,v=(0,l.useStepNav)().setStepNav,_=(0,a.d)(),S=_.i18n,w=_.t,x=(0,l.useLocale)(),E=(0,l.useDocumentTitle)().title;return n[0]!==s||n[1]!==y||n[2]!==c||n[3]!==S||n[4]!==i||n[5]!==d||n[6]!==v||n[7]!==w||n[8]!==E||n[9]!==h?(t=function(){var e=y.routes.admin;if(s){var t,r=s.slug,n=null==(t=s.labels)?void 0:t.plural,o=d?"/collections/".concat(r,"/trash/").concat(i):"/collections/".concat(r,"/").concat(i),l=[{label:(0,f.s)(n,S),url:(0,p.Q)({adminRoute:e,path:"/collections/".concat(r)})}];d&&l.push({label:w("general:trash"),url:(0,p.Q)({adminRoute:e,path:"/collections/".concat(r,"/trash")})}),l.push({label:E,url:(0,p.Q)({adminRoute:e,path:o})},{label:w("version:versions"),url:(0,p.Q)({adminRoute:e,path:"".concat(o,"/versions")})},{label:h,url:void 0}),v(l);return}if(c){var a=c.slug;v([{label:c.label,url:(0,p.Q)({adminRoute:e,path:"/globals/".concat(a)})},{label:w("version:versions"),url:(0,p.Q)({adminRoute:e,path:"/globals/".concat(a,"/versions")})},{label:h}])}},n[0]=s,n[1]=y,n[2]=c,n[3]=S,n[4]=i,n[5]=d,n[6]=v,n[7]=w,n[8]=E,n[9]=h,n[10]=t):t=n[10],n[11]!==s||n[12]!==y||n[13]!==c||n[14]!==S||n[15]!==i||n[16]!==d||n[17]!==x||n[18]!==v||n[19]!==w||n[20]!==E||n[21]!==h||n[22]!==m?(r=[y,v,i,d,x,w,S,s,c,E,h,m],n[11]=s,n[12]=y,n[13]=c,n[14]=S,n[15]=i,n[16]=d,n[17]=x,n[18]=v,n[19]=w,n[20]=E,n[21]=h,n[22]=m,n[23]=r):r=n[23],(0,u.useEffect)(t,r),null},M="view-version",I=function(e){var t=e.canUpdate,r=e.modifiedOnly,c=e.RenderedDiff,d=e.selectedLocales,f=e.versionFromCreatedAt,h=e.versionFromID,p=e.versionFromOptions,m=e.versionToCreatedAt,y=e.versionToCreatedAtFormatted,_=e.VersionToCreatedAtLabel,b=e.versionToID,S=e.versionToStatus,w=(0,o.c)(),x=w.config,E=w.getEntityConfig,C=(0,l.useLocale)().code,N=(0,a.d)(),k=N.i18n,A=N.t,I=(0,n._)((0,u.useState)([]),2),D=I[0],$=I[1],L=(0,n._)(u.useState(!1),2),j=L[0],F=L[1];(0,u.useEffect)(function(){x.localization&&$(x.localization.locales.map(function(e){var t=e.label;return"string"!=typeof e.label&&e.label[C]&&(t=e.label[C]),{name:e.code,Label:t,selected:d.includes(e.code)}}))},[C,x.localization,d]);var B=(0,l.useDocumentInfo)(),U=B.id,z=B.collectionSlug,K=B.globalSlug,q=B.isTrashed,V=(0,l.useRouteTransition)().startRouteTransition,W=(0,u.useMemo)(function(){return{collectionConfig:E({collectionSlug:z}),globalConfig:E({globalSlug:K})}},[z,K,E]),J=W.collectionConfig,H=W.globalConfig,G=(0,s.useRouter)(),Y=(0,s.usePathname)(),Z=(0,s.useSearchParams)(),X=(0,n._)((0,u.useState)(r),2),Q=X[0],ee=X[1],et=(0,u.useCallback)(function(e){var t=new URLSearchParams(Array.from(Z.entries()));if((null==e?void 0:e.versionFromID)&&t.set("versionFrom",null==e?void 0:e.versionFromID),null==e?void 0:e.selectedLocales)if(e.selectedLocales.length){var r=[],n=!0,i=!1,o=void 0;try{for(var l,a=e.selectedLocales[Symbol.iterator]();!(n=(l=a.next()).done);n=!0){var s=l.value;s.selected&&r.push(s.name)}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}t.set("localeCodes",JSON.stringify(r))}else t.delete("localeCodes");(null==e?void 0:e.modifiedOnly)===!1?t.set("modifiedOnly","false"):(null==e?void 0:e.modifiedOnly)===!0&&t.delete("modifiedOnly");var u=t.toString(),c=u?"?".concat(u):"";V(function(){return G.push("".concat(Y).concat(c))})},[Y,G,Z,V]),er=(0,u.useCallback)(function(e){var t=e.target.checked;ee(t),et({modifiedOnly:t})},[et]),en=(0,u.useCallback)(function(e){var t=e.locales;$(t),et({selectedLocales:t})},[et]),ei=(0,u.useCallback)(function(e){et({versionFromID:e.value})},[et]),eo=x.localization,el=(0,u.useMemo)(function(){return A("version:versionAgo",{distance:(0,l.formatTimeToNow)({date:m,i18n:k})})},[m,k,A]),ea=(0,u.useMemo)(function(){return f?A("version:versionAgo",{distance:(0,l.formatTimeToNow)({date:f,i18n:k})}):void 0},[f,k,A]);return(0,i.jsxs)("main",{className:M,children:[(0,i.jsxs)(l.Gutter,{className:"".concat(M,"-control
1s-top"),children:[(0,i.jsxs)("div",{className:"".concat(M,"-controls-top__wrapper"),children:[(0,i.jsx)("h2",{children:k.t("version:compareVersions")}),(0,i.jsxs)("div",{className:"".concat(M,"-controls-top__wrapper-actions"),children:[(0,i.jsx)("span",{className:"".concat(M,"__modifiedCheckBox"),children:(0,i.jsx)(l.CheckboxInput,{checked:Q,id:"modifiedOnly",label:k.t("version:modifiedOnly"),onToggle:er})}),eo&&(0,i.jsxs)(l.Pill,{"aria-controls":"".concat(M,"-locales"),"aria-expanded":j,className:"".concat(M,"__toggle-locales"),icon:(0,i.jsx)(l.ChevronIcon,{direction:j?"up":"down"}),onClick:function(){return F(function(e){return!e})},pillStyle:"light",size:"small",children:[(0,i.jsxs)("span",{className:"".concat(M,"__toggle-locales-label"),children:[A("general:locales"),":"," "]}),(0,i.jsx)("span",{className:"".concat(M,"__toggle-locales-list"),children:D.filter(function(e){return e.selected}).map(function(e){return e.name}).join(", ")})]})]})]}),eo&&(0,i.jsx)(O,{locales:D,localeSelectorOpen:j,onChange:en})]}),(0,i.jsx)(l.Gutter,{className:"".concat(M,"-controls-bottom"),children:(0,i.jsxs)("div",{className:"".concat(M,"-controls-bottom__wrapper"),children:[(0,i.jsxs)("div",{className:"".concat(M,"__version-from"),children:[(0,i.jsxs)("div",{className:"".concat(M,"__version-from-labels"),children:[(0,i.jsx)("span",{children:A("version:comparingAgainst")}),ea&&(0,i.jsx)("span",{className:"".concat(M,"__time-elapsed"),children:ea})]}),(0,i.jsx)(T,{collectionSlug:z,docID:U,globalSlug:K,onChange:ei,versionFromID:h,versionFromOptions:p})]}),(0,i.jsxs)("div",{className:"".concat(M,"__version-to"),children:[(0,i.jsxs)("div",{className:"".concat(M,"__version-to-labels"),children:[(0,i.jsx)("span",{children:A("version:currentlyViewing")}),(0,i.jsx)("span",{className:"".concat(M,"__time-elapsed"),children:el})]}),(0,i.jsxs)("div",{className:"".concat(M,"__version-to-version"),children:[_,t&&!q&&(0,i.jsx)(v,{className:"".concat(M,"__restore"),collectionConfig:J,globalConfig:H,label:(null==J?void 0:J.labels.singular)||(null==H?void 0:H.label),originalDocID:U,status:S,versionDateFormatted:y,versionID:b})]})]})]})}),(0,i.jsx)(P,{collectionConfig:J,globalConfig:H,id:U,isTrashed:q,versionToCreatedAtFormatted:y,versionToID:b}),(0,i.jsx)(l.Gutter,{className:"".concat(M,"__diff-wrap"),children:(0,i.jsx)(R.a,{value:{selectedLocales:D.map(function(e){return e.name})},children:m&&c})})]})}},15811:()=>{},16543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792);t.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:r,parentSchema:o,it:l}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;let a=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(function(){r.forEach((r,o)=>{let c;(0,i.alwaysValidSchema)(l,r)?t.var(u,!0):c=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if((0,n._)`${u} && ${a}`).assign(a,!1).assign(s,(0,n._)`[${s}, ${o}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(s,o),c&&e.mergeEvaluated(c,n.Name)})})}),e.result(a,()=>e.reset(),()=>e.error(!0))}}},16557:()=>{},17055:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let o=Date.now(),l=t-(o-n);l<=0?(n=o,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},l)}}},17249:(e,t,r)=>{"use strict";r.d(t,{B9:()=>u,Ej:()=>eU,FY:()=>eA,GA:()=>F,HA:()=>eR,Hv:()=>I,JW:()=>P,Ln:()=>H,NL:()=>D,Ng:()=>p,RN:()=>b,SZ:()=>ee,TX:()=>eI,Xx:()=>h,Ze:()=>k,be:()=>K,cl:()=>Y,cn:()=>ea,hi:()=>eO,hx:()=>_,np:()=>f,nq:()=>eB,o5:()=>s,pA:()=>N,pK:()=>eM,py:()=>y,sJ:()=>T,tV:()=>z,ur:()=>j,xT:()=>ez,xp:()=>el,zC:()=>O,zp:()=>E});var n=r(76270),i=r(9971),o=r(12671),l=r(30213);let a=/^(\d+(?:\.\d+)?)px$/,s={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class u extends n.fGB{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new u(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:d,priority:0}),th:e=>({conversion:d,priority:0})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroun
1dColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=s.NO_STATUS,t=1,r,n){super(n),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=r,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),c(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),(0,n.ZB7)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if((0,n.sby)(t.element)){let e=t.element;e.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||"top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...c(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=s.BOTH){let r=this.getWritable();return r.__headerState=e&t|r.__headerState&~t,r}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==s.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function c(e){return"middle"===e||"bottom"===e}function d(e){let t,r=e.nodeName.toLowerCase();a.test(e.style.width)&&(t=parseFloat(e.style.width));let i=s.NO_STATUS;"th"===r&&(i="col"===e.getAttribute("scope")?s.COLUMN:s.ROW);let o=f(i,e.colSpan,t);o.__rowSpan=e.rowSpan;let l=e.style.backgroundColor;""!==l&&(o.__backgroundColor=l);let u=e.style.verticalAlign;c(u)&&(o.__verticalAlign=u);let d=e.style,h=(d&&d.textDecoration||"").split(" "),p="700"===d.fontWeight||"bold"===d.fontWeight,m=h.includes("line-through"),y="italic"===d.fontStyle,v=h.includes("underline");return{after:e=>{let t=[],r=null,i=()=>{if(r){let e=r.getFirstChild();(0,n.wH$)(e)&&1===r.getChildrenSize()&&e.remove()}};for(let o of e)(0,n.Gew)(o)||(0,n.kFe)(o)||(0,n.wH$)(o)?((0,n.kFe)(o)&&(p&&o.toggleFormat("bold"),m&&o.toggleFormat("strikethrough"),y&&o.toggleFormat("italic"),v&&o.toggleFormat("underline")),r?r.append(o):(r=(0,n.lJ7)().append(o),t.push(r))):(t.push(o),i(),r=null);return i(),0===t.length&&t.push((0,n.lJ7)()),t},node:o}}function f(e=s.NO_STATUS,t=1,r){return(0,n.pTq)(new u(e,t,r))}function h(e){return e instanceof u}let p=(0,n.guI)("INSERT_TABLE_COMMAND");function m(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class y extends n.fGB{__height;static getType(){return"tablerow"}static clone(e){return new y(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:v,priority:0})}}static importJSON(e){return _().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...void 0===e?void 0:{height:e}}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,n.ZB7)(t,e.theme.tableRow),t}extractWithChild(e,t,r){return"html"===r}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function v(e){let t;return a.test(e.style.height)&&(t=parseFloat(e.style.height)),{after:e=>(0,i.cE)(e,h),node:_(t)}}function _(e){return(0,n.pTq)(new y(e))}function b(e){return e instanceof y}let S="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,w=S&&"documentMode"in document?document.documentMode:null,x=S&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function E(e){let t=(0,n.BtT)(e,e=>h(e));return h(t)?t:null}function C(e){let t=(0,n.BtT)(e,e=>b(e));if(b(t))return t;throw Error("Expected table cell to be inside of table row.")}function T(e){let t=(0,n.BtT)(e,e=>eI(e));if(eI(t))return t;throw Error("Expected table cell to be inside of table.")}function N(e){let t=C(e);return T(t).getChildren().findIndex(e=>e.is(t))}function k(e){return C(e).getChildren().findIndex(t=>t.is(e))}S&&"InputEvent"in window&&!w&&new window.InputEvent("input");let A=(e,t)=>
1e===s.BOTH||e===t?t:s.NO_STATUS;function O(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||H(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[o]=K(r),[l,,a]=K(i),[,s,u]=U(a,l,o),{startRow:c}=u,{startRow:d}=s;return e?R(c+o.__rowSpan>d+l.__rowSpan?o:l,!0):R(d<c?l:o,!1)}function R(e,t=!0){let[,,r]=K(e),[i,o]=U(r,e,e),l=i[0].length,{startRow:a}=o,u=null;if(t){let t=a+e.__rowSpan-1,o=i[t],c=_();for(let e=0;e<l;e++){let{cell:r,startRow:i}=o[e];if(i+r.__rowSpan-1<=t){let t=A(o[e].cell.__headerState,s.COLUMN);c.append(f(t).append((0,n.lJ7)()))}else r.setRowSpan(r.__rowSpan+1)}let d=r.getChildAtIndex(t);b(d)||m(256),d.insertAfter(c),u=c}else{let e=i[a],t=_();for(let r=0;r<l;r++){let{cell:i,startRow:o}=e[r];if(o===a){let i=A(e[r].cell.__headerState,s.COLUMN);t.append(f(i).append((0,n.lJ7)()))}else i.setRowSpan(i.__rowSpan+1)}let o=r.getChildAtIndex(a);b(o)||m(257),o.insertBefore(t),u=t}return u}function P(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||H(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[o]=K(r),[l,,a]=K(i),[,s,u]=U(a,l,o),{startColumn:c}=u,{startColumn:d}=s;return e?M(c+o.__colSpan>d+l.__colSpan?o:l,!0):M(d<c?l:o,!1)}function M(e,t=!0,r=!0){let[,,i]=K(e),[o,l]=U(i,e,e),a=o.length,{startColumn:u}=l,c=t?u+e.__colSpan-1:u-1,d=i.getFirstChild();b(d)||m(120);let h=null;function p(e=s.NO_STATUS){let t=f(e).append((0,n.lJ7)());return null===h&&(h=t),t}let y=d;e:for(let e=0;e<a;e++){if(0!==e){let e=y.getNextSibling();b(e)||m(121),y=e}let t=o[e],r=A(t[c<0?0:c].cell.__headerState,s.ROW);if(c<0){L(y,p(r));continue}let{cell:n,startColumn:i,startRow:l}=t[c];if(i+n.__colSpan-1<=c){let i=n,o=l,a=c;for(;o!==e&&i.__rowSpan>1;){if(!((a-=n.__colSpan)>=0)){y.append(p(r));continue e}{let{cell:e,startRow:r}=t[a];i=e,o=r}}i.insertAfter(p(r))}else n.setColSpan(n.__colSpan+1)}null!==h&&r&&$(h);let v=i.getColWidths();if(v){let e=[...v],t=c<0?0:c,r=e[t];e.splice(t,0,r),i.setColWidths(e)}return h}function I(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let[t,r]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[i,,o]=K(t),[l]=K(r),[a,s,u]=U(o,i,l),{startRow:c}=s,{startRow:d}=u,f=d+l.__rowSpan-1;if(a.length===f-c+1)return void o.remove();let h=a[0].length,p=a[f+1],y=o.getChildAtIndex(f+1);for(let e=f;e>=c;e--){for(let t=h-1;t>=0;t--){let{cell:r,startRow:n,startColumn:i}=a[e][t];if(i===t){if(n<c||n+r.__rowSpan-1>f){let e=Math.max(n,c),t=Math.min(r.__rowSpan+n-1,f),i=e<=t?t-e+1:0;r.setRowSpan(r.__rowSpan-i)}if(n>=c&&n+r.__rowSpan-1>f&&e===f){null===y&&m(122);let n=null;for(let r=0;r<t;r++){let t=p[r],i=t.cell;t.startRow===e+1&&(n=i),i.__colSpan>1&&(r+=i.__colSpan-1)}null===n?L(y,r):n.insertAfter(r)}}}let t=o.getChildAtIndex(e);b(t)||m(206,String(e)),t.remove()}if(void 0!==p){let{cell:e}=p[0];$(e)}else{let{cell:e}=a[c-1][0];$(e)}}function D(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let t=e.anchor.getNode(),r=e.focus.getNode(),[i,,o]=K(t),[l]=K(r),[a,s,u]=U(o,i,l),{startColumn:c}=s,{startRow:d,startColumn:f}=u,h=Math.min(c,f),p=Math.max(c+i.__colSpan-1,f+l.__colSpan-1),y=p-h+1;if(a[0].length===p-h+1)return o.selectPrevious(),void o.remove();let v=a.length;for(let e=0;e<v;e++)for(let t=h;t<=p;t++){let{cell:r,startColumn:n}=a[e][t];if(n<h){if(t===h){let e=h-n;r.setColSpan(r.__colSpan-Math.min(y,r.__colSpan-e))}}else if(n+r.__colSpan-1>p){if(t===p){let e=p-n+1;r.setColSpan(r.__colSpan-e)}}else r.remove()}let _=a[d],b=c>f?_[c+i.__colSpan]:_[f+l.__colSpan];if(void 0!==b){let{cell:e}=b;$(e)}else{let{cell:e}=f<c?_[f-1]:_[c-1];$(e)}let S=o.getColWidths();if(S){let e=[...S];e.splice(h,y),o.setColWidths(e)}}function $(e){let t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function L(e,t){let r=e.getFirstChild();null!==r?r.insertBefore(t):e.append(t)}function j(e){if(0===e.length)return null;let[t]=z(T(e[0]),null,null),r=1/0,i=-1/0,o=1/0,l=-1/0,a=new Set;for(let n of t)for(let t of n){if(!t||!t.cell)continue;let n=t.cell.getKey();if(!a.has(n)&&e.some(e=>e.is(t.cell))){a.add(n);let e=t.startRow,s=t.startColumn,u=t.cell.__rowSpan||1,c=t.cell.__colSpan||1;r=Math.min(r,e),i=Math.max(i,e+u-1),o=Math.min(o,s),l=Math.max(l,s+c-1)}}if(r===1/0||o===1/0)return null;let s=i-r+1,u=l-o+1,c=t[r][o];if(!c.cell)return null;let d=c.cell;d.setColSpan(u),d.setRowSpan(s);let f=new Set([d.getKey()]);for(let e=r;e<=i;e++)for(let r=o;r<=l;r++){let i=t[e][r];if(!i.cell)continue;let o=i.cell,l=o.getKey();f.has(l)||(f.add(l),function(e){if(1!==e.getChildrenSize())return!1;let t=e.getFirstChildOrThrow();return!(!(0,n.bSg)(t)||!t.isEmpty())}(o)||d.append(...o.getChildren()),o.remove())}return 0===d.getChildrenSize()&&d.append((0,n.lJ7)()),d}function F(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let t=e.anchor.getNode(),r=(0,n.BtT)(t,h);return h(r)||m(148),B(r)}function B(e){let[t,r,i]=K(e),o=t.__colSpan,l=t.__rowSpan;if(1===o&&1===l)return;let[a,u]=U(i,t,t),{startColumn:c,startRow:d}=u,h=t.__headerState&s.COLUMN,p=Array.from({length:o},(e,t)=>{let r=h;for(let e=0;0!==r&&e<a.length;e++)r&=a[e][t+c].cell.__headerState;return r}),y=t.__headerState&s.ROW,v=Array.from({length:l},(e,t)=>{let r=y;for(let e=0;0!==r&&e<a[0].length;e++)r&=a[t+d][e].cell.__headerState;return r});if(o>1){for(let e=1;e<o;e++)t.insertAfter(f(p[e]|v[0]).append((0,n.lJ7)()));t.setColSpan(1)}if(l>1){let e;for(let t=1;t<l;t++){let i=d+t,l=a[i];b(e=(e||r).getNextSibling())||m(125);let s=null;for(let e=0;e<c;e++){let t=l[e],r=t.cell;t.startRow===i&&(s=r),r.__colSpan>1&&(e+=r.__colSpan-1)}if(null===s)for(let r=o-1;r>=0;r--)L(e,f(p[r]|v[t]).append((0,n.lJ7)()));else for(let e=o-1;e>=0;e--)s.insertAfter(f(p[e]|v[t]).append((0,n.lJ7)()))}t.setRowSpan(1)}}function U(e,t,r){let[n,i,o]=z(e,t,r);return null===i&&m(207),null===o&&m(208),[n,i,o]}function z(e,t,r){let n=[],i=null,o=null;function l(e){let t=n[e];return void 0===t&&(n[e]=t=[]),t}let a=e.getChildren();for(let e=0;e<a.length;e++){let n=a[e];b(n)||m(209);let s=l(e);for(let u=n.getFirstChild(),c=0;null!=u;u=u.getNextSibling()){for(h(u)||m(147);void 0!==s[c];)c++;let n={cell:u,startColumn:c,startRow:e},{__rowSpan:d,__colSpan:f}=u;for(let t=0;t<d&&!(e+t>=a.length);t++){let r=l(e+t);for(let e=0;e<f;e++)r[c+e]=n}null!==t&&null===i&&t.is(u)&&(i=n),null!==r&&null===o&&r.is(u)&&(o=n)}}return[n,i,o]}function K(e){let t;if(e instanceof u)t=e;else if("__type"in e){let r=(0,n.BtT)(e,h);h(r)||m(148),t=r}else{let r=(0,n.BtT)(e.getNode(),h);h(r)||m(148),t=r}let r=t.getParent();b(r)||m(149);let i=r.getParent();return eI(i)||m(210),[t,r,i]}function q(e,t,r){let n,i=Math.min(t.startColumn,r.startColumn),o=Math.min(t.startRow,r.startRow),l=Math.max(t.startColumn+t.cell.__colSpan-1,r.startColumn+r.cell.__colSpan-1),a=Math.max(t.startRow+t.cell.__rowSpan-1,r.startRow+r.cell.__rowSpan-1);do{n=!1;for(let t=0;t<e.length;t++)for(let r=0;r<e[0].length;r++){let s=e[t][r];if(!s)continue;let u=s.startColumn+s.cell.__colSpan-1,c=s.startRow+s.cell.__rowSpan-1,d=s.startColumn<=l&&u>=i,f=s.startRow<=a&&c>=o;if(d&&f){let e=Math.min(i,s.startColumn),t=Math.max(l,u),r=Math.min(o,s.startRow),d=Math.max(a,c);e===i&&t===l&&r===o&&d===a||(i=e,l=t,o=r,a=d,n=!0)}}}while(n);return{maxColumn:l,maxRow:a,minColumn:i,minRow:o}}function V(e){let[t,,r]=K(e),n=r.getChildren(),i=n.length,o=n[0].getChildren().length,l=Array(i);for(let e=0;e<i;e++)l[e]=Array(o);for(let e=0;e<i;e++){let r=n[e].getChildren(),i=0;for(let n=0;n<r.length;n++){for(;l[e][i];)i++;let o=r[n],a=o.__rowSpan||1,s=o.__colSpan||1;for(let t=0;t<a;t++)for(let r=0;r<s;r++)l[e+t][i+r]=o;if(t===o)return{colSpan:s,columnIndex:i,rowIndex:e,rowSpan:a};i+=s}}return null}function W(e){let[[t,r,i,o],[l,a,s,u]]=["anchor","focus"].map(t=>{let r=e[t].getNode(),i=(0,n.BtT)(r,h);h(i)||m(238,t,r.getKey(),r.getType());let o=i.getParent();b(o)||m(239,t);let l=o.getParent();return eI(l)||m(240,t),[r,i,o,l]});return o.is(u)||m(241),{anchorCell:r,anchorNode:t,anchorRow:i,anch
1orTable:o,focusCell:a,focusNode:l,focusRow:s,focusTable:u}}class J{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,t,r){this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if("root"===this.tableKey||"root"===this.anchor.key||"element"!==this.anchor.type||"root"===this.focus.key||"element"!==this.focus.type)return!1;let e=(0,n.nsf)(this.tableKey),t=(0,n.nsf)(this.anchor.key),r=(0,n.nsf)(this.focus.key);return null!==e&&null!==t&&null!==r}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return H(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,r){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||r!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new J(this.tableKey,(0,n.z8s)(this.anchor.key,this.anchor.offset,this.anchor.type),(0,n.z8s)(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(h).forEach(e=>{let r=e.getFirstChild();(0,n.bSg)(r)&&(t|=r.getTextFormat())});let r=n.LZn[e];return 0!=(t&r)}insertNodes(e){let t=this.focus.getNode();(0,n.ff4)(t)||m(151),(0,n.CaD)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=W(this),r=V(e);null===r&&m(153);let n=V(t);null===n&&m(155);let i=Math.min(r.columnIndex,n.columnIndex),o=Math.max(r.columnIndex+r.colSpan-1,n.columnIndex+n.colSpan-1),l=Math.min(r.rowIndex,n.rowIndex),a=Math.max(r.rowIndex+r.rowSpan-1,n.rowIndex+n.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(l,a),toX:Math.max(i,o),toY:Math.max(l,a)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(null!==e)return e;let{anchorTable:t,anchorCell:r,focusCell:i}=W(this),o=i.getParents()[1];if(o!==t){if(t.isParentOf(i)){let e=o.getParent();null==e&&m(159),this.set(this.tableKey,i.getKey(),e.getKey())}else{let e=t.getParent();null==e&&m(158),this.set(this.tableKey,e.getKey(),i.getKey())}return this.getNodes()}let[l,a,s]=U(t,r,i),{minColumn:u,maxColumn:c,minRow:d,maxRow:f}=q(l,a,s),h=new Map([[t.getKey(),t]]),p=null;for(let e=d;e<=f;e++)for(let t=u;t<=c;t++){let{cell:r}=l[e][t],i=r.getParent();b(i)||m(160),i!==p&&(h.set(i.getKey(),i),p=i),h.has(r.getKey())||function(e,t){let r=[[e]];for(let e=r.at(-1);void 0!==e&&r.length>0;e=r.at(-1)){let i=e.pop();void 0===i?r.pop():!1!==t(i)&&(0,n.ff4)(i)&&r.push(i.getChildren())}}(r,e=>{h.set(e.getKey(),e)})}let y=Array.from(h.values());return(0,n.GcU)()||(this._cachedNodes=y),y}getTextContent(){let e=this.getNodes().filter(e=>h(e)),t="";for(let r=0;r<e.length;r++){let n=e[r],i=n.__parent,o=(e[r+1]||{}).__parent;t+=n.getTextContent()+(o!==i?"\n":" ")}return t}}function H(e){return e instanceof J}function G(e,t,r){e.getKey(),t.getKey(),r.getKey();let i=(0,n.vJq)(),o=H(i)?i.clone():new J("root",(0,n.z8s)("root",0,"element"),(0,n.z8s)("root",0,"element"));return o.set(e.getKey(),t.getKey(),r.getKey()),o}function Y(e,t=(0,n.i0_)()){let r=(0,n.nsf)(e);eI(r)||m(231,e);let i=ee(r,t.getElementByKey(e));return null===i&&m(232,e),{tableElement:i,tableNode:r}}class Z{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e
1=>e()),this.listenersToRemove.clear()}$lookup(){return Y(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let t=!1;for(let r=0;r<e.length;r++){let n=e[r].target.nodeName;if("TABLE"===n||"TBODY"===n||"THEAD"===n||"TR"===n){t=!0;break}}if(!t)return;let{tableNode:r,tableElement:n}=this.$lookup();this.table=eu(r,n)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:r}=this.$lookup();this.table=eu(t,r),e.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:t,tableElement:r}=this.$lookup();ec(e,eu(t,r),null),null!==(0,n.vJq)()&&((0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();(0,n.HEf)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();(0,n.ZB7)(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&m(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),ec(t,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){let e=(0,n.peL)(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let r=this.editor,{tableNode:i}=this.$lookup(),o=e.x,l=e.y;if(this.focusCell=e,!this.isHighlightingCells&&(t||this.anchorX!==o||this.anchorY!==l||null!=this.tableSelection&&null!=this.anchorCellNodeKey)&&(this.isHighlightingCells=!0,this.$disableHighlightStyle()),-1!==this.focusX&&-1!==this.focusY&&o===this.focusX&&l===this.focusY)return!1;if(this.focusX=o,this.focusY=l,this.isHighlightingCells){let a=eT(i,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey){let e=a;if(null===e&&t&&(e=i.getCellNodeFromCords(o,l,this.table)),null!==e){let t=this.$getAnchorTableCellOrThrow();return this.focusCellNodeKey=e.getKey(),this.tableSelection=G(i,t,e),(0,n.n1P)(this.tableSelection),r.dispatchCommand(n.MvL,void 0),ec(r,this.table,this.tableSelection),!0}}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?(0,n.nsf)(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return null===e&&m(234),e}$getFocusTableCell(){return this.focusCellNodeKey?(0,n.nsf)(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return null===e&&m(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.focusX=-1,this.focusY=-1,this.focusCell=null,this.focusCellNodeKey=null;let{tableNode:t}=this.$lookup(),r=eT(t,e.elem);if(null!==r){let e=r.getKey();null!=this.tableSelection?(this.tableSelection=this.tableSelection.clone(),this.tableSelection.set(t.getKey(),e,e)):this.tableSelection=G(t,r,r),this.anchorCellNodeKey=e}}$formatCells(e){let t=(0,n.vJq)();H(t)||m(236);let r=(0,n.uTE)(),i=r.anchor,o=r.focus,l=t.getNodes().filter(h);l.length>0||m(237);let a=l[0].getFirstChild(),s=(0,n.bSg)(a)?a.getFormatFlags(e,null):null;l.forEach(t=>{i.set(t.getKey(),0,"element"),o.set(t.getKey(),t.getChildrenSize(),"element"),r.formatText(e,s)}),(0,n.n1P)(t),this.editor.dispatchCommand(n.MvL,void 0)}$clearText(){let{editor:e}=this,t=(0,n.nsf)(this.tableNodeKey);if(!eI(t))throw Error("Expected TableNode.");let r=(0,n.vJq)();H(r)||m(253);let i=r.getNodes().filter(h),o=t.getFirstChild(),l=t.getLastChild();if(i.length>0&&null!==o&&null!==l&&b(o)&&b(l)&&i[0]===o.getFirstChild()&&i[i.length-1]===l.getLastChild()){t.selectPrevious();let r=t.getParent();return t.remove(),void((0,n.hVZ)(r)&&r.isEmpty()&&e.dispatchCommand(n.XKQ,void 0))}
1i.forEach(e=>{if((0,n.ff4)(e)){let t=(0,n.lJ7)(),r=(0,n.sTu)();t.append(r),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),ec(e,this.table,null),(0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0)}}let X="__lexicalTableSelection";function Q(e){return(0,n.sby)(e)&&"TABLE"===e.nodeName}function ee(e,t){if(!t)return t;let r=Q(t)?t:e.getDOMSlot(t).element;return"TABLE"!==r.nodeName&&m(245,t.nodeName),r}function et(e){return e._window}function er(e,t){for(let r=t,n=null;null!==r;r=r.getParent()){if(e.is(r))return n;h(r)&&(n=r)}return null}let en=[[n.bbF,"down"],[n.UDz,"up"],[n.AX0,"backward"],[n.JM3,"forward"]],ei=[n.hi0,n.viC,n.WuB],eo=[n.gCZ,n.w$Z];function el(e){return e[X]||null}function ea(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function es(e,t){if(!e.contains(t))return null;let r=null;for(let n=t;null!=n;n=n.parentNode){if(n===e)return r;let t=n.nodeName;"TD"!==t&&"TH"!==t||(r=n._cell||null)}return null}function eu(e,t){let r=[],n={columns:0,domRows:r,rows:0},i=ee(e,t).querySelector("tr"),o=0,l=0;for(r.length=0;null!=i;){let e=i.nodeName;if("TD"===e||"TH"===e){let e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:o,y:l};i._cell=e;let t=r[l];void 0===t&&(t=r[l]=[]),t[o]=e}else{let e=i.firstChild;if(null!=e){i=e;continue}}let t=i.nextSibling;if(null!=t){o++,i=t;continue}let n=i.parentNode;if(null!=n){let e=n.nextSibling;if(null==e)break;l++,o=0,i=e}}return n.columns=o+1,n.rows=l+1,n}function ec(e,t,r){let n=new Set(r?r.getNodes():[]);ed(t,(t,r)=>{let i=t.elem;n.has(r)?(t.highlighted=!0,ev(e,t)):(t.highlighted=!1,e_(e,t),i.getAttribute("style")||i.removeAttribute("style"))})}function ed(e,t){let{domRows:r}=e;for(let e=0;e<r.length;e++){let i=r[e];if(i)for(let r=0;r<i.length;r++){let o=i[r];if(!o)continue;let l=(0,n.xL4)(o.elem);null!==l&&t(o,l,{x:r,y:e})}}}function ef(e,t){t.$disableHighlightStyle(),ed(t.table,t=>{t.highlighted=!0,ev(e,t)})}function eh(e,t){let r,n;if(t.startColumn===e.minColumn)r="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;r="maxColumn"}if(t.startRow===e.minRow)n="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;n="maxRow"}return[r,n]}function ep([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function eg(e,t,[r,n]){let i=t[n],o=e[i];void 0===o&&m(250,n,String(i));let l=t[r],a=o[l];return void 0===a&&m(250,r,String(l)),a}function em(e,t){if((0,n.I2P)(e)||H(e)){let r=t.isParentOf(e.anchor.getNode()),n=t.isParentOf(e.focus.getNode());return r&&n}return!1}function ey(e,t){t?e.selectStart():e.selectEnd()}function ev(e,t){let r=t.elem,i=e._config.theme;h((0,n.xL4)(r))||m(131),(0,n.ZB7)(r,i.tableCellSelected)}function e_(e,t){let r=t.elem;h((0,n.xL4)(r))||m(131);let i=e._config.theme;(0,n.HEf)(r,i.tableCellSelected)}function eb(e){let t=(0,n.BtT)(e,h);return h(t)?t:null}function eS(e){let t=(0,n.BtT)(e,eI);return eI(t)?t:null}function ew(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function ex(e,t,r){let i=(0,n.lJ7)();"first"===e?t.insertBefore(i):t.insertAfter(i),i.append(...r||[]),i.selectEnd()}function eE(e,t,r){let i=r.getParent();if(!i)return;let o=(0,n.peL)(et(e));if(!o)return;let l=o.anchorNode,a=e.getElementByKey(i.getKey()),s=ee(r,e.getElementByKey(r.getKey()));if(!l||!a||!s||!a.contains(l)||s.contains(l))return;let u=(0,n.BtT)(t.anchor.getNode(),e=>h(e));if(!u)return;let c=(0,n.BtT)(u,e=>eI(e));if(!eI(c)||!c.is(r))return;let[d,f]=U(r,u,u),p=d[0][0],m=d[d.length-1][d[0].length-1],{startRow:y,startColumn:v}=f,_=y===p.startRow&&v===p.startColumn,b=y===m.startRow&&v===m.startColumn;return _?"first":b?"last":void 0}function eC(e,t){let{tableNode:r}=e.$lookup(),n=r.getCordsFromCellNode(t,e.table);return r.getDOMCellFromCordsOrThrow(n.x,n.y,e.table)}function eT(e,t,r){return er(e,(0,n.xL4)(t,r))}function eN(e,t,r){if(!t.theme.tableAlignment)return;let i=[],o=[];for(let e of["center","right"]){let n=t.theme.tableAlignment[e];n&&(e===r?o:i).push(n)}(0,n.HEf)(e,...i),(0,n.ZB7)(e,...o)}let ek=new WeakSet;function eA(e=(0,n.i0_)()){return ek.has(e)}function eO(e,t){t?ek.add(e):ek.delete(e)}class eR extends n.fGB{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new eR(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:eP,priority:1})}}static importJSON(e){return eM().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,r){return"html"===r}getDOMSlot(e){let t=Q(e)?e:e.querySelector("table");return Q(t)||m(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let r=document.createElement("table");this.__style&&(r.style.cssText=this.__style);let i=document.createElement("colgroup");if(r.appendChild(i),(0,n.pd8)(i),(0,n.ZB7)(r,e.theme.table),this.updateTableElement(null,r,e),eA(t)){let t=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?(0,n.ZB7)(t,i):t.style.cssText="overflow-x: auto;",t.appendChild(r),this.updateTableWrapper(null,t,r,e),t}return r}
1updateTableWrapper(e,t,r,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(this.__frozenColumnCount>0?((0,n.ZB7)(t,i.theme.tableFrozenColumn),r.setAttribute("data-lexical-frozen-column","true")):((0,n.HEf)(t,i.theme.tableFrozenColumn),r.removeAttribute("data-lexical-frozen-column"))),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(this.__frozenRowCount>0?((0,n.ZB7)(t,i.theme.tableFrozenRow),r.setAttribute("data-lexical-frozen-row","true")):((0,n.HEf)(t,i.theme.tableFrozenRow),r.removeAttribute("data-lexical-frozen-row")))}updateTableElement(e,t,r){this.__style!==(e?e.__style:"")&&(t.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(this.__rowStriping?((0,n.ZB7)(t,r.theme.tableRowStriping),t.setAttribute("data-lexical-row-striping","true")):((0,n.HEf)(t,r.theme.tableRowStriping),t.removeAttribute("data-lexical-row-striping"))),function(e,t,r,n){let i=e.querySelector("colgroup");if(!i)return;let o=[];for(let e=0;e<r;e++){let t=document.createElement("col"),r=n&&n[e];r&&(t.style.width=`${r}px`),o.push(t)}i.replaceChildren(...o)}(t,0,this.getColumnCount(),this.getColWidths()),eN(t,r,this.getFormatType())}updateDOM(e,t,r){let i=this.getDOMSlot(t).element;return t===i===eA()||((0,n.sby)(t)&&"DIV"===t.nodeName&&this.updateTableWrapper(e,t,i,r),this.updateTableElement(e,i,r),!1)}exportDOM(e){let t=super.exportDOM(e),{element:r}=t;return{after:r=>{if(t.after&&(r=t.after(r)),!Q(r)&&(0,n.sby)(r)&&(r=r.querySelector("table")),!Q(r))return null;eN(r,e._config,this.getFormatType());let[i]=z(this,null,null),o=new Map;for(let e of i)for(let t of e){let e=t.cell.getKey();o.has(e)||o.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let l=new Set;for(let e of r.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let t=e.getAttribute("data-temporary-table-cell-lexical-key");if(t){let r=o.get(t);if(e.removeAttribute("data-temporary-table-cell-lexical-key"),r){o.delete(t);for(let e=0;e<r.colSpan;e++)l.add(e+r.startColumn)}}}let a=r.querySelector(":scope > colgroup");if(a){let e=Array.from(r.querySelectorAll(":scope > colgroup > col")).filter((e,t)=>l.has(t));a.replaceChildren(...e)}let s=r.querySelectorAll(":scope > tr");if(s.length>0){let e=document.createElement("tbody");for(let t of s)e.appendChild(t);r.append(e)}return r},element:!Q(r)&&(0,n.sby)(r)?r.querySelector("table"):r}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:r,domRows:n}=t;for(let t=0;t<r;t++){let r=n[t];if(null!=r)for(let n=0;n<r.length;n++){let i=r[n];if(null==i)continue;let{elem:o}=i,l=eT(this,o);if(null!==l&&e.is(l))return{x:n,y:t}}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,r){let{domRows:n}=r,i=n[t];if(null==i)return null;let o=i[e<i.length?e:i.length-1];return null==o?null:o}getDOMCellFromCordsOrThrow(e,t,r){let n=this.getDOMCellFromCords(e,t,r);if(!n)throw Error("Cell not found at cords.");return n}getCellNodeFromCords(e,t,r){let i=this.getDOMCellFromCords(e,t,r);if(null==i)return null;let o=(0,n.xL4)(i.elem);return h(o)?o:null}getCellNodeFromCordsOrThrow(e,t,r){let n=this.getCellNodeFromCords(e,t,r);if(!n)throw Error("Node at cords not TableCellNode.");return n}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;
1return e.getChildren().forEach(e=>{h(e)&&(t+=e.getColSpan())}),t}}function eP(e){let t=eM();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),e.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),e.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);let r=e.querySelector(":scope > colgroup");if(r){let e=[];for(let t of r.querySelectorAll(":scope > col")){let r=t.style.width||"";if(!a.test(r)&&(r=t.getAttribute("width")||"",!/^\d+$/.test(r))){e=void 0;break}e.push(parseFloat(r))}e&&t.setColWidths(e)}return{after:e=>(0,i.cE)(e,b),node:t}}function eM(){return(0,n.pTq)(new eR)}function eI(e){return e instanceof eR}function eD(e){b(e.getParent())?e.isEmpty()&&e.append((0,n.lJ7)()):e.remove()}function e$(e){eI(e.getParent())?(0,i.vF)(e,h):e.remove()}function eL(e){(0,i.vF)(e,b);let[t]=z(e,null,null),r=t.reduce((e,t)=>Math.max(e,t.length),0),o=e.getChildren();for(let e=0;e<t.length;++e){let i=o[e];if(!i)continue;b(i)||m(254,i.constructor.name,i.getType());let l=t[e].reduce((e,t)=>t?1+e:e,0);if(l!==r)for(let e=l;e<r;++e){let e=f();e.append((0,n.lJ7)()),i.append(e)}}let l=e.getColWidths(),a=e.getColumnCount();if(l&&l.length!==a){let t;if(a<l.length)t=l.slice(0,a);else if(l.length>0){let e=l[l.length-1];t=[...l,...Array(a-l.length).fill(e)]}e.setColWidths(t)}}function ej(e){if(e.detail<3||!(0,n.vAA)(e.target))return!1;let t=(0,n.xL4)(e.target);if(null===t)return!1;let r=(0,n.BtT)(t,e=>(0,n.ff4)(e)&&!e.isInline());return null!==r&&!!h(r.getParent())&&(r.select(0),!0)}function eF(){let e=(0,n.vJq)();if(!(0,n.I2P)(e))return!1;let t=eS(e.anchor.getNode());if(null===t)return!1;let r=(0,n.NiT)();if(!r.is(t.getParent())||1!==r.getChildrenSize())return!1;let[i]=z(t,null,null);if(0===i.length||0===i[0].length)return!1;let o=i[0][0];if(!o||!o.cell)return!1;let l=i[i.length-1],a=l[l.length-1];if(!a||!a.cell)return!1;let s=G(t,o.cell,a.cell);return(0,n.n1P)(s),!0}function eB(e){return e.registerNodeTransform(u,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=K(e),[r]=U(t,e,e),n=r.length,o=r[0].length,l=t.getFirstChild();b(l)||m(175);let a=[];for(let e=0;e<n;e++){0!==e&&(b(l=l.getNextSibling())||m(175));let t=null;for(let n=0;n<o;n++){let o=r[e][n],s=o.cell;if(o.startRow===e&&o.startColumn===n)t=s,a.push(s);else if(s.getColSpan()>1||s.getRowSpan()>1){h(s)||m(176);let e=f(s.__headerState);null!==t?t.insertAfter(e):(0,i.K2)(l,e)}}}for(let e of a)e.setColSpan(1),e.setRowSpan(1)}})}function eU(e,t=!0){let r=new Map,o=(o,a,s)=>{let u=ee(o,s),c=function(e,t,r,o){let a=r.getRootElement(),s=et(r);null!==a&&null!==s||m(246);let u=new Z(r,e.getKey()),c=ee(e,t);null!==el(c)&&m(205),c[X]=u,u.listenersToRemove.add(()=>{el(c)===u&&delete c[X]});let d=t=>{if(u.pointerType=t.pointerType,0!==t.button||!(0,n.vAA)(t.target)||!s)return;let i=ea(t.target);null!==i&&r.update(()=>{let r=(0,n.S1w)();if(x&&t.shiftKey&&em(r,e)&&((0,n.I2P)(r)||H(r))){let n=r.anchor.getNode(),o=er(e,r.anchor.getNode());
1o?(u.$setAnchorCellForSelection(eC(u,o)),u.$setFocusCellForSelection(i),ew(t)):(e.isBefore(n)?e.selectStart():e.selectEnd()).anchor.set(r.anchor.key,r.anchor.offset,r.anchor.type)}else"touch"!==t.pointerType&&u.$setAnchorCellForSelection(i)}),(e=>{if(u.isSelecting)return;u.isSelecting=!0,null!==e&&null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)});let t=()=>{u.isSelecting=!1,s.removeEventListener("pointerup",t),s.removeEventListener("pointermove",i)},i=e=>{if(1&~e.buttons&&u.isSelecting)return u.isSelecting=!1,s.removeEventListener("pointerup",t),void s.removeEventListener("pointermove",i);if(!(0,n.vAA)(e.target))return;let o=null,l=!(x||c.contains(e.target));if(l)o=es(c,e.target);else for(let t of document.elementsFromPoint(e.clientX,e.clientY))if(o=es(c,t))break;if(o){let e=o;null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)}),null!==u.focusCell&&o.elem===u.focusCell.elem||(u.setNextFocus({focusCell:o,override:l}),r.dispatchCommand(n.MvL,void 0))}};s.addEventListener("pointerup",t,u.listenerOptions),s.addEventListener("pointermove",i,u.listenerOptions)})(i)};c.addEventListener("pointerdown",d,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("pointerdown",d)});let f=e=>{e.detail>=3&&(0,n.vAA)(e.target)&&null!==ea(e.target)&&e.preventDefault()};c.addEventListener("mousedown",f,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("mousedown",f)});let p=e=>{let t=e.target;0===e.button&&(0,n.vAA)(t)&&r.update(()=>{let e=(0,n.vJq)();H(e)&&e.tableKey===u.tableNodeKey&&a.contains(t)&&u.$clearHighlight()})};for(let[t,i]of(s.addEventListener("pointerdown",p,u.listenerOptions),u.listenersToRemove.add(()=>{s.removeEventListener("pointerdown",p)}),en))u.listenersToRemove.add(r.registerCommand(t,t=>(function e(t,r,i,o,l){if(("up"===i||"down"===i)&&function(e){let t=e.getRootElement();return!!t&&t.hasAttribute("aria-controls")&&"typeahead-menu"===t.getAttribute("aria-controls")}(t))return!1;let a=(0,n.vJq)();if(!em(a,o)){if((0,n.I2P)(a)){if("backward"===i){if(a.focus.offset>0)return!1;let e=function(e){for(let t=e,r=e;null!==r;t=r,r=r.getParent())if((0,n.ff4)(r)){if(r!==t&&r.getFirstChild()!==t)return null;if(!r.isInline())return r}return null}(a.focus.getNode());if(!e)return!1;let t=e.getPreviousSibling();return!!eI(t)&&(ew(r),r.shiftKey?a.focus.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent(),"element"):t.selectEnd(),!0)}if(r.shiftKey&&("up"===i||"down"===i)){let e=a.focus.getNode();if(!a.isCollapsed()&&("up"===i&&!a.isBackward()||"down"===i&&a.isBackward())){let t=(0,n.BtT)(e,e=>eI(e));if(h(t)&&(t=(0,n.BtT)(t,eI)),t!==o||!t)return!1;let l="down"===i?t.getNextSibling():t.getPreviousSibling();if(!l)return!1;let s=0;"up"===i&&(0,n.ff4)(l)&&(s=l.getChildrenSize());let u=l;"up"===i&&(0,n.ff4)(l)&&(u=l.getLastChild()||l,s=(0,n.kFe)(u)?u.getTextContentSize():0);let c=a.clone();return c.focus.set(u.getKey(),s,(0,n.kFe)(u)?"text":"element"),(0,n.n1P)(c),ew(r),!0}if((0,n.IqF)(e)){let e="up"===i?a.getNodes()[a.getNodes().length-1]:a.getNodes()[0];if(e&&null!==er(o,e)){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[r]=K(e),[n]=K(t),i=o.getCordsFromCellNode(r,l.table),a=o.getCordsFromCellNode(n,l.table),s=o.getDOMCellFromCordsOrThrow(i.x,i.y,l.table),u=o.getDOMCellFromCordsOrThrow(a.x,a.y,l.table);return l.$setAnchorCellForSelection(s),l.$setFocusCellForSelection(u,!0),!0}return!1}{let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());if(h(t)&&(t=(0,n.BtT)(t,eI)),!t)return!1;let o="down"===i?t.getNextSibling():t.getPreviousSibling();if(eI(o)&&l.tableNodeKey===o.getKey()){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[l]=K(e),[s]=K(t),u=a.clone();return u.focus.set(("up"===i?l:s).getKey(),"up"===i?0:s.getChildrenSize(),"element"),ew(r),(0,n.n1P)(u),!0}}}}return"down"===i&&eA(t)&&l.setShouldCheckSelection(),!1}if((0,n.I2P)(a)){if("backward"===i||"forward"===i)return function(e,t,r,i,o,l,a){let s=(0,n.Ave)(r.focus,o?"previous":"next");if((0,n.pGK)(s))return!1;let u=s;for(let e of(0,n.mWO)(s).iterNodeCarets("shadowRoot")){if(!(0,n.OpE)(e)||!(0,n.ff4)(e.origin))return!1;u=e}let c=u.getParentAtCaret();if(!h(c))return!1;let d=function(e){for(let t of(0,n.mWO)(e).iterNodeCarets("root")){let{origin:r}=t;if(h(r)){if((0,n.cmH)(t))return(0,n.uwZ)(r,e.direction)}else if(!b(r))break}return null}((0,n.IlV)(c,u.direction)),f=(0,n.BtT)(c,eI);if(!f||!f.is(l))return!1;let p=e.getElementByKey(c.getKey()),y=ea(p);if(!p||!y)return!1;if(a.table=function(e,t){let r=e.getElementByKey(t.getKey());return null===r&&m(230),eu(t,r)}(e,f),d)if("extend"===i){let t=ea(e.getElementByKey(d.origin.getKey()));if(!t)return!1;
1a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(t,!0)}else{let e=(0,n.lSZ)(d);(0,n.wp6)(r.anchor,e),(0,n.wp6)(r.focus,e)}else if("extend"===i)a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(y,!0);else{let e=function(e){let t=(0,n.erb)(e);return(0,n.cmH)(t)?(0,n.lSZ)(t):e}((0,n.IlV)(f,s.direction));(0,n.wp6)(r.anchor,e),(0,n.wp6)(r.focus,e)}return ew(t),!0}(t,r,a,r.shiftKey?"extend":"move","backward"===i,o,l);if(a.isCollapsed()){let s,{anchor:u,focus:c}=a,d=(0,n.BtT)(u.getNode(),h),f=(0,n.BtT)(c.getNode(),h);if(!h(d)||!d.is(f))return!1;let p=eS(d);if(p!==o&&null!=p){let n=ee(p,t.getElementByKey(p.getKey()));if(null!=n)return l.table=eu(p,n),e(t,r,i,p,l)}let m=t.getElementByKey(d.__key),y=t.getElementByKey(u.key);if(null==y||null==m)return!1;if("element"===u.type)s=y.getBoundingClientRect();else{let e=(0,n.peL)(et(t));if(null===e||0===e.rangeCount)return!1;s=e.getRangeAt(0).getBoundingClientRect()}let v="up"===i?d.getFirstChild():d.getLastChild();if(null==v)return!1;let _=t.getElementByKey(v.__key);if(null==_)return!1;let b=_.getBoundingClientRect();if("up"===i?b.top>s.top-s.height:s.bottom+s.height>b.bottom){ew(r);let e=o.getCordsFromCellNode(d,l.table);if(!r.shiftKey)return((e,t,r,n,i)=>{let o="forward"===i;switch(i){case"backward":case"forward":return r!==(o?e.table.columns-1:0)?ey(t.getCellNodeFromCordsOrThrow(r+(o?1:-1),n,e.table),o):n!==(o?e.table.rows-1:0)?ey(t.getCellNodeFromCordsOrThrow(o?0:e.table.columns-1,n+(o?1:-1),e.table),o):o?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==n?ey(t.getCellNodeFromCordsOrThrow(r,n-1,e.table),!1):t.selectPrevious(),!0;case"down":return n!==e.table.rows-1?ey(t.getCellNodeFromCordsOrThrow(r,n+1,e.table),!0):t.selectNext(),!0;default:return!1}})(l,o,e.x,e.y,i);{let t=o.getDOMCellFromCordsOrThrow(e.x,e.y,l.table);l.$setAnchorCellForSelection(t),l.$setFocusCellForSelection(t,!0)}return!0}}}else if(H(a)){let{anchor:e,focus:s}=a,u=(0,n.BtT)(e.getNode(),h),c=(0,n.BtT)(s.getNode(),h),[d]=a.getNodes();eI(d)||m(251);let f=ee(d,t.getElementByKey(d.getKey()));if(!h(u)||!h(c)||!eI(d)||null==f)return!1;l.$updateTableTableSelection(a);let p=eu(d,f),y=o.getCordsFromCellNode(u,p),v=o.getDOMCellFromCordsOrThrow(y.x,y.y,p);
1if(l.$setAnchorCellForSelection(v),ew(r),r.shiftKey){let[e,t,r]=U(o,u,c);return function(e,t,r,n,i){let o=q(t,r,n),{topSpan:l,leftSpan:a,bottomSpan:s,rightSpan:u}=function(e,t){let{minColumn:r,maxColumn:n,minRow:i,maxRow:o}=t,l=1,a=1,s=1,u=1,c=e[i],d=e[o];for(let e=r;e<=n;e++)l=Math.max(l,c[e].cell.__rowSpan),u=Math.max(u,d[e].cell.__rowSpan);for(let t=i;t<=o;t++)a=Math.max(a,e[t][r].cell.__colSpan),s=Math.max(s,e[t][n].cell.__colSpan);return{bottomSpan:u,leftSpan:a,rightSpan:s,topSpan:l}}(t,o),[c,d]=ep(function(e,t){let r=eh(e,t);return null===r&&m(249,t.cell.getKey()),r}(o,r)),f=o[c],h=o[d];"forward"===i?f+="maxColumn"===c?1:a:"backward"===i?f-="minColumn"===c?1:u:"down"===i?h+="maxRow"===d?1:l:"up"===i&&(h-="minRow"===d?1:s);let p=t[h];if(void 0===p)return!1;let y=p[f];if(void 0===y)return!1;let[v,_]=function(e,t,r){let n=q(e,t,r),i=eh(n,t);if(i)return[eg(e,n,i),eg(e,n,ep(i))];let o=eh(n,r);if(o)return[eg(e,n,ep(o)),eg(e,n,o)];let l=["minColumn","minRow"];return[eg(e,n,l),eg(e,n,ep(l))]}(t,r,y),b=eC(e,v.cell),S=eC(e,_.cell);return e.$setAnchorCellForSelection(b),e.$setFocusCellForSelection(S,!0),!0}(l,e,t,r,i)}return c.selectEnd(),!0}return!1})(r,t,i,e,u),n.WgU));u.listenersToRemove.add(r.registerCommand(n.Q$N,t=>{let r=(0,n.vJq)();if(H(r)){let n=er(e,r.focus.getNode());if(null!==n)return ew(t),n.selectEnd(),!0}return!1},n.WgU));let y=t=>()=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(H(r))return u.$clearText(),!0;if((0,n.I2P)(r)){if(!h(er(e,r.anchor.getNode())))return!1;let i=r.anchor.getNode(),o=r.focus.getNode(),l=e.isParentOf(i),a=e.isParentOf(o);if(l&&!a||a&&!l)return u.$clearText(),!0;let s=(0,n.BtT)(r.anchor.getNode(),e=>(0,n.ff4)(e)),c=s&&(0,n.BtT)(s,e=>(0,n.ff4)(e)&&h(e.getParent()));if(!(0,n.ff4)(c)||!(0,n.ff4)(s))return!1;if(t===n.viC&&null===c.getPreviousSibling())return!0}return!1};for(let e of ei)u.listenersToRemove.add(r.registerCommand(e,y(e),n.WgU));let v=t=>{let r=(0,n.vJq)();if(!H(r)&&!(0,n.I2P)(r))return!1;let i=e.isParentOf(r.anchor.getNode());if(i!==e.isParentOf(r.focus.getNode())){let t=i?"focus":"anchor",{key:n,offset:o,type:l}=r[t];return e[r[i?"anchor":"focus"].isBefore(r[t])?"selectPrevious":"selectNext"]()[t].set(n,o,l),!1}return!!em(r,e)&&!!H(r)&&(t&&(t.preventDefault(),t.stopPropagation()),u.$clearText(),!0)};for(let e of eo)u.listenersToRemove.add(r.registerCommand(e,v,n.WgU));return u.listenersToRemove.add(r.registerCommand(n.VSO,e=>{let t=(0,n.vJq)();if(t){if(!H(t)&&!(0,n.I2P)(t))return!1;(0,l.lW)(r,(0,i.xj)(e,ClipboardEvent)?e:null,(0,l.xg)(t));let o=v(e);return(0,n.I2P)(t)?(t.removeText(),!0):o}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.mB,t=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(H(r))return u.$formatCells(t),!0;if((0,n.I2P)(r)){let e=(0,n.BtT)(r.anchor.getNode(),e=>h(e));h(e)}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.fUS,t=>{let r=(0,n.vJq)();if(!H(r)||!em(r,e))return!1;let i=r.anchor.getNode(),o=r.focus.getNode();if(!h(i)||!h(o))return!1;if(function(e,t){if(H(e)){let r=e.anchor.getNode(),n=e.focus.getNode();if(t&&r&&n){let[e]=U(t,r,n);return r.getKey()===e[0][0].cell.getKey()&&n.getKey()===e[e.length-1].at(-1).cell.getKey()}}return!1}(r,e))return e.setFormat(t),!0;let[l,a,s]=U(e,i,o),u=Math.max(a.startRow+a.cell.__rowSpan-1,s.startRow+s.cell.__rowSpan-1),c=Math.max(a.startColumn+a.cell.__colSpan-1,s.startColumn+s.cell.__colSpan-1),d=Math.min(a.startRow,s.startRow),f=Math.min(a.startColumn,s.startColumn),p=new Set;for(let e=d;e<=u;e++)for(let r=f;r<=c;r++){let i=l[e][r].cell;if(p.has(i))continue;p.add(i),i.setFormat(t);let o=i.getChildren();for(let e=0;e<o.length;e++){let r=o[e];(0,n.ff4)(r)&&!r.isInline()&&r.setFormat(t)}}return!0},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.bM3,t=>{let i=(0,n.vJq)();if(!em(i,e))return!1;if(H(i))return u.$clearHighlight(),!1;if((0,n.I2P)(i)){let o=(0,n.BtT)(i.anchor.getNode(),e=>h(e));if(!h(o))return!1;if("string"==typeof t){let o=eE(r,i,e);if(o)return ex(o,e,[(0,n.sTu)(t)]),!0}}return!1},n.WgU)),o&&u.listenersToRemove.add(r.registerCommand(n.OXk,t=>{let r=(0,n.vJq)();if(!(0,n.I2P)(r)||!r.isCollapsed()||!em(r,e))return!1;let i=eb(r.anchor.getNode());return!(null===i||!e.is(eS(i)))&&(ew(t),function(e,t){let r="next"===t?"getNextSibling":"getPreviousSibling",i="next"===t?"getFirstChild":"getLastChild",o=e[r]();if((0,n.ff4)(o))return o.selectEnd();let l=(0,n.BtT)(e,b);null===l&&m(247);for(let e=l[r]();b(e);e=e[r]()){let t=e[i]();if((0,n.ff4)(t))return t.selectEnd()}let a=(0,n.BtT)(l,eI);null===a&&m(248),"next"===t?a.selectNext():a.selectPrevious()}(i,t.shiftKey?"previous":"next"),!0)}
1,n.WgU)),u.listenersToRemove.add(r.registerCommand(n.$7r,t=>e.isSelected(),n.WgU)),u.listenersToRemove.add(r.registerCommand(n.MvL,()=>{let t=(0,n.vJq)(),i=(0,n.S1w)(),o=u.getAndClearNextFocus();if(null!==o){let{focusCell:e}=o;if(H(t)&&t.tableKey===u.tableNodeKey)return(e.x!==u.focusX||e.y!==u.focusY)&&(u.$setFocusCellForSelection(e),!0);if(e!==u.anchorCell&&null!==u.anchorCell&&null!==u.anchorCellNodeKey&&null!==u.tableSelection)return u.$setFocusCellForSelection(e,!0),!0}if(u.getAndClearShouldCheckSelection()&&(0,n.I2P)(i)&&(0,n.I2P)(t)&&t.isCollapsed()){let r=t.anchor.getNode(),i=e.getFirstChild(),o=eb(r);if(null!==o&&b(i)){let t=i.getFirstChild();if(h(t)&&e.is((0,n.BtT)(o,r=>r.is(e)||r.is(t))))return t.selectStart(),!0}}if((0,n.I2P)(t)){let{anchor:o,focus:l}=t,a=o.getNode(),s=l.getNode(),c=eb(a),d=eb(s),f=!(!c||!e.is(eS(c))),h=!(!d||!e.is(eS(d))),p=t.isBackward();if(f!==h){let i=t.clone();if(h){let[t]=U(e,d,d),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.focus.set(p?r.getKey():n.getKey(),p?0:n.getChildrenSize(),"element")}else if(f){let[t]=U(e,c,c),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.anchor.set(p?n.getKey():r.getKey(),p?n.getChildrenSize():0,"element")}(0,n.n1P)(i),ef(r,u)}
1else if(f&&h&&(c.is(d)||(u.$setAnchorCellForSelection(eC(u,c)),u.$setFocusCellForSelection(eC(u,d),!0)),"touch"===u.pointerType&&u.isSelecting&&t.isCollapsed()&&(0,n.I2P)(i)&&i.isCollapsed())){let e=eb(i.anchor.getNode());e&&!e.is(d)&&(u.$setAnchorCellForSelection(eC(u,e)),u.$setFocusCellForSelection(eC(u,d),!0),u.pointerType=null)}}else if(t&&H(t)&&t.is(i)&&t.tableKey===e.getKey()){let i=(0,n.peL)(s);if(i&&i.anchorNode&&i.focusNode){let o=(0,n.xL4)(i.focusNode),l=o&&!e.isParentOf(o),a=(0,n.xL4)(i.anchorNode),s=a&&e.isParentOf(a);if(l&&s&&i.rangeCount>0){let o=(0,n.OBE)(i,r);o&&(o.anchor.set(e.getKey(),t.isBackward()?e.getChildrenSize():0,"element"),i.removeAllRanges(),(0,n.n1P)(o))}}}return t&&!t.is(i)&&(H(t)||H(i))&&u.tableSelection&&!u.tableSelection.is(i)?H(t)&&t.tableKey===u.tableNodeKey?u.$updateTableTableSelection(t):!H(t)&&H(i)&&i.tableKey===u.tableNodeKey&&u.$updateTableTableSelection(null):u.hasHijackedSelectionStyles&&!e.isSelected()?(u.$enableHighlightStyle(),ed(u.table,e=>{let t=e.elem;e.highlighted=!1,e_(r,e),t.getAttribute("style")||t.removeAttribute("style")})):!u.hasHijackedSelectionStyles&&e.isSelected()&&ef(r,u),!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.XKQ,()=>{let t=(0,n.vJq)();if(!(0,n.I2P)(t)||!t.isCollapsed()||!em(t,e))return!1;let i=eE(r,t,e);return!!i&&(ex(i,e),!0)},n.WgU)),u}(o,u,e,t);r.set(a,[c,u])},a=e.registerMutationListener(eR,t=>{e.getEditorState().read(()=>{for(let[e,n]of t){let t=r.get(e);if("created"===n||"updated"===n){let{tableNode:n,tableElement:i}=Y(e);void 0===t?o(n,e,i):i!==t[1]&&(t[0].removeListeners(),r.delete(e),o(n,e,i))}else"destroyed"===n&&void 0!==t&&(t[0].removeListeners(),r.delete(e))}},{editor:e})},{skipInitialization:!1});return()=>{for(let[,[e]]of(a(),r))e.removeListeners()}}function ez(e,t){e.hasNodes([eR])||m(255);let{hasNestedTables:r=(0,o.vP)(!1),hasFitNestedTables:l=(0,o.vP)(!1)}=t??{};return(0,n.Sdt)(e.registerCommand(p,e=>(function({rows:e,columns:t,includeHeaders:r},o){let l=(0,n.vJq)()||(0,n.S1w)();if(!l||!(0,n.I2P)(l)||!o&&eS(l.anchor.getNode()))return!1;let a=function(e,t,r=!0){let i=eM();for(let o=0;o<e;o++){let e=_();for(let i=0;i<t;i++){let t=s.NO_STATUS;"object"==typeof r?(0===o&&r.rows&&(t|=s.ROW),0===i&&r.columns&&(t|=s.COLUMN)):r&&(0===o&&(t|=s.ROW),0===i&&(t|=s.COLUMN));let l=f(t),a=(0,n.lJ7)();a.append((0,n.sTu)()),l.append(a),e.append(l)}i.append(e)}return i}(Number(e),Number(t),r);(0,i.Pe)(a);let u=a.getFirstDescendant();return(0,n.kFe)(u)&&u.select(),!0})(e,r.peek()),n.jZM),e.registerCommand(n.oqR,(t,o)=>e===o&&function(e,t,r){let{nodes:o,selection:l}=e;if(!o.some(e=>eI(e)||(0,i.Ie)(e).some(e=>eI(e.node))))return!1;let s=H(l),u=(0,n.I2P)(l);return!!(u&&null!==(0,n.BtT)(l.anchor.getNode(),e=>h(e))&&null!==(0,n.BtT)(l.focus.getNode(),e=>h(e))||s)&&(1===o.length&&eI(o[0])?function(e,t){let r=t.getStartEndPoints(),i=H(t);if(null===r)return!1;let[o,l]=r,[a,s,u]=K(o),c=(0,n.BtT)(l.getNode(),e=>h(e));if(!(h(a)&&h(c)&&b(s)&&eI(u)))return!1;let[d,f,p]=U(u,a,c),[m]=z(e,null,null),y=d.length,v=y>0?d[0].length:0,_=f.startRow,S=f.startColumn,w=m.length,x=w>0?m[0].length:0;if(i){let e=q(d,f,p),t=e.maxRow-e.minRow+1,r=e.maxColumn-e.minColumn+1;_=e.minRow,S=e.minColumn,w=Math.min(w,t),x=Math.min(x,r)}let E=!1,C=Math.min(y,_+w)-1,T=Math.min(v,S+x)-1,N=new Set;for(let e=_;e<=C;e++)for(let t=S;t<=T;t++){let r=d[e][t];N.has(r.cell.getKey())||1===r.cell.__rowSpan&&1===r.cell.__colSpan||(B(r.cell),N.add(r.cell.getKey()),E=!0)}let[k]=z(u.getWritable(),null,null),A=w-y+_;for(let e=0;e<A;e++)R(k[y-1][0].cell);let O=x-v+S;for(let e=0;e<O;e++)M(k[0][v-1].cell,!0,!1);[k]=z(u.getWritable(),null,null);for(let e=_;e<_+w;e++)for(let t=S;t<S+x;t++){let r=e-_,i=t-S,o=m[r][i];if(o.startRow!==r||o.startColumn!==i)continue;let l=o.cell;if(1!==l.__rowSpan||1!==l.__colSpan){let r=[],n=Math.min(e+l.__rowSpan,_+w)-1,i=Math.min(t+l.__colSpan,S+x)-1;for(let o=e;o<=n;o++)for(let e=t;e<=i;e++){let t=k[o][e];r.push(t.cell)}j(r),E=!0}let{cell:a}=k[e][t],s=l.getBackgroundColor();null!=s&&a.setBackgroundColor(s);let u=a.getChildren();
1l.getChildren().forEach(e=>{(0,n.kFe)(e)&&(0,n.lJ7)().append(e),a.append(e)}),u.forEach(e=>e.remove())}if(i&&E){let[e]=z(u.getWritable(),null,null);e[f.startRow][f.startColumn].cell.selectEnd()}return!0}(o[0],l):!(u&&t.peek())||function(e,t,r){let i=H(t)&&!t.focus.getNode().is(t.anchor.getNode()),o=(0,n.I2P)(t)&&h(t.anchor.getNode())&&!t.anchor.getNode().is(t.focus.getNode());if(i||o)return!0;if(!r)return!1;let l=t.focus.getNode(),s=(0,n.BtT)(l,h);if(!s)return!1;let u=eK(s);if(void 0===u)return!1;let c=function(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return 0;let r=window.getComputedStyle(t),i=r.getPropertyValue("padding-left")||"0px",o=r.getPropertyValue("padding-right")||"0px",l=r.getPropertyValue("border-left-width")||"0px",s=r.getPropertyValue("padding-right-width")||"0px";if(!(a.test(i)&&a.test(o)&&a.test(l)&&a.test(s)))return 0;let u=parseFloat(i),c=parseFloat(o);return u+c+parseFloat(l)+parseFloat(s)}(s);for(let t of e.filter(eI))!function e(t,r,n){let i=t.getColWidths();if(!i)return t;let o=r-n,l=i.reduce((e,t)=>e+t,0);if(l<=o)return t;let a=o/l;for(let r of(t.setColWidths(i.map(e=>e*a)),t.getChildren().filter(b)))for(let t of r.getChildren().filter(h)){let r=eK(t);if(void 0!==r)for(let i of t.getChildren().filter(eI))e(i,r,n)}}(t,u,c);return!1}(o,l,r.peek()))}(t,r,l),n.jZM),e.registerCommand(n.HYn,eF,n.AcJ),e.registerCommand(n.d8p,ej,n.jZM),e.registerNodeTransform(eR,eL),e.registerNodeTransform(y,e$),e.registerNodeTransform(u,eD))}function eK(e){let t=T(e),r=V(e),n=t.getColWidths();if(!r||!n)return;let{columnIndex:i,colSpan:o}=r,l=0;for(let e=i;e<i+o;e++)l+=n[e];return l}(0,n.vE9)({build:(e,t,r)=>
1(0,o.v)(t),config:(0,n.lVE)({hasCellBackgroundColor:!0,hasCellMerge:!0,hasFitNestedTables:!1,hasHorizontalScroll:!0,hasNestedTables:!1,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:()=>[eR,y,u],register(e,t,r){let i=r.getOutput();return(0,n.Sdt)((0,o.QZ)(()=>{let t=i.hasHorizontalScroll.value;eA(e)!==t&&(eO(e,t),e.registerNodeTransform(eR,()=>{})())}),ez(e,i),(0,o.QZ)(()=>eU(e,i.hasTabHandler.value)),(0,o.QZ)(()=>i.hasCellMerge.value?void 0:eB(e)),(0,o.QZ)(()=>i.hasCellBackgroundColor.value?void 0:e.registerNodeTransform(u,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})))}})},19095:(e,t,r)=>{"use strict";r.d(t,{I:()=>o,a:()=>i});var n=r(34023),i=(0,n.createContext)({selectedLocales:[]}),o=function(){return(0,n.use)(i)}},19135:(e,t,r)=>{"use strict";r.d(t,{IDCell:()=>o});var n=r(94799),i=r(34023);function o(e){var t=e.id;return(0,n.jsx)(i.Fragment,{children:t})}},19695:(e,t,r)=>{var n=r(34266);e.exports=function(e,t){return new Promise(function(r,i){var o,l=t||{};function a(e){i(e||Error("Aborted"))}function s(e,t){if(e.bail)return void a(e);o.retry(e)?l.onRetry&&l.onRetry(e,t):i(o.mainError())}"randomize"in l||(l.randomize=!0),(o=n.operation(l)).attempt(function(t){var n;try{n=e(a,t)}catch(e){s(e,t);return}Promise.resolve(n).then(r).catch(function(e){s(e,t)})})})}},19749:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94799),i=r(34023);function o(...e){return e.filter(Boolean).join(" ")}var l=r(33518);function a(e){var t,r=e.name,a=e.disabled,u=e.length,c=void 0===u?6:u,d=e.onFilled,f=(0,i.useRef)(Array(c).fill(null)),h=(0,i.useRef)(null),p=(null==(t=h.current)?void 0:t.value.length)===c,m=function(e){if(e>0){var t=f.current[e-1];t&&s(t)}},y=(0,i.useCallback)(function(e){if(e<c-1){var t=f.current[e+1];t&&s(t)}},[c]),v=(0,i.useCallback)(function(){if(h.current){var e=f.current.filter(Boolean).map(function(e){return e.value}).join("");h.current.value=e,d&&e.length===c&&d(e)}},[d,c]),_=function(e,t){var r=e.nativeEvent;"deleteContentBackward"===r.inputType?m(t):("insertText"===r.inputType||"deleteContentForward"===r.inputType)&&y(t),v()},b=(0,i.useCallback)(function(e,t){if(!e.nativeEvent.altKey&&!e.ctrlKey&&!e.metaKey){var r,n,i=e.target,o=/^\d$/.test(e.key),l=o||(null==(r=e.code)?void 0:r.startsWith("Digit"))||(null==(n=e.code)?void 0:n.startsWith("Numpad"))||"Unidentified"===e.key;switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault();break;case"ArrowLeft":m(t),e.preventDefault();break;case"ArrowRight":y(t),e.preventDefault();break;case"Backspace":0===i.value.length?(m(t),v(),e.preventDefault()):0===i.selectionStart&&(i.value="",m(t),v(),e.preventDefault());break;default:l||e.preventDefault(),o&&i.value.length>=1&&(e.preventDefault(),i.value=e.key,v(),y(t))}}},[y,v]),S=(0,i.useCallback)(function(e){if(e.preventDefault(),!a){var t=e.clipboardData.getData("text").trim().split("").filter(function(e){return!isNaN(parseInt(e))});t.length>c&&(t=t.slice(0,c)),t.forEach(function(e,t){var r=f.current[t];r&&(r.value=e)}),s(f.current[t.length-1]),v()}},[c,a,v]),w=(0,i.useCallback)(function(e){if(!a){var t=e.currentTarget.value.trim().split("").filter(function(e){return!isNaN(parseInt(e))});t.length>c&&(t=t.slice(0,c)),t.forEach(function(e,t){var r=f.current[t];r&&(r.value=e)}),s(f.current[t.length-1]),d&&t.length===c&&d(t.join(""))}},[c,a,d]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{autoComplete:"one-time-code",inputMode:"numeric",name:r,onInput:function(e){return w(e)},ref:h,style:{border:0,clip:"rect(0,0,0,0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px"}}),(0,n.jsxs)("div",{className:o(l.root,a&&l.disabled),children:[Array.from({length:c},function(e,t){return t}).map(function(e){return(0,n.jsx)("input",{autoFocus:0===e,"data-1p-ignore":!0,disabled:a,inputMode:"numeric",maxLength:1,onInput:function(t){return _(t,e)},onKeyDown:function(t){return b(t,e)},onPaste:function(e){return S(e)},ref:function(t){t&&(f.current[e]=t)},type:"text"},e)}),(0,n.jsx)("div",{className:l.focus}),(0,n.jsx)("div",{className:o(l.glow,p&&l.expandGlow),children:Array.from({length:c},function(e,t){return t}).map(function(e){return(0,n.jsx)("div",{},e)})})]})]})}function s(e){e.focus(),e.select()}},19792:(e,t,r)=>{"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;let i=r(5462),o=r(90051);function l(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||"boolean"==typeof t)return;let i=n.RULES.keywords;for(let r in t)i[r]||p(e,`unknown keyword: "${r}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(let r in e)if(t[r])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,l,a,s)=>{let u=void 0===a?l:a instanceof i.Name?(l instanceof i.Name?e(o,l,a):t(o,l,a),a):l instanceof i.Name?(t(o,a,l),l):r(l,a);return s!==i.Name||u instanceof i.Name?u:n(o,u)}}function d(e,t){if(!0===t)return e.var("props",!0);let r=e.var("props",(0,i._)`{}`);return void 0!==t&&f(e,r,t),r}function f(e,t,r){Object.keys(r).forEach(r=>e.assign((0,i._)`${t}${(0,i.getProperty)(r)}`,!0))}t.toHash=function(e){let t={};for(let r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(l(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=l,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return(0,i._)`${r}`}return(0,i._)`${e}${t}${(0,i.getProperty)(n)}`},t.unescapeFragment=function(e){return u(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=u,t.eachItem=function(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,i._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,i._)`${r} || {}`).code((0,i._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,i._)`${r} || {}`),f(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:c({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,i._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>e.assign(r,!0===t||(0,i._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=d,t.setEvaluated=f;let h={};function p(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(n||(t.Type=n={})),t.getErrorPath=function(e,t,r){if(e instanceof i.Name){let o=t===n.Num;return r?o?(0,i._)`"[" + ${e} + "]"`:(0,i._)`"['" + ${e} + "']"`:o?(0,i._)`"/" + ${e}`:(0,i._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,i.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=p},20309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792),o=r(43510),l=r(57222);t.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(a?(0,l.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}}},20478:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=({collectionConfig:e,select:t})=>{e.upload&&t&&(t.mimeType=!0,t.thumbnailURL=!0,e.upload.imageSizes&&e.upload.imageSizes.length>0?e.upload.adminThumbnail&&"string"==typeof e.upload.adminThumbnail?t.sizes={[e.upload.adminThumbnail]:{f
1ilename:!0}}:t.sizes=e.upload.imageSizes.reduce((e,t)=>({...e,[t.name]:{filename:!0,url:!0,width:!0}}),{}):t.url=!0)}},20614:(e,t,r)=>{"use strict";r.d(t,{D:()=>o,d:()=>i});var n=r(76270);class i extends n.Kp7{__format;constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}isInline(){return!1}}function o(e){return e instanceof i}},21217:(e,t,r)=>{"use strict";r.d(t,{m:()=>l});var n=r(12671),i=r(35509),o=r(34023);function l({maxIndent:e,$canIndent:t}){let[r]=(0,i.DF)();return(0,o.useEffect)(()=>(0,n.MM)(r,e,t),[r,e,t]),null}},21715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;let n=r(5462),i=r(80197),o=r(72792),l=r(56548),a=r(19792),s=r(45693);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!=(t=e.baseId)?t:(0,l.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function c(e){let t,r,a=f.call(this,e);if(a)return a;let u=(0,l.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:h}=this.opts,p=new n.CodeGen(this.scope,{es5:c,lines:d,ownProperties:h});e.$async&&(t=p.scopeValue("Error",{ref:i.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));let m=p.scopeName("validate");e.validateName=m;let y={gen:p,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:t,schema:e.schema,schemaEnv:e,rootId:u,baseId:e.baseId||u,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,s.validateFunctionCode)(y),p.optimize(this.opts.code.optimize);let t=p.toString();r=`${p.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let i=Function(`${o.default.self}`,`${o.default.scope}`,r)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),!0===this.opts.code.source&&(i.source={validateName:m,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){let{props:e,items:t}=y;i.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},i.source&&(i.source.evaluated=(0,n.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function d(e){return(0,l.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function f(e){for(let n of this._compilations){var t,r;if(t=n,r=e,t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n}}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){let r=this.opts.uriResolver.parse(t),n=(0,l._getFullPath)(this.opts.uriResolver,r),i=(0,l.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return y.call(this,r,e);let o=(0,l.normalizeId)(n),a=this.refs[o]||this.schemas[o];if("string"==typeof a){let t=p.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}
1if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||c.call(this,a),o===(0,l.normalizeId)(t)){let{schema:t}=a,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,l.resolveUrl)(this.opts.uriResolver,i,n)),new u({schema:t,schemaId:r,root:e,baseId:i})}return y.call(this,r,a)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,r){var n;r=(0,l.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=h.call(this,e,r);if(void 0===o){let i=null==(n=e.localRefs)?void 0:n[r],{schemaId:l}=this.opts;i&&(o=new u({schema:i,schemaId:l,root:e,baseId:t}))}if(void 0!==o)return e.refs[r]=d.call(this,o)},t.getCompilingSchema=f,t.resolveSchema=p;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var i;let o;if((null==(i=e.fragment)?void 0:i[0])!=="/")return;for(let n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;let e=r[(0,a.unescapeFragment)(n)];if(void 0===e)return;let i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,l.resolveUrl)(this.opts.uriResolver,t,i))}if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){let e=(0,l.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=p.call(this,n,e)}let{schemaId:s}=this.opts;if((o=o||new u({schema:r,schemaId:s,root:n,baseId:t})).schema!==o.root.schema)return o}},21784:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n=(e,t,r)=>{if(!t||!e)return r;let n=t.split(".").reduce((e,t)=>e?.[t],e);return void 0===n?r:n}},21815:(e,t,r)=>{"use strict";r.d(t,{D4:()=>m,F7:()=>w,Pe:()=>b,Rj:()=>s,gd:()=>_,h1:()=>p,kg:()=>S,lF:()=>y,oE:()=>v});var n=r(35254);let i=Object.prototype.hasOwnProperty,o=Array.isArray,l=new WeakMap;var a=function(e,t){return l.set(e,t),e};function s(e){return l.has(e)}var u=function(e){return l.get(e)},c=function(e,t){l.set(e,t)};let d=function(){let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){let t=e.pop(),r=t.obj[t.prop];if(o(r)){let e=[];for(let t=0;t<r.length;++t)void 0!==r[t]&&e.push(r[t]);t.obj[t.prop]=e}}},h=function(e,t){let r=t&&t.plainObjects?Object.create(null):{};for(let t=0;t<e.length;++t)void 0!==e[t]&&(r[t]=e[t]);return r},p=function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(s(t)){var l=u(t)+1;t[l]=r,c(t,l)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(s(r)){for(var d=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<d.length;p++)f[parseInt(d[p],10)+1]=r[d[p]];return a(f,u(r)+1)}return[t].concat(r)}let m=t;return(o(t)&&!o(r)&&(m=h(t,n)),o(t)&&o(r))?(r.forEach(function(r,o){if(i.call(t,o)){let i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){let l=r[o];return i.call(t,o)?t[o]=e(t[o],l,n):t[o]=l,t},m)},m=function(e){let t=e.replace(/\+/g," ");try{return decodeURIComponent(t)}catch(e){return t}},y=function(e,t,r,i){if(0===e.length)return e;let o=e;"symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e));let l="";for(let e=0;e<o.length;e+=1024){let t=o.length>=1024?o.slice(e,e+1024):o,r=[];for(let e=0;e<t.length;++e){let o=t.charCodeAt(e);if(45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||i===n.j1&&(40===o||41===o)){r[r.length]=t.charAt(e);continue}if(o<128){r[r.length]=d[o];continue}if(o<2048){r[r.length]=d[192|o>>6]+d[128|63&o];continue}if(o<55296||o>=57344){r[r.length]=d[224|o>>12]+d[128|o>>6&63]+d[128|63&o];continue}e+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(e)),r[r.length]=d[240|o>>18]+d[128|o>>12&63]+d[128|o>>6&63]+d[128|63&o]}l+=r.join("")}return l},v=function(e){let t=[{obj:{o:e},prop:"o"}],r=[];for(let e=0;e<t.length;++e){let n=t[e],i=n.obj[n.prop],o=Object.keys(i);for(let e=0;e<o.length;++e){let n=o[e],l=i[n];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:n}),r.push(l))}}return f(t),e},_=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},b=function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},S=function(e,t,r,n){if(s(e)){var i=u(e)+1;return e[i]=t,c(e,i),e}var o=[].concat(e,t);return o.length>r?a(h(o,{plainObjects:n}),o.length-1):o},w=function(e,t){if(o(e)){let r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}},22517:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(24851);let i=(e,t)=>{let r=t.substring(0,t.lastIndexOf(".")+1),i=t.split(".").pop(),o={};Object.keys(e).forEach(n=>{!e[n]?.disableFormData&&(0===n.indexOf(`${t}.`)||n===t)&&(o[n.replace(r,"")]=e[n]?.value,e[n]?.rows&&0===e[n].rows.length&&(o[n.replace(r,"")]=[]))});let l=(0,n.s)(o);return l?.[i]}},23089:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let n=r(19792);t.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}},23100:(e,t,r)=>{"use strict";r.d(t,{Text:()=>u});var n=r(52252),i=r(11241),o=r(94799),l=r(67331),a=r(50614);function s(e){return"string"==typeof e?{tokenizeByCharacter:!0,value:(0,l.escapeDiffHTML)(e)}:"number"==typeof e?{tokenizeByCharacter:!0,value:String(e)}:"boolean"==typeof e?{tokenizeByCharacter:!1,value:String(e)}:e&&(void 0===e?"undefined":(0,n._)(e))==="object"?{tokenizeByCharacter:!1,value:"<pre>".concat((0,l.escapeDiffHTML)(JSON.stringify(e,null,2)),"</pre>")}:{tokenizeByCharacter:!0,value:void 0}}r(34023);var u=function(e){var t=(0,i.c)(8),r=e.comparisonValue,n=e.field,u=e.locale,c=e.nestingLevel,d=e.versionValue,f=(0,a.d)().i18n,h="";if(d==r&&(h='<span class="html-diff-no-value"><span>'),t[0]!==n.label||t[1]!==f||t[2]!==u||t[3]!==c||t[4]!==h||t[5]!==r||t[6]!==d){var p,m,y,v,_,b=s(r),S=s(d),w=!0;(null==(m=b.value)?void 0:m.length)?w=b.tokenizeByCharacter:(null==(y=S.value)?void 0:y.length)&&(w=S.tokenizeByCharacter);var x=null!=(v=b.value)?v:h,E=null!=(_=S.value)?_:h,C=(0,l.getHTMLDiffComponents)({fromHTML:"<p>"+x+"</p>",postProcess:l.unescapeDiffHTML,toHTML:"<p>"+E+"</p>",tokenizeByCharacter:w}),T=C.From,N=C.To;p=(0,o.jsx)(l.FieldDiffContainer,{className:"text-diff",From:T,i18n:f,label:{label:n.label,locale:u},nestingLevel:c,To:N}),t[0]=n.label,t[1]=f,t[2]=u,t[3]=c,t[4]=h,t[5]=r,t[6]=d,t[7]=p}else p=t[7];return p}},23298:()=>{},23758:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(67331),i=r(27357),o=r(34023);function l(e){if(!e||"/"===e)return"/";let t=e.replace(/\/+$/,"");return""===t?"/":t}function a(e){var t=e.children,r=e.forceSetup,a=e.setupUrl,s=e.verifyUrl,u=(0,n.useAuth)().user,c=null==u?void 0:u._strategy,d=(0,i.useRouter)(),f=(0,i.usePathname)(),h=l(f),p=l(s),m=l(a);return(0,o.useEffect)(function(){u&&u.hasTotp&&c&&!["api-key","totp"].includes(c)&&h!==p?d.push("".concat(s,"?back=").concat(encodeURIComponent(f))):u&&!u.hasTotp&&r&&h!==m&&"api-key"!==c&&d.push("".concat(a,"?back=").concat(encodeURIComponent(f)))},[u]),t}},24157:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/static-og-image.477255a8.png",height:480,width:640,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAD1BMVEX39/f///+urq7Hx8e6urr/rfEaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNghAIGEAYTjIwMTCwgEsRgRpOCKAYABUMAMfeXEyAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6}},24529:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>{setTimeout(t,e)})}r.d(t,{u:()=>n})},24851:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{let r=(t=t||{}).delimiter||".",i=t.overwrite||!1,o=t.recursive||!1,l={};if(function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)||"[object Object]"!==Object.prototype.toString.call(e))return e;let a=e=>{let r=Number(e);return isNaN(r)||-1!==e.indexOf(".")||t.object?e:r};return Object.keys(e).sort((e,t)=>e.length-t.length).forEach(s=>{let u=s.split(r),c=a(u.shift()),d=a(u[0]),f=l;for(;void 0!==d;){if("__proto__"===c)return;let e=Object.prototype.toString.call(f[c]),r="[object Object]"===e||"[object Array]"===e;if(!i&&!r&&void 0!==f[c])return;(!i||r)&&(i||null!=f[c])||(f[c]="number"!=typeof d||t.object?{}:[]),f=f[c],u.length>0&&(c=a(u.shift()),d=a(u[0]))}f[c]=o?n(e[s],t):e[s]}),l}},25775:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(94799),i=r(67331);function o(e){var t=e.children,r=e.modalSlug,o=(0,i.useModal)().openModal;return(0,n.jsx)(i.Button,{buttonStyle:"secondary",onClick:function(){o(r)},size:"small",children:t})}},27357:(e,t,r)=>{"use strict";var n=r(84393);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},28214:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let n=r(43510),i=r(5462),o=r(19792),l=r(19792);t.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:a,parentSchema:s,it:u}=e,{opts:c}=u,d=(0,n.allSchemaProperties)(r),f=d.filter(e=>(0,o.alwaysValidSchema)(u,r[e]));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;let h=c.strictSchema&&!c.allowMatchingProperties&&s.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,l.evaluatedPropsToName)(t,u.props));let{props:m}=u;for(let e of d)h&&function(e){for(let t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),u.allErrors?y(e):(t.var(p,!0),y(e),t.if(p));function y(r){t.forIn("key",a,o=>{t.if((0,i._)`${(0,n.usePattern)(e,r)}.test(${o})`,()=>{let n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:l.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign((0,i._)`${m}[${o}]`,!0):n||u.allErrors||t.if((0,i.not)(p),()=>t.break())})})}}}},28751:(e,t,r)=>{"use strict";r.d(t,{ShouldRenderTabs:()=>i});var n=r(67331),i=function(e){var t=e.children,r=(0,n.useDocumentInfo)(),i=r.id,o=r.collectionSlug,l=r.globalSlug;return o&&("create"!==i?i:null)||l?t:null}},29039:(e,t,r)=>{"use strict";function n(e){return["image/jpeg","image/png","image/gif","image/svg+xml","image/webp","image/avif","image/jxl"].indexOf(e)>-1}r.d(t,{w:()=>n})},29065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462);t.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} properties`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,o="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${o} ${i}`)}}},30213:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>s,lW:()=>d,xg:()=>p});var n=r(85379),i=r(11825),o=r(9971),l=r(76270);function a(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e,t,r){let o=e.getData("application/x-lexical-editor");if(o)try{let e=JSON.parse(o);if(e.namespace===r._config.namespace&&Array.isArray(e.nodes))return u(r,function(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r],o=(0,l.GMe)(n);(0,l.kFe)(o)&&(0,i.Xg)(o),t.push(o)}return t}(e.nodes),t)}catch(e){console.error(e)}let a=e.getData("text/html"),s=e.getData("text/plain");if(a&&s!==a)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(a):a,"text/html");return u(r,(0,n.d)(r,e),t)}catch(e){console.error(e)}let c=s||e.getData("text/uri-list");if(null!=c)if((0,l.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let r=(0,l.vJq)();if((0,l.I2P)(r)){let n=e[t];"\n"===n||"\r\n"===n?r.insertParagraph():" "===n?r.insertNodes([(0,l.ev7)()]):r.insertText(n)}}}else t.insertRawText(c)}function u(e,t,r){e.dispatchCommand(l.oqR,{nodes:t,selection:r})||(r.insertNodes(t),function(e){if((0,l.I2P)(e)&&e.isCollapsed()){let t=e.anchor,r=null,n=(0,l.Ave)(t,"previous");if(n)if((0,l.rN)(n))r=n.origin;else for(let e of(0,l.TJt)(n,(0,l.uwZ)((0,l.NiT)(),"next").getFlipped())){if((0,l.kFe)(e.origin)){r=e.origin;break}if((0,l.ff4)(e.origin)&&!e.origin.isInline())break}if(r&&(0,l.kFe)(r)){let t=r.getFormat(),n=r.getStyle();e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}}}(r))}let c=null;async function d(e,t,r){if(null!==c)return!1;if(null!==t)return new Promise((n,i)=>{e.update(()=>{n(f(e,t,r))})});let n=e.getRootElement(),i=e._window||window,a=i.document,s=(0,l.peL)(i);if(null===n||null===s)return!1;let u=a.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(a.createTextNode("#")),n.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),s.removeAllRanges(),s.addRange(d),new Promise((t,n)=>{let s=e.registerCommand(l.u5G,n=>((0,o.xj)(n,ClipboardEvent)&&(s(),null!==c&&(i.clearTimeout(c),c=null),t(f(e,n,r))),!0),l.da8);c=i.setTimeout(()=>{s(),c=null,t(!1)},50),a.execCommand("copy"),u.remove()})}function f(e,t,r){if(void 0===r){let t=(0,l.peL)(e._window),n=(0,l.vJq)();if(!n||n.isCollapsed()||!t)return!1;let i=t.anchorNode,o=t.focusNode;if(null!==i&&null!==o&&!(0,l.LYZ)(e,i,o))return!1;r=p(n)}t.preventDefault();let n=t.clipboardData;return null!==n&&(function(e,t){for(let[r]of h)void 0===t[r]&&e.setData(r,"");for(let r in t){let n=t[r];void 0!==n&&e.setData(r,n)}}(n,r),!0)}let h=[["text/html",function(e,t=(0,l.vJq)()){return null==t&&a(166),(0,l.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,n.g)(e,t)}],["application/x-lexical-editor",function(e,t=(0,l.vJq)()){return null==t&&a(166),(0,l.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let r=[],n=(0,l.NiT)().getChildren();for(let o=0;o<n.length;o++)!function e(t,r,n,o=[]){let s=null===r||n.isSelected(r),u=(0,l.ff4)(n)&&n.excludeFromCopy("html"),c=n;null!==r&&(0,l.kFe)(c)&&(c=(0,i.SD)(r,c,"clone"));let d=(0,l.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),r=e.constructor;return t.type!==r.getType()&&a(58,r.name),(0,l.ff4)(e)&&(Array.isArray(t.children)||a(59,r.name)),t}(c);(0,l.kFe)(c)&&0===c.getTextContentSize()&&(s=!1);for(let i=0;i<d.length;i++){let o=d[i],a=e(t,r,o,f.children);!s&&(0,l.ff4)(n)&&a&&n.extractWithChild(o,r,"clone")&&(s=!0)}if(s&&!u)o.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];o.push(t)}return s}(e,t,n[o],r);return{namespace:e._config.namespace,nodes:r}}(e,t))}]];function p(e=(0,l.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let r=(0,l.i0_)();for(let[n,i]of h){let o=i(r,e);null!==o&&(t[n]=o)}}return t}},30331:(e,t,r)=>{"use strict";r.d(t,{Select:()=>c});
1var n=r(11241),i=r(94799),o=r(52223),l=r(50614),a=r(67331);r(34023);var s=function(e,t,r){return r&&Array.isArray(e)?e.map(function(e){return t.find(function(t){return("string"==typeof t?t:t.value)===e})||String(e)}):t.find(function(t){return("string"==typeof t?t:t.value)===e})||String(e)},u=function(e,t){if(Array.isArray(e))return e.map(function(e){if("string"==typeof e)return e;var r=(0,o.s)(e.label,t);return"string"==typeof r?r:e.value}).join(", ");if("string"==typeof e)return e;var r=(0,o.s)(e.label,t);return"string"==typeof r?r:e.value},c=function(e){var t,r=(0,n.c)(7),o=e.comparisonValue,c=e.field,d=e.locale,f=e.nestingLevel,h=e.versionValue,p=(0,l.d)().i18n,m="options"in c&&c.options,y=void 0!==o?u(s("string"==typeof o?o:JSON.stringify(o),m,c.hasMany),p):"",v=void 0!==h?u(s("string"==typeof h?h:JSON.stringify(h),m,c.hasMany),p):"",_="<p>"+(0,a.escapeDiffHTML)(y)+"</p>",b="<p>"+(0,a.escapeDiffHTML)(v)+"</p>";if(r[0]!==c.label||r[1]!==p||r[2]!==d||r[3]!==f||r[4]!==_||r[5]!==b){var S=(0,a.getHTMLDiffComponents)({fromHTML:_,postProcess:a.unescapeDiffHTML,toHTML:b,tokenizeByCharacter:!0}),w=S.From,x=S.To;t=(0,i.jsx)(a.FieldDiffContainer,{className:"select-diff",From:w,i18n:p,label:{label:c.label,locale:d},nestingLevel:f,To:x}),r[0]=c.label,r[1]=p,r[2]=d,r[3]=f,r[4]=_,r[5]=b,r[6]=t}else t=r[6];return t}},30807:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(76270);function i(e){let t=(0,n.ieJ)(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw Error(`${e} is not supported in headless mode`)}}),t}},32284:(e,t,r)=>{"use strict";let n;r.d(t,{a:()=>H,b:()=>ed,c:()=>ef,d:()=>f,e:()=>h,f:()=>m,g:()=>y,h:()=>v,i:()=>_,j:()=>E,k:()=>k,l:()=>A,m:()=>O,n:()=>P,o:()=>M,p:()=>D});var i=r(11241),o=r(34023),l=r(94799),a=r(83390),s=r(35509),u=r(76270),c=r(69043),d=r(65388),f="u">typeof window&&"u">typeof window.document&&"u">typeof window.document.createElement;function h(e){let t=(0,i.c)(2),r=void 0===e?500:e,n=(0,o.useRef)(void 0),l;return t[0]!==r?(l=e=>new Promise(t=>{let i=()=>{e(),t()};"requestIdleCallback"in window?("cancelIdleCallback"in window&&void 0!==n.current&&cancelIdleCallback(n.current),n.current=requestIdleCallback(i,{timeout:r})):new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})}).then(i)}),t[0]=r,t[1]=l):l=t[1],l}var p=(0,o.createContext)({currentView:"default",inheritable:!1,setCurrentView:()=>{}}),m=e=>{let t=y(),r=void 0!==e.currentView,n=t.inheritable&&(!!t.views||!!t.hasExplicitCurrentView),i=r||t.inheritable&&!!t.hasExplicitCurrentView,{children:s,currentView:u,inheritable:c,views:d}={children:e.children,currentView:n?t.currentView:e.currentView,inheritable:t.inheritable||e.inheritable,views:n&&t.views?t.views:e.views},[f,h]=(0,a.a)(u,"default"),m=d&&"default"!==f&&!d[f]?"default":f,v=(0,o.useMemo)(()=>{let e=d?d[m]:void 0;return{currentView:m,currentViewMap:e,hasExplicitCurrentView:i,inheritable:c,isControlledByParent:n,setCurrentView:h,views:d}},[m,c,i,n,h,d]);return(0,l.jsx)(p,{value:v,children:s})};function y(){return(0,o.use)(p)}var v=class{_x;_y;constructor(e,t){this._x=e,this._y=t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}equals({x:e,y:t}){return this.x===e&&this.y===t}get x(){return this._x}get y(){return this._y}};function _(e){return e instanceof v}var b=e=>{let t=document.getElementById("slash-menu");if(!t)return;let r=t.getBoundingClientRect();r.top+r.height>window.innerHeight&&t.scrollIntoView({block:"center"}),r.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function S(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>n.top&&r.top<n.bottom}var w=(0,u.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function x({anchorElementRef:e,close:t,editor:r,groups:n,menuRenderFn:i,resolution:l,shouldSplitNodeWithQuery:a=!1}){let[s,c]=(0,o.useState)(null),d=l.match&&l.match.matchingString||"",f=(0,o.useCallback)(e=>{let t=r.getRootElement();null!==t&&(t.setAttribute("aria-activedescendant",`slash-menu-popup__item-${e.key}
1`),c(e.key))},[r]),h=(0,o.useCallback)(()=>{if(null!==n&&null!=d){let e=n.flatMap(e=>e.items);e.length&&f(e[0])}},[n,f,d]);(0,o.useEffect)(()=>{h()},[d,h]);let p=(0,o.useCallback)(e=>{t(),r.update(()=>{let e=null!=l.match&&a?function(e){let t,r=(0,u.vJq)();if(!(0,u.I2P)(r)||!r.isCollapsed())return;let n=r.anchor;if("text"!==n.type)return;let i=n.getNode();if(!i.isSimpleText())return;let o=n.offset,l=i.getTextContent().slice(0,o),a=e.replaceableString.length,s=o-function(e,t,r){let n=r;for(let r=n;r<=t.length;r++)e.substring(e.length-r)===t.substring(0,r)&&(n=r);return n}(l,e.matchingString,a);if(!(s<0))return 0===s?[t]=i.splitText(o):[,t]=i.splitText(s,o),t}(l.match):null;e&&e.remove()}),setTimeout(()=>{let t;r.read(()=>{t=(0,u.vJq)()?.clone()}),r.update(()=>{t&&(0,u.n1P)(t)}),e.onSelect({editor:r,queryString:l.match?l.match.matchingString:""})},0)},[r,a,l.match,t]);return(0,o.useEffect)(()=>()=>{let e=r.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")},[r]),(0,o.useLayoutEffect)(()=>{null===n?c(null):null===s&&h()},[n,s,f,h]),(0,o.useEffect)(()=>(0,u.Sdt)(r.registerCommand(w,({item:e})=>!!e.ref&&null!=e.ref.current&&(b(e.ref.current),!0),u.AcJ)),[r,f]),(0,o.useEffect)(()=>(0,u.Sdt)(r.registerCommand(u.bbF,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),i=t.findIndex(e=>e.key===s),o=i!==t.length-1?i+1:0,l=t[o];if(!l)return!1;f(l),null!=l.ref&&l.ref.current&&r.dispatchCommand(w,{index:o,item:l}),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.UDz,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),r=t.findIndex(e=>e.key===s),i=0!==r?r-1:t.length-1,o=t[i];if(!o)return!1;f(o),null!=o.ref&&o.ref.current&&b(o.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.Q$N,e=>(e.preventDefault(),e.stopImmediatePropagation(),t(),!0),u.AcJ),r.registerCommand(u.OXk,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(e.preventDefault(),e.stopImmediatePropagation(),p(t),!0)},u.JjG),r.registerCommand(u.RTo,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),p(t),!0)},u.JjG)),[p,t,r,n,s,f]),i(e,(0,o.useMemo)(()=>({groups:n,selectedItemKey:s,selectItemAndCleanUp:p,setSelectedItemKey:c}),[p,s,n]),l.match?l.match.matchingString:"")}var E="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";function C(e,t,r){let n=(0,u.peL)(r);if(null===n||!n.isCollapsed)return!1;let i=n.anchorNode,o=n.anchorOffset;if(null==i||null==o)return!1;try{t.setStart(i,e),t.setEnd(i,o>1?o:1)}catch{return!1}return!0}function T(e,t){return 0===t&&e.getEditorState().read(()=>{let e=(0,u.vJq)();if((0,u.I2P)(e)){let t=e.anchor.getNode().getPreviousSibling();return(0,u.kFe)(t)&&t.isTextEntity()}return!1})}function N(e){o.startTransition?o.startTransition(e):e()}var k=(0,u.guI)("ENABLE_SLASH_MENU_COMMAND");function A({anchorClassName:e,anchorElem:t,groups:r,menuRenderFn:n,onClose:a,onOpen:c,onQueryChange:d,triggerFn:h}){let[p]=(0,s.DF)(),[m,y]=(0,o.useState)(null),v=function(e,t,r,n){let l,a=(0,i.c)(14),[u]=(0,s.DF)(),c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=f?document.createElement("div"):null,a[0]=c):c=a[0];let d=(0,o.useRef)(c),h;a[1]!==e||a[2]!==n||a[3]!==u||a[4]!==t?(h=()=>{if(null===d.current||void 0===parent)return;let r=u.getRootElement(),i=d.current,o=i.firstChild;if(null!==r&&null!==t){let{height:l,width:a}=t.getRect(),{left:s,top:u}=t.getRect(),c=u;if(u-=e.getBoundingClientRect().top+window.scrollY,s-=e.getBoundingClientRect().left+window.scrollX,i.style.left=`${s+window.scrollX}px`,i.style.height=`${l}px`,i.style.width=`${a}px`,null!==o){let t=o.getBoundingClientRect(),n=t.height,a=t.width,d=r.getBoundingClientRect(),f="rtl"===document.dir||"rtl"===document.documentElement.dir,h=e.getBoundingClientRect(),p=Math.max(0,d.left);if(!f&&s+a>d.right)i.style.left=`${d.right-a+window.scrollX}px`;else if(f&&t.left<p){let e=p+a-h.left;i.style.left=`${e+window.scrollX}px`}c+n+32>window.innerHeight&&!(c<0)?i.style.top=`${u+32-n+window.scrollY-(l+24)}px`:i.style.top=`${u+window.scrollY+32}px`}i.isConnected||(null!=n&&(i.className=n),i.setAttribute("aria-label","Slash menu"),i.setAttribute("role","listbox"),i.style.display="block",i.style.position="absolute",e.append(i)),i.setAttribute("id","slash-menu"),d.current=i,r.setAttribute("aria-controls","slash-menu")}},a[1]=e,a[2]=n,a[3]=u,a[4]=t,a[5]=h):h=a[5];let p=h,m,y;return a[6]!==u||a[7]!==p||a[8]!==t?(m=()=>{let e=u.getRootElement();if(null!==t)return p(),()=>{null!==e&&e.removeAttribute("aria-controls");let t=d.current;null!==t&&t.isConnected&&(t.remove(),t.removeAttribute("id"))}},y=[u,p,t],a[6]=u,a[7]=p,a[8]=t,a[9]=m,a[10]=y):(m=a[9],y=a[10]),(0,o.useEffect)(m,y),a[11]!==t||a[12]!==r?(l=e=>{null!==t&&(e||r(null))},a[11]=t,a[12]=r,a[13]=l):l=a[13],function(e,t,r,n){let l=(0,i.c)(
17),[a]=(0,s.DF)(),u,c;l[0]!==a||l[1]!==r||l[2]!==n||l[3]!==e||l[4]!==t?(u=()=>{let i=t.current;if(null!=i&&null!=e){let e=a.getRootElement(),t=null!=e?function(e,t){let r=getComputedStyle(e),n="absolute"===r.position,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===r.position)return document.body;for(let t=e;t=t.parentElement;)if(r=getComputedStyle(t),!(n&&"static"===r.position)&&i.test(r.overflow+r.overflowY+r.overflowX))return t;return document.body}(e,!1):document.body,o=!1,l=S(i,t),s=function(){o||(window.requestAnimationFrame(function(){r(),o=!1}),o=!0);let e=S(i,t);e!==l&&(l=e,n?.(e))},u=new ResizeObserver(r);return window.addEventListener("resize",r),document.addEventListener("scroll",s,{capture:!0,passive:!0}),u.observe(i),()=>{u.disconnect(),window.removeEventListener("resize",r),document.removeEventListener("scroll",s,!0)}}},c=[a,n,r,e,t],l[0]=a,l[1]=r,l[2]=n,l[3]=e,l[4]=t,l[5]=u,l[6]=c):(u=l[5],c=l[6]),(0,o.useEffect)(u,c)}(t,d,p,l),d}(t,m,y,e),_=(0,o.useCallback)(()=>{y(null),null!=a&&null!==m&&a()},[a,m]),b=(0,o.useCallback)(e=>{y(e),null!=c&&null===m&&c(e)},[c,m]);return(0,o.useEffect)(()=>(0,u.Sdt)(p.registerCommand(k,({node:e})=>(p.getEditorState().read(()=>{let t={leadOffset:0,matchingString:"",replaceableString:""};if(!T(p,t.leadOffset)&&null!==e){let e=p._window??window,r=e.document.createRange();null!==C(t.leadOffset,r,e)&&N(()=>b({getRect:()=>r.getBoundingClientRect(),match:t}));return}}),!0),u.AcJ)),[p,b]),(0,o.useEffect)(()=>{let e=p.registerUpdateListener(()=>{p.getEditorState().read(()=>{let e,t=p._window??window,r=t.document.createRange(),n=(0,u.vJq)(),i=(p.getEditorState().read(()=>{let t=(0,u.vJq)();(0,u.I2P)(t)&&(e=function(e){let t=e.anchor;if("text"!==t.type)return null;let r=t.getNode();if(!r.isSimpleText())return null;let n=t.offset;return r.getTextContent().slice(0,n)}(t))}),e);if(!(0,u.I2P)(n)||!n.isCollapsed()||void 0===i||null===r)return void _();let o=h({editor:p,query:i});if(d(o?o.matchingString:null),null!==o&&!T(p,o.leadOffset)&&null!==C(o.leadOffset,r,t))return void N(()=>b({getRect:()=>r.getBoundingClientRect(),match:o}));_()})});return()=>{e()}},[p,h,d,m,_,b]),null===v.current||null===m||null===p?null:(0,l.jsx)(x,{anchorElementRef:v,close:_,editor:p,groups:r,menuRenderFn:n,resolution:m,shouldSplitNodeWithQuery:!0})}var O=class e{_bottom;_left;_right;_top;constructor(e,t,r,n){let[i,o]=t<=n?[t,n]:[n,t],[l,a]=e<=r?[e,r]:[r,e];this._top=i,this._right=a,this._left=l,this._bottom=o}static fromDOM(t){let{height:r,left:n,top:i,width:o}=t.getBoundingClientRect();return e.fromLWTH(n,o,i,r)}static fromDOMRect(t){let{height:r,left:n,top:i,width:o}=t;return e.fromLWTH(n,o,i,r)}static fromLTRB(t,r,n,i){return new e(t,r,n,i)}static fromLWTH(t,r,n,i){return new e(t,n,t+r,n+i)}static fromPoints(t,r){let{x:n,y:i}=t,{x:o,y:l}=r;return e.fromLTRB(n,i,o,l)}contains(e){if(_(e)){let{x:t,y:r}=e,n=r<this._top,i=r>this._bottom,o=t<this._left,l=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:o,isOnRightSide:l,isOnTopSide:n},result:!n&&!i&&!o&&!l}}let{bottom:t,left:r,right:n,top:i}=e;return i>=this._top&&i<=this._bottom&&t>=this._top&&t<=this._bottom&&r>=this._left&&r<=this._right&&n>=this._left&&n<=this._right}distanceFromPoint(e){let t=this.contains(e);if(t.result)return{distance:0,isOnBottomSide:t.reason.isOnBottomSide,isOnLeftSide:t.reason.isOnLeftSide,isOnRightSide:t.reason.isOnRightSide,isOnTopSide:t.reason.isOnTopSide};let r=0,n=0;return e.x<this._left?r=this._left-e.x:e.x>this._right&&(r=e.x-this._right),e.y<this._top?n=this._top-e.y:e.y>this._bottom&&(n=e.y-this._bottom),{distance:Math.sqrt(r*r+n*n),isOnBottomSide:e.y>this._bottom,isOnLeftSide:e.x<this._left,isOnRightSide:e.x>this._right,isOnTopSide:e.y<this._top}}equals({bottom:e,left:t,right:r,top:n}){return n===this._top&&e===this._bottom&&t===this._left&&r===this._right}generateNewRect({bottom:t=this.bottom,left:r=this.left,right:n=this.right,top:i=this.top}){return new e(r,i,n,t)}intersectsWith(e){let{height:t,left:r,top:n,width:i}=e,{height:o,left:l,top:a,width:s}=this;return(r+i>=l+s?r+i:l+s)-(r<=l?r:l)<=i+s&&(n+t>=a+o?n+t:a+o)-(n<=a?n:a)<=t+o}get bottom(){return this._bottom}get height(){return Math.abs(this._bottom-this._top)}get left(){return this._left}get right(){return this._right}get top(){return this._top}get width(){return Math.abs(this._left-this._right)}},R=new WeakMap;function P(e,t){R.has(e)||R.set(e,new Map);let r=R.get(e);for(let[e,n]of Object.entries(t))if(!(!n||"object"!=typeof n)){if("blocks"===e){for(let[e,t]of Object.entries(n))r.set(`block:${e}`,t);continue}if("inlineBlocks"===e){for(let[e,t]of Object.entries(n))r.set(`inlineBlock:${e}`,t);continue}r.set(e,n)}}function M(e){R.delete(e)}function I(e,t,r){let n=R.get(e);if("block"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`block:${e}`)}if("inlineBlock"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`inlineBlock:${e}`)}return n?.get(t)}function D({editorConfig:e,nodeViews:t}){let r=function({nodes:e}){return e.map(e=>"node"in e?e.node:e)}({nodes:e.features.nodes});if(t){let e=new Set;for(let[r,n]of Object.entries(t))n&&"object"==typeof n&&("blocks"===r&&Object.keys(n).length>0?e.add("block"):"inlineBlocks"===r&&Object.keys(n).length>0?e.add("inlineBlock"):e.add(r));for(let t of r)if("getType"in t){let r=t.getType();e.has(r)&&function({node:e,nodeType:t}){if("getType"in e&&e.getType()===t){if(e.prototype._originalDecorate||(e.prototype._originalDecorate=e.prototype.decorate),e.prototype._originalCreateDOM||(e.prototype._originalCreateDOM=e.prototype.createDOM),e.prototype.decorate&&!e.prototype._decorateOverridden){e.prototype._decorateOverridden=!0;let r=!!e.prototype.createDOM;e.prototype.decorate=function(n,i){let l=I(n,t,this);if(l){if(l.Component)return l.Component({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this});if(l.createDOM&&l.html){let e="function"==typeof l.html?l.html({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):l.html;return o.createElement("span",{dangerouslySetInnerHTML:{__html:e}})}if(l.html&&r&&!l.createDOM)return o.createElement(o.Fragment);if("block"===t){if(l.Block||l.Label)return e.prototype._originalDecorate.call(this,n,i,l.Block,l.Label)}else if("inlineBlock"===t&&(l.Block||l.Label))return e.prototype._originalDecorate.call(this,n,i,l.Block,l.Label)}return e.prototype._originalDecorate.call(this,n,i)}}
1e.prototype.createDOM&&!e.prototype._createDOMOverridden&&(e.prototype._createDOMOverridden=!0,e.prototype.createDOM=function(r,n){let i=I(n,t,this);if(i){if(i.createDOM)return i.createDOM({config:r,editor:n,node:this});if(i.html){let e="function"==typeof i.html?i.html({config:r,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):i.html,t=document.createElement("div");return t.innerHTML=e,t.firstElementChild||t}}return e.prototype._originalCreateDOM.call(this,r,n)})}}({node:t,nodeType:r})}}return r}function $(e){return(t,r)=>(0,d.Pi)(t)&&t.getTag()==="h"+e?"#".repeat(e)+" "+r(t):null}function L(e,t){let r={};for(let n of e){let e=t(n);e&&(r[e]?r[e].push(n):r[e]=[n])}return r}function j(e){let t=L(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}$(1),$(2),$(3),$(4),$(5),$(6);var F=/[!-/:-@[-`{-~\s]/,B=/^\s{0,3}$/;function U(e){if(!(0,u.bSg)(e))return!1;let t=e.getFirstChild();return null==t||1===e.getChildrenSize()&&(0,u.kFe)(t)&&B.test(t.getTextContent())}function z(e,t,r,n,i){let o=[],l=e.getChildren();n||(n=[]),i||(i=[]);t:for(let e of l){for(let l of r){if(!l.export)continue;let a=l.export(e,e=>z(e,t,r,n,[...i,...n]),(e,r)=>K(e,r,t,n,i));if(null!=a){o.push(a);continue t}}(0,u.wH$)(e)?o.push(` 2`):(0,u.kFe)(e)?o.push(K(e,e.getTextContent(),t,n,i)):(0,u.ff4)(e)?o.push(z(e,t,r,n,i)):(0,u.Cyw)(e)&&o.push(e.getTextContent())}return o.join("")}function K(e,t,r,n,i){let o=t.trim(),l=o;e.hasFormat("code")||(l=l.replace(/([*_`~\\])/g,"\\$1"));let a="",s="",u="",c=q(e,!0),d=q(e,!1),f=new Set;for(let t of r){let r=t.format[0],i=t.tag;V(e,r)&&!f.has(r)&&(f.add(r),V(c,r)&&n.find(e=>e.tag===i)||(n.push({format:r,tag:i}),a+=i))}for(let t=0;t<n.length;t++){let r=n[t],o=V(e,r.format),l=V(d,r.format);if(o&&l)continue;let a=[...n];for(;a.length>t;){let e=a.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&"string"==typeof e.tag&&(o?l||(u+=e.tag):s+=e.tag),n.pop())}break}return l=a+l+u,s+t.replace(o,()=>l)}function q(e,t){let r=t?e.getPreviousSibling():e.getNextSibling();if(!r){let n=e.getParentOrThrow();n.isInline()&&(r=t?n.getPreviousSibling():n.getNextSibling())}for(;r;){if((0,u.ff4)(r)){if(!r.isInline())break;let e=t?r.getLastDescendant():r.getFirstDescendant();if((0,u.kFe)(e))return e;r=t?r.getPreviousSibling():r.getNextSibling()}if((0,u.kFe)(r))return r;if(!(0,u.ff4)(r))break}return null}function V(e,t){return(0,u.kFe)(e)&&e.hasFormat(t)}function W(e,t,r){let n=r.length;for(let i=t;i>=n;i--){let t=i-n;if(J(e,t,r,0,n)&&" "!==e[t+n])return t}return -1}function J(e,t,r,n,i){for(let o=0;o<i;o++)if(e[t+o]!==r[n+o])return!1;return!0}function H(e,t=ec){let r=j(t),n=L(r.textFormat,({tag:e})=>e[e.length-1]),i=L(r.textMatch,({trigger:e})=>e);for(let r of t){let t=r.type;if("element"===t||"text-match"===t||"multiline-element"===t){for(let t of r.dependencies)if(!e.hasNode(t))throw Error("MarkdownShortcuts: missing dependency %s for transformer. Ensure node dependency is included in editor initial config."+t.getType())}}return e.registerUpdateListener(({dirtyLeaves:t,editorState:o,prevEditorState:l,tags:a})=>{if(a.has("collaboration")||a.has("historic")||e.isComposing())return;let s=o.read(u.vJq),c=l.read(u.vJq);if(!(0,u.I2P)(c)||!(0,u.I2P)(s)||!s.isCollapsed()||s.is(c))return;let d=s.anchor.key,f=s.anchor.offset,h=o._nodeMap.get(d);(0,u.kFe)(h)&&t.has(d)&&(1===f||!(f>c.anchor.offset+1))&&e.update(()=>{var e;if(h.hasFormat("code"))return;let t=h.getParent();null!==t&&(function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[r-1])return!1;for(let{regExp:i,replace:l}of n){let n=o.match(i);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[o,a]=t.splitText(r);if(o?.remove(),!1!==l(e,a?[a,...i]:i,n,!1))return!0}}return!1}(t,h,e=s.anchor.offset,r.element)||function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[r-1])return!1;for(let{regExpEnd:i,regExpStart:l,replace:a}of n){if(i&&!("optional"in i)||i&&"optional"in i&&!i.optional)continue;let n=o.match(l);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[o,l]=t.splitText(r);if(o?.remove(),!1!==a(e,l?[l,...i]:i,n,null,null,!1))return!0}}return!1}(t,h,e,r.multilineElement)||function(e,t,r){let n=e.getTextContent(),i=r[n[t-1]];if(null==i)return!1;for(let r of(t<n.length&&(n=n.slice(0,t)),i)){if(!r.replace||!r.regExp)continue;let t=n.match(r.regExp);if(null===t)continue;let i=t.index||0,o=i+t[0].length,l;return 0===i?[l]=e.splitText(o):[,l]=e.splitText(i,o),l&&(l.selectNext(0,0),r.replace(l,t)),!0}return!1}(h,e,i)||function(e,t,r){let n=e.getTextContent(),i=t-1,o=n[i],l=r[o
2];if(l)for(let t of l){let{tag:r}=t,l=r.length,a=i-l+1;if(l>1&&!J(n,a,r,0,l)||" "===n[a-1])continue;let s=n[i+1];if(!1===t.intraword&&s&&!F.test(s))continue;let c=e,d=W(n,a,r),f=c;for(;d<0&&(f=f.getPreviousSibling())&&!(0,u.wH$)(f);)if((0,u.kFe)(f)){let e=f.getTextContent();c=f,d=W(e,e.length,r)}if(d<0||c===e&&d+l===a)continue;let h=c.getTextContent();if(d>0&&h[d-1]===o)continue;let p=h[d-1];if(!1===t.intraword&&p&&!F.test(p))continue;let m=e.getTextContent(),y=m.slice(0,a)+m.slice(i+1);e.setTextContent(y);let v=c===e?y:h;c.setTextContent(v.slice(0,d)+v.slice(d+l));let _=(0,u.vJq)(),b=(0,u.uTE)();(0,u.n1P)(b);let S=i-l*(c===e?2:1)+1;for(let r of(b.anchor.set(c.__key,d,"text"),b.focus.set(e.__key,S,"text"),t.format))b.hasFormat(r)||b.formatText(r);for(let e of(b.anchor.set(b.focus.key,b.focus.offset,b.focus.type),t.format))b.hasFormat(e)&&b.toggleFormat(e);return(0,u.I2P)(_)&&(b.format=_.format),!0}}(h,e,n))})})}var G=/^[\t ]*$/,Y=/^(\s*)(\d+)\.\s/,Z=/^(\s*)[-*+]\s/,X=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,Q=/^(#{1,6})\s/,ee=/^>\s/,et=/^[ \t]*(\\`\\`\\`|```)(\w+)?/,er=/[ \t]*(\\`\\`\\`|```)$/,en=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,ei=/^\|(.+)\|\s?$/,eo=/^(\| ?:?-*:? ?)+\|\s?$/,el=/^[ \t]*<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,ea=/^[ \t]*<\/[a-z_][\w-]*\s*>/i,es=e=>(t,r,n)=>{let i=t.getPreviousSibling(),o=t.getNextSibling(),l=(0,c.i)("check"===e?"x"===n[3]:void 0);if((0,c.HY)(o)&&o.getListType()===e){let e=o.getFirstChild();null!==e?e.insertBefore(l):o.append(l),t.remove()}else if((0,c.HY)(i)&&i.getListType()===e)i.append(l),t.remove();else{let r=(0,c.DE)(e,"number"===e?Number(n[2]):void 0);r.append(l),t.replace(r)}l.append(...r),l.select(0,0);let a=function(e){let t=e.match(/\t/g),r=e.match(/ /g),n=0;return t&&(n+=t.length),r&&(n+=Math.floor(r.length/4)),n}(n[1]);a&&l.setIndent(a)},eu=(e,t,r)=>{let n=[],i=e.getChildren(),o=0;for(let l of i)if((0,c.Mz)(l)){if(1===l.getChildrenSize()){let e=l.getFirstChild();if((0,c.HY)(e)){n.push(eu(e,t,r+1));continue}}let i=" ".repeat(4*r),a=e.getListType(),s="number"===a?`${e.getStart()+o}. `:"check"===a?`- [${l.getChecked()?"x":" "}] `:"- ";n.push(i+s+t(l)),o++}return n.join(` 3`)},ec=[{type:"element",dependencies:[d.jL],export:(e,t)=>{if(!(0,d.Pi)(e))return null;let r=Number(e.getTag().slice(1));return"#".repeat(r)+" "+t(e)},regExp:Q,replace:(n=e=>{let t="h"+e[1].length;return(0,d.fi)(t)},(e,t,r)=>{let i=n(r);i.append(...t),e.replace(i),i.select(0,0)})},{type:"element",dependencies:[d.dJ],export:(e,t)=>{if(!(0,d.jd)(e))return null;let r=t(e).split(` 4`),n=[];for(let e of r)n.push("> "+e);return n.join(` 5`)},regExp:ee,replace:(e,t,r,n)=>{if(n){let r=e.getPreviousSibling();if((0,d.jd)(r)){r.splice(r.getChildrenSize(),0,[(0,u.WKo)(),...t]),r.select(0,0),e.remove();return}}let i=(0,d.xi)();i.append(...t),e.replace(i),i.select(0,0)}},{type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?eu(e,t,0):null,regExp:Z,replace:es("bullet")},(c.v5,c.YW,es("check"),{type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?eu(e,t,0):null,regExp:Y,replace:es("number")}),{type:"text-format",format:["code"],tag:"`"},{type:"text-format",format:["bold","italic"],tag:"***"},{type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},{type:"text-format",format:["bold"],tag:"**"},{type:"text-format",format:["bold"],intraword:!1,tag:"__"},{type:"text-format",format:["highlight"],tag:"=="},{type:"text-format",format:["italic"],tag:"*"},{type:"text-format",format:["italic"],intraword:!1,tag:"_"},{type:"text-format",format:["strikethrough"],tag:"~~"}];function ed(e,t=ec,r,n=!1,i=!0){let o=n?e:function(e,t){let r=e.split(` 6`),n=!1,i=[],o=0;for(let e=0;e<r.length;e++){let l=r[e],a=i[i.length-1];if(en.test(l)){i.push(l);continue}if(er.test(l)){0===o&&(n=!0),1===o&&(n=!1),o>0&&o--,i.push(l);continue}if(et.test(l)){n=!0,o++,i.push(l);continue}if(n){i.push(l);continue}G.test(l)||G.test(a)||!a||Q.test(a)||Q.test(l)||ee.test(l)||Y.test(l)||Z.test(l)||X.test(l)||ei.test(l)||eo.test(l)||!t||el.test(l)||ea.test(l)||el.test(a)||ea.test(a)||er.test(a)?i.push(l):i[i.length-1]=a+" "+l.trim()}return i.join(` 7`)}(e,i);return(function(e,t=!1){let r=j(e),n=function(e){let t={},r={},n=[];for(let i of e){let{tag:e}=i;t[e]=i;let o=e.replace(/([*^+])/g,"\\$1");n.push(o),1===e.length?r[e]=RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`):r[e]=RegExp(`(?<!\\\\)(${o})((\\\\${o})?.*?[^\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?!\\\\)`)}return{fullMatchRegExpByTag:r,openTagsRegExp:RegExp(`(?<![\\\\])(${n.join("|")})`,"g"),transformersByTag:t}}(r.textFormat);return(e,i)=>{let o=e.split(` 8`),l=o.length,a=i||(0,u.NiT)();a.clear();for(let e=0;e<l;
8e++){let t=o[e],[i,l]=function(e,t,r,n){for(let i of r){let{handleImportAfterStartMatch:r,regExpEnd:o,regExpStart:l,replace:a}=i,s=e[t]?.match(l);if(!s)continue;if(r){let o=r({lines:e,rootNode:n,startLineIndex:t,startMatch:s,transformer:i});if(null===o)continue;if(o)return o}let u="object"==typeof o&&"regExp"in o?o.regExp:o,c=o&&"object"==typeof o&&"optional"in o?o.optional:!o,d=t,f=e.length;for(;d<f;){let r=u?e[d]?.match(u):null;if(!r&&(!c||c&&d<f-1)||r&&t===d&&r.index===s.index){d++;continue}let i=[];if(r&&t===d)i.push(e[t].slice(s[0].length,-r[0].length));else for(let n=t;n<=d;n++){let o=e[n];if(n===t){let e=o.slice(s[0].length);i.push(e)}else if(n===d&&r){let e=o.slice(0,-r[0].length);i.push(e)}else i.push(o)}if(!1!==a(n,null,s,r,i,!0))return[!0,d];break}}return[!1,t]}(o,e,r.multilineElement,a);if(i){e=l;continue}!function(e,t,r,n,i){let o=(0,u.sTu)(e),l=(0,u.lJ7)();for(let{regExp:n,replace:i}of(l.append(o),t.append(l),r)){let t=e.match(n);if(t&&(o.setTextContent(e.slice(t[0].length)),!1!==i(l,[o],t,!0)))break}if(function e(t,r,n){let i=function(e,t){let r=function(e,t){let r=e.match(t.openTagsRegExp);if(null==r)return null;for(let n of r){let r=n.replace(/^\s/,""),i=t.fullMatchRegExpByTag[r];if(null==i)continue;let o=e.match(i),l=t.transformersByTag[r];if(null!=o&&null!=l){if(!1!==l.intraword)return o;let{index:t=0}=o,r=e[t-1],n=e[t+o[0].length];if((!r||F.test(r))&&(!n||F.test(n)))return o}}return null}(e.getTextContent(),t);if(!r)return null;let n=r.index||0,i=n+r[0].length,o=t.transformersByTag[r[1]];return{endIndex:i,match:r,startIndex:n,transformer:o}}(t,r),o=function(e,t){let r,n,i,o;for(let l of t){if(!l.replace||!l.importRegExp)continue;let t=e.getTextContent().match(l.importRegExp);if(!t)continue;let a=t.index||0,s=l.getEndIndex?l.getEndIndex(e,t):a+t[0].length;!1!==s&&(void 0===r||void 0===n||a<r&&s>n)&&(r=a,n=s,i=l,o=t)}return void 0===r||void 0===n||void 0===i||void 0===o?null:{endIndex:n,match:o,startIndex:r,transformer:i}}(t,n);if(i&&o&&(i.startIndex<=o.startIndex&&i.endIndex>=o.endIndex?o=null:i=null),i){let o=function(e,t,r,n,i){let o=e.getTextContent(),l,a,s;if(i[0]===o?s=e:0===t?[s,l]=e.splitText(r):[a,s,l]=e.splitText(t,r),s.setTextContent(i[2]),n)for(let e of n.format)s.hasFormat(e)||s.toggleFormat(e);
8return{nodeAfter:l,nodeBefore:a,transformedNode:s}}(t,i.startIndex,i.endIndex,i.transformer,i.match);o.nodeAfter&&(0,u.kFe)(o.nodeAfter)&&!o.nodeAfter.hasFormat("code")&&e(o.nodeAfter,r,n),o.nodeBefore&&(0,u.kFe)(o.nodeBefore)&&!o.nodeBefore.hasFormat("code")&&e(o.nodeBefore,r,n),o.transformedNode&&(0,u.kFe)(o.transformedNode)&&!o.transformedNode.hasFormat("code")&&e(o.transformedNode,r,n)}else if(o){var l,a,s,c;let i,d,f,h=(l=o.startIndex,a=o.endIndex,s=o.transformer,c=o.match,(0===l?[f,i]=t.splitText(a):[d,f,i]=t.splitText(l,a),s.replace)?{nodeAfter:i,nodeBefore:d,transformedNode:(f?s.replace(f,c):void 0)||void 0}:null);if(!h)return;h.nodeAfter&&(0,u.kFe)(h.nodeAfter)&&!h.nodeAfter.hasFormat("code")&&e(h.nodeAfter,r,n),h.nodeBefore&&(0,u.kFe)(h.nodeBefore)&&!h.nodeBefore.hasFormat("code")&&e(h.nodeBefore,r,n),h.transformedNode&&(0,u.kFe)(h.transformedNode)&&!h.transformedNode.hasFormat("code")&&e(h.transformedNode,r,n)}let d=t.getTextContent().replace(/\\([*_`~])/g,"$1");t.setTextContent(d)}(o,n,i),l.isAttached()&&e.length>0){let e=l.getPreviousSibling();if((0,u.bSg)(e)||(0,d.jd)(e)||(0,c.HY)(e)){let t=e;if((0,c.HY)(e)){let r=e.getLastDescendant();t=null==r?null:(0,u.BtT)(r,c.Mz)}null!=t&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[(0,u.WKo)(),...l.getChildren()]),l.remove())}}}(t,a,r.element,n,r.textMatch)}for(let e of a.getChildren())!t&&U(e)&&a.getChildrenSize()>1&&e.remove();null!==(0,u.vJq)()&&a.selectStart()}})(t,n)(o,r)}function ef(e=ec,t,r=!1){return(function(e,t=!1){let r=j(e),n=[...r.multilineElement,...r.element],i=!t,o=r.textFormat.filter(e=>1===e.format.length).sort((e,t)=>e.format.includes("code")&&!t.format.includes("code")?1:!e.format.includes("code")&&t.format.includes("code")?-1:0);return e=>{let t=[],l=(e||(0,u.NiT)()).getChildren();return l.forEach((e,a)=>{let s=function(e,t,r,n){for(let i of t){if(!i.export)continue;let t=i.export(e,e=>z(e,r,n));if(null!=t)return t}return(0,u.ff4)(e)?z(e,r,n):(0,u.Cyw)(e)?e.getTextContent():null}(e,n,o,r.textMatch);null!=s&&t.push(i&&a>0&&!U(e)&&!U(l[a-1])?` 9`.concat(s):s)}),t.join(` 10`)}})(e,r)(t)}},32916:()=>{},33063:()=>{},33518:e=>{e.exports={glow:"OTPInput_glow__seToz",root:"OTPInput_root__XRBGJ",focus:"OTPInput_focus__VWqiz",disabled:"OTPInput_disabled___Fa6o",expandGlow:"OTPInput_expandGlow__fw3RY"}},33670:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(57960),i=r(24851);let o=(e,t)=>{let r;if(!e)return null;if(-1===t.indexOf("."))return(0,n.r)(e,!0);let o={},l=t.split(".");return r=Number.isNaN(Number(l[l.length-1]))?t.substring(0,t.lastIndexOf(".")+1):`${t}.`,Object.keys(e).forEach(t=>{e[t]?.disableFormData||0!==t.indexOf(r)||(o[t.replace(r,"")]=e[t]?.value)}),(0,i.s)(o)}},34266:(e,t,r)=>{e.exports=r(88892)},35254:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,_J:()=>l,j1:()=>a});let n=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"},l={RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},a=o.RFC1738;o.RFC3986;let s=o.RFC3986},35433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=n.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}};t.default={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${o[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,n._)`${r} ${o[t].fail} ${i} || isNaN(${r})`)}}},35509:(e,t,r)=>{"use strict";r.d(t,{DF:()=>l,Gu:()=>i,Mx:()=>o});var n=r(34023);let i=(0,n.createContext)(null);function o(e,t){let r=null;return null!=e&&(r=e[1]),{getTheme:function(){return null!=t?t:null!=r?r.getTheme():null}}}function l(){let e=(0,n.useContext)(i);return null==e&&function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",8),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${8}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},36542:(e,t)=>{"use strict";function r(e){let t,r=e.length,n=0,i=0;for(;i<r;)n++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r&&(64512&(t=e.charCodeAt(i)))==56320&&i++;return n}
10Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},36644:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(52252);function i(e){var t=function(e,t){if("object"!==(0,n._)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==(0,n._)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n._)(t)?t:String(t)}},37281:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});let n=JSON;if(void 0===i)var i={};let o=i||{};i.JSOX=o,o.version="1.2.121";let l="function"==typeof BigInt,a=["ab","u8","cu8","s8","u16","s16","u32","s32","u64","s64","f32","f64"],s=null,u=null,c=[ArrayBuffer,Uint8Array,Uint8ClampedArray,Int8Array,Uint16Array,Int16Array,Uint32Array,Int32Array,null,null,Float32Array,Float64Array],d={true:!0,false:!1,null:null,NaN:NaN,Infinity:1/0,undefined:void 0};class f extends Date{constructor(e,t){super(e),this.ns=t||0}}o.DateNS=f;let h=[];function p(){let e=h.pop();return e||(e={context:0,current_proto:null,current_class:null,current_class_field:0,arrayType:-1,valueType:0,elements:null}),e}function m(e){h.push(e)}o.updateContext=function(){};let y=[];o.escape=function(e){let t,r="";if(!e)return e;for(t=0;t<e.length;t++)('"'==e[t]||"\\"==e[t]||"`"==e[t]||"'"==e[t])&&(r+="\\"),r+=e[t];return r};let v=new WeakMap,_=new Map,b=new Map,S=[];o.reset=function(){v=new WeakMap,_=new Map,b=new Map,S=[]},o.begin=function(e,t){let r,n={name:null,value_type:0,string:"",contains:null,className:null},i={line:1,col:1},o=0,s=new Map,u=0,d=!0,h=!1,v=!1,_=null,S=null,w,x={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t,this.length++},pop(){let e=this.last;return(this.last=e.prior)||(this.first=null),e.next=this.saved,this.last&&(this.last.next=null),e.next||(e.first=null),this.saved=e,this.length--,e.node},length:0},E=[],C={},T=null,N=null,A=0,O=-1,R=0,P=0,M=!1,I=!1,D=!1,$=!1,L=!1,j={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t},shift(){let e=this.first;return e?((this.first=e.next)||(this.last=null),e.next=this.saved,this.saved=e,e.node):null},unshift(e){let t=this.saved;this.saved=t.next,t.node=e,t.next=this.first,t.prior=null,this.first||(this.last=t),this.first=t}},F=null,B=!1,U=!1,z=!1,K=!1,q=!1,V=!1,W=!1,J=0,H=0,G=!1,Y=!1,Z=!1;function X(e){throw Error(`${e} at ${o} [${i.line}:${i.col}]`)}return{fromJSOX(e,t,r){if(s.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t||(t=function(){}),t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");s.set(e,{protoCon:t.prototype.constructor,cb:r})},registerFromJSOX(e,t){throw Error("registerFromJSOX is deprecated, please update to use fromJSOX instead:"+e+t.toString())},finalError(){0!==P&&(1===P&&X("Comment began at end of document"),3===P&&X("Open comment '/*' is missing close at end of document"),4===P&&X("Incomplete '/* *' close at end of document")),B&&X("Incomplete string")},value(){this.finalError();let e=_;return _=void 0,e},reset(){u=0,d=!0,j.last&&(j.last.next=j.save),j.save=j.first,j.first=j.last=null,x.last&&(x.last.next=x.save),x.length=0,x.save=j.first,x.first=x.last=null,w=void 0,R=0,E=[],C={},T=null,N=null,A=0,n.value_type=0,n.name=null,n.string="",n.className=null,i.line=1,i.col=1,v=!1,P=0,G=!1,B=!1,z=!1,K=!1,Y=!1},usePrototype(e,t){C[e]=t},write(r){let n;if("string"!=typeof r&&void 0!==r&&(r=String(r)),!d)throw Error("Parser is still in an error state, please reset before resuming");for(n=this._write(r,!1);n>0&&("function"==typeof t&&function e(r,n){let i,o,l=r[n];if(l&&"object"==typeof l)for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(void 0!==(o=e(l,i))?l[i]=o:delete l[i]);return t.call(r,n,l)}({"":_},""),_=e(_),!(n<2));n=this._write());},parse(e,t){"string"!=typeof e&&(e=String(e)),this.reset();let r=this._write(e,!0);if(r>0){let e=this.value();if(void 0===e&&r>1)throw Error("Pending value could not complete");return"function"==typeof t?function e(r,n){let i,o,l=r[n];if(l&&"object"==typeof l)for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(void 0!==(o=e(l,i))?l[i]=o:delete l[i]);return t.call(r,n,l)}({"":e},""):e}this.finalError()},_write(e,t){let C,X,Q,ee=0;function et(e,t){throw Error(`${e} '${String.fromCodePoint(t)}
10' unexpected at ${o} (near '${Q.substr(o>4?o-4:0,o>4?3:o-1)}[${String.fromCodePoint(t)}]${Q.substr(o,10)}') [${i.line}:${i.col}]`)}function er(){n.value_type=0,n.string="",n.contains=null}function en(){let e=null;switch(n.value_type){case 5:if(!(n.string.length>13)&&(13!=n.string.length||!(n[0]>"2"))||Y||L||$||I||(Z=!0),Z)if(l)return BigInt(n.string);else throw Error("no builtin BigInt()",0);if(Y){let e=n.string.match(/\.(\d\d\d\d*)/),t=e?e[1]:null;if(!t||t.length<4){let e=new Date(n.string);return isNaN(e.getTime())&&et("Bad Date format",C),e}{let e=t.substr(3);for(;e.length<6;)e+="0";let r=new f(n.string,Number(e));return isNaN(r.getTime())&&et("Bad DateNS format"+r+r.getTime(),C),r}}return(v?-1:1)*Number(n.string);case 4:if(n.className){if((e=s.get(n.className))||(e=b.get(n.className)),e&&e.cb)return n.className=null,e.cb.call(n.string);throw Error("Double string error, no constructor for: new "+n.className+"("+n.string+")")}return n.string;case 2:return!0;case 3:return!1;case 7:case 8:return NaN;case 9:return-1/0;case 10:return 1/0;case 1:return null;case -1:case 12:return;case 6:if(n.className&&((e=s.get(n.className))||(e=b.get(n.className)),n.className=null,e&&e.cb))return n.contains=e.cb.call(n.contains);return n.contains;case 13:if(O>=0){let e;if(e=n.contains.length?k(n.contains[0]):k(n.string),0===O)return O=-1,e;{let t=new c[O](e);return O=-1,t}}if(-2===O){let e,t=S,r=n.contains.length;for(e=0;e<r;e++){let i=n.contains[e],o=t[i];if(!o){let i=x.first,l=0;for(;i&&l<r&&l<x.length;){let r=n.contains[l];if(!i.next||r!==i.next.node.name)break;if(i.next)if("number"==typeof r){let e=i.next.node.elements;if(e&&r>=e.length)if(l===x.length-1){console.log("This is actually at the current object so use that",l,n.contains,w),o=w,l++,i=i.next;break}else{if(i.next.next&&r===e.length){o=i.next.next.node.elements,i=i.next,l++,t=o;continue}o=w,l++;break}}else if(r!==i.next.node.name){o=i.next.node.elements[r],e=l;break}else o=i.next.next?i.next.next.node.elements:w;else o=o[r];i=i.next,l++}e=l<r?l-1:l}if("object"==typeof o&&!o)throw Error("Path did not resolve properly:"+n.contains+" at "+i+"("+e+")");t=o}return O=-3,t}if(n.className&&((e=s.get(n.className))||(e=b.get(n.className)),n.className=null,e&&e.cb))return e.cb.call(n.contains);return n.contains;default:console.log("Unhandled value conversion.",n)}}function ei(){if(-3==O){6===n.value_type&&w.push(n.contains),O=-1;return}12===n.value_type?(w.push(void 0),delete w[w.length-1]):w.push(en()),er()}function eo(){if(-3===O&&13===n.value_type){er(),O=-1;return}if(12===n.value_type)return;!n.name&&N&&(n.name=N.fields[A++]);let e=en();T&&T.protoDef&&T.protoDef.cb?(e=T.protoDef.cb.call(w,n.name,e))&&(w[n.name]=e):w[n.name]=e,er()}function el(e){if(0!==u){switch(v&&et("Negative outside of quotes, being converted to a string (would lose count of leading '-' characters)",e),u){case 31:switch(n.value_type){case 2:n.string+="true";break;case 3:n.string+="false";break;case 1:n.string+="null";break;case 10:n.string+="Infinity";break;case 9:n.string+="-Infinity",et("Negative outside of quotes, being converted to a string",e);break;case 8:n.string+="NaN";break;case 7:n.string+="-NaN",et("Negative outside of quotes, being converted to a string",e);break;case -1:n.string+="undefined";break;case 4:case 0:break;default:console.log("Value of type "+n.value_type+" is not restored...")}break;case 1:n.string+="t";break;case 2:n.string+="tr";break;case 3:n.string+="tru";break;case 5:n.string+="f";break;case 6:n.string+="fa";break;case 7:n.string+="fal";break;case 8:n.string+="fals";break;case 9:n.string+="n";break;case 10:n.string+="nu";break;case 11:n.string+="nul";break;case 12:n.string+="u";break;case 13:n.string+="un";break;case 14:n.string+="und";break;case 15:n.string+="unde";break;case 16:n.string+="undef";break;case 17:n.string+="undefi";break;case 18:n.string+="undefin";break;case 19:n.string+="undefine";break;case 20:n.string+="N";break;case 21:n.string+="Na";break;case 22:n.string+="I";break;case 23:n.string+="In";break;case 24:n.string+="Inf";break;case 25:n.string+="Infi";break;case 26:n.string+="Infin";break;case 27:n.string+="Infini";break;case 28:n.string+="Infinit";break;case 0:case 29:case 30:break;
10case 32:et("String-keyword recovery fail (after whitespace)",e)}n.value_type=4,u<29&&(u=31)}else u=31,n.value_type=4;if(123==e)eu();else if(91==e)ec();else if(44==e);else{if(32==e||13==e||10==e||9==e||65279==e||8232==e||8233==e)return;44==e||125==e||93==e||58==e?et("Invalid character near identifier",e):n.string+=r}}function ea(e){let t=0;for(;0==t&&o<Q.length;){r=Q.charAt(o);let l=Q.codePointAt(o++);if(l>=65536&&(r+=Q.charAt(o),o++),i.col++,l==e)z?(W?et("Incomplete hexidecimal sequence",l):V?et("Incomplete long unicode sequence",l):q&&et("Incomplete unicode sequence",l),K?(K=!1,t=1):n.string+=r,z=!1):t=1;else if(z){if(q){if(125==l){n.string+=String.fromCodePoint(J),q=!1,V=!1,z=!1;continue}J*=16,l>=48&&l<=57?J+=l-48:l>=65&&l<=70?J+=l-65+10:l>=97&&l<=102?J+=l-97+10:(et("(escaped character, parsing hex of \\u)",l),t=-1,q=!1,z=!1);continue}if(W||V){if(0===H&&123===l){q=!0;continue}if(H<2||V&&H<4){if(J*=16,l>=48&&l<=57)J+=l-48;else if(l>=65&&l<=70)J+=l-65+10;else if(l>=97&&l<=102)J+=l-97+10;else{et(V?"(escaped character, parsing hex of \\u)":"(escaped character, parsing hex of \\x)",l),t=-1,W=!1,z=!1;continue}H++,V?4==H&&(n.string+=String.fromCodePoint(J),V=!1,z=!1):2==H&&(n.string+=String.fromCodePoint(J),W=!1,z=!1);continue}}switch(l){case 13:K=!0,i.col=1;continue;case 8232:case 8233:i.col=1;case 10:K?K=!1:i.col=1,i.line++;break;case 116:n.string+=" ";break;case 98:n.string+="\b";break;case 110:n.string+="\n";break;case 114:n.string+="\r";break;case 102:n.string+="\f";break;case 118:n.string+="\v";break;case 48:n.string+="\0";break;case 120:W=!0,H=0,J=0;continue;case 117:V=!0,H=0,J=0;continue;default:n.string+=r}z=!1}else 92===l?z?(n.string+="\\",z=!1):(z=!0,J=0,H=0):(K&&(K=!1,i.line++,i.col=2),n.string+=r)}return t}function es(){let e;for(;(e=o)<Q.length;){r=Q.charAt(e);let l=Q.codePointAt(o++);if(l>=256){i.col-=o-e,o=e;break}if(95!=l)if(i.col++,l>=48&&l<=57)D&&(L=!0),n.string+=r;else if(45==l||43==l)0!=n.string.length&&(!D||$||L)?(v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0):(45!=l||D||(v=!v),n.string+=r,$=!0);else if(78==l){if(0==u){U=!1,u=20;return}et("fault while parsing number;",l);break}else if(73==l){if(0==u){U=!1,u=22;return}et("fault while parsing number;",l);break}else if(58==l&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(84==l&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(90==l&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(46==l)if(I||M||D){d=!1,et("fault while parsing number;",l);break}else n.string+=r,I=!0;else if(110==l){Z=!0;break}else if(M&&(l>=95&&l<=102||l>=65&&l<=70))n.string+=r;else if(120==l||98==l||111==l||88==l||66==l||79==l)if(M||"0"!=n.string){d=!1,et("fault while parsing number;",l);break}else M=!0,n.string+=r;else if(101==l||69==l)if(D){d=!1,et("fault while parsing number;",l);break}else n.string+=r,D=!0;else if(32==l||13==l||10==l||9==l||47==l||35==l||44==l||125==l||93==l||123==l||91==l||34==l||39==l||96==l||58==l){i.col-=o-e,o=e;break}else{t&&(d=!1,et("fault while parsing number;",l));break}}t||o!=Q.length?(U=!1,n.value_type=5,0==R&&(G=!0)):U=!0}function eu(){let e,t=2,r=null,i={};if(u>0&&u<29&&el(123),e=ed(),0==R)29==u||31==u&&(e||n.string.length)?(e&&e.protoDef&&e.protoDef.protoCon&&(i=new e.protoDef.protoCon),e&&(e.protoDef||!n.string)||((r=E.find(e=>e.name===n.string))?h?(r.fields.length=0,t=4):(i=new r.protoCon,t=5):(E.push(r={name:n.string,protoCon:e&&e.protoDef&&e.protoDef.protoCon||(function(){}).constructor,fields:[]}),t=4),h=!1),N=r,u=0):u=29;else if(29==u||1===R||3===R||5==R)if(0!=u||4==n.value_type){if(e&&e.protoDef)i=new e.protoDef.protoCon;else if(r=E.find(e=>e.name===n.string))t=5,i={};else{function o(){}s.set(n.string,{protoCon:o.prototype.constructor,cb:null}),i=new o}u=0}else u=0;else if(2==R&&0==u)return et("fault while parsing; getting field name unexpected ",C),d=!1,!1;let l=p();return n.value_type=6,0===R?w=i:1==R?n.name=w.length:(3==R||5==R)&&(!n.name&&N&&(n.name=N.fields[A++]),w[n.name]=i),l.context=R,l.elements=w,l.name=n.name,l.current_proto=T,l.current_class=N,l.current_class_field=A,l.valueType=n.value_type,l.arrayType=O,l.className=n.className,n.className=null,n.name=null,T=e,N=r,A=0,w=i,S||(S=w),x.push(l),er(),R=t,!0}function ec(){if(u>0&&u<29&&el(91),31==u&&n.string.length){let e=a.findIndex(e=>e===n.string);u=0,e>
10=0?(O=e,n.className=n.string,n.string=null):"ref"===n.string?(n.className=null,O=-2):s.get(n.string)||b.get(n.string)?n.className=n.string:et(`Unknown type '${n.string}' specified for array`,C)}else if(2==R||29==u||30==u)return et("Fault while parsing; while getting field name unexpected",C),d=!1,!1;{let e=p();n.value_type=13;let t=[];if(0==R)w=t;else if(1==R)-1==O&&w.push(t),n.name=w.length;else if(3==R)if(n.name||(console.log("This says it's resolved......."),O=-3),T&&T.protoDef)if(T.protoDef.cb){let e=T.protoDef.cb.call(w,n.name,t);void 0!==e&&(t=w[n.name]=e)}else w[n.name]=t;else w[n.name]=t;e.context=R,e.elements=w,e.name=n.name,e.current_proto=T,e.current_class=N,e.current_class_field=A,e.valueType=n.value_type,e.arrayType=-1==O?-3:O,e.className=n.className,O=-1,n.className=null,n.name=null,T=null,N=null,A=0,w=t,S||(S=t),x.push(e),er(),R=1}return!0}function ed(){let e={protoDef:null,cls:null};return(e.protoDef=s.get(n.string))?n.className||(n.className=n.string,n.string=null):(e.protoDef=b.get(n.string))&&!n.className&&(n.className=n.string,n.string=null),n.string&&(e.cls=E.find(e=>e.name===n.string),!e.protoDef&&!e.cls),e.protoDef||e.cls?e:null}if(!d)return -1;if(e&&e.length){let t;(t=y.pop())?t.n=0:t={buf:null,n:0},(X=t).buf=e,j.push(X)}else U&&(U=!1,n.value_type=5,0==R&&(G=!0),ee=1),0!==R&&et("Unclosed object at end of stream.",C);for(;d&&(X=j.shift());){if(o=X.n,Q=X.buf,B){let e=ea(F);e<0?d=!1:e>0&&(B=!1,d&&(n.value_type=4))}for(U&&es();!G&&d&&o<Q.length;){if(r=Q.charAt(o),(C=Q.codePointAt(o++))>=65536&&(r+=Q.charAt(o),o++),i.col++,P){if(1==P)if(42==C)P=3;else{if(47!=C)return et("fault while parsing;",C);P=2}else 2==P?(10==C||13==C)&&(P=0):3==P?42==C&&(P=4):P=3*(47!=C);continue}switch(C){case 35:P=2;break;case 47:P=1;break;case 123:eu();break;case 91:ec();break;case 58:if(5==R)u=0,n.name=n.string,n.string="",n.value_type=0;else if(2==R||4==R)if(4==R){if(!Object.keys(w).length){console.log("This is a full object, not a class def...",n.className);let e=()=>{};s.set(x.last.node.current_class.name,{protoCon:e.prototype.constructor,cb:null}),w=new e,R=3,n.name=n.string,u=0,n.string="",n.value_type=0,console.log("don't do default;s do a revive...")}}else 0!=u&&31!=u&&29!=u&&30!=u&&el(32),u=0,n.name=n.string,n.string="",R=2===R?3:6,n.value_type=0;else 0==R?(console.log("Override colon found, allow class redefinition",R),h=!0):(1==R?et("(in array, got colon out of string):parsing fault;",C):3==R?et("String unexpected",C):et("(outside any object, got colon out of string):parsing fault;",C),d=!1);break;case 125:if(31==u&&(u=0),4==R)if(N){n.string&&N.fields.push(n.string),er();let e=x.pop();R=0,u=0,n.name=e.name,w=e.elements,N=e.current_class,A=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,S=null,m(e)}else et("State error; gathering class fields, and lost the class",C);else if(2==R||5==R){0!=n.value_type&&(N&&(n.name=N.fields[A++]),eo()),n.value_type=6,T&&T.protoDef&&(console.log("SOMETHING SHOULD AHVE BEEN REPLACED HERE??",T),console.log("The other version only revives on init"),w=new T.protoDef.cb(w,void 0,void 0)),n.contains=w,n.string="";let e=x.pop();R=e.context,n.name=e.name,w=e.elements,N=e.current_class,T=e.current_proto,A=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==R&&(G=!0)}else if(3==R){0===n.value_type&&et("Fault while parsing; unexpected",C),eo(),n.value_type=6,n.contains=w,u=0;let e=x.pop();R=e.context,n.name=e.name,w=e.elements,T=e.current_proto,N=e.current_class,A=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==R&&(G=!0)}else et("Fault while parsing; unexpected",C),d=!1;v=!1;break;case 93:if(u>=30&&(u=0),1==R){0!=n.value_type&&ei(),n.contains=w;{let e=x.pop();n.name=e.name,n.className=e.className,R=e.context,w=e.elements,T=e.current_proto,N=e.current_class,A=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,m(e)}n.value_type=13,0==R&&(G=!0)}else et(`bad context ${R}; fault while parsing`,C),d=!1;v=!1;break;case 44:u<30&&0!=u&&el(C),(31==u||29==u)&&(u=0),4==R?N?(N.fields.push(n.string),n.string="",u=29):et("State error; gathering class fields, and lost the class",C):2==R?N?(n.name=N.fields[A++],0!=n.value_type&&(eo(),er()
10)):(n.string||n.value_type)&&et("State error; comma in field name and/or lost the class",C):5==R?(N?(-3==O||n.name||(n.name=N.fields[A++]),0!=n.value_type&&(-3!=O&&eo(),er())):0!=n.value_type&&(eo(),er()),n.name=null):1==R?(0==n.value_type&&(n.value_type=12),ei(),er(),u=0):3==R&&0!=n.value_type?(R=2,0!=n.value_type&&(eo(),er()),u=0):(d=!1,et("bad context; excessive commas while parsing;",C)),v=!1;break;default:switch(C){default:if(0==R||3==R&&29==u||2==R||29==u||4==R)switch(C){case 96:case 34:case 39:0==u||29==u?(n.string.length&&(console.log("IN ARRAY AND FIXING?"),n.className=n.string,n.string=""),ea(C)?n.value_type=4:(F=C,B=!0)):et("fault while parsing; quote not at start of field name",C);break;case 10:i.line++,i.col=1;case 13:case 32:case 8232:case 8233:case 9:case 65279:if(0===R&&31===u){u=0,0===R&&(G=!0);break}if(0===u||30===u)0==R&&n.value_type&&(G=!0);else if(29===u){if(0===R){u=0,G=!0;break}n.string.length&&console.log("STEP TO NEXT TOKEN."),u=30}else d=!1,et("fault while parsing; whitepsace unexpected",C);break;default:if(0==u&&(C>=48&&C<=57||43==C||46==C||45==C)){M=!1,D=!1,Y=!1,Z=!1,$=!1,L=!1,I=!1,n.string=r,X.n=o,es();break}if(30===u&&(d=!1,et("fault while parsing; character unexpected",C)),0===u){u=29,n.value_type=4,n.string+=r;break}if(0==n.value_type)0!==u&&31!==u&&el(C);else{if(31===u||29===u){n.string+=r;break}if(2==R){if(29==u){n.string+=r;break}et("Multiple values found in field name",C)}3==R&&et("String unexpected",C)}}else 0==u&&(C>=48&&C<=57||43==C||46==C||45==C)?(M=!1,D=!1,Y=!1,Z=!1,$=!1,L=!1,I=!1,n.string=r,X.n=o,es()):0==n.value_type?0!=u?el(C):(u=31,n.string+=r,n.value_type=4):2==R?et("Multiple values found in field name",C):3==R?(4!=n.value_type&&((6==n.value_type||13==n.value_type)&&et("String unexpected",C),el(C)),30==u?ed()?n.string=r:et("String unexpected",C):31==u?n.string+=r:et("String unexpected",C)):1==R&&(30==u?(n.className||(n.className=n.string,n.string=""),n.string+=r):31==u&&(n.string+=r));break;case 96:case 34:case 39:n.string&&(n.className=n.string),n.string="",ea(C)?(n.value_type=4,u=31):(F=C,B=!0);break;case 10:i.line++,i.col=1;case 32:case 9:case 13:case 8232:case 8233:case 65279:if(31==u){if(0==R){u=0,G=!0;break}else if(3==R){u=32;break}else if(2==R){u=30;break}else if(1==R){u=30;break}}0==u||30==u||(29==u?n.string.length&&(u=30):u<31&&el(C));break;case 116:0==u?u=1:27==u?u=28:el(C);break;case 114:1==u?u=2:el(C);break;case 117:2==u?u=3:9==u?u=10:0==u?u=12:el(C);break;case 101:3==u?(n.value_type=2,u=31):8==u?(n.value_type=3,u=31):14==u?u=15:18==u?u=19:el(C);break;case 110:0==u?u=9:12==u?u=13:17==u?u=18:22==u?u=23:25==u?u=26:el(C);break;case 100:13==u?u=14:19==u?(n.value_type=-1,u=31):el(C);break;case 105:16==u?u=17:24==u?u=25:26==u?u=27:el(C);break;case 108:10==u?u=11:11==u?(n.value_type=1,u=31):6==u?u=7:el(C);break;case 102:0==u?u=5:15==u?u=16:23==u?u=24:el(C);break;case 97:5==u?u=6:20==u?u=21:el(C);break;case 115:7==u?u=8:el(C);break;case 73:0==u?u=22:el(C);break;case 78:0==u?u=20:21==u?(n.value_type=v?7:8,v=!1,u=31):el(C);break;case 121:28==u?(n.value_type=v?9:10,v=!1,u=31):el(C);break;case 45:0==u?v=!v:el(C);break;case 43:0!==u&&el(C)}}if(G){31==u&&(u=0);break}}if(o==Q.length){var ef;ef=X,y.push(ef),B||U||2==R?ee=0:0==R&&(0!=n.value_type||_)&&(G=!0,ee=1)}else X.n=o,j.unshift(X),ee=2;if(G){S=null;break}}return d?(G&&0!=n.value_type&&(u=0,_=en(),v=!1,n.string="",n.value_type=0),G=!1,ee):-1}}};let w=[Object.freeze(o.begin())],x=0;function E(){return this&&this.valueOf()}o.parse=function(e,t){let r,n=x++;w.length<=n&&w.push(Object.freeze(o.begin())),r=w[n],"string"!=typeof e&&(e=String(e)),r.reset();let i=r._write(e,!0);if(i>0){let e=r.value();if(void 0===e&&i>1)throw Error("Pending value could not complete");return e="function"==typeof t?function e(r,n){let i,o,l=r[n];if(l&&"object"==typeof l)for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(void 0!==(o=e(l,i))?l[i]=o:delete l[i]);return t.call(r,n,l)}({"":e},""):e,x--,e}r.finalError()},o.defineClass=function(e,t){let r,n=Object.keys(t);for(let e=1;e<n.length;e++){let t,r;(t=n[e-1])>(r=n[e])&&(n[e-1]=r,n[e]=t,e?e-=2:e--)}S.push(r={name:e,tag:n.toString(),proto:Object.getPrototypeOf(t),fields:Object.keys(t)});for(let e=1;e<r.fields.length;e++)if(r.fields[e]<r.fields[e-1]){let t=r.fields[e-1];r.fields[e-1]=r.fields[e],r.fields[e]=t,e>1&&(e-=2)}r.proto===Object.getPrototypeOf({})&&(r.proto=null)},o.toJSOX=o.registerToJSOX=function(e,t,r){if(t.prototype&&t.prototype===Object.prototype){let n=Object.keys(t).toString();if(_.get(n))throw Error("Existing toJSOX has been registered for object type");_.set(n,{external:!0,name:e,cb:r})}else{if(v.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");v.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}},o.fromJSOX=function(e,t,r){if(t||(t=(function(){}).prototype),b.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");b.set(e,{protoCon:t.prototype.constructor,cb:r})},o.registerFromJSOX=function(e,t){throw Error("deprecated; please adjust code to use fromJSOX:"+e+t.toString())},o.addType=function(e,t,r,n){o.toJSOX(e,t,r),o.fromJSOX(e,t,n)},o.registerToFrom=function(e,t){throw Error("registerToFrom deprecated; please use addType:"+e+t.toString())},o.stringifier=function(){let e=[],t='"',r=new WeakMap,i=[],l=[],a=new WeakMap,c=new Map,h=null,p=[],m=!1;function y(e){return"string"==typeof e&&""===e?'""':"number"!=typeof e||isNaN(e)?e.includes("\uFEFF")||e in d||/[0-9\-]/.test(e[0])||/[\n\r\t #\[\]{}()<>\~!+*/.:,\-"'`]/.test(e)?t+o.escape(e)+t:e:"'"+e.toString()+"'"}v.get(Object.prototype)||(v.set(Object.prototype,{external:!1,name:Object.prototype.constructor.name,cb:null}),v.set(Date.prototype,{external:!1,name:"Date",cb:function(){let e;if(-621672192e5===this.getTime())return"0000-01-01T00:00:00.000Z";let t=-this.getTimezoneOffset(),r=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return this.getFullYear()+"-"+r(this.getMonth()+1)+"-"+r(this.getDate())+"T"+r(this.getHours())+":"+r(this.getMinutes())+":"+r(this.getSeconds())+("."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":""))+e+(t>=0?"+":"-")+r(t/60)+":"+r(t%60)}}),v.set(f.prototype,{external:!1,name:"DateNS",cb:function(){let e,t,r=-this.getTimezoneOffset(),n=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+("."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":"")+e+(((t=Math.floor(Math.abs(this.ns)))<1e5?"0":"")+(t<1e4?"0":"")+(t<1e3?"0":"")+(t<100?"0":""))+(t<10?"0":""))+t+(r>=0?"+":"-")+n(r/60)+":"+n(r%60)}}),v.set(Boolean.prototype,{external:!1,name:"Boolean",cb:E}),v.set(Number.prototype,{external:!1,name:"Number",cb:function(){return isNaN(this)?"NaN":isFinite(this)?String(this):this<0?"-Infinity":"Infinity"}}),v.set(String.prototype,{external:!1,name:"String",cb:function(){return'"'+o.escape(E.apply(this))+'"'}}),"function"==typeof BigInt&&v.set(BigInt.prototype,{external:!1,name:"BigInt",cb:function(){return this+"n"}}),v.set(ArrayBuffer.prototype,{external:!0,name:"ab",cb:function(){return"["+y(N(this))+"]"}}),v.set(Uint8Array.prototype,{external:!0,name:"u8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint8ClampedArray.prototype,{external:!0,name:"uc8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int8Array.prototype,{external:!0,name:"s8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint16Array.prototype,{external:!0,name:"u16",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int16Array.prototype,{external:!0,name:"s16",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint32Array.prototype,{external:!0,name:"u32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int32Array.prototype,{external:!0,name:"s32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float32Array.prototype,{external:!0,name:"f32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(RegExp.prototype,u={external:!0,name:"regex",cb:function(e,t){return"'"+escape(this.source)+"'"}}),b.set("regex",{protoCon:RegExp,cb:function(e,t){return new RegExp(this)}}),v.set(Map.prototype,u={external:!0,name:"map",cb:null}),b.set("map",{protoCon:Map,cb:function(e,t){return e?void this.set(e,t):this}}),v.set(Array.prototype,s={external:!1,name:Array.prototype.constructor.name,cb:null}));let w={defineClass(t,r){let n,i=Object.keys(r);for(let e=1;e<i.length;e++){let t,r;(t=i[e-1])>(r=i[e])&&(i[e-1]=r,i[e]=t,e?e-=2:e--)}
10e.push(n={name:t,tag:i.toString(),proto:Object.getPrototypeOf(r),fields:Object.keys(r)});for(let e=1;e<n.fields.length;e++)if(n.fields[e]<n.fields[e-1]){let t=n.fields[e-1];n.fields[e-1]=n.fields[e],n.fields[e]=t,e>1&&(e-=2)}n.proto===Object.getPrototypeOf({})&&(n.proto=null)},setDefaultObjectToJSOX(e){h=e},isEncoding:e=>!!l.find((t,r)=>t===e&&r<l.length-1),encodeObject(e){return h?h.apply(e,[this]):e},stringify:(t,n,o)=>(function(t,n,o){let d,f,b;if(void 0===t)return"undefined";if(null===t)return;let E=typeof o,T=typeof n;if(d="",f="","number"===E)for(b=0;b<o;b+=1)f+=" ";else"string"===E&&(f=o);if(n&&"function"!==T&&("object"!==T||"number"!=typeof n.length))throw Error("JSOX.stringify");i.length=0,r=new WeakMap;let N=function t(r,o){var b=d;let E=s.cb,T=u.cb;s.cb=function(){let e=[],r=i.length;for(let n=0;n<this.length;n+=1)i[r]=n,e[n]=t(n,this)||"null";return i.length=r,l.length=r,0===e.length?"[]":d?"[\n"+d+e.join(",\n"+d)+"\n"+b+"]":"["+e.join(",")+"]"},u.cb=function(){let e={tmp:null},r="{",n=!0;for(let[o,l]of this){e.tmp=l;let a=i.length;i[a]=o,r+=(n?"":",")+y(o)+":"+t("tmp",e),i.length=a,n=!1}return r+"}"};let N=function(r,o){let s,u,E,T,N,k,A,O=i.length,R=!0,P=o[r],M="object"==typeof P;M&&null!==P&&h&&!p.find(e=>e===P)&&(p.push(P),l[O]=P,R=!1,M="object"==typeof(P=h.apply(P,[w])),p.pop(),l.length=O,M="object"==typeof P);let I=null!=P&&Object.getPrototypeOf(P),D=I&&(a.get(I)||v.get(I)||null),$=!D&&null!=P&&(c.get(Object.keys(P).toString())||_.get(Object.keys(P).toString())||null);"function"==typeof n&&(R=!1,P=n.call(o,r,P));let L=D&&D.cb||$&&$.cb;if(null!=P&&"object"==typeof P&&"function"==typeof L)if(p.find(e=>e===P))E=x(P);else{if("object"==typeof P&&(E=x(P)))return E;p.push(P),l[O]=P,P=L.call(P,w),R=!1,p.pop(),D&&D.name&&"string"==typeof P&&"-"!==P[0]&&(P[0]<"0"||P[0]>"9")&&'"'!==P[0]&&"'"!==P[0]&&"`"!==P[0]&&"["!==P[0]&&"{"!==P[0]&&(P=" "+P),l.length=O}else if("object"==typeof P&&(E=x(P)))return E;switch(typeof P){case"bigint":return P+"n";case"string":{P=R?y(P):P;let t="";if(""===r&&(t=e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+S.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+(d?"\n":"")),D&&D.external)return t+D.name+P;if($&&$.external)return t+$.name+P;return t+P}case"number":case"boolean":case"null":return String(P);case"object":if(E)return"ref"+E;if(!P)return"null";if(d+=f,N=null,k=[],n&&"object"==typeof n){for(s=0,T=n.length,N=C(P,n);s<T;s+=1)"string"==typeof n[s]&&(u=n[s],i[O]=u,void 0!==(E=t(u,P))&&(N?k.push(E):k.push(y(u)+(d?": ":":")+E)));i.splice(O,1)}else{N=C(P);let e=[];for(u in P)if((!m||Object.prototype.propertyIsEnumerable.call(P,u))&&Object.prototype.hasOwnProperty.call(P,u)){let t;for(t=0;t<e.length;t++)if(e[t]>u){e.splice(t,0,u);break}t==e.length&&e.push(u)}for(let r=0;r<e.length;r++)u=e[r],Object.prototype.hasOwnProperty.call(P,u)&&(i[O]=u,void 0!==(E=t(u,P))&&(N?k.push(E):k.push(y(u)+(d?": ":":")+E)));i.splice(O,1)}A=""===r?(e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")||S.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":""))+(d?"\n":""):"",D&&D.external&&(A+=y(D.name));let j=null;return N&&(j=y(N.name)),E=A+(0===k.length?"{}":d?(N?j:"")+"{\n"+d+k.join(",\n"+d)+"\n"+b+"}":(N?j:"")+"{"+k.join(",")+"}"),d=b,E}}(r,o);return s.cb=E,u.cb=T,N}("",{"":t});return S.length=0,N})(t,n,o),setQuote(e){t=e},registerToJSOX(e,t,r){return this.toJSOX(e,t,r)},toJSOX(e,t,r){if(t.prototype&&t.prototype!==Object.prototype){if(a.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");a.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}else{let n=Object.keys(t).toString();if(c.get(n))throw Error("Existing toJSOX has been registered for object type");c.set(n,{external:!0,name:e,cb:r})}},get ignoreNonEnumerable(){return m},set ignoreNonEnumerable(val){m=val}};return w;function x(e){if(null===e)return;let t=r.get(e);return t?"ref"+t:void r.set(e,n.stringify(i))}function C(t,r){let n,i,o=Object.getPrototypeOf(t);if(i=e.find(e=>{if(e.proto&&e.proto===o)return!0}))return i;if(e.length||S.length){if(r)n=(r=r.map(e=>"string"==typeof e?e:void 0)).toString();else{let e=Object.keys(t);for(let t=1;t<e.length;t++){let r,n;(r=e[t-1])>(n=e[t])&&(e[t-1]=n,e[t]=r,t?t-=2:t--)}n=e.toString()}(i=e.find(e=>{if(e.tag===n)return!0}))||(i=S.find(e=>{if(e.tag===n)return!0}))}return i}};let C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_",T={"~":-1,"=":-1,$:62,_:63,"+":62,"-":62,".":62,"/":63,",":63};for(let e=0;e<C.length;e++)T[C[e]]=e;function N(e){let t,r,n,i,o,l="",a=new Uint8Array(e),s=a.byteLength,u=s%3,c=s-u;for(let e=0;e<c;e+=3)t=(0xfc0000&(o=a[e]<<16|a[e+1]<<8|a[e+2]))>>18,r=(258048&o)>>12,n=(4032&o)>>6,i=63&o,l+=C[t]+C[r]+C[n]+C[i];return 1==u?(t=(252&(o=a[c]))>>2,r=(3&o)<<4,l+=C[t]+C[r]+"=="):2==u&&(t=(64512&(o=a[c]<<8|a[c+1]))>>10,r=(1008&o)>>4,n=(15&o)<<2,l+=C[t]+C[r]+C[n]+"="),l}function k(e){let t,r=new ArrayBuffer(e.length%4==1?((e.length+3)/4|0)*3-3:e.length%4==2?((e.length+3)/4|0)*3-2:e.length%4==3?((e.length+3)/4|0)*3-1:-1==T[e[e.length-3]]?((e.length+3)/4|0)*3-3:-1==T[e[e.length-2]]?((e.length+3)/4|0)*3-2:-1==T[e[e.length-1]]?((e.length+3)/4|0)*3-1:((e.length+3)/4|0)*3),n=new Uint8Array(r),i=e.length+3>>2;for(t=0;t<i;t++){let r=T[e[4*t]],i=4*t+1<e.length?T[e[4*t+1]]:-1,o=i>
10=0&&4*t+2<e.length?T[e[4*t+2]]:-1,l=o>=0&&4*t+3<e.length?T[e[4*t+3]]:-1;i>=0&&(n[3*t+0]=r<<2|i>>4),o>=0&&(n[3*t+1]=i<<4|o>>2&15),l>=0&&(n[3*t+2]=o<<6|63&l)}return r}Object.freeze(T),o.stringify=function(e,t,r){return o.stringifier().stringify(e,t,r)},[[0,256,[0xffd9ff,0xff6aff,130048,3670016,0,0xfffff8,0xffffff,8388607]]].map(e=>({firstChar:e[0],lastChar:e[1],bits:e[2]}))},37605:(e,t,r)=>{"use strict";r.d(t,{q:()=>f});var n=r(21815);let i=Object.prototype.hasOwnProperty,o=Array.isArray,l={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,comma:!1,decodeDotInKeys:!1,decoder:n.D4,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t){let r,s={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,c);for(r=0;r<d.length;++r){let e,u,c=d[r],f=c.indexOf("]="),h=-1===f?c.indexOf("="):f+1;-1===h?(e=t.decoder(c,l.decoder,"key"),u=t.strictNullHandling?null:""):(e=t.decoder(c.slice(0,h),l.decoder,"key"),u=n.F7(a(c.slice(h+1),t),function(e){return t.decoder(e,l.decoder,"value")})),c.indexOf("[]=")>-1&&(u=o(u)?[u]:u),t.comma&&o(u)&&u.length>t.arrayLimit&&(u=n.kg([],u,t.arrayLimit,t.plainObjects));let p=i.call(s,e);p&&"combine"===t.duplicates?s[e]=n.kg(s[e],u,t.arrayLimit,t.plainObjects):p&&"last"!==t.duplicates||(s[e]=u)}return s},u=function(e,t,r,i){let o=i?t:a(t,r);for(let t=e.length-1;t>=0;--t){let i,l=e[t];if("[]"===l&&r.parseArrays)i=n.Rj(o)?o:r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:n.kg([],o,r.arrayLimit,r.plainObjects);else{i=r.plainObjects?Object.create(null):{};let e="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,t=r.decodeDotInKeys?e.replace(/%2E/g,"."):e,n=parseInt(t,10);r.parseArrays||""!==t?!isNaN(n)&&l!==t&&String(n)===t&&n>=0&&r.parseArrays&&n<=r.arrayLimit?(i=[])[n]=o:"__proto__"!==t&&(i[t]=o):i={0:o}}o=i}return o},c=function(e,t,r,n){if(!e)return;let o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,c=[];if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}let d=0;for(;r.depth>0&&null!==(a=l.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),u(c,t,r,n)},d=function(e){if(!e)return l;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");let t=void 0===e.duplicates?l.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||l.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:l.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:l.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l.arrayLimit,comma:"boolean"==typeof e.comma?e.comma:l.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:l.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:l.decoder,delimiter:"string"==typeof e.delimiter||n.gd(e.delimiter)?e.delimiter:l.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}};function f(e,t){let r=d(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};let i="string"==typeof e?s(e,r):e,o=r.plainObjects?Object.create(null):{},l=Object.keys(i);for(let t=0;t<l.length;++t){let a=l[t],s=c(a,i[a],r,"string"==typeof e);o=n.h1(o,s,r)}return!0===r.allowSparse?o:n.oE(o)}},38270:(e,t,r)=>{"use strict";r.d(t,{Wrapper:()=>l});
10var n=r(11241),i=r(94799),o=r(67331);r(34023);var l=function(e){var t,r,l=(0,n.c)(9),a=e.baseClass,s=e.children,u=e.className,c=(0,o.useNav)(),d=c.hydrated,f=c.navOpen,h=c.shouldAnimate,p=f&&"".concat(a,"--nav-open"),m=h&&"".concat(a,"--nav-animate"),y=d&&"".concat(a,"--nav-hydrated");l[0]!==a||l[1]!==u||l[2]!==p||l[3]!==m||l[4]!==y?(t=[a,u,p,m,y].filter(Boolean),l[0]=a,l[1]=u,l[2]=p,l[3]=m,l[4]=y,l[5]=t):t=l[5];var v=t.join(" ");return l[6]!==s||l[7]!==v?(r=(0,i.jsx)("div",{className:v,children:s}),l[6]=s,l[7]=v,l[8]=r):r=l[8],r}},39444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792),o=r(36542);t.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:l,it:a}=e,s="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===a.opts.unicode?(0,n._)`${r}.length`:(0,n._)`${(0,i.useFunc)(e.gen,o.default)}(${r})`;e.fail$data((0,n._)`${u} ${s} ${l}`)}}},40108:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r){var i,o;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return -1===o}if(!i||"object"==typeof t){for(i in o=0,t)if(n.call(t,i)&&++o&&!n.call(r,i)||!(i in r)||!e(t[i],r[i]))return!1;return Object.keys(r).length===o}}return t!=t&&r!=r}});var n=Object.prototype.hasOwnProperty},40243:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(27470),i=r(78300),o=r(25526),l=r(94799),a=r(67331),s=r(34023),u=r(19749);function c(e){var t=e.apiRoute,r=e.back,c=e.length,d=e.serverURL,f=(0,i._)((0,s.useState)(!1),2),h=f[0],p=f[1],m=(0,s.useRef)(null),y=(0,s.useCallback)(function(e){return(0,n._)(function(){var r,n;return(0,o.YH)(this,function(i){switch(i.label){case 0:return e.preventDefault(),e.stopPropagation(),p(!0),r=new FormData(e.target),[4,fetch("".concat(d).concat(t,"/verify-totp"),{body:JSON.stringify(Object.fromEntries(r)),credentials:"include",headers:{"Content-Type":"application/json"},method:"post"})];case 1:return[4,i.sent().json()];case 2:if(!(n=i.sent()).ok&&n.message)return a.toast.error(n.message),[2,!1];return[2,!0]}})})()},[d,t]),v=(0,s.useCallback)(function(e){y(e).then(function(e){e&&(r?location.replace(r):window.history.back()),p(!1)}).catch(function(e){console.error(e),a.toast.error("Something went wrong"),p(!1)})},[r,y]);return(0,l.jsx)("form",{onSubmit:v,ref:m,children:(0,l.jsx)(u.A,{disabled:h,length:c,name:"token",onFilled:function(){m.current&&m.current.requestSubmit()}})})}},40306:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=e=>e?.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},40482:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,l=o[i];if(!e(t[l],r[l]))return!1}return!0}return t!=t&&r!=r}},41076:(e,t,r)=>{"use strict";r.d(t,{L:()=>function e(t=[],r){let{i18n:o,keepPresentationalFields:l,labelPrefix:a,moveSubFieldsToTop:s=!1,pathPrefix:u}="boolean"==typeof r?{keepPresentationalFields:r}:r??{};return t.reduce((t,c)=>{if("group"===c.type&&"fields"in c)if(s){let r="name"in c&&"string"==typeof c.name&&!!c.name,i="name"in c?c.name:void 0,d="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,f=a?`${a} > ${d??i}`:d??i,h="name"in c&&c.name?u?`${u}.${c.name}`:c.name:u;t.push(c,...e(c.fields,{i18n:o,keepPresentationalFields:l,labelPrefix:r?f:a,moveSubFieldsToTop:s,pathPrefix:r?h:u}))}else(0,i.Z7)(c)?t.push(c):t.push(...e(c.fields,r));else if("tabs"===c.type&&"tabs"in c)return[...t,...c.tabs.reduce((t,c)=>{if(!(0,i.pz)(c))return[...t,...e(c.fields,r)];if(!s)return[...t,{...c,type:"tab"}];{let r="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,i=a?`${a} > ${r??c.name}`:r??c.name,d=c.name?u?`${u}.${c.name}`:c.name:u;return[...t,...e(c.fields,{i18n:o,keepPresentationalFields:l,labelPrefix:i,moveSubFieldsToTop:s,pathPrefix:d})]}},[])];else if((0,i.sd)(c)&&["collapsible","row"].includes(c.type))t.push(...e(c.fields,r));
10else if((0,i.Z7)(c)||l&&(0,i.aO)(c)){if("id"===c.name&&void 0!==a)return t;let e="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,r="name"in c?c.name:void 0,i=void 0!==u||void 0!==a;t.push({...c,...s&&i&&{accessor:u&&r?`${u}.${r}`:r??"",labelWithPrefix:a?`${a} > ${e??r}`:e??r}})}return t},[])}});var n=r(52223),i=r(89093)},41240:(e,t,r)=>{"use strict";r.d(t,{Group:()=>d});var n=r(11241),i=r(94799),o=r(52223),l=r(50614);r(34023);var a=r(19095),s=r(63281),u=r(81749),c="group-diff",d=function(e){var t,r=(0,n.c)(9),d=e.baseVersionField,f=e.comparisonValue,h=e.field,p=e.locale,m=e.parentIsLocalized,y=e.versionValue,v=(0,l.d)().i18n,_=(0,a.I)().selectedLocales;return r[0]!==d.fields||r[1]!==h||r[2]!==v||r[3]!==p||r[4]!==m||r[5]!==_||r[6]!==f||r[7]!==y?(t=(0,i.jsx)("div",{className:c,children:(0,i.jsx)(s.$,{fields:h.fields,Label:"label"in h&&h.label&&"function"!=typeof h.label?(0,i.jsxs)("span",{children:[p&&(0,i.jsx)("span",{className:"".concat(c,"__locale-label"),children:p}),(0,o.s)(h.label,v)]}):(0,i.jsxs)("span",{className:"".concat(c,"__locale-label ").concat(c,"__locale-label--no-label"),children:["<",v.t("version:noLabelGroup"),">"]}),locales:_,parentIsLocalized:m||h.localized,valueFrom:f,valueTo:y,children:(0,i.jsx)(u.RenderVersionFieldsToDiff,{versionFields:d.fields})})}),r[0]=d.fields,r[1]=h,r[2]=v,r[3]=p,r[4]=m,r[5]=_,r[6]=f,r[7]=y,r[8]=t):t=r[8],t}},42392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792);function o(e,t){let r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:t,parentSchema:r,it:l}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(l,'"if" without "then" and "else" is ignored');let a=o(l,"then"),s=o(l,"else");if(!a&&!s)return;let u=t.let("valid",!0),c=t.name("_valid");if(function(){let t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),a&&s){let r=t.let("ifClause");e.setParams({ifClause:r}),t.if(c,d("then",r),d("else",r))}else a?t.if(c,d("then")):t.if((0,n.not)(c),d("else"));function d(r,i){return()=>{let o=e.subschema({keyword:r},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,(0,n._)`${r}`):e.setParams({ifClause:r})}}e.pass(u,()=>e.error(!0))}}},42901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(40482);n.code='require("ajv/dist/runtime/equal").default',t.default=n},43510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;let n=r(5462),i=r(19792),o=r(72792),l=r(19792);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}function s(e,t,r){return(0,n._)`${a(e)}.call(${t}, ${r})`}
10function u(e,t,r,i){let o=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(o,(0,n.not)(s(e,t,r))):o}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){let{gen:r,data:i,it:o}=e;r.if(u(r,i,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,n._)`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,o){return(0,n.or)(...i.map(i=>(0,n.and)(u(e,t,i,r.ownProperties),(0,n._)`${o} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=s,t.propertyInData=function(e,t,r,i){let o=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return i?(0,n._)`${o} && ${s(e,t,r)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter(r=>!(0,i.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:l,errorPath:a},it:s},u,c,d){let f=d?(0,n._)`${e}, ${t}, ${i}${l}`:t,h=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,a)],[o.default.parentData,s.parentData],[o.default.parentDataProperty,s.parentDataProperty],[o.default.rootData,o.default.rootData]];s.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let p=(0,n._)`${f}, ${r.object(...h)}`;return c!==n.nil?(0,n._)`${u}.call(${c}, ${p})`:(0,n._)`${u}(${p})`};let d=(0,n._)`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,n._)`${"new RegExp"===o.code?d:(0,l.useFunc)(e,o)}(${r}, ${i})`})},t.validateArray=function(e){let{gen:t,data:r,keyword:o,it:l}=e,a=t.name("valid");if(l.allErrors){let e=t.let("valid",!0);return s(()=>t.assign(e,!1)),e}return t.var(a,!0),s(()=>t.break()),a;function s(l){let s=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,s,r=>{e.subschema({keyword:o,dataProp:r,dataPropType:i.Type.Num},a),t.if((0,n.not)(a),l)})}},t.validateUnion=function(e){let{gen:t,schema:r,keyword:o,it:l}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some(e=>(0,i.alwaysValidSchema)(l,e))&&!l.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((r,i)=>{let l=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},s);t.assign(a,(0,n._)`${a} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,n.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}},43789:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=s(e),l=o[0],a=o[1],u=new i((l+a)*3/4-a),c=0,d=a>0?l-4:l;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],l=0,a=n-i;l<a;l+=16383)o.push(function(e,t,n){for(var i,o=[],l=t;l<n;l+=3)i=(e[l]<<16&0xff0000)+(e[l+1]<<8&65280)+(255&e[l+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,l,l+16383>a?a:l+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,a=o.length;l<a;++l)r[l]=o[l],n[o.charCodeAt(l)]=l;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},44107:(e,t,r)=>{for(var n=r(69538),i=r(7564).hp,o=Math.floor(0xffffff*Math.random()),l=p.index=parseInt(0xffffff*Math.random(),10),a=(void 0===n||"number"!=typeof n.pid?Math.floor(1e5*Math.random()):n.pid)%65535,s=(()=>{try{return _Buffer}catch(e){try{return i}catch(e){return null}}})(),u=function(e){return!!(null!=e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},c=[],d=0;d<256;d++)c[d]=(d<=15?"0":"")+d.toString(16);var f=RegExp("^[0-9a-fA-F]{24}$"),h=[];for(d=0;d<10;)h[48+d]=d++;for(;d<16;)h[55+d]=h[87+d]=d++;function p(e){if(!(this instanceof p))return new p(e);if(e&&(e instanceof p||"ObjectID"===e._bsontype))return e;if(this._bsontype="ObjectID",null==e||"number"==typeof e){this.id=this.generate(e);return}var t=p.isValid(e);if(t||null==e)if(t&&"string"==typeof e&&24===e.length)return p.createFromHexString(e);else if(null!=e&&12===e.length)this.id=e;else if(null!=e&&"function"==typeof e.toHexString)return e;else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}e.exports=p,p.default=p,p.createFromTime=function(e){var t,r;return new p((t=8,(8===(r=(r=e=parseInt(e,10)%0xffffffff).toString(16)).length?r:"00000000".substring(r.length,t)+r)+"0000000000000000"))},p.createFromHexString=function(e){if(void 0===e||null!=e&&24!==e.length)throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");for(var t="",r=0;r<24;)t+=String.fromCharCode(h[e.charCodeAt(r++)]<<4|h[e.charCodeAt(r++)]);return new p(t)},p.isValid=function(e){return null!=e&&("number"==typeof e||("string"==typeof e?12===e.length||24===e.length&&f.test(e):e instanceof p||(u(e)?p.isValid(e.toString("hex")):"function"==typeof e.toHexString&&!!s&&(e.id instanceof s||"string"==typeof e.id)&&(12===e.id.length||24===e.id.length&&f.test(e.id)))))},p.prototype={constructor:p,toHexString:function(){if(!this.id||!this.id.length)throw Error("invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is ["+JSON.stringify(this.id)+"]");if(24===this.id.length)return this.id;
10if(u(this.id))return this.id.toString("hex");for(var e="",t=0;t<this.id.length;t++)e+=c[this.id.charCodeAt(t)];return e},equals:function(e){if(e instanceof p)return this.toString()===e.toString();if("string"==typeof e&&p.isValid(e)&&12===e.length&&u(this.id))return e===this.id.toString("binary");if("string"==typeof e&&p.isValid(e)&&24===e.length)return e.toLowerCase()===this.toHexString();if("string"==typeof e&&p.isValid(e)&&12===e.length)return e===this.id;if(null!=e&&(e instanceof p||e.toHexString))return e.toHexString()===this.toHexString();else return!1},getTimestamp:function(){var e,t=new Date;return e=u(this.id)?this.id[3]|this.id[2]<<8|this.id[1]<<16|this.id[0]<<24:this.id.charCodeAt(3)|this.id.charCodeAt(2)<<8|this.id.charCodeAt(1)<<16|this.id.charCodeAt(0)<<24,t.setTime(1e3*Math.floor(e)),t},generate:function(e){"number"!=typeof e&&(e=~~(Date.now()/1e3)),e=parseInt(e,10)%0xffffffff;var t=l=(l+1)%0xffffff;return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e,o>>16&255,o>>8&255,255&o,a>>8&255,255&a,t>>16&255,t>>8&255,255&t)}};var m=Symbol&&Symbol.for&&Symbol.for("nodejs.util.inspect.custom")||"inspect";p.prototype[m]=function(){return"ObjectID("+this+")"},p.prototype.toJSON=p.prototype.toHexString,p.prototype.toString=p.prototype.toHexString},44941:(e,t,r)=>{"use strict";var n=r(34023).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},45367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;let r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},45508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},45520:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n=e=>"string"==typeof e||"number"==typeof e?e:e.id},45562:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(78300),i=r(94799),o=r(34023);function l(e){var t=e.button,r=e.secret,l=(0,n._)((0,o.useState)(!1),2),a=l[0],s=l[1];return a?r:(0,i.jsx)("button",{className:t.className,onClick:function(){return s(!0)},type:"button",children:t.text})}},45572:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true}
vendor: 5,607 bytes, line 10
10,"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},45644:()=>{},45693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;let n=r(83740),i=r(98347),o=r(78788),l=r(98347),a=r(14625),s=r(86462),u=r(79004),c=r(5462),d=r(72792),f=r(56548),h=r(19792),p=r(83575);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){var l;i.code.es5?e.func(t,(0,c._)`${d.default.data}, ${d.default.valCxt}`,n.$async,()=>{var t,n;e.code((0,c._)`"use strict"; ${y(r,i)}`),t=e,n=i,t.if(d.default.valCxt,()=>{t.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),t.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),t.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),t.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{t.var(d.default.instancePath,(0,c._)`""`),t.var(d.default.parentData,(0,c._)`undefined`),t.var(d.default.parentDataProperty,(0,c._)`undefined`),t.var(d.default.rootData,d.default.data),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`{}`)}),e.code(o)}):e.func(t,(0,c._)`${d.default.data}, ${(l=i,(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${l.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`)}`,n.$async,()=>e.code(y(r,i)).code(o))}function y(e,t){let r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${r} */`:c.nil}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function _(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function S(e,t){if(e.opts.jtd)return x(e,[],!1,t);let r=(0,i.getSchemaTypes)(e.schema),n=(0,i.coerceAndCheckDataType)(e,r);x(e,r,!n,t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(!0===i.$comment)e.code((0,c._)`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){let r=(0,c.str)`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code((0,c._)`${d.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function x(e,t,r,n){var i,a,s,u;let{gen:f,schema:p,data:m,allErrors:y,opts:v,self:_}=e,{RULES:b}=_;if(p.$ref&&(v.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(p,b)))return void f.block(()=>k(e,"$ref",b.all.$ref.definition));function S(i){(0,o.shouldUseGroup)(p,i)&&(i.type?(f.if((0,l.checkDataType)(i.type,m,v.strictNumbers)),E(e,i),1===t.length&&t[0]===i.type&&r&&(f.else(),(0,l.reportTypeError)(e)),f.endIf()):E(e,i),y||f.if((0,c._)`${d.default.errors} === ${n||0}`))}v.jtd||(i=e,a=t,!i.schemaEnv.meta&&i.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{C(e.dataTypes,t)||T(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let r=[];for(let n of e.dataTypes)C(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)}}(i,a),i.opts.allowUnionTypes||(s=i,(u=a).length>1&&!(2===u.length&&u.includes("null"))&&T(s,"use allowUnionTypes to allow union type keyword")),function(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){let{type:r}=i.definition;r.length&&!r.some(e=>{var r,n;return r=t,n=e,r.includes(n)||"number"===n&&r.includes("integer")})&&T(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(i,i.dataTypes))),f.block(()=>{for(let e of b.rules)S(e);S(b.post)})}function E(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),r.block(()=>{for(let r of t.rules)(0,o.shouldUseRule)(n,r)&&k(e,r.keyword,r.definition,t.type)})}function C(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function T(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}
10" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){if(_(e)&&(b(e),v(e)))return void function(e){let{schema:t,opts:r,gen:n}=e;m(e,()=>{r.$comment&&t.$comment&&w(e),function(e){let{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,c._)`${r}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}(e),S(e),function(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,c._)`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw((0,c._)`new ${i}(${d.default.vErrors})`)):(t.assign((0,c._)`${n}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof c.Name&&e.assign((0,c._)`${t}.props`,r),n instanceof c.Name&&e.assign((0,c._)`${t}.items`,n)}(e),t.return((0,c._)`${d.default.errors} === 0`))}(e)})}(e);m(e,()=>(0,n.topBoolOrEmptySchema)(e))};class N{constructor(e,t,r){if((0,s.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",R(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,c.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=c.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,c.or)((0,c._)`${n} === undefined`,t)),e!==c.nil&&r.assign(e,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,c.or)(function(){if(r.length){if(!(t instanceof c.Name))throw Error("ajv implementation error");let e=Array.isArray(r)?r:[r];return(0,c._)`${(0,l.checkDataTypes)(e,t,i.opts.strictNumbers,l.DataType.Wrong)}`}return c.nil}(),function(){if(n.validateSchema){let r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,c._)`!${r}(${t})`}return c.nil}())}subschema(e,t){let r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return!function(e,t){if(_(e)&&(b(e),v(e))){var r=e,i=t;let{schema:n,gen:o,opts:l}=r;l.$comment&&n.$comment&&w(r),function(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(r),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(r);let a=o.const("_errs",d.default.errors);S(r,a),o.var(i,(0,c._)`${a} === ${d.default.errors}`);return}(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){let{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){let{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function k(e,t,r,n){let i=new N(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,s.funcKeywordCode)(i,r):"macro"in r?(0,s.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,s.funcKeywordCode)(i,r)}t.KeywordCxt=N;let A=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function R(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!A.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{let l=O.exec(e);if(!l)throw Error(`Invalid JSON-pointer: ${e}`);let s=+l[1];
10if("#"===(i=l[2])){if(s>=t)throw Error(a("property/index",s));return n[t-s]}if(s>t)throw Error(a("data",s));if(o=r[t-s],!i)return o}let l=o;for(let e of i.split("/"))e&&(o=(0,c._)`${o}${(0,c.getProperty)((0,h.unescapeJsonPointer)(e))}`,l=(0,c._)`${l} && ${o}`);return l;function a(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=R},45875:(e,t,r)=>{"use strict";r.d(t,{NavWrapper:()=>l});var n=r(11241),i=r(94799),o=r(67331);r(34023);var l=function(e){var t,r,l=(0,n.c)(11),a=e.baseClass,s=e.children,u=(0,o.useNav)(),c=u.hydrated,d=u.navOpen,f=u.navRef,h=u.shouldAnimate,p=d&&"".concat(a,"--nav-open"),m=h&&"".concat(a,"--nav-animate"),y=c&&"".concat(a,"--nav-hydrated");l[0]!==a||l[1]!==p||l[2]!==m||l[3]!==y?(t=[a,p,m,y].filter(Boolean),l[0]=a,l[1]=p,l[2]=m,l[3]=y,l[4]=t):t=l[4];var v=t.join(" "),_=!d||void 0,b="".concat(a,"__scroll");return l[5]!==s||l[6]!==f||l[7]!==v||l[8]!==_||l[9]!==b?(r=(0,i.jsx)("aside",{className:v,inert:_,children:(0,i.jsx)("div",{className:b,ref:f,children:s})}),l[5]=s,l[6]=f,l[7]=v,l[8]=_,l[9]=b,l[10]=r):r=l[10],r}},46331:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(12671),i=r(35509),o=r(17249),l=r(34023);
10function a({hasCellMerge:e=!0,hasCellBackgroundColor:t=!0,hasTabHandler:r=!0,hasHorizontalScroll:n=!1,hasNestedTables:a=!1,hasFitNestedTables:u=!1}){let[c]=(0,i.DF)();(0,l.useEffect)(()=>{(0,o.FY)(c)!==n&&((0,o.hi)(c,n),c.registerNodeTransform(o.HA,()=>{})())},[c,n]);let d=s(a),f=s(u);return(0,l.useEffect)(()=>(0,o.xT)(c,{hasFitNestedTables:f,hasNestedTables:d}),[c,d,f]),(0,l.useEffect)(()=>(0,o.Ej)(c,r),[c,r]),(0,l.useEffect)(()=>{if(!e)return(0,o.nq)(c)},[c,e]),(0,l.useEffect)(()=>{if(!t)return c.registerNodeTransform(o.B9,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})},[c,t,e]),null}function s(e){let[t]=(0,l.useState)(()=>(0,n.vP)(e));return t.peek()!==e&&(t.value=e),t}},46887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(59739);n.code='require("ajv/dist/runtime/uri").default',t.default=n},47247:()=>{},47696:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n=e=>{let t=e.split(" ");return RegExp(t.reduce((e,r,n)=>{let i=r.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return`${e}(?=.*(?:(?:[^\\p{L}\\p{N}])|^).*${i}.*(?=[^\\p{L}\\p{N}]|$))${n+1===t.length?".+":""}`},""),"i")}},48270:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n=(e,t)=>0===t.length||t.map(e=>e.replace("*","")).some(t=>e.startsWith(t))},48290:(e,t,r)=>{"use strict";r.d(t,{VercelBlobClientUploadHandler:()=>eN});var n,i,o,l=r(27470),a=r(25526),s=r(94799),u=r(67331),c=r(83390),d=r(34023),f=r(96525),h={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},p={classes:h,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":h.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":h.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":h.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":h.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":h.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":h.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":h.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":h.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":h.SUCCESSFUL,NO_CONTENT:2
1004,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":h.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":h.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":h.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":h.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":h.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":h.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":h.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":h.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":h.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":h.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":h.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":h.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":h.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":h.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":h.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":h.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":h.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":h.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":h.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":h.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":h.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":h.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":h.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":h.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":h.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":h.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":h.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":h.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":h.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":h.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":h.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":h.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":'Any attempt to brew coffee with a teapot should result in the error code "418 I\'m a teapot". The resulting entity body MAY be short and stout.',"418_CLASS":h.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":h.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":h.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":h.CLIENT_ERROR,LOCKED:423,424:"Failed Depen
10dency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":h.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":h.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":h.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":h.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":h.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":h.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":h.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":h.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":h.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":h.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":h.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":h.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":h.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":h.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":h.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":h.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":h.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain
10network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":h.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":h.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":h.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":h.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":h.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":h.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":h.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":h.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":h.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":h.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":h.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":h.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":h.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":h.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":h.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":h.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":h.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":h.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":h.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":h.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":h.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":h.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":h.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":h.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a t
10imely HTTP response.","524_CLASS":h.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":h.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":h.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":h.SERVER_ERROR,RAILGUN_ERROR:527}}};class m extends Error{data;isOperational;isPublic;status;constructor(e,t,r,n){super(e,{cause:r}),this.name=this.constructor.name,this.message=e,this.status=t,this.data=r,this.isPublic=n,this.isOperational=!0,Error.captureStackTrace(this,this.constructor)}}class y extends m{constructor(e,t=p.INTERNAL_SERVER_ERROR,r=null,n){super(e,t,r,"boolean"==typeof n?n:t!==p.INTERNAL_SERVER_ERROR)}}function v(e){let t;try{t=decodeURIComponent(e)}catch{return""}return/%[0-9a-f]{2}/i.test(t)?"":t.replace(/\\/g,"/").split("/").filter(e=>".."!==e&&"."!==e).join("/").replace(/^\/+/,"").replace(/[\x00-\x1f\x80-\x9f]/g,"")}var _=r(69538),b=r(5405);let S={toWeb(){throw Error("Vercel Blob: Sorry, we cannot get a Readable stream in this environment. If you see this message please open an issue here: https://github.com/vercel/storage/ with details on your environment.")}};var w=r(19695);let x=globalThis.fetch.bind(globalThis);var E=r(17055),C=r(69538),T=new Promise(e=>{try{let t=new Uint8Array([104,101,108,108,111]);new Blob([t]).text().then(t=>{e("hello"===t)}).catch(()=>{e(!1)})}catch{e(!1)}});async function N(e){var t;let r;return e instanceof ReadableStream?e:e instanceof Blob?e.stream():k(e)?S.toWeb(e):(r=e instanceof ArrayBuffer?new Uint8Array(e):b(e)?e:(t=e,new TextEncoder().encode(t)),await T)?new Blob([r]).stream():new ReadableStream({start(e){e.enqueue(r),e.close()}})}function k(e){return"object"==typeof e&&"function"==typeof e.pipe&&e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState}var A=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i,O={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000};function R(e){let t;if("number"==typeof e&&!Number.isNaN(e))return e;if("string"!=typeof e)return null;let r=A.exec(e),n="b";if(r){let[,e,,,i]=r;if(!e)return null;t=parseFloat(e),i&&(n=i.toLowerCase())}else t=parseInt(e,10);return Number.isNaN(t)?null:Math.floor(O[n]*t)}var P=class extends Error{constructor(e){super(`Vercel Blob: ${e}`)}};function M(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var I=["//"],D=(()=>{if(function(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if(void 0!==_){let e=_.type;return"renderer"!==e&&"worker"!==e&&!!(_.versions&&_.versions.node)}return!1}())return!0;if($().startsWith("http://localhost"))return!1;let e=!1,t=new Request($(),{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})();function $(e=""){let t=null;try{t=C.env.VERCEL_BLOB_API_URL||C.env.NEXT_PUBLIC_VERCEL_BLOB_API_URL}catch{}return`${t||"https://vercel.com/api/blob"}${e}`}var L="function"==typeof TextEncoder?new TextEncoder:null;function j(e){return e?"string"==typeof e?L?L.encode(e).byteLength:new Blob([e]).size:"byteLength"in e&&"number"==typeof e.byteLength?e.byteLength:"size"in e&&"number"==typeof e.size?e.size:0:0}function F(e){return globalThis.ReadableStream&&e instanceof ReadableStream}var B=!1;try{((null==(n=C.env.DEBUG)?void 0:n.includes("blob"))||(null==(i=C.env.NEXT_PUBLIC_DEBUG)?void 0:i.includes("blob")))&&(B=!0)}catch{}function U(e,...t){B&&console.debug(`vercel-blob: ${e}`,...t)}var z=null!=(o=globalThis.DOMException)?o:(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})(),K=Object.prototype.toString,q=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]),V="function"==typeof x,W=V&&D,J=async({input:e,init:t,onUploadProgress:r})=>{let n;if(U("using fetch"),t.body)if(r){let e=await N(t.body),i=0,o=((e,t)=>{let r=new Uint8Array(0);return new TransformStream({transform(n,i){queueMicrotask(()=>{let o=new Uint8Array(r.length+n.byteLength);for(o.set(r),o.set(new Uint8Array(n),r.length),r=o;r.length>=e;){let n=r.slice(0,e);i.enqueue(n),null==t||t(n.byteLength),r=r.slice(e)}})},flush(e){queueMicrotask(()=>{r.length>0&&(e.enqueue(r),null==t||t(r.byteLength))})}})})(65536,e=>{r(i+=e)});n=e.pipeThrough(o)}else n=t.body;let i=D&&n&&function(e){return!!(F(e)||k(e))}(n)?"half":void 0;return x(e,{...t,...t.body?{body:n}:{},duplex:i})},H="undefined"!=typeof XMLHttpRequest,G=async({input:e,init:t,onUploadProgress:r})=>{U("using xhr");let n=null;return t.body&&(n=F(t.body)?await new Response(t.body).blob():t.body),new Promise((i,o)=>{let l=new XMLHttpRequest;if(l.open(t.method||"GET",e.toString(),!0),r&&l.upload.addEventListener("progress",e=>{e.lengthComputable&&r(e.loaded)}),l.onload=()=>{var e;if(null==(e=t.signal)?void 0:e.aborted)return void o(new DOMException("The user aborted the request.","AbortError"));let r=new Headers;
10l.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{let t=e.split(": "),n=t.shift(),i=t.join(": ");n&&r.set(n.toLowerCase(),i)}),i(new Response(l.response,{status:l.status,statusText:l.statusText,headers:r}))},l.onerror=()=>{o(TypeError("Network request failed"))},l.ontimeout=()=>{o(TypeError("Network request timed out"))},l.onabort=()=>{o(new DOMException("The user aborted a request.","AbortError"))},t.headers&&new Headers(t.headers).forEach((e,t)=>{l.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",()=>{l.abort()}),t.signal.aborted))return void l.abort();l.send(n)})},Y=async({input:e,init:t,onUploadProgress:r})=>{if(r){if(W)return J({input:e,init:t,onUploadProgress:r});if(H)return G({input:e,init:t,onUploadProgress:r})}if(V)return J({input:e,init:t});if(H)return G({input:e,init:t});throw Error("No request implementation available")},Z=class extends P{constructor(){super("Access denied, please provide a valid token for this resource.")}},X=class extends P{constructor(e){super(`Content type mismatch, ${e}.`)}},Q=class extends P{constructor(e){super(`Pathname mismatch, ${e}. Check the pathname used in upload() or put() matches the one from the client token.`)}},ee=class extends P{constructor(){super("Client token has expired.")}},et=class extends P{constructor(e){super(`File is too large, ${e}.`)}},er=class extends P{constructor(){super("This store does not exist.")}},en=class extends P{constructor(){super("This store has been suspended.")}},ei=class extends P{constructor(){super("Unknown error, please visit https://vercel.com/help.")}},eo=class extends P{constructor(){super("The requested blob does not exist")}},el=class extends P{constructor(){super("The blob service is currently not available. Please try again.")}},ea=class extends P{constructor(e){super(`Too many requests please lower the number of concurrent requests ${e?` - try again in ${e} seconds`:""}.`),this.retryAfter=null!=e?e:0}},es=class extends P{constructor(){super("The request was aborted.")}},eu=class extends P{constructor(){super("Precondition failed: ETag mismatch.")}};async function ec(e){var t,r,n;let i,o,l;try{let l=await e.json();i=null!=(r=null==(t=l.error)?void 0:t.code)?r:"unknown_error",o=null==(n=l.error)?void 0:n.message}catch{i="unknown_error"}switch((null==o?void 0:o.includes("contentType"))&&o.includes("is not allowed")&&(i="content_type_not_allowed"),(null==o?void 0:o.includes('"pathname"'))&&o.includes("does not match the token payload")&&(i="client_token_pathname_mismatch"),"Token expired"===o&&(i="client_token_expired"),(null==o?void 0:o.includes("the file length cannot be greater than"))&&(i="file_too_large"),i){case"store_suspended":l=new en;break;case"forbidden":l=new Z;break;case"content_type_not_allowed":l=new X(o);break;case"client_token_pathname_mismatch":l=new Q(o);break;case"client_token_expired":l=new ee;break;case"file_too_large":l=new et(o);break;case"not_found":l=new eo;break;case"store_not_found":l=new er;break;case"bad_request":l=new P(null!=o?o:"Bad request");break;case"service_unavailable":l=new el;break;case"rate_limited":l=function(e){let t=e.headers.get("retry-after");return new ea(t?parseInt(t,10):void 0)}(e);break;case"precondition_failed":l=new eu;break;default:l=new ei}return{code:i,error:l}}async function ed(e,t,r){let n=function(){let e=null;try{e=C.env.VERCEL_BLOB_API_VERSION_OVERRIDE||C.env.NEXT_PUBLIC_VERCEL_BLOB_API_VERSION_OVERRIDE}catch{}return`${null!=e?e:12}`}(),i=function(e){if(null==e?void 0:e.token)return e.token;if(C.env.BLOB_READ_WRITE_TOKEN)return C.env.BLOB_READ_WRITE_TOKEN;throw new P("No token found. Either configure the `BLOB_READ_WRITE_TOKEN` environment variable, or pass a `token` option to your calls.")}(r),o=function(){let e={};try{"VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in C.env&&void 0!==C.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API?e["x-proxy-through-alternative-api"]=C.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API:"NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in C.env&&void 0!==C.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API&&(e["x-proxy-through-alternative-api"]=C.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API)}catch{}return e}(),[,,,l=""]=i.split("_"),a=`${l}:${Date.now()}:${Math.random().toString(16).slice(2)}`,s=0,u=0,c=0,d=(null==r?void 0:r.onUploadProgress)||function(){try{return"1"===C.env.VERCEL_BLOB_USE_X_CONTENT_LENGTH}catch{return!1}}();t.body&&d&&(u=j(t.body)),(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:0,total:u,percentage:0});let f=await w(async l=>{let f;try{f=await Y({input:$(e),init:{...t,headers:{"x-api-blob-request-id":a,"x-api-blob-request-attempt":String(s),"x-api-version":n,...d?{"x-content-length":String(u)}:{},authorization:`Bearer ${i}`,...o,...t.headers}},onUploadProgress:(null==r?void 0:r.onUploadProgress)?e=>{var t;let n=0!==u?u:e;c=e;let i=u>0?Number((e/n*100).toFixed(2)):0;100===i&&u>0||null==(t=r.onUploadProgress)||t.call(r,{loaded:e,total:n,percentage:i})}:void 0})}catch(e){if(e instanceof z&&"AbortError"===e.name)return void l(new es);
10if(e&&"[object Error]"===K.call(e)&&"TypeError"===e.name&&"string"==typeof e.message&&("Load failed"===e.message?void 0===e.stack:q.has(e.message)))throw e;if(e instanceof TypeError)return void l(e);throw e}if(f.ok)return f;let{code:h,error:p}=await ec(f);if("unknown_error"===h||"service_unavailable"===h||"internal_server_error"===h)throw p;l(p)},{retries:function(){try{let e=C.env.VERCEL_BLOB_RETRIES||"10";return parseInt(e,10)}catch{return 10}}(),onRetry:t=>{t instanceof Error&&U(`retrying API request to ${e}`,t.message),s+=1}});if(!f)throw new ei;return(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:c,total:c,percentage:100}),await f.json()}var ef={cacheControlMaxAge:"x-cache-control-max-age",addRandomSuffix:"x-add-random-suffix",allowOverwrite:"x-allow-overwrite",contentType:"x-content-type",access:"x-vercel-blob-access",ifMatch:"x-if-match"};function eh(e,t){let r={};return r[ef.access]=t.access,e.includes("contentType")&&t.contentType&&(r[ef.contentType]=t.contentType),e.includes("addRandomSuffix")&&void 0!==t.addRandomSuffix&&(r[ef.addRandomSuffix]=t.addRandomSuffix?"1":"0"),e.includes("allowOverwrite")&&void 0!==t.allowOverwrite&&(r[ef.allowOverwrite]=t.allowOverwrite?"1":"0"),e.includes("cacheControlMaxAge")&&void 0!==t.cacheControlMaxAge&&(r[ef.cacheControlMaxAge]=t.cacheControlMaxAge.toString()),e.includes("ifMatch")&&t.ifMatch&&(r[ef.ifMatch]=t.ifMatch),r}async function ep({pathname:e,options:t,extraChecks:r,getToken:n}){if(!e)throw new P("pathname is required");if(e.length>950)throw new P("pathname is too long, maximum length is 950");for(let t of I)if(e.includes(t))throw new P(`pathname cannot contain "${t}", please encode it if needed`);if(!t)throw new P("missing options, see usage");if("public"!==t.access&&"private"!==t.access)throw new P('access must be "private" or "public", see https://vercel.com/docs/vercel-blob');return r&&r(t),n&&(t.token=await n(e,t)),t}async function eg({uploadId:e,key:t,pathname:r,parts:n,headers:i,options:o}){let l=new URLSearchParams({pathname:r});try{let r=await ed(`/mpu?${l.toString()}`,{method:"POST",headers:{...i,"content-type":"application/json","x-mpu-action":"complete","x-mpu-upload-id":e,"x-mpu-key":encodeURIComponent(t)},body:JSON.stringify(n),signal:o.abortSignal},o);return U("mpu: complete",r),r}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new el;throw e}}async function em(e,t,r){U("mpu: create","pathname:",e);let n=new URLSearchParams({pathname:e});try{let e=await ed(`/mpu?${n.toString()}`,{method:"POST",headers:{...t,"x-mpu-action":"create"},signal:r.abortSignal},r);return U("mpu: create",e),e}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new el;throw e}}async function ey({uploadId:e,key:t,pathname:r,headers:n,options:i,internalAbortController:o=new AbortController,part:l}){var a,s,u;let c=new URLSearchParams({pathname:r}),d=ed(`/mpu?${c.toString()}`,{signal:o.signal,method:"POST",headers:{...n,"x-mpu-action":"upload","x-mpu-key":encodeURIComponent(t),"x-mpu-upload-id":e,"x-mpu-part-number":l.partNumber.toString()},body:l.blob},i);function f(){o.abort()}(null==(a=i.abortSignal)?void 0:a.aborted)?f():null==(s=i.abortSignal)||s.addEventListener("abort",f);let h=await d;return null==(u=i.abortSignal)||u.removeEventListener("abort",f),h}var ev="undefined"!=typeof window?6:8,e_=8388608*ev*2;async function eb(e,t,r,n){U("mpu: init","pathname:",e,"headers:",r);let i={...n,onUploadProgress:void 0},o=await em(e,r,i),l=j(t),a=await N(t),s=await function({uploadId:e,key:t,pathname:r,stream:n,headers:i,options:o,totalToLoad:l}){U("mpu: upload init","key:",t);let a=new AbortController;return new Promise((s,u)=>{let c,d=[],f=[],h=n.getReader(),p=0,m=!1,y=1,v=!1,_=0,b=!1,S=0,w=[],x=0,C={};async function T(){for(U("mpu: upload read start","activeUploads:",p,"currentBytesInMemory:",`${R(_)}/${R(e_)}`,"bytesSent:",R(S)),m=!0;_<e_&&!v;)try{let{value:e,done:t}=await h.read();if(t){b=!0,U("mpu: upload read consumed the whole stream"),w.length>0&&(d.push({partNumber:y++,blob:new Blob(w,{type:"application/octet-stream"})}),k()),m=!1;return}_+=e.byteLength;let r=0;for(;r<e.byteLength;){let t=8388608-x,n=Math.min(r+t,e.byteLength),i=e.slice(r,n);w.push(i),x+=i.byteLength,r=n,8388608===x&&(d.push({partNumber:y++,blob:new Blob(w,{type:"application/octet-stream"})}),w=[],x=0,k())}}catch(e){A(e)}U("mpu: upload read end","activeUploads:",p,"currentBytesInMemory:",`${R(_)}/${R(e_)}`,"bytesSent:",R(S)),m=!1}async function N(n){p++,U("mpu: upload send part start","partNumber:",n.partNumber,"size:",n.blob.size,"activeUploads:",p,"currentBytesInMemory:",`${R(_)}/${R(e_)}`,"bytesSent:",R(S));try{let l=o.onUploadProgress?e=>{C[n.partNumber]=e.loaded,c&&c()}:void 0,u=await ey({uploadId:e,key:t,pathname:r,headers:i,options:{...o,onUploadProgress:l},internalAbortController:a,part:n});if(U("mpu: upload send part end","partNumber:",n.partNumber,"activeUploads",p,"currentBytesInMemory:",`${R(_)}/${R(e_)}`,"bytesSent:",R(S)),v)return;if(f.push({partNumber:n.partNumber,etag:u.etag}),_-=n.blob.size,p--,S+=n.blob.size,d.length>0&&k(),b){0===p&&(h.releaseLock(),s(f));return}m||T().catch(A)}catch(e){A(e)}}function k(){if(!v)for(U("send parts","activeUploads",p,"partsToUpload",d.length);p<ev&&d.length>0;){let e=d.shift();e&&N(e)}}function A(e){v||(v=!0,a.abort(),h.releaseLock(),e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message)?u(new el):u(e))}o.onUploadProgress&&(c=E(()=>{var e;let t=Object.values(C).reduce((e,t)=>
10e+t,0),r=l||t,n=l>0?Number((100*(t/l||t)).toFixed(2)):0;null==(e=o.onUploadProgress)||e.call(o,{loaded:t,total:r,percentage:n})},150)),T().catch(A)})}({uploadId:o.uploadId,key:o.key,pathname:e,stream:a,headers:r,options:n,totalToLoad:l});return await eg({uploadId:o.uploadId,key:o.key,pathname:e,parts:s,headers:r,options:i})}function eS({allowedOptions:e,getToken:t,extraChecks:r}){return async function(n,i,o){if(!i)throw new P("body is required");if(M(i))throw new P("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");let l=await ep({pathname:n,options:o,extraChecks:r,getToken:t}),a=eh(e,l);if(!0===l.multipart)return eb(n,i,a,l);let s=l.onUploadProgress?E(l.onUploadProgress,100):void 0,u=new URLSearchParams({pathname:n}),c=await ed(`/?${u.toString()}`,{method:"PUT",body:i,headers:a,signal:l.abortSignal},{...l,onUploadProgress:s});return{url:c.url,downloadUrl:c.downloadUrl,pathname:c.pathname,contentType:c.contentType,contentDisposition:c.contentDisposition,etag:c.etag}}}function ew(e){return function(t){if(!t.token.startsWith("vercel_blob_client_"))throw new P(`${e} must be called with a client token`);if(void 0!==t.addRandomSuffix||void 0!==t.allowOverwrite||void 0!==t.cacheControlMaxAge)throw new P(`${e} doesn't allow \`addRandomSuffix\`, \`cacheControlMaxAge\` or \`allowOverwrite\`. Configure these options at the server side when generating client tokens.`)}}r(7564).hp,r(69538),eS({allowedOptions:["contentType"],extraChecks:ew("client/`put`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:ew("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:ew("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:ew("client/`multipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:ew("client/`completeMultipartUpload`")});var ex=eS({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new P("client/`upload` requires the 'handleUploadUrl' parameter");if(void 0!==e.addRandomSuffix||void 0!==e.createPutExtraChecks||void 0!==e.cacheControlMaxAge||void 0!==e.ifMatch)throw new P("client/`upload` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating client tokens.")},async getToken(e,t){var r,n;return eC({handleUploadUrl:t.handleUploadUrl,pathname:e,clientPayload:null!=(r=t.clientPayload)?r:null,multipart:null!=(n=t.multipart)&&n,headers:t.headers})}}),eE={generateClientToken:"blob.generate-client-token"};async function eC(e){let{handleUploadUrl:t,pathname:r}=e,n=!function(e){try{return new URL(e),!0}catch{return!1}}(t)?new URL(t,location.href).href:t,i={type:eE.generateClientToken,payload:{pathname:r,clientPayload:e.clientPayload,multipart:e.multipart}},o=await x(n,{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!o.ok)throw new P("Failed to retrieve the client token");try{let{clientToken:e}=await o.json();return e}catch{throw new P("Failed to retrieve the client token")}}var eT=r(2831),eN=function(e){var t=e.handler;return function(e){var r=e.children,n=e.collectionSlug,i=e.enabled,o=e.extra,l=e.prefix,a=e.serverHandlerPath,f=(0,u.useUploadHandlers)().setUploadHandler,h=(0,c.c)().config,p=h.routes.api,m=h.serverURL,y=(0,u.useEffectEvent)(function(){i&&f({collectionSlug:n,handler:function(e){return t({apiRoute:p,collectionSlug:n,docPrefix:e.docPrefix,extra:o,file:e.file,prefix:l,serverHandlerPath:a,serverURL:m,updateFilename:e.updateFilename})}})});return(0,d.useEffect)(function(){y()},[]),(0,s.jsx)(d.Fragment,{children:r})}}({handler:function(e){var t=e.apiRoute,r=e.collectionSlug,n=e.docPrefix,i=e.extra,o=i.addRandomSuffix,s=i.useCompositePrefixes,u=void 0!==s&&s,c=e.file,d=e.prefix,h=e.serverHandlerPath,p=e.serverURL,m=e.updateFilename;return(0,l._)(function(){var e,i,l,s,_;return(0,a.YH)(this,function(a){switch(a.label){case 0:return e=(0,eT.Q)({apiRoute:t,path:h,serverURL:p}),l=(i=function({collectionPrefix:e,docPrefix:t,filename:r,useCompositePrefixes:n=!1}){let i=v(e||""),o=v(t||""),l=function(e){let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");if(-1!==r&&(t=t.slice(r+1)),("."===t||".."===t)&&(t=""),!(t=t.replace(/[\x00-\x1f\x80-\x9f]/g,"")))throw new y("Invalid filename",400);return t}(r);return{fileKey:n?f.posix.join(i,o,l):f.posix.join(o||i,l),sanitizedCollectionPrefix:i,sanitizedDocPrefix:o,sanitizedFilename:l}}({collectionPrefix:d,docPrefix:n,filename:c.name,useCompositePrefixes:u})).fileKey,s=i.sanitizedDocPrefix,[4,ex(l,c,{access:"public",clientPayload:r,contentType:c.type,handleUploadUrl:e})];case 1:if(_=a.sent(),o){var b,S;m(decodeURIComponent(-1===(S=(b=_.pathname.replace(/^\/+/,"").replace(/^\/+/,"")).lastIndexOf("/"))?b:b.slice(S+1)))}return[2,{prefix:s}]}})})()}})},48342:(e,t,r)=>{"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;let n=r(5462),i=r(19792),o=r(43510);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>(0,n.str)`must have ${1===t?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,n._)`{property: ${e}, 11 missingProperty: ${i}, 12 depsCount: ${t}, 13 deps: ${r}}`};let l={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){let[t,r]=function({schema:e}){let t={},r={};for(let n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),s(e,r)}};function a(e,t=e.schema){let{gen:r,data:i,it:l}=e;if(0===Object.keys(t).length)return;let s=r.let("missing");for(let a in t){let u=t[a];if(0===u.length)continue;let c=(0,o.propertyInData)(r,i,a,l.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),l.allErrors?r.if(c,()=>{for(let t of u)(0,o.checkReportMissingProp)(e,t)}):(r.if((0,n._)`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),r.else())}}function s(e,t=e.schema){let{gen:r,data:n,keyword:l,it:a}=e,u=r.name("valid");for(let s in t)(0,i.alwaysValidSchema)(a,t[s])||(r.if((0,o.propertyInData)(r,n,s,a.opts.ownProperties),()=>{let t=e.subschema({keyword:l,schemaProp:s},u);e.mergeValidEvaluated(t,u)},()=>r.var(u,!0)),e.ok(u))}t.validatePropertyDeps=a,t.validateSchemaDeps=s,t.default=l},48450:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/payload-favicon-dark.c322d81c.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXEyMjIzMzM1NTU2NjYzMzMzMzMzMzMyMjIzMzM1NTUyMjIzMzMrTeFiAAAADXRSTlMAg8EpEmvzdo/kIEOg8UAOkgAAAAlwSFlzAAAuIwAALiMBeKU/dgAAADZJREFUeJw1y7kBwDAIBME9PglQ//U68uQDuJkDESvVDbIOTB9k1ssTemRyxekB3yFuSZXw9w8kbAD/5SnsMwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},49199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(63639),i=r(73803),o=r(60121),l=r(94419),a=r(68490);t.default=[n.default,i.default,(0,o.default)(),l.default,a.metadataVocabulary,a.contentVocabulary]},49356:(e,t,r)=>{"use strict";r.d(t,{$$:()=>p,Es:()=>f,KG:()=>y,Ks:()=>N,Ll:()=>l,Re:()=>E,Sw:()=>i,TW:()=>d,WQ:()=>x,YG:()=>S,YN:()=>m,ZC:()=>_,_q:()=>h,ag:()=>A,e_:()=>T,kx:()=>C,l6:()=>o,lk:()=>v,sb:()=>u,wz:()=>s,xZ:()=>c,zk:()=>a});var n=r(34023);let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function a(e){var t,r;return e?o(e)?e:l(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function s(e){let{Document:t}=a(e);return e instanceof t}function u(e){return!o(e)&&e instanceof a(e).HTMLElement}function c(e){return e instanceof a(e).SVGElement}function d(e){return e?o(e)?e.document:l(e)?s(e)?e:u(e)||c(e)?e.ownerDocument:document:document:document}let f=i?n.useLayoutEffect:n.useEffect;function h(e){let t=(0,n.useRef)(e);return f(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function p(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return f(()=>{r.current!==e&&(r.current=e)},t),r}function y(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function v(e){let t=h(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function _(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let b={};function S(e,t){return(0,n.useMemo)(()=>{if(t)return t;let r=null==b[e]?0:b[e]+1;return b[e]=r,e+"-"+r},[e,t])}function w(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let x=w(1),E=w(-1);function C(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function T(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let N=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[N.Translate.toString(e),N.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),k="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function A(e){return e.matches(k)?e:e.querySelector(k)}},50435:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(12671),i=r(3535),o=r(35509),l=r(34023);function a({newTab:e=!0,disabled:t=!1}){let[r]=(0,o.DF)();return(0,l.useEffect)(()=>(0,i.AX)(r,(0,n.v)({disabled:t,newTab:e})),[r,e,t]),null}},50461:()=>{},50578:e=>{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}
13e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,l=(e[o]||0)+1;e[o]=l,l>=r&&(t=i,r=l)}return t}},50808:(e,t,r)=>{"use strict";r.d(t,{AutosaveCell:()=>s});var n=r(11241),i=r(94799),o=r(50614),l=r(67331);r(34023);var a=r(94514),s=function(e){var t,r=(0,n.c)(5),s=e.currentlyPublishedVersion,u=e.latestDraftVersion,c=e.rowData,d=(0,o.d)().t;return r[0]!==s||r[1]!==u||r[2]!==c||r[3]!==d?(t=(0,i.jsxs)("div",{className:"".concat("autosave-cell","__items"),children:[(null==c?void 0:c.autosave)&&(0,i.jsx)(l.Pill,{size:"small",children:d("version:autosave")}),(0,i.jsx)(a.VersionPillLabel,{currentlyPublishedVersion:s,disableDate:!0,doc:c,labelFirst:!1,labelStyle:"pill",latestDraftVersion:u})]}),r[0]=s,r[1]=u,r[2]=c,r[3]=d,r[4]=t):t=r[4],t}},51271:(e,t,r)=>{"use strict";r.d(t,{Tabs:()=>h});var n=r(54947),i=r(82998),o=r(11241),l=r(94799),a=r(52223),s=r(50614);r(34023);var u=r(19095),c=r(63281),d=r(81749),f="tabs-diff",h=function(e){var t,r,a=(0,o.c)(13),s=e.baseVersionField,c=e.comparisonValue,d=e.field,h=e.versionValue,m=(0,u.I)().selectedLocales;return a[0]!==s.tabs||a[1]!==d||a[2]!==e||a[3]!==m||a[4]!==c||a[5]!==h?(a[7]!==d||a[8]!==e||a[9]!==m||a[10]!==c||a[11]!==h?(r=function(t,r){if(!(null==t||null==(o=t.fields)?void 0:o.length))return null;var o,a,s=null==(a=d.tabs)?void 0:a[r];return s?(0,l.jsx)("div",{className:"".concat(f,"__tab"),children:function(){if("name"in s&&m&&s.localized)return m.map(function(r,o){var a,u,d=(0,i._)((0,n._)({},e),{comparisonValue:null==c||null==(a=c[t.name])?void 0:a[r],fieldTab:s,locale:r,tab:t,versionValue:null==h||null==(u=h[t.name])?void 0:u[r]});return(0,l.jsx)("div",{className:"".concat(f,"__tab-locale"),children:(0,l.jsx)("div",{className:"".concat(f,"__tab-locale-value"),children:(0,l.jsx)(p,(0,n._)({},d),r)})},[r,o].join("-"))});if(!("name"in t)||!t.name)return(0,l.jsx)(p,(0,i._)((0,n._)({fieldTab:s},e),{tab:t}),r);var o=(0,i._)((0,n._)({},e),{comparisonValue:null==c?void 0:c[t.name],fieldTab:s,tab:t,versionValue:null==h?void 0:h[t.name]});return(0,l.jsx)(p,(0,n._)({},o),r)}()},r):null},a[7]=d,a[8]=e,a[9]=m,a[10]=c,a[11]=h,a[12]=r):r=a[12],t=(0,l.jsx)("div",{className:f,children:s.tabs.map(r)}),a[0]=s.tabs,a[1]=d,a[2]=e,a[3]=m,a[4]=c,a[5]=h,a[6]=t):t=a[6],t},p=function(e){var t,r,n=(0,o.c)(10),i=e.comparisonValue,h=e.fieldTab,p=e.locale,m=e.parentIsLocalized,y=e.tab,v=e.versionValue,_=(0,s.d)().i18n,b=(0,u.I)().selectedLocales;return(null==(t=y.fields)?void 0:t.length)?(n[0]!==h.fields||n[1]!==h.localized||n[2]!==_||n[3]!==p||n[4]!==m||n[5]!==b||n[6]!==y||n[7]!==i||n[8]!==v?
13(r=(0,l.jsx)(c.$,{fields:h.fields,Label:"label"in y&&y.label&&"function"!=typeof y.label&&(0,l.jsxs)("span",{children:[p&&(0,l.jsx)("span",{className:"".concat(f,"__locale-label"),children:p}),(0,a.s)(y.label,_)]}),locales:b,parentIsLocalized:m||h.localized,valueFrom:i,valueTo:v,children:(0,l.jsx)(d.RenderVersionFieldsToDiff,{versionFields:y.fields})}),n[0]=h.fields,n[1]=h.localized,n[2]=_,n[3]=p,n[4]=m,n[5]=b,n[6]=y,n[7]=i,n[8]=v,n[9]=r):r=n[9],r):null}},52223:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{if("object"==typeof e&&!Object.prototype.hasOwnProperty.call(e,"$$typeof")){if(e[t.language])return e[t.language];let r=[];"string"==typeof t.fallbackLanguage?r=[t.fallbackLanguage]:Array.isArray(t.fallbackLanguage)&&(r=t.fallbackLanguage);let n=r.find(t=>e[t]);return n&&e[n]?e[n]:e[Object.keys(e)[0]]}return"function"==typeof e?e({i18n:t,t:t.t}):e}},52367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(19792);t.default={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let o=t.name("valid");r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;let l=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(l)})}}},53466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(93027),o=r(21715),l=r(94540),a=r(19792);t.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){let{gen:t,data:r,schema:s,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw Error("discriminator: requires discriminator option");let f=s.propertyName;if("string"!=typeof f)throw Error("discriminator: requires propertyName");if(s.mapping)throw Error("discriminator: mapping is not supported");if(!d)throw Error("discriminator: requires oneOf keyword");let h=t.let("valid",!1),p=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(f)}`);t.if((0,n._)`typeof ${p} == "string"`,()=>(function(){let r=function(){var e;let t={},r=i(u),n=!0;for(let t=0;t<d.length;t++){let u=d[t];if((null==u?void 0:u.$ref)&&!(0,a.schemaHasRulesButRef)(u,c.self.RULES)){let e=u.$ref;if((u=o.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e))instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new l.default(c.opts.uriResolver,c.baseId,e)}let h=null==(e=null==u?void 0:u.properties)?void 0:e[f];if("object"!=typeof h)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||i(u)),function(e,t){if(e.const)s(e.const,t);else if(e.enum)for(let r of e.enum)s(r,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}(h,t)}if(!n)throw Error(`discriminator: "${f}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,r){if("string"!=typeof e||e in t)throw Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();for(let i in t.if(!1),r)t.elseIf((0,n._)`${p} === ${i}`),t.assign(h,function(r){let i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(o,n.Name),i}(r[i]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:p,tagName:f}),t.endIf()})(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:f})),e.ok(h)}}},53598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792);t.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`}
13,code(e){let{gen:t,schema:r,data:o,it:l}=e;if((0,i.alwaysValidSchema)(l,r))return;let a=t.name("valid");t.forIn("key",o,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),()=>{e.error(!0),l.allErrors||t.break()})}),e.ok(a)}}},54347:(e,t,r)=>{"use strict";r.d(t,{G:()=>E});var n=r(85379),i=r(3535),o=r(76270);let l=[];class a extends o.fGB{__ids;static getType(){return"mark"}static clone(e){return new a(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){return s().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIDs(e.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}constructor(e=l,t){super(t),this.__ids=e}createDOM(e){let t=document.createElement("mark");return(0,o.ZB7)(t,e.theme.mark),this.__ids.length>1&&(0,o.ZB7)(t,e.theme.markOverlap),t}updateDOM(e,t,r){let n=e.__ids,i=this.__ids,l=n.length,a=i.length,s=r.theme.markOverlap;return l!==a&&(1===l?2===a&&(0,o.ZB7)(t,s):1===a&&(0,o.HEf)(t,s)),!1}hasID(e){return this.getIDs().includes(e)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(e){let t=this.getWritable();return t.__ids=e,t}addID(e){let t=this.getWritable();return t.__ids.includes(e)?t:t.setIDs([...t.__ids,e])}deleteID(e){let t=this.getWritable(),r=t.__ids.indexOf(e);if(-1===r)return t;let n=Array.from(t.__ids);return n.splice(r,1),t.setIDs(n)}insertNewAfter(e,t=!0){let r=s(this.__ids);return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,o.I2P)(t)||"html"===r)return!1;let n=t.anchor,i=t.focus,l=n.getNode(),a=i.getNode(),s=t.isBackward()?n.offset-i.offset:i.offset-n.offset;return this.isParentOf(l)&&this.isParentOf(a)&&this.getTextContent().length===s}excludeFromCopy(e){return"clone"!==e}}function s(e=l){return(0,o.pTq)(new a(e))}(0,o.vE9)({name:"@lexical/mark",nodes:()=>[a]});var u=r(17249),c=r(34023),d=r(94799);let f=Object.freeze({" ":"\\t","\n":"\\n"}),h=RegExp(Object.keys(f).join("|"),"g"),p=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"â",isLastChild:"â",selectedChar:"^",selectedLine:">"}),m=[e=>e.hasFormat("bold")&&"Bold",e=>e.hasFormat("code")&&"Code",e=>e.hasFormat("italic")&&"Italic",e=>e.hasFormat("strikethrough")&&"Strikethrough",e=>e.hasFormat("subscript")&&"Subscript",e=>e.hasFormat("superscript")&&"Superscript",e=>e.hasFormat("underline")&&"Underline",e=>e.hasFormat("highlight")&&"Highlight"],y=[e=>e.hasTextFormat("bold")&&"Bold",e=>e.hasTextFormat("code")&&"Code",e=>e.hasTextFormat("italic")&&"Italic",e=>e.hasTextFormat("strikethrough")&&"Strikethrough",e=>e.hasTextFormat("subscript")&&"Subscript",e=>e.hasTextFormat("superscript")&&"Superscript",e=>e.hasTextFormat("underline")&&"Underline",e=>e.hasTextFormat("highlight")&&"Highlight"],v=[e=>e.isDirectionless()&&"Directionless",e=>e.isUnmergeable()&&"Unmergeable"],_=[e=>e.isToken()&&"Token",e=>e.isSegmented()&&"Segmented"];function b(e,t=!1){let r=Object.entries(f).reduce((e,[t,r])=>e.replace(RegExp(t,"g"),String(r)),e);return t?r.replace(/[^\s]/g,"*"):r}function S(e){let t=m.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase();return""!==t&&(t="format: "+t),t}function w(e){if(!e.__state)return!1;let t=[];for(let[r,n]of e.__state.knownState.entries()){if(r.isEqual(n,r.defaultValue))continue;let e=JSON.stringify(r.unparse(n));t.push(`[${r.key}: ${e}]`)}let r=t.join(",");return""!==r&&(r="state: "+r),r}let x=(0,c.forwardRef)(function({treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:n,viewClassName:i,timeTravelPanelClassName:o,editorState:l,setEditorState:a,setEditorReadOnly:s,generateContent:u,commandsLog:f=[]},h){let[p,m]=(0,c.useState)([]),[y,v]=(0,c.useState)(""),[_,b]=(0,c.useState)(!1),[S,w]=(0,c.useState)(!1),x=(0,c.useRef)(0),E=(0,c.useRef)(null),[C,T]=(0,c.useState)(!1),[N,k]=(0,c.useState)(!1),[A,O]=(0,c.useState)(!1),R=(0,c.useRef)(null),P=(0,c.useRef)([]),M=(0,c.useRef)(0),I=(0,c.useCallback)(e=>{let t=++M.current;u(e).then(e=>{t===M.current&&v(e)}
13).catch(e=>{t===M.current&&v(`Error rendering tree: ${e.message} 14 15Stack: 16${e.stack}`)})},[u]);(0,c.useEffect)(()=>{if((A||!(l._nodeMap.size>1e3)||(k(!0),A))&&(R.current!==l||P.current!==f)){let e=R.current!==l;R.current=l,P.current=f,I(S),!_&&e&&m(e=>[...e,[Date.now(),l]])}},[l,I,S,A,_,f]);let D=p.length;return(0,c.useEffect)(()=>{if(C){let e,t=()=>{let r=x.current;if(r===D-1)return void T(!1);let n=p[r][0];e=setTimeout(()=>{x.current++;let e=x.current,r=E.current;null!==r&&(r.value=String(e)),a(p[e][1]),t()},p[r+1][0]-n)};return t(),()=>{clearTimeout(e)}}},[p,C,D,a]),(0,d.jsxs)("div",{className:i,children:[!A&&N?(0,d.jsxs)("div",{style:{padding:20},children:[(0,d.jsx)("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),(0,d.jsx)("button",{onClick:()=>{O(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,A?null:(0,d.jsx)("button",{onClick:()=>(I(!S),void w(!S)),className:e,type:"button",children:S?"Tree":"Export DOM"}),!_&&(A||!N)&&D>2&&(0,d.jsx)("button",{onClick:()=>{s(!0),x.current=D-1,b(!0)},className:t,type:"button",children:"Time Travel"}),(A||!N)&&(0,d.jsx)("pre",{ref:h,children:y}),_&&(A||!N)&&(0,d.jsxs)("div",{className:o,children:[(0,d.jsx)("button",{className:n,onClick:()=>{x.current===D-1&&(x.current=1),T(!C)},type:"button",children:C?"Pause":"Play"}),(0,d.jsx)("input",{className:r,ref:E,onChange:e=>{let t=Number(e.target.value),r=p[t];r&&(x.current=t,a(r[1]))},type:"range",min:"1",max:D-1}),(0,d.jsx)("button",{className:n,onClick:()=>{s(!1);let e=p.length-1;a(p[e][1]);let t=E.current;null!==t&&(t.value=String(e)),b(!1),T(!1)},type:"button",children:"Exit"})]})]})});function E({treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:l,timeTravelPanelClassName:s,viewClassName:f,editor:m,customPrintNode:E}){let C=c.createRef(),[T,N]=(0,c.useState)(m.getEditorState()),k=function(e){let[t,r]=(0,c.useState)([]);return(0,c.useEffect)(()=>(function(e,t){let r=new Set,n=0;for(let[i]of e._commands)r.add(e.registerCommand(i,e=>(t(t=>{let r=[...t];return r.push({index:n+=1,payload:e,type:i.type?i.type:"UNKNOWN"}),r.length>10&&r.shift(),r}),!1),o.da8));return()=>r.forEach(e=>e())})(e,r),[e]),(0,c.useMemo)(()=>t,[t])}(m);return(0,c.useEffect)(()=>(0,o.Sdt)(m.registerUpdateListener(({editorState:e})=>{N(e)}),m.registerEditableListener(()=>{N(m.getEditorState())})),[m]),(0,c.useEffect)(()=>{let e=C.current;if(null!==e)return e.__lexicalEditor=m,()=>{e.__lexicalEditor=null}},[m,C]),(0,d.jsx)(x,{treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:l,viewClassName:f,timeTravelPanelClassName:s,setEditorReadOnly:e=>{let t=m.getRootElement();null!=t&&(t.contentEditable=e?"false":"true")},editorState:T,setEditorState:e=>m.setEditorState(e),generateContent:async function(e){return function(e,t,r,l,s=!1){let c=e.getEditorState(),d=e._config,f=e._compositionKey,m=e._editable;if(r){let t="";return c.read(()=>{t=function(e){let t=document.createElement("div");return t.innerHTML=e.trim(),function e(t,r){let n,i=Array(1+r++).join(" "),o=Array(r-1).join(" ");for(let l=0;l<t.children.length;l++)n=document.createTextNode("\n"+i),t.insertBefore(n,t.children[l]),e(t.children[l],r),t.lastElementChild===t.children[l]&&(n=document.createTextNode("\n"+o),t.appendChild(n));return t}(t,0).innerHTML}((0,n.g)(e))}),t}let x=" root\n",E=c.read(()=>{let e=(0,o.vJq)();return function e(t,r,n=[]){let i=t.getChildren(),l=i.length;i.forEach((t,i)=>{r(t,n.concat(i===l-1?p.isLastChild:p.hasNextSibling)),(0,o.ff4)(t)&&e(t,r,n.concat(i===l-1?p.ancestorIsLastChild:p.ancestorHasNextSibling))})}((0,o.NiT)(),(t,r)=>{let n=`(${t.getKey()})`,u=t.getType()||"",c=t.isSelected();x+=`${c?p.selectedLine:" "} ${r.join(" ")} ${n} ${u} ${function(e,t,r=!1){let n=t?t(e,r):void 0;if(void 0!==n&&n.length>0)return n;if((0,o.kFe)(e)){var l,s;let t,n,i=e.getTextContent(),o=0===i.length?"(empty)":`"${b(i,r)}"`,a=[S(e),(l=e,""!==(t=v.map(e=>
16e(l)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="detail: "+t),t),(s=e,""!==(n=_.map(e=>e(s)).filter(Boolean).join(", ").toLocaleLowerCase())&&(n="mode: "+n),n),w(e)].filter(Boolean).join(", ");return[o,0!==a.length?`{ ${a} }`:null].filter(Boolean).join(" ").trim()}if((0,i.FJ)(e)){let t,n,i,o=e.getURL(),l=0===o.length?"(empty)":`"${b(o,r)}"`,a=[(null!=(t=e.getTarget())&&(t="target: "+t),t),(null!=(n=e.getRel())&&(n="rel: "+n),n),(null!=(i=e.getTitle())&&(i="title: "+i),i),w(e)].filter(Boolean).join(", ");return[l,0!==a.length?`{ ${a} }`:null].filter(Boolean).join(" ").trim()}if(e instanceof a)return`ids: [ ${e.getIDs().join(", ")} ]`;if((0,o.bSg)(e)){let t,r=(""!==(t=y.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="format: "+t),t);return(""!==r?`{ ${r} }`:"")+(e.__style?`(${e.__style})`:"")}return""}(t,l,s)} 17`,x+=function({indent:e,isSelected:t,node:r,nodeKeyDisplay:n,selection:i,typeDisplay:l}){if(!(0,o.kFe)(r)||!(0,o.I2P)(i)||!t||(0,o.ff4)(r))return"";let a=i.anchor,s=i.focus;if(""===r.getTextContent()||a.getNode()===i.focus.getNode()&&a.offset===s.offset)return"";let[u,c]=function(e,t){let r=t.getStartEndPoints();if((0,o.RTZ)(t)||null===r)return[-1,-1];let[n,i]=r,l=e.getTextContent(),a=l.length,s=-1,u=-1;if("text"===n.type&&"text"===i.type){let t=n.getNode(),r=i.getNode();t===r&&e===t&&n.offset!==i.offset?[s,u]=n.offset<i.offset?[n.offset,i.offset]:[i.offset,n.offset]:[s,u]=e===t?t.isBefore(r)?[n.offset,a]:[0,n.offset]:e===r?r.isBefore(t)?[i.offset,a]:[0,i.offset]:[0,a]}let c=(l.slice(0,s).match(h)||[]).length,d=(l.slice(s,u).match(h)||[]).length;return[s+c,u+c+d]}(r,i);if(u===c)return"";let d=e[e.length-1]===p.hasNextSibling?p.ancestorHasNextSibling:p.ancestorIsLastChild,f=[...e.slice(0,e.length-1),d],m=Array(u+1).fill(" "),y=Array(c-u).fill(p.selectedChar),v=l.length+2,_=Array(n.length+v).fill(" ");return[p.selectedLine,f.join(" "),[..._,...m,...y].join("")].join(" ")+"\n"}({indent:r,isSelected:c,node:t,nodeKeyDisplay:n,selection:e,typeDisplay:u})}),null===e?": null":(0,o.I2P)(e)?function(e){let t="",r=S(e);t+=`: range ${""!==r?`{ ${r} }`:""} ${""!==e.style?`{ style: ${e.style} } `:""}`;let n=e.anchor,i=e.focus,o=n.offset,l=i.offset;return t+` 18 â anchor { key: ${n.key}, offset: ${null===o?"null":o}, type: ${n.type} } 19 â focus { key: ${i.key}, offset: ${null===l?"null":l}, type: ${i.type} }`}(e):(0,u.Ln)(e)?`: table 20 â { table: ${e.tableKey}, anchorCell: ${e.anchor.key}, focusCell: ${e.focus.key} }`:(0,o.RTZ)(e)?`: node 21 â [${Array.from(e._nodes).join(", ")}]`:""});if(x+="\n selection"+E,x+="\n\n commands:",t.length)for(let{index:e,type:r,payload:n}of t)x+=` 22 â ${e}. { type: ${r}, payload: ${n instanceof Event?n.constructor.name:n} }`;else x+="\n â None dispatched.";let{version:C}=e.constructor;return x+=` 23 24 editor${C?` (v${C})`:""}:`,x+=` 25 â namespace ${d.namespace}`,null!==f&&(x+=` 26 â compositionKey ${f}`),x+=` 27 â editable ${String(m)}`}(m,k,e,E)},ref:C,commandsLog:k})}},54686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792);t.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let t,r,{gen:o,schema:l,parentSchema:a,data:s,it:u}=e,{minContains:c,maxContains:d}=a;u.opts.next?(t=void 0===c?1:c,r=d):t=1;let f=o.const("len",(0,n._)`${s}.length`);if(e.setParams({min:t,max:r}),void 0===r&&0===t)return void(0,i.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==r&&t>r){(0,i.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,i.alwaysValidSchema)(u,l)){let i=(0,n._)`${f} >= ${t}`;void 0!==r&&(i=(0,n._)`${i} && ${f} <= ${r}`),e.pass(i);return}u.items=!0;let h=o.name("valid");function p(){let e=o.name("_valid"),i=o.let("count",0);m(e,()=>o.if(e,()=>{var e;return e=i,void(o.code((0,n._)`${e}++`),void 0===r?o.if((0,n._)`${e} >= ${t}`,()=>o.assign(h,!0).break()):(o.if((0,n._)`${e} > ${r}`,()=>o.assign(h,!1).break()),1===t?o.assign(h,!0):o.if((0,n._)`${e} >= ${t}`,()=>o.assign(h,!0))))}))}function m(t,r){o.forRange("i",0,f,n=>{e.subschema({keyword:"contains",dataProp:n,dataPropType:i.Type.Num,compositeRule:!0},t),r()})}void 0===r&&1===t?m(h,()=>o.if(h,()=>o.break())):0===t?(o.let(h,!0),void 0!==r&&o.if((0,n._)`${s}.length > 0`,p)):(o.let(h,!1),p()),e.result(h,()=>e.reset())}}},55986:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});let n=new Set(["equals","contains","not_equals","in","all","not_in","exists","greater_than","greater_than_equal","less_than","less_than_equal","like","not_like","within","intersects","near"]),i=e=>!!(e?.or&&(e?.or?.length===0||e?.or?.length>0&&e?.or?.[0]?.and&&e?.or?.[0]?.and?.length>0))&&e.or.every(e=>!!(e.and&&Array.isArray(e.and))&&e.and.every(e=>{if("object"!=typeof e)return!1;let t=Object.keys(e);if(0===t.length)return!1;for(let r of t){let t=Object.keys(e[r])[0];if(!t||!n.has(t))return!1}return!0}))},56197:(e,t,r)=>{"use strict";r.d(t,{CreatedAtCell:()=>u});var n=r(94799),i=r(83390),o=r(50614),l=r(67331),a=r(84924),s=r(2831);r(34023);var u=function(e){var t,r=e.collectionSlug,u=e.docID,c=e.globalSlug,d=e.isTrashed,f=e.rowData,h=void 0===f?{}:f,p=h.id,m=h.updatedAt,y=(0,i.c)().config,v=y.admin,_=y.routes,b=v.dateFormat,S=_.admin,w=(0,o.d)().i18n;return r&&(t=(0,s.Q)({adminRoute:S,path:"/collections/".concat(r,"/").concat(d?"trash/":"").concat(u,"/versions/").concat(p)})),c&&(t=(0,s.Q)({adminRoute:S,path:"/globals/".concat(c,"/versions/").concat(p)})),(0,n.jsx)(l.Link,{href:t,prefetch:!1,children:(0,a.Yq)({date:m,i18n:w,pattern:b})})}},56345:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});
27var n=r(27470),i=r(78300),o=r(25526),l=r(94799),a=r(67331),s=r(34023),u=r(19749);function c(e){var t=e.apiRoute,r=e.back,c=e.length,d=e.secret,f=e.serverURL,h=(0,i._)((0,s.useState)(!1),2),p=h[0],m=h[1],y=(0,s.useRef)(null),v=(0,s.useCallback)(function(e){return(0,n._)(function(){var r,n;return(0,o.YH)(this,function(i){switch(i.label){case 0:return e.preventDefault(),e.stopPropagation(),m(!0),r=new FormData(e.target),[4,fetch("".concat(f).concat(t,"/setup-totp"),{body:JSON.stringify(Object.fromEntries(r)),credentials:"include",headers:{"Content-Type":"application/json"},method:"post"})];case 1:return[4,i.sent().json()];case 2:if(!(n=i.sent()).ok&&n.message)return a.toast.error(n.message),[2,!1];return[2,!0]}})})()},[t,f]),_=(0,s.useCallback)(function(e){v(e).then(function(e){e&&(r?location.replace(r):window.history.back()),m(!1)}).catch(function(e){console.error(e),a.toast.error("Something went wrong"),m(!1)})},[r,v]);return(0,l.jsxs)("form",{onSubmit:_,ref:y,children:[(0,l.jsx)("input",{defaultValue:d,name:"secret",type:"hidden"}),(0,l.jsx)(u.A,{disabled:p,length:c,name:"token",onFilled:function(){y.current&&y.current.requestSubmit()}})]})}},56547:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>l});var n=r(11241),i=r(94799),o=r(67331);r(34023);var l=function(e){var t,r,l=(0,n.c)(6),a=e.baseClass,s=(0,o.useNav)(),u=s.navOpen,c=s.setNavOpen,d="".concat(a,"__mobile-close");l[0]!==c?(t=function(){c(!1)},l[0]=c,l[1]=t):t=l[1];var f=u?void 0:-1;return l[2]!==d||l[3]!==t||l[4]!==f?(r=(0,i.jsx)("button",{className:d,onClick:t,tabIndex:f,type:"button",children:(0,i.jsx)(o.Hamburger,{isActive:!0})}),l[2]=d,l[3]=t,l[4]=f,l[5]=r):r=l[5],r}},56548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;let n=r(19792),i=r(40482),o=r(12021),l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!function e(t){for(let r in t){if(a.has(r))return!0;let n=t[r];if(Array.isArray(n)&&n.some(e)||"object"==typeof n&&e(n))return!0}return!1}(e):!!t&&function e(t){let r=0;for(let i in t)if("$ref"===i||(r++,!l.has(i)&&("object"==typeof t[i]&&(0,n.eachItem)(t[i],t=>r+=e(t)),r===1/0)))return 1/0;return r}(e)<=t)};let a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e,t="",r){!1!==r&&(t=d(t));let n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=s,t._getFullPath=u;let c=/#\/?$/;function d(e){return e?e.replace(c,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};let f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:r,uriResolver:n}=this.opts,l=d(e[r]||t),a={"":l},u=s(n,l,!1),c={},h=new Set;return o(e,{allKeys:!0},(e,t,n,i)=>{if(void 0===i)return;let o=u+t,l=a[i];function s(t){let r=this.opts.uriResolver.resolve;if(t=d(l?r(l,t):t),h.has(t))throw m(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?p(e,n.schema,t):t!==d(o)&&("#"===t[0]?(p(e,c[t],t),c[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!f.test(e))throw Error(`invalid anchor "${e}"`);s.call(this,`#${e}`)}}"string"==typeof e[r]&&(l=s.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=l}),c;function p(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return Error(`reference "${e}" resolves to more than one schema`)}}},57222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;let n=r(5462),i=r(19792);function o(e,t){let{gen:r,schema:o,data:l,keyword:a,it:s}=e;s.items=!0;let u=r.const("len",(0,n._)`${l}.length`);if(!1===o)e.setParams({len:t.length}),e.pass((0,n._)`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(s,o)){let o=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(o),()=>{var l;return l=o,void r.forRange("i",t.length,u,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},l),s.allErrors||r.if((0,n.not)(l),()=>r.break())})}),e.ok(o)}}t.validateAdditionalItems=o,t.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`}
27,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n))return void(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');o(e,n)}}},57551:(e,t,r)=>{"use strict";r.d(t,{Row:()=>o});var n=r(94799);r(34023);var i=r(81749),o=function(e){var t=e.baseVersionField;return(0,n.jsx)("div",{className:"row-diff",children:(0,n.jsx)(i.RenderVersionFieldsToDiff,{versionFields:t.fields})})}},57925:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(29039),i=r(81465);function o({folderFieldName:e,isUpload:t,relationTo:r,useAsTitle:o,value:l}){let a={id:l?.id,_folderOrDocumentTitle:String(o&&l?.[o]||l.id),createdAt:l?.createdAt,folderID:l?.[e],folderType:l?.folderType||[],updatedAt:l?.updatedAt};return t&&(a.filename=l.filename,a.mimeType=l.mimeType,a.url=l.thumbnailURL||((0,n.w)(l.mimeType)?(0,i.k)({sizes:l.sizes,targetSizeMax:520,targetSizeMin:300,url:l.url,width:l.width}):void 0)),{itemKey:`${r}-${l.id}`,relationTo:r,value:a}}},57959:(e,t,r)=>{"use strict";r.d(t,{DocumentTabLink:()=>u});var n=r(78300),i=r(11241),o=r(94799),l=r(67331),a=r(27357),s=r(2831);r(34023);var u=function(e){var t,r,u=(0,i.c)(13),c=e.adminRoute,d=e.ariaLabel,f=e.baseClass,h=e.children,p=e.href,m=e.isActive,y=e.newTab,v=(0,a.usePathname)(),_=(0,a.useParams)(),b=(0,a.useSearchParams)().get("locale"),S=(0,n._)(_.segments||[],4),w=S[0],x=S[1],E=S[2],C=S[3],T="collections"===w,N="/".concat(T?"collections":"globals","/").concat(x);u[0]!==c||u[1]!==N?(t=(0,s.Q)({adminRoute:c,path:N}),u[0]=c,u[1]=N,u[2]=t):t=u[2];var k=t;T&&("trash"===E&&C?k+="/trash/".concat(C):E&&(k+="/".concat(E)));var A="".concat(k).concat(p),O="".concat(A).concat(b?"?locale=".concat(b):"");if(u[3]!==d||u[4]!==f||u[5]!==h||u[6]!==k||u[7]!==A||u[8]!==O||u[9]!==m||u[10]!==y||u[11]!==v){var R=A===k&&v===k||A!==k&&v.startsWith(A)||m;r=(0,o.jsx)(l.Button,{"aria-label":d,buttonStyle:"tab",className:[f,R&&"".concat(f,"--active")].filter(Boolean).join(" "),disabled:R,el:R&&A===v?"div":"link",margin:!1,newTab:y,size:"medium",to:R&&A===v?void 0:O,children:h}),u[3]=d,u[4]=f,u[5]=h,u[6]=k,u[7]=A,u[8]=O,u[9]=m,u[10]=y,u[11]=v,u[12]=r}else r=u[12];return r}},57960:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(24851);let i=(e,t,r)=>{let i={};return e&&(Object.keys(e).forEach(t=>{!0!==r&&e[t]?.disableFormData||(i[t]=e[t]?.value)}),t&&(i=(0,n.s)(i))),i}},59178:(e,t,r)=>{"use strict";r.d(t,{a:()=>T,b:()=>N,c:()=>w,d:()=>x,e:()=>E});var n=r(74578),i=r(88697),o=r(94799),l=r(35509),a=r(1317),s=r(52223),u=r(50614),c=r(67331),d=r(83390),f=r(84924),h=r(76270),p=r(78920),m=r(57960),y=r(34023),v=r(14288),_=r(44107),b=class extends h.Kp7{__cacheBuster;__fields;constructor({cacheBuster:e,fields:t,key:r}){super(r),this.__fields=t,this.__cacheBuster=e||0}static clone(e){return new this({cacheBuster:e.__cacheBuster,fields:e.__fields,key:e.__key})}static getType(){return"inlineBlock"}static importDOM(){return{}}static importJSON(e){var t;return t=e.fields,(0,h.pTq)(new b({fields:{...t,id:t?.id||new _.default().toHexString()}}))}static isInline(){return!1}canIndent(){return!0}createDOM(e){let t=document.createElement("span");return(0,h.ZB7)(t,e?.theme?.inlineBlock),t}decorate(e,t){return null}exportDOM(){let e=document.createElement("span");e.classList.add("inline-block-container");let t=document.createTextNode(this.getTextContent());return e.append(t),{element:e}}exportJSON(){return{type:"inlineBlock",fields:this.getFields(),version:1}}getCacheBuster(){return this.getLatest().__cacheBuster}getFields(){return this.getLatest().__fields}getTextContent(){return"Block Field"}isInline(){return!0}setFields(e,t){let r=this.getWritable();r.__fields=e,t||r.__cacheBuster++}updateDOM(){return!1}},S=y.lazy(()=>r.e(3112).then(r.bind(r,30731)).then(e=>({default:e.InlineBlockComponent}))),w=class extends b{static clone(e){return super.clone(e)}static getType(){return super.getType()}static importJSON(e){return x(e.fields)}decorate(...[e,t,r,n]){return(0,o.jsx)(S,{cacheBuster:this.getCacheBuster(),className:t.theme.inlineBlock??"LexicalEditorTheme__inlineBlock",CustomBlock:r,CustomLabel:n,formData:this.getFields(),nodeKey:this.getKey()})}
27exportJSON(){return super.exportJSON()}};function x(e){return(0,h.pTq)(new w({fields:{...e,id:e?.id||new _.default().toHexString()}}))}function E(e){return e instanceof w}var C=(0,y.createContext)({initialState:!1}),T=()=>y.use(C),N=e=>{let{cacheBuster:t,className:r,CustomBlock:_,CustomLabel:b,formData:S,nodeKey:w}=e,[x]=(0,l.DF)(),N=(0,a.a)(),{i18n:k,t:A}=(0,u.d)(),{createdInlineBlock:O,fieldProps:{featureClientSchemaMap:R,initialLexicalFormState:P,schemaPath:M},setCreatedInlineBlock:I,uuid:D}=(0,i.b)(),{fields:$}=(0,c.useDocumentForm)(),{getFormState:L}=(0,c.useServerFunctions)(),j=(0,c.useEditDepth)(),F=(0,y.useRef)(!1),[B,U]=y.useState(()=>{let e=P?.[S.id]?.formState;return!!e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,e in S?{...t,initialValue:S[e],value:S[e]}:t]))}),z=(0,y.useRef)(!1),K=(0,y.useRef)(t);(0,y.useEffect)(()=>{z.current?(K.current!==t&&U(!1),K.current=t):z.current=!0},[t]);let[q]=y.useState(()=>(0,v.A)()),[V,W]=y.useState(()=>{if(!b)return B?._components?.customComponents?.BlockLabel??void 0}),[J,H]=y.useState(()=>{if(!_)return B?._components?.customComponents?.Block??void 0}),G=(0,y.useMemo)(()=>_?(0,o.jsx)(_,{className:r,formData:S,isEditor:!0,isJSXConverter:!1,nodeKey:w,useInlineBlockComponentContext:T}):J,[_,r,S,w,J]),Y=(0,y.useMemo)(()=>b?(0,o.jsx)(b,{className:r,formData:S,isEditor:!0,isJSXConverter:!1,nodeKey:w,useInlineBlockComponentContext:T}):V,[b,r,S,w,V]),Z=(0,c.formatDrawerSlug)({slug:`lexical-inlineBlocks-create-${D}-${S.id}`,depth:j}),{toggleDrawer:X}=(0,n.a)(Z,!0),Q=(0,y.useRef)(null),{id:ee,collectionSlug:et,getDocPreferences:er,globalSlug:en}=(0,c.useDocumentInfo)(),{config:ei}=(0,d.c)(),eo=`${M}.lexical_internal_feature.blocks.lexical_inline_blocks.${S.blockType}`,el=R.blocks?.[eo]?.[0],ea=el.blockReferences?"string"==typeof el?.blockReferences?.[0]?ei.blocksMap[el?.blockReferences?.[0]]:el?.blockReferences?.[0]:el?.blocks?.[0],es=ea?.fields??[];(0,y.useEffect)(()=>{F.current||O?.getKey()!==w||(es.length>2&&X(),I?.(void 0),F.current=!0)},[es.length,O,w,I,X]);let eu=(0,y.useCallback)(()=>{x.update(()=>{(0,h.nsf)(w)?.remove()})},[x,w]),ec=ea?.labels?.singular?(0,s.s)(ea?.labels.singular,k):ea?.slug,ed=(0,y.useRef)(new AbortController),ef=`${M}.lexical_internal_feature.blocks.lexical_inline_blocks.${ea?.slug}.fields`;(0,y.useEffect)(()=>{let e=new AbortController;return S&&!B&&(async()=>{let{state:t}=await L({id:ee,collectionSlug:et,data:S,docPermissions:{fields:!0},docPreferences:await er(),documentFormState:(0,p.KS)($,{excludeFiles:!0}),globalSlug:en,initialBlockData:S,initialBlockFormState:S,operation:"update",readOnly:!N,renderAllFields:!0,schemaPath:ef,signal:e.signal});if(t){let e=(0,m.r)((0,p.KS)(t,{excludeFiles:!0}),!0);x.update(()=>{let t=(0,h.nsf)(w);t&&E(t)&&(e.blockType=S.blockType,t.setFields(e,!0))},{tag:h.$c$}),U(t),b||W(t._components?.customComponents?.BlockLabel),_||H(t._components?.customComponents?.Block)}})(),()=>{(0,f.eS)(e)}},[L,x,w,N,b,_,ef,ee,S,B,et,en,er,$]);let eh=(0,y.useCallback)(async({formState:e,submit:t})=>{(0,f.eS)(ed.current);let r=new AbortController;ed.current=r;let{state:n}=await L({id:ee,collectionSlug:et,docPermissions:{fields:!0},docPreferences:await er(),documentFormState:(0,p.KS)($,{excludeFiles:!0}),formState:e,globalSlug:en,initialBlockFormState:e,operation:"update",readOnly:!N,renderAllFields:!!t,schemaPath:ef,signal:r.signal});return n?(t&&(b||W(n._components?.customComponents?.BlockLabel),_||H(n._components?.customComponents?.Block)),n):e},[L,ee,et,er,$,en,N,ef,_,b]);(0,y.useEffect)(()=>()=>{B&&((e,t)=>Object.keys(t).some(r=>t[r]&&e[r]!==t[r].value))(S,B)&&U(!1),(0,f.eS)(ed.current)},[S,B]);let ep=(0,y.useCallback)((e,t)=>{t.blockType=S.blockType,x.update(()=>{let e=(0,h.nsf)(w);e&&E(e)&&e.setFields(t,!0)},{tag:h.$c$})},[x,w,S]),eg=(0,y.useMemo)(()=>()=>(0,o.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__removeButton`,disabled:!N,icon:"x",onClick:e=>{e.preventDefault(),eu()},round:!0,size:"small",tooltip:A("lexical:blocks:inlineBlocks:remove",{label:ec})}),[r,ec,N,eu,A]),em=(0,y.useMemo)(()=>()=>(0,o.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__editButton`,disabled:!N,el:"button",icon:"edit",onClick:()=>{X()},round:!0,size:"small",tooltip:A("lexical:blocks:inlineBlocks:edit",{label:ec})}),[r,ec,N,A,X]),ey=(0,y.useMemo)(()=>({children:e,className:t})=>(0,o.jsx)("div",{className:[`${r}
27__container`,r+"-"+S.blockType,t].filter(Boolean).join(" "),ref:Q,children:e}),[r,S.blockType]),ev=(0,y.useMemo)(()=>Y?()=>Y:()=>(0,o.jsx)("div",{children:ea?.labels?(0,s.s)(ea?.labels.singular,k):""}),[Y,ea?.labels,k]);return ea?(0,o.jsxs)(c.Form,{beforeSubmit:[async({formState:e})=>await eh({formState:e,submit:!0})],disableValidationOnSubmit:!0,el:"div",fields:ea?.fields,initialState:B||{},onChange:[eh],onSubmit:(e,t)=>{ep(e,t),X()},uuid:q,children:[(0,o.jsx)(c.EditDepthProvider,{children:(0,o.jsx)(c.Drawer,{className:"",slug:Z,title:A(`lexical:blocks:inlineBlocks:${S?.id?"edit":"create"}`,{label:ec??A("lexical:blocks:inlineBlocks:label")}),children:B?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.RenderFields,{fields:ea?.fields,forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:ef,permissions:!0,readOnly:!N}),(0,o.jsx)(c.FormSubmit,{programmaticSubmit:!0,children:A("fields:saveChanges")})]}):null})}),G?(0,o.jsx)(C,{value:{EditButton:em,initialState:B,InlineBlockContainer:ey,Label:ev,nodeKey:w,RemoveButton:eg},children:G}):(0,o.jsxs)(ey,{children:[B?(0,o.jsx)(ev,{}):(0,o.jsx)(d.f,{height:"15px",width:"40px"}),N?(0,o.jsxs)("div",{className:`${r}__actions`,children:[(0,o.jsx)(em,{}),(0,o.jsx)(eg,{})]}):null]})]}):(0,o.jsxs)(ey,{className:`${r}-not-found`,children:[(0,o.jsxs)("span",{children:["Error: Block '",S.blockType,"' not found"]}),N?(0,o.jsx)("div",{className:`${r}__actions`,children:(0,o.jsx)(eg,{})}):null]})}},59692:(e,t,r)=>{"use strict";r.d(t,{x4:()=>o});let{isPlural:n,singular:i}=r(88492),o=(e,t=!1)=>{let r=(e||"").trim().split(/[\s-]/),n=[];return r.forEach(e=>{if(""!==e){let t=e.split(/(?=[A-Z])/).join(" ");n.push((e=>e.charAt(0).toUpperCase()+e.slice(1))(t))}}),t?n.join("").replace(/\s/g,""):n.join(" ")}},59739:(e,t,r)=>{"use strict";let{normalizeIPv6:n,removeDotSegments:i,recomposeAuthority:o,normalizeComponentEncoding:l,isIPv4:a,nonSimpleDomain:s}=r(2334),{SCHEMES:u,getSchemeHandler:c}=r(62407);function d(e,t,r,n){let o={};return n||(e=p(f(e,r),r),t=p(f(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=i(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=i(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function f(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),l=[],a=c(n.scheme||r.scheme);a&&a.serialize&&a.serialize(r,n),void 0!==r.path&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==n.reference&&r.scheme&&l.push(r.scheme,":");let s=o(r);if(void 0!==s&&("suffix"!==n.reference&&l.push("//"),l.push(s),r.path&&"/"!==r.path[0]&&l.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||a&&a.absolutePath||(e=i(e)),void 0===s&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),l.push(e)}return void 0!==r.query&&l.push("?",r.query),void 0!==r.fragment&&l.push("#",r.fragment),l.join("")}let h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function p(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);let l=e.match(h);if(l){if(i.scheme=l[1],i.userinfo=l[3],i.host=l[4],i.port=parseInt(l[5],10),i.path=l[6]||"",i.query=l[7],i.fragment=l[8],isNaN(i.port)&&(i.port=l[5]),i.host)if(!1===a(i.host)){let e=n(i.host);i.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0;void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let t=c(r.scheme||i.scheme);if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&i.host&&(r.domainHost||t&&t.domainHost)&&!1===o&&s(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),t&&t.parse&&t.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}let m={SCHEMES:u,normalize:function(e,t){return"string"==typeof e?e=f(p(e,t),t):"object"==typeof e&&(e=p(f(e,t),t)),e}
27,resolve:function(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=d(p(e,n),p(t,n),n,!0);return n.skipEscape=!0,f(i,n)},resolveComponent:d,equal:function(e,t,r){return"string"==typeof e?e=f(l(p(e=unescape(e),r),!0),{...r,skipEscape:!0}):"object"==typeof e&&(e=f(l(e,!0),{...r,skipEscape:!0})),"string"==typeof t?t=f(l(p(t=unescape(t),r),!0),{...r,skipEscape:!0}):"object"==typeof t&&(t=f(l(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:f,parse:p};e.exports=m,e.exports.default=m,e.exports.fastUri=m},60121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(57222),i=r(62977),o=r(10485),l=r(20309),a=r(54686),s=r(48342),u=r(53598),c=r(94947),d=r(94506),f=r(28214),h=r(80692),p=r(73382),m=r(16543),y=r(52367),v=r(42392),_=r(23089);t.default=function(e=!1){let t=[h.default,p.default,m.default,y.default,v.default,_.default,u.default,c.default,s.default,d.default,f.default];return e?t.push(i.default,l.default):t.push(n.default,o.default),t.push(a.default),t}},60677:(e,t,r)=>{"use strict";r.d(t,{a:()=>m,b:()=>y,c:()=>v,d:()=>_,e:()=>S,f:()=>w});var n,i,o=r(52252),l=r(34023),a=r(56742);function s(e){if("react"===e)return n||(n=r.t(l,2));if("react-dom"===e)return i||(i=r.t(a,2));throw Error("Unknown module ".concat(e))}var u=Object.create,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,h=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,m=function(e){return"u">(0,o._)(s)?s:("undefined"==typeof Proxy?"undefined":(0,o._)(Proxy))<"u"?new Proxy(e,{get:function(e,t){return("u">(0,o._)(s)?s:e)[t]}}):e}(function(e){if("u">(0,o._)(s))return s.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),y=function(e,t){return function(){return e&&(t=e(e=0)),t}},v=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},_=function(e,t){for(var r in t)c(e,r,{get:t[r],enumerable:!0})},b=function(e,t,r,n){var i=!0,l=!1,a=void 0;if(t&&(void 0===t?"undefined":(0,o._)(t))=="object"||"function"==typeof t)try{for(var s,u=f(t)[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)!function(){var i=s.value;p.call(e,i)||i===r||c(e,i,{get:function(){return t[i]},enumerable:!(n=d(t,i))||n.enumerable})}()}catch(e){l=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(l)throw a}}return e},S=function(e,t,r){return r=null!=e?u(h(e)):{},b(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)},w=function(e){return b(c({},"__esModule",{value:!0}),e)}},62407:(e,t,r)=>{"use strict";let{isUUID:n}=r(2334),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function l(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])}function a(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function s(e){let t="https"===String(e.scheme).toLowerCase();return(e.port===(t?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}let u={scheme:"http",domainHost:!0,parse:a,serialize:s},c={scheme:"https",domainHost:u.domainHost,parse:a,serialize:s},d={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=l(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if((e.port===(l(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},f={scheme:"wss",domainHost:d.domainHost,parse:d.parse,serialize:d.serialize},h={http:u,https:c,ws:d,wss:f,urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(i);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=p(`${n}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=p(`${r}:${t.nid||n}`);
27i&&(e=i.serialize(e,t));let o=e,l=e.nss;return o.path=`${n||t.nid}:${l}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&n(e.uuid)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e){return e.nss=(e.uuid||"").toLowerCase(),e},skipNormalize:!0}};function p(e){return e&&(h[e]||h[e.toLowerCase()])||void 0}Object.setPrototypeOf(h,null),e.exports={wsIsSecure:l,SCHEMES:h,isValidSchemeName:function(e){return -1!==o.indexOf(e)},getSchemeHandler:p}},62977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(10485);t.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")}},63281:(e,t,r)=>{"use strict";r.d(t,{$:()=>y});var n=r(78300),i=r(11241),o=r(94799),l=r(50614),a=r(83390),s=r(67331),u=r(89093),c=r(34023);function d(e,t){return JSON.stringify(e)!==JSON.stringify(t)}var f=r(66744);function h({config:e,fields:t,locales:r,parentIsLocalized:n,valueFrom:i,valueTo:o}){let l=0;return t.forEach(t=>{if("name"in t&&"id"===t.name)return;let a=t.type;switch(a){case"array":case"blocks":if(r&&(0,u.Cd)({field:t,parentIsLocalized:n}))r.forEach(a=>{let s=i?.[t.name]?.[a]??[],u=o?.[t.name]?.[a]??[];l+=p({config:e,field:t,locales:r,parentIsLocalized:n||t.localized,valueFromRows:s,valueToRows:u})});else{let a=i?.[t.name]??[],s=o?.[t.name]??[];l+=p({config:e,field:t,locales:r,parentIsLocalized:n||t.localized,valueFromRows:a,valueToRows:s})}break;case"checkbox":case"code":case"date":case"email":case"join":case"json":case"number":case"point":case"radio":case"relationship":case"richText":case"select":case"text":case"textarea":case"upload":r&&(0,u.Cd)({field:t,parentIsLocalized:n})?r.forEach(e=>{d(o?.[t.name]?.[e],i?.[t.name]?.[e])&&l++}):d(o?.[t.name],i?.[t.name])&&l++;break;case"collapsible":case"row":l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:o});break;case"group":(0,u.jY)(t)?r&&(0,u.Cd)({field:t,parentIsLocalized:n})?r.forEach(a=>{l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name]?.[a],valueTo:o?.[t.name]?.[a]})}):l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name],valueTo:o?.[t.name]}):l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:o});break;case"tabs":t.tabs.forEach(t=>{"name"in t&&r&&t.localized?r.forEach(a=>{l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name]?.[a],valueTo:o?.[t.name]?.[a]})}):"name"in t?l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name],valueTo:o?.[t.name]}):l+=h({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:o})});break;case"ui":break;default:throw Error(`Unexpected field.type in countChangedFields : ${String(a)}`)}}),l}function p({config:e,field:t,locales:r,parentIsLocalized:n,valueFromRows:i=[],valueToRows:o=[]}){let l=0,a=0;for(;i[a]||o[a];){let s=i?.[a]||{},u=o?.[a]||{},{fields:c}=(0,f.G)({baseVersionField:{type:"text",fields:[],path:"",schemaPath:""},config:e,field:t,row:a,valueFromRow:s,valueToRow:u});l+=h({config:e,fields:c,locales:r,parentIsLocalized:n||t.localized,valueFrom:s,valueTo:u}),a++}return l}var m="diff-collapser",y=function(e){var t=(0,i.c)(19),r=e.children,d=e.field,f=e.fields,y=e.hideGutter,v=e.initCollapsed,_=e.isIterable,b=e.Label,S=e.locales,w=e.parentIsLocalized,x=e.valueFrom,E=e.valueTo,C=void 0!==y&&y,T=void 0!==_&&_,N=(0,l.d)().t,k=(0,n._)((0,c.useState)(void 0!==v&&v),2),A=k[0],O=k[1],R=(0,a.c)().config;if(t[0]!==b||t[1]!==r||t[2]!==R||t[3]!==d||t[4]!==f||t[5]!==C||t[6]!==A||t[7]!==T||t[8]!==S||t[9]!==w||t[10]!==N||t[11]!==x||t[12]!==E){if(T){if(!(0,u.eE)(d)&&!(0,u.MT)(d))throw Error("DiffCollapser: field must be an array or blocks field when isIterable is true");var P,M,I,D,$=null!=x?x:[],L=null!=E?E:[];if(!Array.isArray($)||!Array.isArray(L))throw Error("DiffCollapser: valueFrom and valueTro must be arrays when isIterable is true");M=p({config:R,field:d,locales:S,parentIsLocalized:w,valueFromRows:$,valueToRows:L})}else M=h({config:R,fields:f,locales:S,parentIsLocalized:w,valueFrom:x,valueTo:E});var j=A&&"".concat(m,"__content--is-collapsed"),F=C&&"".concat(m,"__content--hide-gutter");
27t[14]!==j||t[15]!==F?(I=["".concat(m,"__content"),j,F].filter(Boolean),t[14]=j,t[15]=F,t[16]=I):I=t[16];var B=I.join(" ");t[17]!==A?(D=function(){return O(!A)},t[17]=A,t[18]=D):D=t[18],P=(0,o.jsxs)("div",{className:m,children:[(0,o.jsxs)(s.FieldDiffLabel,{children:[(0,o.jsxs)("button",{"aria-label":A?"Expand":"Collapse",className:"".concat(m,"__toggle-button"),onClick:D,type:"button",children:[(0,o.jsx)("div",{className:"".concat(m,"__label"),children:b}),(0,o.jsx)(s.ChevronIcon,{direction:A?"right":"down",size:"small"})]}),M>0&&A&&(0,o.jsx)("span",{className:"".concat(m,"__field-change-count"),children:N("version:changedFieldsCount",{count:M})})]}),(0,o.jsx)("div",{className:B,children:r})]}),t[0]=b,t[1]=r,t[2]=R,t[3]=d,t[4]=f,t[5]=C,t[6]=A,t[7]=T,t[8]=S,t[9]=w,t[10]=N,t[11]=x,t[12]=E,t[13]=P}else P=t[13];return P}},63506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/payload-favicon-light.b8a65007.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEVMaXH///////////////////////////////////////////////////////////////////+kpd7DAAAAEnRSTlMAdo/15mvEgxwpDQSgS8ZCPbJ5RcrnAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAOklEQVR4nC3LQQKAIAhFwaeAH9Sy7n/ZNs1+gBqjgMxL8j4Ja4v0hu7XD1toE0EXzQvqSWY3yQL+vj4zmwFq4cBxIQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},63639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(45508),i=r(6894);t.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default]},65388:(e,t,r)=>{"use strict";r.d(t,{Pi:()=>N,ZI:()=>R,dJ:()=>_,fi:()=>T,gA:()=>k,jL:()=>w,jd:()=>S,xi:()=>b});var n=r(30213),i=r(79447),o=r(11825),l=r(76270),a=r(9971);function s(e,t){if(void 0!==document.caretRangeFromPoint){let r=document.caretRangeFromPoint(e,t);return null===r?null:{node:r.startContainer,offset:r.startOffset}}if("undefined"!==document.caretPositionFromPoint){let r=document.caretPositionFromPoint(e,t);return null===r?null:{node:r.offsetNode,offset:r.offset}}return null}let u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=u&&"documentMode"in document?document.documentMode:null,d=u&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),f=!(!u||!("InputEvent"in window)||c)&&"getTargetRanges"in new window.InputEvent("input"),h=u&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),p=u&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,m=u&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=u&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&d&&!m,v=(0,l.guI)("DRAG_DROP_PASTE_FILE");class _ extends l.fGB{static getType(){return"quote"}static clone(e){return new _(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,l.ZB7)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:C,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,l.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return b().updateFromJSON(e)}insertNewAfter(e,t){let r=(0,l.lJ7)(),n=this.getDirection();return r.setDirection(n),this.insertAfter(r,t),r}collapseAtStart(){let e=(0,l.lJ7)();
27return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function b(){return(0,l.pTq)(new _)}function S(e){return e instanceof _}class w extends l.fGB{__tag;static getType(){return"heading"}static clone(e){return new w(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,r=document.createElement(t),n=e.theme.heading;if(void 0!==n){let e=n[t];(0,l.ZB7)(r,e)}return r}updateDOM(e,t,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:E,priority:0}),h2:e=>({conversion:E,priority:0}),h3:e=>({conversion:E,priority:0}),h4:e=>({conversion:E,priority:0}),h5:e=>({conversion:E,priority:0}),h6:e=>({conversion:E,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&x(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>x(e)?{conversion:e=>({node:T("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,l.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return T(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let r=e?e.anchor.offset:0,n=this.getLastDescendant(),i=n&&(!e||e.anchor.key!==n.getKey()||r!==n.getTextContentSize())&&e?T(this.getTag()):(0,l.lJ7)(),o=this.getDirection();if(i.setDirection(o),this.insertAfter(i,t),0===r&&!this.isEmpty()&&e){let e=(0,l.lJ7)();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?(0,l.lJ7)():T(this.getTag());
27return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function x(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function E(e){let t=e.nodeName.toLowerCase(),r=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(r=T(t),null!==e.style&&((0,l.dxY)(e,r),r.setFormat(e.style.textAlign))),{node:r}}function C(e){let t=b();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,l.dxY)(e,t)),{node:t}}function T(e="h1"){return(0,l.pTq)(new w(e))}function N(e){return e instanceof w}function k(e){let t=null;if((0,a.xj)(e,DragEvent)?t=e.dataTransfer:(0,a.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let r=t.types,n=r.includes("Files"),i=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),i]}function A(e){let t=(0,l.xL4)(e);return(0,l.Cyw)(t)}function O(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function R(e){return(0,l.Sdt)(e.registerCommand(l.d8p,e=>{let t=(0,l.vJq)();return!!(0,l.RTZ)(t)&&(t.clear(),!0)},l.jZM),e.registerCommand(l.WuB,e=>{let t=(0,l.vJq)();return(0,l.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,l.RTZ)(t)&&(t.deleteNodes(),!0)},l.jZM),e.registerCommand(l.hi0,e=>{let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&(t.deleteWord(e),!0)},l.jZM),e.registerCommand(l.viC,e=>{let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&(t.deleteLine(e),!0)},l.jZM),e.registerCommand(l.bM3,t=>{let r=(0,l.vJq)();if("string"==typeof t)null!==r&&r.insertText(t);else{if(null===r)return!1;let i=t.dataTransfer;if(null!=i)(0,n.Bi)(i,r,e);else if((0,l.I2P)(r)){let e=t.data;return e&&r.insertText(e),!0}}return!0},l.jZM),e.registerCommand(l.$ey,()=>{let e=(0,l.vJq)();return!!(0,l.I2P)(e)&&(e.removeText(),!0)},l.jZM),e.registerCommand(l.mB,e=>{let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&(t.formatText(e),!0)},l.jZM),e.registerCommand(l.fUS,e=>{let t=(0,l.vJq)();if(!(0,l.I2P)(t)&&!(0,l.RTZ)(t))return!1;for(let r of t.getNodes()){let t=(0,l.BtT)(r,e=>(0,l.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},l.jZM),e.registerCommand(l.FEN,e=>{let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&(t.insertLineBreak(e),!0)},l.jZM),e.registerCommand(l.XKQ,()=>{let e=(0,l.vJq)();return!!(0,l.I2P)(e)&&(e.insertParagraph(),!0)},l.jZM),e.registerCommand(l.YW5,()=>{let e=(0,l.ev7)(),t=(0,l.vJq)();return(0,l.I2P)(t)&&(e.setFormat(t.format),e.setStyle(t.style)),(0,l.H2A)([e]),!0},l.jZM),e.registerCommand(l.PiT,()=>(0,a.Jy)(e=>{let t=e.getIndent();e.setIndent(t+1)}),l.jZM),e.registerCommand(l.sik,()=>(0,a.Jy)(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),l.jZM),e.registerCommand(l.UDz,e=>{let t=(0,l.vJq)();if((0,l.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}else if((0,l.I2P)(t)){let r=(0,l.B$P)(t.focus,!0);if(!e.shiftKey&&(0,l.Cyw)(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},l.jZM),e.registerCommand(l.bbF,e=>{let t=(0,l.vJq)();if((0,l.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectNext(0,0),!0}else if((0,l.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,l.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let r=(0,l.B$P)(t.focus,!1);if(!e.shiftKey&&(0,l.Cyw)(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},l.jZM),e.registerCommand(l.AX0,e=>{let t=(0,l.vJq)();if((0,l.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,o.dt)(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!(0,l.I2P)(t))return!1;if((0,o.Cb)(t,!0)){let r=e.shiftKey;return e.preventDefault(),(0,o.Rk)(t,r,!0),!0}return!1},l.jZM),e.registerCommand(l.JM3,e=>{let t=(0,l.vJq)();if((0,l.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,o.dt)(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!(0,l.I2P)(t))return!1;let r=e.shiftKey;return!!(0,o.Cb)(t,!1)&&(e.preventDefault(),(0,o.Rk)(t,r,!1),!0)},l.jZM),e.registerCommand(l.gCZ,t=>{if(A(t.target))return!1;let r=(0,l.vJq)();if((0,l.I2P)(r)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let r=t.getNode();if((0,l.hVZ)(r))return!1;let n=(0,a.mB)(r);return n.getIndent()>0&&(n.is(r)||r.is(n.getFirstDescendant()))}(r))return t.preventDefault(),e.dispatchCommand(l.sik,void 0);if(p&&"ko-KR"===navigator.language)return!1}else if(!(0,l.RTZ)(r))return!1;return t.preventDefault(),e.dispatchCommand(l.WuB,!0)},l.jZM),e.registerCommand(l.w$Z,t=>{if(A(t.target))return!1;let r=(0,l.vJq)();return!(!(0,l.I2P)(r)&&!(0,l.RTZ)(r))&&(t.preventDefault(),e.dispatchCommand(l.WuB,!1))},l.jZM),e.registerCommand(l.RTo,t=>{let r=(0,l.vJq)();if(!(0,l.I2P)(r))return!1;if(O(r),null!==t){if((p||h||y)&&f)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(l.FEN,!1)}return e.dispatchCommand(l.XKQ,void 0)},l.jZM),e.registerCommand(l.Q$N,()=>{let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&(e.blur(),!0)},l.jZM),e.registerCommand(l.Sr4,t=>{let[,r]=k(t);
27if(r.length>0){let n=s(t.clientX,t.clientY);if(null!==n){let{offset:t,node:i}=n,o=(0,l.xL4)(i);if(null!==o){let e=(0,l.uTE)();if((0,l.kFe)(o))e.anchor.set(o.getKey(),t,"text"),e.focus.set(o.getKey(),t,"text");else{let t=o.getParentOrThrow().getKey(),r=o.getIndexWithinParent()+1;e.anchor.set(t,r,"element"),e.focus.set(t,r,"element")}let r=(0,l.CaD)(e);(0,l.n1P)(r)}e.dispatchCommand(v,r)}return t.preventDefault(),!0}let n=(0,l.vJq)();return!!(0,l.I2P)(n)},l.jZM),e.registerCommand(l.TgX,e=>{let[t]=k(e),r=(0,l.vJq)();return!(t&&!(0,l.I2P)(r))},l.jZM),e.registerCommand(l.riq,e=>{let[t]=k(e),r=(0,l.vJq)();if(t&&!(0,l.I2P)(r))return!1;let n=s(e.clientX,e.clientY);if(null!==n){let t=(0,l.xL4)(n.node);(0,l.Cyw)(t)&&e.preventDefault()}return!0},l.jZM),e.registerCommand(l.HYn,()=>((0,l.e1k)(),!0),l.jZM),e.registerCommand(l.u5G,t=>((0,n.lW)(e,(0,a.xj)(t,ClipboardEvent)?t:null),!0),l.jZM),e.registerCommand(l.VSO,t=>((async function(e,t){await (0,n.lW)(t,(0,a.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,l.vJq)();(0,l.I2P)(e)?e.removeText():(0,l.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),l.jZM),e.registerCommand(l.waI,t=>{let[,r,i]=k(t);return r.length>0&&!i?(e.dispatchCommand(v,r),!0):!((0,l.vAA)(t.target)&&(0,l.Z$U)(t.target))&&null!==(0,l.vJq)()&&(t.preventDefault(),e.update(()=>{let r=(0,l.vJq)(),i=(0,a.xj)(t,InputEvent)||(0,a.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==r&&(0,n.Bi)(i,r,e)},{tag:l.fwY}),!0)},l.jZM),e.registerCommand(l.Huu,e=>{let t=(0,l.vJq)();return(0,l.I2P)(t)&&O(t),!1},l.jZM),e.registerCommand(l.OXk,e=>{let t=(0,l.vJq)();return(0,l.I2P)(t)&&O(t),!1},l.jZM))}(0,l.vE9)({conflictsWith:["@lexical/plain-text"],dependencies:[i.P],name:"@lexical/rich-text",nodes:()=>[w,_],register:R})},65690:(e,t,r)=>{"use strict";r.d(t,{N:()=>p});var n=r(54947),i=r(82998),o=r(66508),l=r(94799),a=r(36008),s=r(27357),u=r(34023);r(11241);var c=u.createContext({isTransitioning:!1,startRouteTransition:function(e){"function"==typeof e&&e()},transitionProgress:0});let d=/https?|ftp|gopher|file/;function f(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}var h="default"in a?a.default:a,p=function(e){var t=e.children,r=e.href,a=e.onClick,p=e.preventDefault,m=void 0===p||p,y=e.ref,v=e.replace,_=e.scroll,b=(0,o._)(e,["children","href","onClick","preventDefault","ref","replace","scroll"]),S=(0,s.useRouter)(),w=u.use(c).startRouteTransition;return(0,l.jsx)(h,(0,i._)((0,n._)({href:r,onClick:function(e){if(!((t=e.currentTarget.getAttribute("target"))&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)){a&&a(e),m&&e.preventDefault();var t,n="string"==typeof r?r:function(e){let{auth:t}=e,{hostname:r}=e,n=e.protocol||"",i=e.pathname||"",o=e.hash||"",l=e.query||"",a=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?a=t+e.host:r&&(a=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(a+=":"+e.port)),l&&"object"==typeof l&&(l=String(function(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{Array.isArray(r)?r.forEach(r=>t.append(e,f(r))):t.set(e,f(r))}),t}(l)));let s=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||d.test(n))&&!1!==a?(a="//"+(a||""),i&&"/"!==i[0]&&(i="/"+i)):a||(a=""),o&&"#"!==o[0]&&(o="#"+o),s&&"?"!==s[0]&&(s="?"+s),i=i.replace(/[?#]/g,encodeURIComponent),s=s.replace("#","%23"),`${n}${a}${i}${s}${o}`}(r);w(function(){v?S.replace(n,{scroll:_}):S.push(n,{scroll:_})})}},ref:y},b),{children:t}))}},65905:(e,t,r)=>{"use strict";r.d(t,{Iterable:()=>p});var n=r(11241),i=r(94799),o=r(52223),l=r(50614),a=r(83390),s=r(89093);r(34023);var u=r(19095),c=r(63281),d=r(81749),f=r(66744),h="iterable-diff",p=function(e){var t,r,p=(0,n.c)(12),m=e.baseVersionField,y=e.comparisonValue,v=e.field,_=e.locale,b=e.parentIsLocalized,S=e.versionValue,w=(0,l.d)(),x=w.i18n,E=w.t,C=(0,u.I)().selectedLocales,T=(0,a.c)().config;if(!(0,s.eE)(v)&&!(0,s.MT)(v))throw Error("Expected field to be an array or blocks type but got: ".concat(v.type));var N=Math.max(Array.isArray(S)?S.length:0,Array.isArray(y)?y.length:0);return p[0]!==m||p[1]!==T||p[2]!==v||p[3]!==x||p[4]!==_||p[5]!==N||p[6]!==b||p[7]!==C||p[8]!==E||p[9]!==y||p[10]!==S?(t=(0,i.jsx)("div",{className:h,children:(0,i.jsxs)(c.$,{field:v,isIterable:!0,Label:"label"in v&&v.label&&"function"!=typeof v.label&&(0,i.jsxs)("span",{children:[_&&(0,i.jsx)("span",{className:"".concat(h,"__locale-label"),children:_}),(0,o.s)(v.label,x)]}),locales:C,parentIsLocalized:b,valueFrom:y,valueTo:S,children:[N>0&&(0,i.jsx)("div",{className:"".concat(h,"__rows"),children:Array.from({length:N},function(e,t){var r=(null==S?void 0:S[t])||{},n=(null==y?void 0:y[t])||{},o=(0,f.G)({baseVersionField:m,config:T,field:v,row:t,valueFromRow:n,valueToRow:r}),l=o.fields,a=o.versionFields;if(!(null==a?void 0:a.length))return null;var u=String(t+1).padStart(2,"0"),p=(0,s.eE)(v)?"".concat(E("general:item")," ").concat(u):"".concat(E("fields:block")," ").concat(u);return(0,i.jsx)("div",{className:"".concat(h,"__row"),children:(0,i.jsx)(c.$,{fields:l,hideGutter:!0,Label:(0,i.jsxs)("div",{className:"".concat(h,"-label-container"),children:[(0,i.jsx)("div",{className:"".concat(h,"-label-prefix")}),(0,i.jsx)("span",{className:"".concat(h,"__label"),children:p})]}),locales:C,parentIsLocalized:b||v.localized,valueFrom:n,valueTo:r,children:(0,i.jsx)(d.RenderVersionFieldsToDiff,{versionFields:a})})},t)})}),0===N&&(0,i.jsx)("div",{className:"".concat(h,"__no-rows"),children:x.t("version:noRowsFound",{label:"labels"in v&&(null==(r=v.labels)?void 0:r.plural)?(0,o.s)(v.labels.plural,x):x.t("general:rows")})})]})}),p[0]=m,p[1]=T,p[2]=v,p[3]=x,p[4]=_,p[5]=N,p[6]=b,p[7]=C,p[8]=E,p[9]=y,p[10]=S,p[11]=t):t=p[11],t}},66001:(e,t,r)=>{"use strict";r.d(t,{Button:()=>w});
27var n=r(54947),i=r(82998),o=r(78300),l=r(94799),a=r(34023);r(23298);let s=({ariaLabel:e,className:t,direction:r,size:n})=>(0,l.jsx)("svg",{"aria-label":e,className:["icon icon--chevron",t,n&&`icon--size-${n}`].filter(Boolean).join(" "),height:"100%",style:{transform:"left"===r?"rotate(90deg)":"right"===r?"rotate(-90deg)":"up"===r?"rotate(180deg)":void 0},viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M14 8L10 12L6 8",strokeLinecap:"square"})});r(81151),r(47247),r(80527),r(12900),r(15629);var u=r(65690),c=r(56742),d=r(15335),f=function(e){var t=(0,a.useRef)(e);return(0,a.useInsertionEffect)(function(){t.current=e},[e]),(0,a.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,(0,d._)(r))},[])};r(32916),r(33063);var h="popup-button",p=function(e){var t=e.active,r=e.button,n=e.buttonType,i=e.className,o=e.disabled,a=e.noBackground,s=e.setActive,u=e.size,c=[h,i,"".concat(h,"--").concat(n),!a&&"".concat(h,"--background"),u&&"".concat(h,"--size-").concat(u),o&&"".concat(h,"--disabled")].filter(Boolean).join(" "),d=function(){s(!t,!1)},f=function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s(!t,!0))};return"none"===n?null:"custom"===n?(0,l.jsx)("div",{className:c,onClick:d,onKeyDown:f,role:"button",tabIndex:0,children:r}):(0,l.jsx)("button",{className:c,disabled:o,onClick:d,onKeyDown:f,tabIndex:0,type:"button",children:r})},m="popup",y=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]","summary"].map(function(e){return"".concat(e,':not([tabindex="-1"])')}).join(", "),v=function(e){var t=e.id,r=e.button,n=e.buttonClassName,i=e.buttonSize,s=e.buttonType,u=e.caret,d=e.children,h=e.className,v=e.disabled,_=e.forceOpen,b=e.horizontalAlign,S=void 0===b?"left":b,w=e.initActive,x=e.noBackground,E=e.onToggleClose,C=e.onToggleOpen,T=e.portalClassName,N=e.render,k=e.showOnHover,A=e.showScrollbar,O=e.size,R=e.verticalAlign,P=void 0===R?"bottom":R,M=(0,a.useRef)(null),I=(0,a.useRef)(null),D=(0,a.useRef)(!1),$=(0,o._)((0,a.useState)(!1),2),L=$[0],j=$[1],F=(0,o._)((0,a.useState)(void 0!==w&&w),2),B=F[0],U=F[1],z=(0,o._)((0,a.useState)("top"===P),2),K=z[0],q=z[1];(0,a.useEffect)(function(){j(!0)},[]);var V=(0,a.useCallback)(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(D.current=t,null==C||C(!0)):null==E||E(),U(e)},[E,C]),W=f(function(){var e,t=I.current,r=M.current;if(t&&r){var n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),o="top"===P;"bottom"===P?(e=n.bottom+window.scrollY+10,n.bottom+i.height+10>window.innerHeight&&(e=n.top+window.scrollY-i.height-10,o=!0)):(e=n.top+window.scrollY-i.height-10,n.top-i.height-10<0&&(e=n.bottom+window.scrollY+10,o=!1)),q(o);var l="right"===S?n.right-i.width:"center"===S?n.left+n.width/2-i.width/2:n.left;l=Math.max(10,Math.min(l,window.innerWidth-i.width-10));var a=Math.max(12,Math.min(n.left+n.width/2-l,i.width-12)),s="".concat(Math.round(e),"px"),u="".concat(Math.round(l+window.scrollX),"px"),c="".concat(Math.round(a),"px");r.style.top!==s&&(r.style.top=s),r.style.left!==u&&(r.style.left=u),r.style.getPropertyValue("--caret-left")!==c&&r.style.setProperty("--caret-left",c)}}),J=f(function(e){var t,r,n=!(null==(t=M.current)?void 0:t.contains(e.target)),i=!(null==(r=I.current)?void 0:r.contains(e.target));n&&i&&V(!1)}),H=f(function(e){var t=M.current;if(t&&B){if("Escape"===e.key){e.preventDefault(),V(!1),null==(n=I.current)||null==(r=n.querySelector('button, [tabindex="0"]'))||r.focus();return}if("Tab"===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){var r,n,i,o=Array.from(t.querySelectorAll(y));if(0===o.length)return;e.preventDefault();var l=o.findIndex(function(e){return e===document.activeElement}),a="ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey;i=-1===l?a?o.length-1:0:a?0===l?o.length-1:l-1:l===o.length-1?0:l+1,o[i].focus()}}}),G=f(function(e){var t,r=e.target;if(!r.closest("[data-popup-prevent-close]")){var n=r.closest('button, a[href], [role="button"], [role="menuitem"]');
27n&&(null==(t=M.current)?void 0:t.contains(n))&&V(!1)}});(0,a.useEffect)(function(){if(B){var e=M.current;if(e)return W(),D.current&&requestAnimationFrame(function(){var t=e.querySelector(y);null==t||t.focus()}),window.addEventListener("resize",W),window.addEventListener("scroll",W,{capture:!0,passive:!0}),document.addEventListener("mousedown",J),document.addEventListener("keydown",H),e.addEventListener("click",G),function(){window.removeEventListener("resize",W),window.removeEventListener("scroll",W,{capture:!0}),document.removeEventListener("mousedown",J),document.removeEventListener("keydown",H),e.removeEventListener("click",G)}}},[B]),(0,a.useEffect)(function(){void 0!==_&&V(_)},[_,V]);var Y=(0,l.jsx)(p,{active:B,button:r,buttonType:void 0===s?"default":s,className:n,disabled:v,noBackground:x,setActive:V,size:i});return(0,l.jsxs)("div",{className:[m,h].filter(Boolean).join(" "),id:t,children:[(0,l.jsx)("div",{className:"".concat(m,"__trigger-wrap"),ref:I,children:void 0!==k&&k?(0,l.jsx)("div",{className:"".concat(m,"__on-hover-watch"),onMouseEnter:function(){return V(!0)},onMouseLeave:function(){return V(!1)},role:"button",tabIndex:0,children:Y}):Y}),L?(0,c.createPortal)((0,l.jsxs)("div",{className:B?["".concat(m,"__content"),"".concat(m,"--size-").concat(void 0===O?"medium":O),K?"".concat(m,"--v-top"):"".concat(m,"--v-bottom"),T].filter(Boolean).join(" "):"".concat(m,"__hidden-content"),"data-popup-id":t||void 0,ref:M,children:[(0,l.jsxs)("div",{className:"".concat(m,"__scroll-container").concat(void 0!==A&&A?" ".concat(m,"__scroll-container--show-scrollbar"):""),children:[null==N?void 0:N({close:function(){return V(!1)}}),d]}),(void 0===u||u)&&(0,l.jsx)("div",{className:"".concat(m,"__caret")})]}),document.body):null]})};r(68870);var _=r(72340),b={chevron:s,edit:({className:e})=>(0,l.jsx)("svg",{className:[e,"icon icon--edit"].filter(Boolean).join(" "),viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M9.68531 4.62938H5.2634C4.92833 4.62938 4.60698 4.76248 4.37004 4.99942C4.13311 5.23635 4 5.5577 4 5.89278V14.7366C4 15.0717 4.13311 15.393 4.37004 15.63C4.60698 15.8669 4.92833 16 5.2634 16H14.1072C14.4423 16 14.7636 15.8669 15.0006 15.63C15.2375 15.393 15.3706 15.0717 15.3706 14.7366V10.3147M13.7124 4.39249C13.9637 4.14118 14.3046 4 14.66 4C15.0154 4 15.3562 4.14118 15.6075 4.39249C15.8588 4.6438 16 4.98464 16 5.34004C16 5.69544 15.8588 6.03629 15.6075 6.28759L9.91399 11.9817C9.76399 12.1316 9.57868 12.2413 9.37515 12.3008L7.56027 12.8314C7.50591 12.8472 7.44829 12.8482 7.39344 12.8341C7.33859 12.8201 7.28853 12.7915 7.24849 12.7515C7.20845 12.7115 7.17991 12.6614 7.16586 12.6066C7.15181 12.5517 7.15276 12.4941 7.16861 12.4397L7.69924 10.6249C7.75896 10.4215 7.86888 10.2364 8.01888 10.0866L13.7124 4.39249Z",strokeLinecap:"square"})}),link:()=>(0,l.jsx)("svg",{"aria-hidden":"true",className:"graphic link icon icon--link",fill:"none",focu
27sable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M7.99999 13.3333H6.66666C5.78261 13.3333 4.93476 12.9821 4.30964 12.357C3.68452 11.7319 3.33333 10.884 3.33333 9.99999C3.33333 9.11593 3.68452 8.26809 4.30964 7.64297C4.93476 7.01785 5.78261 6.66666 6.66666 6.66666H7.99999M12 6.66666H13.3333C14.2174 6.66666 15.0652 7.01785 15.6904 7.64297C16.3155 8.26809 16.6667 9.11593 16.6667 9.99999C16.6667 10.884 16.3155 11.7319 15.6904 12.357C15.0652 12.9821 14.2174 13.3333 13.3333 13.3333H12M7.33333 9.99999H12.6667",strokeLinecap:"square"})}),plus:()=>(0,l.jsx)("svg",{className:"icon icon--plus",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M5.33333 9.99998H14.6667M9.99999 5.33331V14.6666",strokeLinecap:"square"})}),swap:()=>(0,l.jsx)("svg",{className:"icon icon--swap",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M7.33334 4L4.66667 6.66667M4.66667 6.66667L7.33334 9.33333M4.66667 6.66667H15.3333M12.6667 16L15.3333 13.3333M15.3333 13.3333L12.6667 10.6667M15.3333 13.3333H4.66667",strokeLinecap:"square"})}),x:({className:e})=>(0,l.jsx)("svg",{className:[e,"icon icon--x"].filter(Boolean).join(" "),height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"stroke",d:"M14 6L6 14M6 6L14 14",strokeLinecap:"square"})})},S=function(e){var t=e.children,r=e.icon,n=e.showTooltip,i=e.tooltip,o=b[r];return(0,l.jsxs)(a.Fragment,{children:[i&&(0,l.jsx)(_.m,{className:"".concat("btn","__tooltip"),show:n,children:i}),(0,l.jsxs)("span",{className:"".concat("btn","__content"),children:[t&&(0,l.jsx)("span",{className:"".concat("btn","__label"),children:t}),r&&(0,l.jsxs)("span",{className:"".concat("btn","__icon"),children:[(0,a.isValidElement)(r)&&r,o&&(0,l.jsx)(o,{})]})]})]})},w=function(e){var t,r=e.id,c=e.type,d=void 0===c?"button":c,f=e["aria-label"],h=e.buttonStyle,p=void 0===h?"primary":h,m=e.children,y=e.className,_=e.disabled,b=e.el,w=void 0===b?"button":b,x=e.enableSubMenu,E=e.extraButtonProps,C=e.icon,T=e.iconPosition,N=void 0===T?"right":T,k=e.iconStyle,A=void 0===k?"without-border":k,O=e.margin,R=e.newTab,P=e.onClick,M=e.onMouseDown,I=e.ref,D=e.round,$=e.size,L=void 0===$?"medium":$,j=e.SubMenuPopupContent,F=e.to,B=e.tooltip,U=e.url,z=(0,o._)(a.useState(!1),2),K=z[0],q=z[1],V=["btn",y&&y,C&&"".concat("btn","--icon"),A&&"".concat("btn","--icon-style-").concat(A),C&&!m&&"".concat("btn","--icon-only"),L&&"".concat("btn","--size-").concat(L),C&&N&&"".concat("btn","--icon-position-").concat(N),B&&"".concat("btn","--has-tooltip"),!j&&"".concat("btn","--withoutPopup"),!(void 0===O||O)&&"".concat("btn","--no-margin")].filter(Boolean).join(" "),W=[p&&"".concat("btn","--style-").concat(p),_&&"".concat("btn","--disabled"),D&&"".concat("btn","--round"),j?"".concat("btn","--withPopup"):"".concat("btn","--withoutPopup")].filter(Boolean).join(" "),J=(0,n._)({id:r,type:d,"aria-disabled":_,"aria-label":f,className:j?V:[V,W].join(" "),disabled:_,onClick:_?void 0:function(e){q(!1),"submit"!==d&&P&&e.preventDefault(),P&&P(e)},onMouseDown:_?void 0:M,onPointerEnter:B?function(){return q(!0)}:void 0,onPointerLeave:B?function(){return q(!1)}:void 0,rel:R?"noopener noreferrer":void 0,target:R?"_blank":void 0,title:f},void 0===E?{}:E);switch(w){case"anchor":t=(0,l.jsx)("a",(0,i._)((0,n._)({},J),{href:_?void 0:U,ref:I,children:(0,l.jsx)(S,{icon:C,showTooltip:K,tooltip:B,children:m})}));break;case"link":_&&(t=(0,l.jsx)("div",(0,i._)((0,n._)({},J),{children:(0,l.jsx)(S,{icon:C,showTooltip:K,tooltip:B,children:m})}))),t=(0,l.jsx)(u.N,(0,i._)((0,n._)({},J),{href:F||U,prefetch:!1,children:(0,l.jsx)(S,{icon:C,showTooltip:K,tooltip:B,children:m})}));break;default:t=(0,l.jsx)(w,(0,i._)((0,n._)({ref:I},J),{children:(0,l.jsx)(S,{icon:C,showTooltip:K,tooltip:B,children:m})}))}return j?(0,l.jsxs)("div",{className:W,children:[t,(0,l.jsx)(v,{button:(0,l.jsx)(s,{}),buttonSize:L,className:_&&!x?"".concat("btn","--popup-disabled"):"",disabled:_&&!x,horizontalAlign:"right",id:"".concat(r,"-popup"),noBackgroun
27d:!0,render:function(e){var t=e.close;return j({close:function(){return t()}})},size:"large",verticalAlign:"bottom"})]}):t}},66744:(e,t,r)=>{"use strict";function n({baseVersionField:e,config:t,field:r,row:n,valueFromRow:i,valueToRow:o}){let l=[],a=[];if("array"===r.type&&"fields"in r)l=r.fields,a=e.rows?.length?e.rows[n]:e.fields;else if("blocks"===r.type)if(o?.blockType===i?.blockType)l=(t?.blocksMap?.[o?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===o?.blockType)||{fields:[]})).fields,a=e.rows?.length?e.rows[n]:e.fields;else{let s=t?.blocksMap?.[o?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===o?.blockType)||{fields:[]}),u=t?.blocksMap?.[i?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===i?.blockType)||{fields:[]});l=[...new Map([...s.fields,...u.fields].map(e=>[e.name,e])).values()],a=e.rows?.length?e.rows[n]:e.fields}return{fields:l,versionFields:a}}r.d(t,{G:()=>n})},67e3:(e,t)=>{t.read=function(e,t,r,n,i){var o,l,a=8*i-n-1,s=(1<<a)-1,u=s>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=f,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=n;c>0;l=256*l+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===s)return l?NaN:1/0*(h?-1:1);l+=Math.pow(2,n),o-=u}return(h?-1:1)*l*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var l,a,s,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-l))<1&&(l--,s*=2),l+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(l++,s/=2),l+d>=c?(a=0,l=c):l+d>=1?(a=(t*s-1)*Math.pow(2,i),l+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[r+h]=255&a,h+=p,a/=256,i-=8);for(l=l<<i|a,u+=i;u>0;e[r+h]=255&l,h+=p,l/=256,u-=8);e[r+h-p]|=128*m}},67860:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n,i,o=r(34023);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let a=e=>o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:1024,height:1024,viewBox:"0 0 102.4 102.4"},e),n||(n=o.createElement("style",null,"path{fill:#333}@media (prefers-color-scheme:dark){path{fill:#fff}}")),i||(i=o.createElement("path",{d:"m50.67 86.55-29.8-17.2c-.37-.22-.6-.61-.6-1.04V41.75c0-.46.5-.75.9-.52l34.6 19.98a.728.728 0 0 0 1.09-.63V47.62c0-.52-.28-.99-.72-1.25L14.5 22.32c-.37-.22-.83-.22-1.21 0l-5.45 3.15c-.37.22-.6.61-.6 1.04v49.37c0 .43.23.83.6 1.04l42.75 24.68c.37.22.83.22 1.21 0l35.9-20.73c.48-.28.48-.97 0-1.25l-11.2-6.47c-.45-.26-1-.26-1.45 0L51.87 86.53c-.37.22-.83.22-1.21 0ZM94.56 25.47 51.8.79c-.37-.22-.83-.22-1.21 0l-22.6 13.05c-.48.28-.48.97 0 1.25l11.1 6.41c.45.26 1 .26 1.45 0l10.12-5.84c.37-.22.83-.22 1.21 0l29.8 17.2c.37.22.6.61.6 1.04v26.7c0 .52.28.99.72 1.25l11.08 6.4a.728.728 0 0 0 1.09-.63v-41.1c0-.43-.23-.83-.6-1.04Z"})))},68490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},68808:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(27470),i=r(78300),o=r(25526),l=r(94799),a=r(67331),s=r(34023),u=r(19749);function c(e){var t=e.apiRoute,r=e.length,c=e.serverURL,d=(0,i._)((0,s.useState)(!1),2),f=d[0],h=d[1],p=(0,s.useRef)(null),m=(0,s.useCallback)(function(e){return(0,n._)(function(){var r,n;return(0,o.YH)(this,function(i){switch(i.label){case 0:return e.preventDefault(),e.stopPropagation(),h(!0),r=new FormData(e.target),[4,fetch("".concat(c).concat(t,"/remove-totp"),{body:JSON.stringify(Object.fromEntries(r)),credentials:"include",headers:{"Content-Type":"application/json"},method:"post"})];case 1:return[4,i.sent().json()];case 2:if(!(n=i.sent()).ok&&n.message)return a.toast.error(n.message),[2,!1];return[2,!0]}})})()},[t,c]),y=(0,s.useCallback)(function(e){m(e).then(function(e){e&&location.reload(),h(!1)}).catch(function(e){console.error(e),a.toast.error("Something went wrong"),h(!1)})},[m]);return(0,l.jsx)("form",{onSubmit:y,ref:p,children:(0,l.jsx)(u.A,{disabled:f,length:r,name:"token",onFilled:function(){p.current&&p.current.requestSubmit()}})})}},68870:()=>{},69043:(e,t,r)=>{"use strict";r.d(t,{DE:()=>A,GO:()=>P,HY:()=>O,Js:()=>U,Mz:()=>x,YW:()=>_,cz:()=>B,i:()=>w,mJ:()=>R,q7:()=>L,v5:()=>E,x:()=>j});var n=r(12671),i=r(9971),o=r(76270),l=r(11825);function a(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e){let t=1,r=e.getParent();for(;null!=r;){if(x(r)){let e=r.getParent();if(O(e)){t++,r=e.getParent();continue}a(40)}break}return t}function u(e){let t=e.getParent();O(t)||a(40);let r=t;for(;null!==r;)O(r=r.getParent())&&(t=r);return t}function c(e){return x(e)&&O(e.getFirstChild())}function d(e){return w().append(e)}function f(e,t){return x(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function h(e){let t=(0,o.vJq)();if(null!==t){let r=t.getNodes();if((0,o.I2P)(t)){let n=t.getStartEndPoints();null===n&&a(143);let[i]=n,l=i.getNode(),s=l.getParent();if((0,o.IqF)(l)){let e=l.getFirstChild();if(e)r=e.selectStart().getNodes();else{let e=(0,o.lJ7)();l.append(e),r=e.select().getNodes()}}else if(f(l,r)){let t=A(e);if((0,o.IqF)(s)){l.replace(t);let e=w();(0,o.ff4)(l)&&(e.setFormat(l.getFormatType()),e.setIndent(l.getIndent())),t.append(e)}else if(x(l)){let e=l.getParentOrThrow();p(t,e.getChildren()),e.replace(t)}return}}let n=new Set;for(let t=0;t<r.length;t++){let i=r[t];if((0,o.ff4)(i)&&i.isEmpty()&&!x(i)&&!n.has(i.getKey())){m(i,e);continue}let l=(0,o.jG6)(i)?i.getParent():x(i)&&i.isEmpty()?i:null;for(;null!=l;){let t=l.getKey();if(O(l)){if(!n.has(t)){let r=A(e);p(r,l.getChildren()),l.replace(r),n.add(t)}break}{let r=l.getParent();if((0,o.IqF)(r)&&!n.has(t)){n.add(t),m(l,e);break}l=r}}}}}function p(e,t){e.splice(e.getChildrenSize(),0,t)}function m(e,t){let r;if(O(e))return e;let n=e.getPreviousSibling(),i=e.getNextSibling(),l=w();if(p(l,e.getChildren()),O(n)&&t===n.getListType())n.append(l),O(i)&&t===i.getListType()&&(p(n,i.getChildren()),i.remove()),r=n;else if(O(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(l),r=i;else{let n=A(t);n.append(l),e.replace(n),r=n}l.setFormat(e.getFormatType()),l.setIndent(e.getIndent());let a=(0,o.vJq)();return(0,o.I2P)(a)&&(r.getKey()===a.anchor.key&&a.anchor.set(l.getKey(),a.anch
27or.offset,"element"),r.getKey()===a.focus.key&&a.focus.set(l.getKey(),a.focus.offset,"element")),e.remove(),r}function y(e,t){let r=e.getLastChild(),n=t.getFirstChild();r&&n&&c(r)&&c(n)&&(y(r.getFirstChild(),n.getFirstChild()),n.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function v(e){let t="check"!==e.getListType(),r=e.getStart();for(let n of e.getChildren())x(n)&&(n.getValue()!==r&&n.setValue(r),t&&null!=n.getLatest().__checked&&n.setChecked(void 0),O(n.getFirstChild())||r++)}class _ extends o.fGB{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();O(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:o.fGB,importDOM:(0,o.kBm)({li:()=>({conversion:b,priority:0})})})}constructor(e=1,t,r){super(r),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,r){!function(e,t,r){let n=t.getParent();!O(n)||"check"!==n.getListType()||O(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),r&&t.__checked===r.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,r){let n,i=[],l=[],a=t.list,s=a?a.listitem:void 0;if(a&&a.nested&&(n=a.nested.listitem),void 0!==s&&i.push(...(0,o.GYG)(s)),a){let e=r.getParent(),t=O(e)&&"check"===e.getListType(),n=r.getChecked();t&&!n||l.push(a.listitemUnchecked),t&&n||l.push(a.listitemChecked),t&&i.push(n?a.listitemChecked:a.listitemUnchecked)}if(void 0!==n){let e=(0,o.GYG)(n);r.getChildren().some(e=>O(e))?i.push(...e):l.push(...e)}l.length>0&&(0,o.HEf)(e,...l),i.length>0&&(0,o.ZB7)(e,...i)}(t,r.theme,this);let n=e?e.__style:"",i=this.__style;n!==i&&(""===i?t.removeAttribute("style"):t.style.cssText=i),function(e,t,r){let n=(0,l.Wh)(t.__textStyle);for(let t in n)e.style.setProperty(`--listitem-marker-${t}`,n[t]);if(r)for(let t in(0,l.Wh)(r.__textStyle))t in n||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,r){return this.updateListItemDOM(e,t,r),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),r=this.getFormatType();r&&(t.style.textAlign=r);let n=this.getDirection();return n&&(t.dir=n),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let r=e[t];if((0,o.ff4)(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(x(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!O(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let t=A(r.getListType()),n=this.getNextSibling();for(;n;){let e=n;n=n.getNextSibling(),t.append(e)}r.insertAfter(e),e.insertAfter(t)}
27return t&&((0,o.ff4)(e)||a(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===r.getChildrenSize()&&r.remove(),e}insertAfter(e,t=!0){let r=this.getParentOrThrow();if(O(r)||a(39),x(e))return super.insertAfter(e,t);let n=this.getNextSiblings();if(r.insertAfter(e,t),0!==n.length){let i=A(r.getListType());n.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&c(t)&&c(r)&&(y(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){let r=w().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){let t=(0,o.lJ7)();this.getChildren().forEach(e=>t.append(e));let r=this.getParentOrThrow(),n=r.getParentOrThrow(),i=x(n);if(1===r.getChildrenSize())if(i)r.remove(),n.select();else{r.insertBefore(t),r.remove();let n=e.anchor,i=e.focus,o=t.getKey();"element"===n.type&&n.getNode().is(this)&&n.set(o,n.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(o,i.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),r=this.getParent();return O(r)&&(e=r.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;x(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){"number"!=typeof e&&a(117),(e=Math.floor(e))>=0||a(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(c(e)||t.has(e.getKey()))return;let r=e.getParent(),n=e.getNextSibling(),i=e.getPreviousSibling();if(c(n)&&c(i)){let r=i.getFirstChild();if(O(r)){r.append(e);let i=n.getFirstChild();O(i)&&(p(r,i.getChildren()),n.remove(),t.add(n.getKey()))}}else if(c(n)){let t=n.getFirstChild();if(O(t)){let r=t.getFirstChild();null!==r&&r.insertBefore(e)}}else if(c(i)){let t=i.getFirstChild();O(t)&&t.append(e)}else if(O(r)){let t=w().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),o=A(r.getListType()).setTextFormat(r.getTextFormat()).setTextStyle(r.getTextStyle());t.append(o),o.append(e),i?i.insertAfter(t):n?n.insertBefore(t):r.append(t)}}(this),t++):(function(e){if(c(e))return;let t=e.getParent(),r=t?t.getParent():void 0;if(O(r?r.getParent():void 0)&&x(r)&&O(t)){let n=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(n))r.insertBefore(e),t.isEmpty()&&r.remove();else if(e.is(i))r.insertAfter(e),t.isEmpty()&&r.remove();else{let n=t.getListType(),i=w(),o=A(n);
27i.append(o),e.getPreviousSiblings().forEach(e=>o.append(e));let l=w(),a=A(n);l.append(a),p(a,e.getNextSiblings()),r.insertBefore(i),r.insertAfter(l),r.replace(e)}}}(this),t--);return this}canInsertAfter(e){return x(e)}canReplaceWith(e){return x(e)}canMergeWith(e){return x(e)||(0,o.bSg)(e)}extractWithChild(e,t){if(!(0,o.I2P)(t))return!1;let r=t.anchor.getNode(),n=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(n)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return A("bullet")}canMergeWhenEmpty(){return!0}}function b(e){if(e.classList.contains("task-list-item")){for(let t of e.children)if("INPUT"===t.tagName)return S(t)}if(e.classList.contains("joplin-checkbox")){for(let t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return S(t.children[0])}let t=e.getAttribute("aria-checked");return{node:w("true"===t||"false"!==t&&void 0)}}function S(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:w(e.hasAttribute("checked"))}}function w(e){return(0,o.pTq)(new _(void 0,e))}function x(e){return e instanceof _}class E extends o.fGB{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();O(t)&&e.getListType()===t.getListType()&&y(e,t)}(e),v(e)},extends:o.fGB,importDOM:(0,o.kBm)({ol:()=>({conversion:N,priority:0}),ul:()=>({conversion:N,priority:0})})})}constructor(e="number",t=1,r){super(r);let n=k[e]||e;this.__listType=n,this.__tag="number"===n?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let r=this.__tag,n=document.createElement(r);return 1!==this.__start&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,C(n,e.theme,this),n}updateDOM(e,t,r){return e.__tag!==this.__tag||e.__listType!==this.__listType||(C(t,r.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,o.sby)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,r){let n=r;for(let e=0;e<r.length;e++){let t=r[e];x(t)||(n===r&&(n=[...r]),n[e]=w().append(!(0,o.ff4)(t)||O(t)||t.isInline()?t:(0,o.sTu)(t.getTextContent())))}return super.splice(e,t,n)}extractWithChild(e){return x(e)}}function C(e,t,r){let n=[],i=[],l=t.list;if(void 0!==l){let e,t=l[`${r.__tag}Depth`]||[],a=s(r)-1,u=a%t.length,c=t[u],d=l[r.__tag],f=l.nested,h=l.checklist;if(void 0!==f&&f.list&&(e=f.list),void 0!==d&&n.push(d),void 0!==h&&"check"===r.__listType&&n.push(h),void 0!==c){n.push(...(0,o.GYG)(c));for(let e=0;e<t.length;e++)e!==u&&i.push(r.__tag+e)}if(void 0!==e){let t=(0,o.GYG)(e);a>1?n.push(...t):i.push(...t)}}i.length>0&&(0,o.HEf)(e,...i),n.length>0&&(0,o.ZB7)(e,...n)}function T(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(x(n)){t.push(n);let e=n.getChildren();e.length>1&&e.forEach(e=>{O(e)&&t.push(d(e))})}else t.push(d(n))}return t}function N(e){let t=e.nodeName.toLowerCase(),r=null;return"ol"===t?r=A("number",e.start):"ul"===t&&(r=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(let t of e.childNodes)if((0,o.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?A("bullet"):A("check")),{after:T,node:r}}let k={ol:"number",ul:"bullet"};function A(e="number",t=1){return(0,o.pTq)(new E(e,t))}function O(e){return e instanceof E}let R=(0,o.guI)("INSERT_CHECK_LIST_COMMAND");function P(e,t){let r=t&&t.disableTakeFocusOnClick||!1,n=e=>{M(e,()=>{if((0,o.sby)(e.target)){let t=e.target,n=(0,o.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,o.xL4)(t);x(e)&&(r?((0,o.JAT)(o.XI_),(0,o.JAT)(o.$c$)):t.focus(),e.toggleChecked())})}})},i=e=>{M(e,()=>{e.preventDefault(),r&&e.stopPropagation()})};return(0,o.Sdt)(e.registerCommand(R,()=>(h("check"),!0),o.AcJ),e.registerCommand(o.bbF,t=>D(t,e,!1),o.AcJ),e.registerCommand(o.UDz,t=>D(t,e,!0),o.AcJ),e.registerCommand(o.Q$N,()=>{if(null!=I()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},o.AcJ),e.registerCommand(o.Huu,t=>{let r=I();return!(null==r||!e.isEditable())&&(e.update(()=>{let e=(0,o.xL4)(r);x(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},o.AcJ),e.registerCommand(o.AX0,t=>e.getEditorState().read(()=>{let r=(0,o.vJq)();if((0,o.I2P)(r)&&r.isCollapsed()){let{anchor:n}=r,i="element"===n.type;if(i||0===n.offset){let r=n.getNode(),l=(0,o.BtT)(r,e=>(0,o.ff4)(e)&&!e.isInline());if(x(l)){let n=l.getParent();if(O(n)&&"check"===n.getListType()&&(i||l.getFirstDescendant()===r)){let r=e.getElementByKey(l.__key);
27if(null!=r&&document.activeElement!==r)return r.focus(),t.preventDefault(),!0}}}}return!1}),o.AcJ),e.registerRootListener((e,t)=>{null!==e&&(e.addEventListener("click",n),e.addEventListener("pointerdown",i,{capture:!0}),e.addEventListener("mousedown",i,{capture:!0}),e.addEventListener("touchstart",i,{capture:!0,passive:!1})),null!==t&&(t.removeEventListener("click",n),t.removeEventListener("pointerdown",i,{capture:!0}),t.removeEventListener("mousedown",i,{capture:!0}),t.removeEventListener("touchstart",i,{capture:!0}))}))}function M(e,t){let r=e.target;if(!(0,o.sby)(r))return;let n=r.firstChild;if((0,o.sby)(n)&&("UL"===n.tagName||"OL"===n.tagName))return;let l=r.parentNode;if(!l||"check"!==l.__lexicalListType)return;let a=null,s=null;if("clientX"in e)a=e.clientX;else if("touches"in e){let t=e.touches;t.length>0&&(a=t[0].clientX,s="touch")}if(null==a)return;let u=r.getBoundingClientRect(),c=a/(0,i.OV)(r),d=parseFloat((window.getComputedStyle?window.getComputedStyle(r,"::before"):{width:"0px"}).width),f=32*("touch"===s||"touch"===e.pointerType);("rtl"===r.dir?c<u.right+f&&c>u.right-d-f:c>u.left-f&&c<u.left+d+f)&&t()}function I(){let e=document.activeElement;return(0,o.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function D(e,t,r){let n=I();return null!=n&&t.update(()=>{let i=(0,o.xL4)(n);if(!x(i))return;let l=function(e,t){let r=t?e.getPreviousSibling():e.getNextSibling(),n=e;for(;null==r&&x(n);)null!=(n=n.getParentOrThrow().getParent())&&(r=t?n.getPreviousSibling():n.getNextSibling());for(;x(r);){let e=t?r.getLastChild():r.getFirstChild();if(!O(e))return r;r=t?e.getLastChild():e.getFirstChild()}return null}(i,r);if(null!=l){l.selectStart();let r=t.getElementByKey(l.__key);null!=r&&(e.preventDefault(),setTimeout(()=>{r.focus()},0))}}),!1}let $=(0,o.guI)("UPDATE_LIST_START_COMMAND"),L=(0,o.guI)("INSERT_UNORDERED_LIST_COMMAND"),j=(0,o.guI)("INSERT_ORDERED_LIST_COMMAND"),F=(0,o.guI)("REMOVE_LIST_COMMAND");function B(e,t){return(0,o.Sdt)(e.registerCommand(j,()=>(h("number"),!0),o.AcJ),e.registerCommand($,e=>{let{listNodeKey:t,newStart:r}=e,n=(0,o.nsf)(t);return!!O(n)&&("number"===n.getListType()&&(n.setStart(r),v(n)),!0)},o.AcJ),e.registerCommand(L,()=>(h("bullet"),!0),o.AcJ),e.registerCommand(F,()=>((function(){let e=(0,o.vJq)();if((0,o.I2P)(e)){let t=new Set,r=e.getNodes(),n=e.anchor.getNode();if(f(n,r))t.add(u(n));else for(let e=0;e<r.length;e++){let n=r[e];if((0,o.jG6)(n)){let e=(0,i.eu)(n,_);null!=e&&t.add(u(e))}}for(let r of t){let t=r;for(let n of function e(t){let r=[],n=t.getChildren().filter(x);for(let t=0;t<n.length;t++){let i=n[t],o=i.getFirstChild();O(o)?r=r.concat(e(o)):r.push(i)}return r}(r)){let r=(0,o.lJ7)().setTextStyle(e.style).setTextFormat(e.format);p(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&(0,o.wp6)(e.anchor,(0,o.lSZ)((0,o.uwZ)(r,"next"))),n.__key===e.focus.key&&(0,o.wp6)(e.focus,(0,o.lSZ)((0,o.uwZ)(r,"next"))),n.remove()}r.remove()}}})(),!0),o.AcJ),e.registerCommand(o.XKQ,()=>(function(e=!1){let t,r=(0,o.vJq)();if(!(0,o.I2P)(r)||!r.isCollapsed())return!1;let n=r.anchor.getNode(),i=null;if(x(n)&&0===n.getChildrenSize())i=n;else if((0,o.kFe)(n)){let e=n.getParent();x(e)&&e.getChildren().every(e=>(0,o.kFe)(e)&&""===e.getTextContent().trim())&&(i=e)}if(null===i)return!1;let l=u(i),s=i.getParent();O(s)||a(40);let c=s.getParent();if((0,o.IqF)(c))t=(0,o.lJ7)(),l.insertAfter(t);else{if(!x(c))return!1;t=w(),c.insertAfter(t)}t.setTextStyle(r.style).setTextFormat(r.format).select();let d=i.getNextSiblings();if(d.length>0){var f;let r=e?(f=i,s.getStart()+f.getIndexWithinParent()):1,n=A(s.getListType(),r);if(x(t)){let e=w();e.append(n),t.insertAfter(e)}else t.insertAfter(n);n.append(...d)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!x(e)&&!O(e))break;t=e}t.remove()}(i),!0})(!!(t&&t.restoreNumbering)),o.AcJ),e.registerNodeTransform(_,e=>{let t=e.getFirstChild();if(t){if((0,o.kFe)(t)){let r=t.getStyle(),n=t.getFormat();e.getTextStyle()!==r&&e.setTextStyle(r),e.getTextFormat()!==n&&e.setTextFormat(n)}}else{let t=(0,o.vJq)();(0,o.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(o.Ey8,e=>{let t=e.getParent();if(x(t)&&e.is(t.getFirstChild())){let r=e.getStyle(),n=e.getFormat();r===t.getTextStyle()&&n===t.getTextFormat()||t.setTextStyle(r).setTextFormat(n)}}))}function U(e){let t=e=>{let t=e.getParent();if(O(e.getFirstChild())||!O(t))return;let r=(0,o.BtT)(e,e=>x(e)&&O(e.getParent())&&x(e.getPreviousSibling()));if(null===r&&e.getIndent()>0)e.setIndent(0);else if(x(r)){let n=r.getPreviousSibling();if(x(n)){let r=(function(e){let t=e,r=t.getFirstChild();for(;O(r);){let e=r.getLastChild();if(!x(e))break;r=(t=e).getFirstChild()}return t})(n).getParent();if(O(r)){let n=s(r);n+1<s(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(E,e=>{let r=[e];for(;r.length>0;){let e=r.shift();if(O(e)){for(let n of e.getChildren())if(x(n)){t(n);let e=n.getFirstChild();O(e)&&r.push(e)}}}})}let z=(0,o.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,o.lVE)({hasStrictIndent:!1,shouldPreserveNumbering:!1}),name:"@lexical/list/List",nodes:()=>[E,_],register(e,t,r){let i=r.getOutput();return(0,o.Sdt)((0,n.QZ)(()=>B(e,{restoreNumbering:i.shouldPreserveNumbering.value})),(0,n.QZ)(()=>i.hasStrictIndent.value?U(e):void 0))}});(0,o.vE9)({config:(0,o.lVE)({disableTakeFocusOnClick:!1}),dependencies:[z],name:"@lexical/list/CheckList",register:P})},69701:(e,t,r)=>{"use strict";r.d(t,{APIViewClient:()=>E});
27var n=r(27470),i=r(78300),o=r(25526),l=r(94799),a=r(67331),s=r(50614),u=r(83390),c=r(27357),d=r(91557),f=r(2831),h=r(34023),p=r(11241),m=function(e){var t,r,n=(0,p.c)(6),i=e.localeOptions,o=e.onChange,u=(0,s.d)().t;return n[0]!==i||n[1]!==o||n[2]!==u?(n[4]!==o?(r=function(e){return o(e)},n[4]=o,n[5]=r):r=n[5],t=(0,l.jsx)(a.SelectField,{field:{name:"locale",label:u("general:locale"),options:i},onChange:r,path:"locale"}),n[0]=i,n[1]=o,n[2]=u,n[3]=t):t=n[3],t},y=r(85294),v=r(52252),_={leftCurlyBracket:"{",leftSquareBracket:"[",rightCurlyBracket:"}",rightSquareBracket:"]"},b="query-inspector",S=function(e){var t=e.type,r=e.comma,n=e.position,i="object"===t?_.rightCurlyBracket:_.rightSquareBracket,o="object"===t?_.leftCurlyBracket:_.leftSquareBracket;return(0,l.jsxs)("span",{className:"".concat(b,"__bracket ").concat(b,"__bracket--position-").concat(n),children:["end"===n?i:o,"end"===n&&void 0!==r&&r?",":null]})},w=function(e){var t,r=(0,p.c)(2),n=e.isEmpty,o=e.object,s=e.objectKey,u=e.parentType,c=e.trailingComma,d=void 0!==n&&n,f=void 0===u?"object":u,m=void 0!==c&&c,_=o?Object.keys(o):[],x=_.length,E=(0,i._)(h.useState(!0),2),C=E[0],T=E[1],N="object"===f||"array"===f;return r[0]!==C?(t=function(){return T(!C)},r[0]=C,r[1]=t):t=r[1],(0,l.jsxs)("li",{className:N?"".concat(b,"__row-line--nested"):"",children:[(0,l.jsxs)("button",{"aria-label":"toggle",className:"".concat(b,"__list-toggle ").concat(d?"".concat(b,"__list-toggle--empty"):""),onClick:t,type:"button",children:[d?null:(0,l.jsx)(a.ChevronIcon,{className:"".concat(b,"__toggle-row-icon ").concat(b,"__toggle-row-icon--").concat(C?"open":"closed")}),(0,l.jsxs)("span",{children:[s&&'"'.concat(s,'": '),(0,l.jsx)(S,{position:"start",type:f}),d?(0,l.jsx)(S,{comma:m,position:"end",type:f}):null]})]}),(0,l.jsx)("ul",{className:"".concat(b,"__json-children ").concat(N?"".concat(b,"__json-children--nested"):""),children:C&&_.map(function(e,t){var r,n=o[e],i=t===x-1;if(null===n?r="null":(0,y._)(n,Date)?(r="date",n=n.toISOString()):r=Array.isArray(n)?"array":(void 0===n?"undefined":(0,v._)(n))==="object"?"object":"number"==typeof n?"number":"boolean"==typeof n?"boolean":"string","object"===r||"array"===r)return(0,l.jsx)(w,{isEmpty:0===n.length||0===Object.keys(n).length,object:n,objectKey:"object"===f?e:void 0,parentType:r,trailingComma:!i},"".concat(e,"-").concat(t));if("date"===r||"string"===r||"null"===r||"number"===r||"boolean"===r){var a=!!("object"===f&&e),u=["".concat(b,"__row-line"),"".concat(b,"__value-type--").concat(r),"".concat(b,"__row-line--").concat(s?"nested":"top")].filter(Boolean).join(" ");return(0,l.jsxs)("li",{className:u,children:[a?(0,l.jsx)("span",{children:'"'.concat(e,'": ')}):null,(0,l.jsx)("span",{className:"".concat(b,"__value"),children:JSON.stringify(n)}),i?"":","]},"".concat(e,"-").concat(t))}})}),!d&&(0,l.jsx)("span",{className:N?"".concat(b,"__bracket--nested"):"",children:(0,l.jsx)(S,{comma:m,position:"end",type:f})})]})},x="query-inspector",E=function(){var e,t,r=(0,a.useDocumentInfo)(),p=r.id,y=r.collectionSlug,v=r.globalSlug,_=r.initialData,b=r.isTrashed,S=(0,c.useSearchParams)(),E=(0,s.d)(),C=E.i18n,T=E.t,N=(0,a.useLocale)().code,k=(0,u.c)(),A=k.config,O=A.defaultDepth,R=A.localization,P=A.routes.api,M=A.serverURL,I=k.getEntityConfig,D=I({collectionSlug:y}),$=I({globalSlug:v}),L=R&&R.locales.map(function(e){return{label:e.label,value:e.code}}),j=!1,F=void 0;D&&(j=(0,d.gD)(D),F="/".concat(y,"/").concat(p)),$&&(j=(0,d.gD)($),F="/globals/".concat(v));var B=(0,i._)(h.useState(_),2),U=B[0],z=B[1],K=(0,i._)(h.useState("true"===S.get("draft")),2),q=K[0],V=K[1],W=(0,i._)(h.useState((null==S?void 0:S.get("locale"))||N),2),J=W[0],H=W[1],G=(0,i._)(h.useState(S.get("depth")||O.toString()),2),Y=G[0],Z=G[1],X=(0,i._)(h.useState(!0),2),Q=X[0],ee=X[1],et=(0,i._)(h.useState(!1),2),er=et[0],en=et[1],ei=(0,i._)(h.useState(M||""),2),eo=ei[0],el=ei[1];h.useEffect(function(){M||el(window.location.origin)},[M]);var ea="string"==typeof(null==_?void 0:_.deletedAt),es=new URLSearchParams({depth:Y,draft:String(q),locale:J,trash:ea?"true":"false"}).toString(),eu=(0,f.Q)({apiRoute:P,path:"".concat(F,"?").concat(es),serverURL:eo});return h.useEffect(function(){(0,n._)(function(){var e,t,r;return(0,o.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),[4,fetch(eu,{credentials:Q?"include":"omit",headers:{"Accept-Language":C.language},method:"GET"})];case 1:e=n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,e.json()];case 3:return z(n.sent()),[3,5];case 4:return t=n.sent(),a.toast.error("Error parsing response"),console.error(t),[3,5];case 5:return[3,7];case 6:return r=n.sent(),a.toast.error("Error making request"),console.error(r),[3,7];case 7:return[2]}})})()},[C.language,eu,Q]),(0,l.jsxs)(a.Gutter,{className:[x,er&&"".concat(x,"--fullscreen")].filter(
27Boolean).join(" "),right:!1,children:[(0,l.jsx)(a.SetDocumentStepNav,{collectionSlug:y,globalLabel:null==$?void 0:$.label,globalSlug:v,id:p,isTrashed:b,pluralLabel:D?null==D||null==(e=D.labels)?void 0:e.plural:void 0,useAsTitle:D?null==D||null==(t=D.admin)?void 0:t.useAsTitle:void 0,view:"API"}),(0,l.jsxs)("div",{className:"".concat(x,"__configuration"),children:[(0,l.jsxs)("div",{className:"".concat(x,"__api-url"),children:[(0,l.jsxs)("span",{className:"".concat(x,"__label"),children:["API URL ",(0,l.jsx)(a.CopyToClipboard,{value:eu})]}),(0,l.jsx)("a",{href:eu,rel:"noopener noreferrer",target:"_blank",children:eu})]}),(0,l.jsx)(a.Form,{initialState:{authenticated:{initialValue:Q||!1,valid:!0,value:Q||!1},depth:{initialValue:Number(Y||0),valid:!0,value:Number(Y||0)},draft:{initialValue:q||!1,valid:!0,value:q||!1},locale:{initialValue:J,valid:!0,value:J}},children:(0,l.jsxs)("div",{className:"".concat(x,"__form-fields"),children:[(0,l.jsxs)("div",{className:"".concat(x,"__filter-query-checkboxes"),children:[j&&(0,l.jsx)(a.CheckboxField,{field:{name:"draft",label:T("version:draft")},onChange:function(){return V(!q)},path:"draft"}),(0,l.jsx)(a.CheckboxField,{field:{name:"authenticated",label:T("authentication:authenticated")},onChange:function(){return ee(!Q)},path:"authenticated"})]}),L&&(0,l.jsx)(m,{localeOptions:L,onChange:H}),(0,l.jsx)(a.NumberField,{field:{name:"depth",admin:{step:1},label:T("general:depth"),max:10,min:0},onChange:function(e){return Z(null==e?void 0:e.toString())},path:"depth"})]})})]}),(0,l.jsxs)("div",{className:"".concat(x,"__results-wrapper"),children:[(0,l.jsx)("div",{className:"".concat(x,"__toggle-fullscreen-button-container"),children:(0,l.jsx)("button",{"aria-label":"toggle fullscreen",className:"".concat(x,"__toggle-fullscreen-button"),onClick:function(){return en(!er)},type:"button",children:(0,l.jsx)(a.MinimizeMaximizeIcon,{isMinimized:!er})})}),(0,l.jsx)("div",{className:"".concat(x,"__results"),children:(0,l.jsx)(w,{object:U})})]})]})}},70695:(e,t,r)=>{"use strict";r.d(t,{Collapsible:()=>c});var n=r(11241),i=r(94799),o=r(52223),l=r(50614);r(34023);var a=r(19095),s=r(63281),u=r(81749),c=function(e){var t,r,c=(0,n.c)(8),d=e.baseVersionField,f=e.comparisonValue,h=e.field,p=e.parentIsLocalized,m=e.versionValue,y=(0,l.d)().i18n,v=(0,a.I)().selectedLocales;return(null==(t=d.fields)?void 0:t.length)?(c[0]!==d.fields||c[1]!==h||c[2]!==y||c[3]!==p||c[4]!==v||c[5]!==f||c[6]!==m?(r=(0,i.jsx)("div",{className:"collapsible-diff",children:(0,i.jsx)(s.$,{fields:h.fields,Label:"label"in h&&h.label&&"function"!=typeof h.label&&(0,i.jsx)("span",{children:(0,o.s)(h.label,y)}),locales:v,parentIsLocalized:p||h.localized,valueFrom:f,valueTo:m,children:(0,i.jsx)(u.RenderVersionFieldsToDiff,{versionFields:d.fields})})}),c[0]=d.fields,c[1]=h,c[2]=y,c[3]=p,c[4]=v,c[5]=f,c[6]=m,c[7]=r):r=c[7],r):null}},70993:(e,t,r)=>{"use strict";let n;r.d(t,{Mp:()=>eV,Hd:()=>e6,vL:()=>a,uN:()=>ed,cA:()=>ev,IG:()=>eb,fp:()=>$,y$:()=>L,Sj:()=>q,Vy:()=>I,sl:()=>W,TT:()=>F,Qo:()=>j,fF:()=>eG,E5:()=>w,PM:()=>eH,zM:()=>eZ,MS:()=>N,FR:()=>k});var i,o,l,a,s,u,c,d,f,h,p=r(34023),m=r(56742),y=r(49356);let v={display:"none"};function _(e){let{id:t,value:r}=e;return p.createElement("div",{id:t,style:v},r)}function b(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return p.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let S=(0,p.createContext)(null);function w(e){let t=(0,p.useContext)(S);(0,p.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}let x={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},E={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function C(e){let{announcements:t=E,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=x}=e,{announce:o,announcement:l}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=(0,y.YG)("DndLiveRegion"),[s,u]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{u(!0)},[]),w((0,p.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;
27o(t.onDragCancel({active:r,over:n}))}}),[o,t])),!s)return null;let c=p.createElement(p.Fragment,null,p.createElement(_,{id:n,value:i.draggable}),p.createElement(b,{id:a,announcement:l}));return r?(0,m.createPortal)(c,r):c}function T(){}function N(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function k(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,p.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let A=Object.freeze({x:0,y:0});function O(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function R(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function P(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function M(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function I(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function D(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let $=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=D(t,t.left,t.top),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=O(D(n),i);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(R)},L=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=M(t),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=M(n),l=Number((i.reduce((e,t,n)=>e+O(r[n],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:l}})}}return o.sort(R)},j=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(n<i&&r<o){let l=t.width*t.height,a=e.width*e.height,s=(i-n)*(o-r);return Number((s/(l+a-s)).toFixed(4))}return 0}(o,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(P)},F=e=>{let{droppableContainers:t,droppableRects:r,pointerCoordinates:n}=e;if(!n)return[];let i=[];for(let e of t){let{id:t}=e,o=r.get(t);if(o&&function(e,t){let{top:r,left:n,bottom:i,right:o}=t;return r<=e.y&&e.y<=i&&n<=e.x&&e.x<=o}(n,o)){let r=Number((M(o).reduce((e,t)=>e+O(n,t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(R)};function B(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:A}let U=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1);function z(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let K={ignoreTransform:!1};function q(e,t){void 0===t&&(t=K);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,y.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=z(t);if(!n)return e;let{scaleX:i,scaleY:o,x:l,y:a}=n,s=e.left-l-(1-i)*parseFloat(r),u=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(r,t,n))}let{top:n,left:i,width:o,height:l,bottom:a,right:s}=r;return{top:n,left:i,width:o,height:l,bottom:a,right:s}}function V(e){return q(e,{ignoreTransform:!0})}function W(e,t){let r=[];return e?function n(i){var o;if(null!=t&&r.length>=t||!i)return r;if((0,y.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,y.sb)(i)||(0,y.xZ)(i)||r.includes(i))return r;let l=(0,y.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,y.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,l)&&r.push(i),void 0===(o=l)&&(o=(0,y.zk)(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(e):r}function J(e){let[t]=W(e,1);return null!=t?t:null}function H(e){return y.Sw&&e?(0,y.l6)(e)?e:(0,y.Ll)(e)?(0,y.wz)(e)||e===(0,y.TW)(e).scrollingElement?window:(0,y.sb)(e)?e:null:null:null}function G(e){return(0,y.l6)(e)?e.scrollX:e.scrollLeft}function Y(e){return(0,y.l6)(e)?e.scrollY:e.scrollTop}function Z(e){return{x:G(e),y:Y(e)}}function X(e){return!!y.Sw&&!!e&&e===document.scrollingElement}function Q(e){let t={x:0,y:0},r=X(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(o||(o={}));let ee={x:.2,y:.2};function et(e){return e.reduce((e,t)=>
27(0,y.WQ)(e,Z(t)),A)}function er(e,t){if(void 0===t&&(t=q),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);J(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let en=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+G(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Y(t),0)}]];class ei{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=W(t),n=et(r);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,en))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),l=n[t]-i;return this.rect[e]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eo{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function el(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function ea(e){e.preventDefault()}function es(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(l||(l={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(a||(a={}));let eu={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},ec=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case a.Right:return{...r,x:r.x+25};case a.Left:return{...r,x:r.x-25};case a.Down:return{...r,y:r.y+25};case a.Up:return{...r,y:r.y-25}}};class ed{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new eo((0,y.TW)(t)),this.windowListeners=new eo((0,y.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(l.Resize,this.handleCancel),this.windowListeners.add(l.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(l.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&er(r),t(A)}handleKeyDown(e){if((0,y.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=eu,coordinateGetter:o=ec,scrollBehavior:l="smooth"}=n,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:A;this.referenceCoordinates||(this.referenceCoordinates=c);let d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){let t=(0,y.Re)(d,c),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:s,isLeft:u,isBottom:c,maxScroll:f,minScroll:h}=Q(r),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),m={x:Math.min(i===a.Right?p.right-p.width/2:p.right,Math.max(i===a.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===a.Down?p.bottom-p.height/2:p.bottom,Math.max(i===a.Down?p.top:p.top+p.height/2,d.y))},y=i===a.Right&&!s||i===a.Left&&!u,v=i===a.Down&&!c||i===a.Up&&!o;if(y&&m.x!==d.x){let e=r.scrollLeft+t.x,o=i===a.Right&&e<=f.x||i===a.Left&&e>=h.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:l});o?n.x=r.scrollLeft-e:n.x=i===a.Right?r.scrollLeft-f.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:l});break}if(v&&m.y!==d.y){let e=r.scrollTop+t.y,o=i===a.Down&&e<=f.y||i===a.Up&&e>=h.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:l});o?n.y=r.scrollTop-e:n.y=i===a.Down?r.scrollTop-f.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:l});break}}this.handleMove(e,(0,y.WQ)((0,y.Re)(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ef(e){return!!(e&&"distance"in e)}function eh(e){return!!(e&&"delay"in e)}ed.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=eu,onActivation:i}=t,{active:o}=r,{code:l}=e.nativeEvent;
27if(n.start.includes(l)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ep{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,y.zk)(e);return e instanceof t?e:(0,y.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,y.TW)(o),this.documentListeners=new eo(this.document),this.listeners=new eo(r),this.windowListeners=new eo((0,y.zk)(o)),this.initialCoordinates=null!=(n=(0,y.e_)(i))?n:A,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(l.Resize,this.handleCancel),this.windowListeners.add(l.DragStart,ea),this.windowListeners.add(l.VisibilityChange,this.handleCancel),this.windowListeners.add(l.ContextMenu,ea),this.documentListeners.add(l.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eh(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ef(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(l.Click,es,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(l.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:l}}=i;if(!n)return;let a=null!=(t=(0,y.e_)(e))?t:A,s=(0,y.Re)(n,a);if(!r&&l){if(ef(l)){if(null!=l.tolerance&&el(s,l.tolerance))return this.handleCancel();if(el(s,l.distance))return this.handleStart()}return eh(l)&&el(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),o(a)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eg={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class em extends ep{constructor(e){let{event:t}=e;super(e,eg,(0,y.TW)(t.target))}}em.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let ey={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(s||(s={}));class ev extends ep{constructor(e){super(e,ey,(0,y.TW)(e.event.target))}}ev.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==s.RightClick&&(null==n||n({event:r}),!0)}}];let e_={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eb extends ep{constructor(e){super(e,e_)}static setup(){return window.addEventListener(e_.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(e_.move.name,e)};function e(){}}}eb.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
27sedTreeOrder"}(c||(c={}));let eS={x:{[o.Backward]:!1,[o.Forward]:!1},y:{[o.Backward]:!1,[o.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(d||(d={})),(f||(f={})).Optimized="optimized";let ew=new Map;function ex(e,t){return(0,y.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eE(e){let{callback:t,disabled:r}=e,n=(0,y._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eC(e){return new ei(q(e),e)}function eT(e,t,r){void 0===t&&(t=eC);let[n,i]=(0,p.useState)(null);function o(){i(n=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o})}let l=function(e){let{callback:t,disabled:r}=e,n=(0,y._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){o();break}}}}),a=eE({callback:o});return(0,y.Es)(()=>{o(),e?(null==a||a.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==l||l.disconnect())},[e]),n}let eN=[];function ek(e,t){void 0===t&&(t=[]);let r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{r.current=null},t),(0,p.useEffect)(()=>{let t=e!==A;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,y.Re)(e,r.current):A}function eA(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let eO=[];function eR(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,y.sb)(t)?t:e}let eP=[{sensor:em,options:{}},{sensor:ed,options:{}}],eM={current:{}},eI={draggable:{measure:V},droppable:{measure:V,strategy:d.WhileDragging,frequency:f.Optimized},dragOverlay:{measure:q}};class eD extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let e$={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eD,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:T},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eI,measureDroppableContainers:T,windowRect:null,measuringScheduled:!1},eL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:T,draggableNodes:new Map,over:null,measureDroppableContainers:T},ej=(0,p.createContext)(eL),eF=(0,p.createContext)(e$);function eB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eD}}}function eU(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new eD(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case i.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let l=new eD(e.droppable.containers);return l.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case i.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;
27let o=new eD(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function ez(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,p.useContext)(ej),o=(0,y.ZC)(n),l=(0,y.ZC)(null==r?void 0:r.id);return(0,p.useEffect)(()=>{if(!t&&!n&&o&&null!=l){if(!(0,y.kx)(o)||document.activeElement===o.target)return;let e=i.get(l);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,y.ag)(e);if(t){t.focus();break}}})}},[n,t,i,l,o]),null}function eK(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}let eq=(0,p.createContext)({...A,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let eV=(0,p.memo)(function(e){var t,r,n,l,a,s;let{id:f,accessibility:v,autoScroll:_=!0,children:b,sensors:w=eP,collisionDetection:x=j,measuring:E,modifiers:T,...N}=e,[k,O]=(0,p.useReducer)(eU,void 0,eB),[R,P]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[M,D]=(0,p.useState)(h.Uninitialized),$=M===h.Initialized,{draggable:{active:L,nodes:F,translate:z},droppable:{containers:K}}=k,V=null!=L?F.get(L):null,G=(0,p.useRef)({initial:null,translated:null}),Y=(0,p.useMemo)(()=>{var e;return null!=L?{id:L,data:null!=(e=null==V?void 0:V.data)?e:eM,rect:G}:null},[L,V]),er=(0,p.useRef)(null),[en,eo]=(0,p.useState)(null),[el,ea]=(0,p.useState)(null),es=(0,y.YN)(N,Object.values(N)),eu=(0,y.YG)("DndDescribedBy",f),ec=(0,p.useMemo)(()=>K.getEnabled(),[K]),ed=(0,p.useMemo)(()=>({draggable:{...eI.draggable,...null==E?void 0:E.draggable},droppable:{...eI.droppable,...null==E?void 0:E.droppable},dragOverlay:{...eI.dragOverlay,...null==E?void 0:E.dragOverlay}}),[null==E?void 0:E.draggable,null==E?void 0:E.droppable,null==E?void 0:E.dragOverlay]),{droppableRects:ef,measureDroppableContainers:eh,measuringScheduled:ep}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,l]=(0,p.useState)(null),{frequency:a,measure:s,strategy:u}=i,c=(0,p.useRef)(e),f=function(){switch(u){case d.Always:return!1;case d.BeforeDragging:return r;default:return!r}}(),h=(0,y.YN)(f),m=(0,p.useCallback)(function(e){void 0===e&&(e=[]),h.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),v=(0,p.useRef)(null),_=(0,y.KG)(t=>{if(f&&!r)return ew;if(!t||t===ew||c.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new ei(s(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,f,s]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{f||m()},[r,f]),(0,p.useEffect)(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{f||"number"!=typeof a||null!==v.current||(v.current=setTimeout(()=>{m(),v.current=null},a))},[a,f,m,...n]),{droppableRects:_,measureDroppableContainers:m,measuringScheduled:null!=o}}(ec,{dragging:$,dependencies:[z.x,z.y],config:ed.droppable}),eg=function(e,t){let r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return(0,y.KG)(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(F,L),em=(0,p.useMemo)(()=>el?(0,y.e_)(el):null,[el]),ey=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof _?!1===_.enabled:!1===_,r=$&&!e&&!t;return"object"==typeof _?{..._,enabled:r}:{enabled:r}}(),ev=ex(eg,ed.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,p.useRef)(!1),{x:l,y:a}="boolean"==typeof i?{x:i,y:i}:i;(0,y.Es)(()=>{if(!l&&!a||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=B(r(e),n);if(l||(i.x=0),a||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=J(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,l,a,n,r])}({activeNode:null!=L?F.get(L):null,config:ey.layoutShiftCompensation,initialRect:ev,measure:ed.draggable.measure});let e_=eT(eg,ed.draggable.measure,ev),eb=eT(eg?eg.parentElement:null),eC=(0,p.useRef)({activatorEvent:null,active:null,activeNode:eg,collisionRect:null,collisions:null,droppableRects:ef,draggableNodes:F,draggingNode:null,draggingNodeRect:null,droppableContainers:K,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eD=K.getNodeFor(null==(t=eC.current.over)?void 0:t.id),e$=function(e){let{measure:t}=e,[r,n]=(0,p.useState)(null),i=eE({callback:(0,p.useCallback)(e=>{for(let{target:r}of e)if((0,y.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),o=(0,p.useCallback)(e=>{let r=eR(e);
27null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[l,a]=(0,y.lk)(o);return(0,p.useMemo)(()=>({nodeRef:l,rect:r,setRef:a}),[r,l,a])}({measure:ed.dragOverlay.measure}),eL=null!=(r=e$.nodeRef.current)?r:eg,eV=$?null!=(n=e$.rect)?n:e_:null,eW=!!(e$.nodeRef.current&&e$.rect),eJ=function(e){let t=ex(e);return B(e,t)}(eW?null:e_),eH=eA(eL?(0,y.zk)(eL):null),eG=function(e){let t=(0,p.useRef)(e),r=(0,y.KG)(r=>e?r&&r!==eN&&e&&t.current&&e.parentNode===t.current.parentNode?r:W(e):eN,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),r}($?null!=eD?eD:eg:null),eY=function(e,t){void 0===t&&(t=q);let[r]=e,n=eA(r?(0,y.zk)(r):null),[i,o]=(0,p.useState)(eO);function l(){o(()=>e.length?e.map(e=>X(e)?n:new ei(t(e),e)):eO)}let a=eE({callback:l});return(0,y.Es)(()=>{null==a||a.disconnect(),l(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),i}(eG),eZ=eK(T,{transform:{x:z.x-eJ.x,y:z.y-eJ.y,scaleX:1,scaleY:1},activatorEvent:el,active:Y,activeNodeRect:e_,containerNodeRect:eb,draggingNodeRect:eV,over:eC.current.over,overlayNodeRect:e$.rect,scrollableAncestors:eG,scrollableAncestorRects:eY,windowRect:eH}),eX=em?(0,y.WQ)(em,z):null,eQ=function(e){let[t,r]=(0,p.useState)(null),n=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=H(e.target);t&&r(e=>e?(e.set(t,Z(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let l=e.map(e=>{let t=H(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Z(t)]):null}).filter(e=>null!=e);r(l.length?new Map(l):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=H(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,y.WQ)(e,t),A):et(e):A,[e,t])}(eG),e0=ek(eQ),e1=ek(eQ,[e_]),e2=(0,y.WQ)(eZ,e0),e4=eV?U(eV,eZ):null,e3=Y&&e4?x({active:Y,collisionRect:e4,droppableRects:ef,droppableContainers:ec,pointerCoordinates:eX}):null,e5=I(e3,"id"),[e6,e9]=(0,p.useState)(null),e7=(a=eW?eZ:(0,y.WQ)(eZ,e1),s=null!=(l=null==e6?void 0:e6.rect)?l:null,{...a,scaleX:s&&e_?s.width/e_.width:1,scaleY:s&&e_?s.height/e_.height:1}),e8=(0,p.useRef)(null),te=(0,p.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==er.current)return;let o=F.get(er.current);if(!o)return;let l=e.nativeEvent,a=new r({active:er.current,activeNode:o,event:l,options:n,context:eC,onAbort(e){if(!F.get(e))return;let{onDragAbort:t}=es.current,r={id:e};null==t||t(r),R({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!F.get(e))return;let{onDragPending:i}=es.current,o={id:e,constraint:t,initialCoordinates:r,offset:n};null==i||i(o),R({type:"onDragPending",event:o})},onStart(e){let t=er.current;if(null==t)return;let r=F.get(t);if(!r)return;let{onDragStart:n}=es.current,o={activatorEvent:l,active:{id:t,data:r.data,rect:G}};(0,m.unstable_batchedUpdates)(()=>{null==n||n(o),D(h.Initializing),O({type:i.DragStart,initialCoordinates:e,active:t}),R({type:"onDragStart",event:o}),eo(e8.current),ea(l)})},onMove(e){O({type:i.DragMove,coordinates:e})},onEnd:s(i.DragEnd),onCancel:s(i.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:o}=eC.current,a=null;if(t&&o){let{cancelDrop:s}=es.current;a={activatorEvent:l,active:t,collisions:r,delta:o,over:n},e===i.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=i.DragCancel)}er.current=null,(0,m.unstable_batchedUpdates)(()=>{O({type:e}),D(h.Uninitialized),e9(null),eo(null),ea(null),e8.current=null;let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=es.current[t];null==e||e(a),R({type:t,event:a})}})}}e8.current=a},[F]),tt=(0,p.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=F.get(n);null!==er.current||!o||i.dndKit||i.defaultPrevented||!0===e(r,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},er.current=n,te(r,t))},[F,te]),tr=(0,p.useMemo)(()=>w.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:tt(e.handler,t)}))]},[]),[w,tt]);(0,p.useEffect)(()=>{if(!y.Sw)return;let e=w.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},w.map(e=>{let{sensor:t}=e;return t})),(0,y.Es)(()=>{e_&&M===h.Initializing&&D(h.Initialized)},[e_,M]),(0,p.useEffect)(()=>{let{onDragMove:e}=es.current,{active:t,activatorEvent:r,collisions:n,over:i}=eC.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:e2.x,y:e2.y},over:i};(0,m.unstable_batchedUpdates)(()=>{null==e||e(o),R({type:"onDragMove",event:o})})},[e2.x,e2.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=eC.current;if(!e||null==er.current||!t||!i)return;let{onDragOver:o}=es.current,l=n.get(e5),a=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}
27:null,s={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:a};(0,m.unstable_batchedUpdates)(()=>{e9(a),null==o||o(s),R({type:"onDragOver",event:s})})},[e5]),(0,y.Es)(()=>{eC.current={activatorEvent:el,active:Y,activeNode:eg,collisionRect:e4,collisions:e3,droppableRects:ef,draggableNodes:F,draggingNode:eL,draggingNodeRect:eV,droppableContainers:K,over:e6,scrollableAncestors:eG,scrollAdjustedTranslate:e2},G.current={initial:eV,translated:e4}},[Y,eg,e3,e4,F,eL,eV,ef,K,e6,eG,e2]),function(e){let{acceleration:t,activator:r=u.Pointer,canScroll:n,draggingRect:i,enabled:l,interval:a=5,order:s=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:h,delta:m,threshold:v}=e,_=function(e){let{delta:t,disabled:r}=e,n=(0,y.ZC)(t);return(0,y.KG)(e=>{if(r||!n||!e)return eS;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[o.Backward]:e.x[o.Backward]||-1===i.x,[o.Forward]:e.x[o.Forward]||1===i.x},y:{[o.Backward]:e.y[o.Backward]||-1===i.y,[o.Forward]:e.y[o.Forward]||1===i.y}}},[r,t,n])}({delta:m,disabled:!l}),[b,S]=(0,y.$$)(),w=(0,p.useRef)({x:0,y:0}),x=(0,p.useRef)({x:0,y:0}),E=(0,p.useMemo)(()=>{switch(r){case u.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case u.DraggableRect:return i}},[r,i,d]),C=(0,p.useRef)(null),T=(0,p.useCallback)(()=>{let e=C.current;if(!e)return;let t=w.current.x*x.current.x,r=w.current.y*x.current.y;e.scrollBy(t,r)},[]),N=(0,p.useMemo)(()=>s===c.TreeOrder?[...f].reverse():f,[s,f]);(0,p.useEffect)(()=>{if(!l||!f.length||!E)return void S();for(let e of N){if((null==n?void 0:n(e))===!1)continue;let r=h[f.indexOf(e)];if(!r)continue;let{direction:i,speed:l}=function(e,t,r,n,i){let{top:l,left:a,right:s,bottom:u}=r;void 0===n&&(n=10),void 0===i&&(i=ee);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=Q(e),p={x:0,y:0},m={x:0,y:0},y={height:t.height*i.y,width:t.width*i.x};return!c&&l<=t.top+y.height?(p.y=o.Backward,m.y=n*Math.abs((t.top+y.height-l)/y.height)):!d&&u>=t.bottom-y.height&&(p.y=o.Forward,m.y=n*Math.abs((t.bottom-y.height-u)/y.height)),!h&&s>=t.right-y.width?(p.x=o.Forward,m.x=n*Math.abs((t.right-y.width-s)/y.width)):!f&&a<=t.left+y.width&&(p.x=o.Backward,m.x=n*Math.abs((t.left+y.width-a)/y.width)),{direction:p,speed:m}}(e,r,E,t,v);for(let e of["x","y"])_[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0){S(),C.current=e,b(T,a),w.current=l,x.current=i;return}}w.current={x:0,y:0},x.current={x:0,y:0},S()},[t,T,n,S,l,a,JSON.stringify(E),JSON.stringify(_),b,f,N,h,JSON.stringify(v)])}({...ey,delta:z,draggingRect:e4,pointerCoordinates:eX,scrollableAncestors:eG,scrollableAncestorRects:eY});let tn=(0,p.useMemo)(()=>({active:Y,activeNode:eg,activeNodeRect:e_,activatorEvent:el,collisions:e3,containerNodeRect:eb,dragOverlay:e$,draggableNodes:F,droppableContainers:K,droppableRects:ef,over:e6,measureDroppableContainers:eh,scrollableAncestors:eG,scrollableAncestorRects:eY,measuringConfiguration:ed,measuringScheduled:ep,windowRect:eH}),[Y,eg,e_,el,e3,eb,e$,F,K,ef,e6,eh,eG,eY,ed,ep,eH]),ti=(0,p.useMemo)(()=>({activatorEvent:el,activators:tr,active:Y,activeNodeRect:e_,ariaDescribedById:{draggable:eu},dispatch:O,draggableNodes:F,over:e6,measureDroppableContainers:eh}),[el,tr,Y,e_,O,eu,F,e6,eh]);return p.createElement(S.Provider,{value:P},p.createElement(ej.Provider,{value:ti},p.createElement(eF.Provider,{value:tn},p.createElement(eq.Provider,{value:e7},b)),p.createElement(ez,{disabled:(null==v?void 0:v.restoreFocus)===!1})),p.createElement(C,{...v,hiddenTextDescribedById:eu}))}),eW=(0,p.createContext)(null),eJ="button";function eH(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=(0,y.YG)("Draggable"),{activators:l,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,p.useContext)(ej),{role:h=eJ,roleDescription:m="draggable",tabIndex:v=0}=null!=i?i:{},_=(null==s?void 0:s.id)===t,b=(0,p.useContext)(_?eq:eW),[S,w]=(0,y.lk)(),[x,E]=(0,y.lk)(),C=(0,p.useMemo)(()=>l.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[l,t]),T=(0,y.YN)(r);return(0,y.Es)(()=>(d.set(t,{id:t,key:o,node:S,activatorNode:x,data:T}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:s,activatorEvent:a,activeNodeRect:u,attributes:(0,p.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":n,"aria-pressed":!!_&&h===eJ||void 0,"aria-roledescription":m,"aria-describedby":c.draggable}),[n,h,v,_,m,c.draggable]),isDragging:_,listeners:n?void 0:C,node:S,over:f,setNodeRef:w,setActivatorNodeRef:E,transform:b}}function eG(){return(0,p.useContext)(eF)}let eY={timeout:25};function eZ(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:o}=e,l=(0,y.YG)("Droppable"),{active:a,dispatch:s,over:u,measureDroppableContainers:c}=(0,p.useContext)(ej),d=(0,p.useRef)({disabled:r}),f=(0,p.useRef)(!1),h=(0,p.useRef)(null),m=(0,p.useRef)(null),{disabled:v,updateMeasurementsFor:_,timeout:b}={...eY,...o},S=(0,y.YN)(null!=_?_:n),w=eE({callback:(0,p.useCallback)(()=>
27{if(!f.current){f.current=!0;return}null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(S.current)?S.current:[S.current]),m.current=null},b)},[b]),disabled:v||!a}),x=(0,p.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),f.current=!1),e&&w.observe(e))},[w]),[E,C]=(0,y.lk)(x),T=(0,y.YN)(t);return(0,p.useEffect)(()=>{w&&E.current&&(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),(0,p.useEffect)(()=>(s({type:i.RegisterDroppable,element:{id:n,key:l,disabled:r,node:E,rect:h,data:T}}),()=>s({type:i.UnregisterDroppable,key:l,id:n})),[n]),(0,p.useEffect)(()=>{r!==d.current.disabled&&(s({type:i.SetDroppableDisabled,id:n,key:l,disabled:r}),d.current.disabled=r)},[n,l,r,s]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===n,node:E,over:u,setNodeRef:C}}function eX(e){let{animation:t,children:r}=e,[n,i]=(0,p.useState)(null),[o,l]=(0,p.useState)(null),a=(0,y.ZC)(r);return r||n||!a||i(a),(0,y.Es)(()=>{if(!o)return;let e=null==n?void 0:n.key,r=null==n?void 0:n.props.id;if(null==e||null==r)return void i(null);Promise.resolve(t(r,o)).then(()=>{i(null)})},[t,n,o]),p.createElement(p.Fragment,null,r,n?(0,p.cloneElement)(n,{ref:l}):null)}let eQ={x:0,y:0,scaleX:1,scaleY:1};function e0(e){let{children:t}=e;return p.createElement(ej.Provider,{value:eL},p.createElement(eq.Provider,{value:eQ},t))}let e1={position:"fixed",touchAction:"none"},e2=e=>(0,y.kx)(e)?"transform 250ms ease":void 0,e4=(0,p.forwardRef)((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:o,className:l,rect:a,style:s,transform:u,transition:c=e2}=e;if(!a)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...e1,width:a.width,height:a.height,top:a.top,left:a.left,transform:y.Ks.Transform.toString(d),transformOrigin:i&&n?function(e,t){let r=(0,y.e_)(e);if(!r)return"0 0";let n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}(n,a):void 0,transition:"function"==typeof c?c(n):c,...s};return p.createElement(r,{className:l,style:f,ref:t},o)}),e3={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:r}}=e;return[{transform:y.Ks.Transform.toString(t)},{transform:y.Ks.Transform.toString(r)}]},sideEffects:(n={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,i={},{styles:o,className:l}=n;if(null!=o&&o.active)for(let[e,r]of Object.entries(o.active))void 0!==r&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=o&&o.dragOverlay)for(let[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=l&&l.active&&t.node.classList.add(l.active),null!=l&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(let[e,r]of Object.entries(i))t.node.style.setProperty(e,r);null!=l&&l.active&&t.node.classList.remove(l.active)}})},e5=0,e6=p.memo(e=>
27{let{adjustScale:t=!1,children:r,dropAnimation:n,style:i,transition:o,modifiers:l,wrapperElement:a="div",className:s,zIndex:u=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:m,droppableContainers:v,dragOverlay:_,over:b,measuringConfiguration:S,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:E}=eG(),C=(0,p.useContext)(eq),T=function(e){return(0,p.useMemo)(()=>{if(null!=e)return++e5},[e])}(null==d?void 0:d.id),N=eK(l,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:_.rect,over:b,overlayNodeRect:_.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:C,windowRect:E}),k=ex(f),A=function(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return(0,y._q)((e,o)=>{if(null===t)return;let l=r.get(e);if(!l)return;let a=l.node.current;if(!a)return;let s=eR(o);if(!s)return;let{transform:u}=(0,y.zk)(o).getComputedStyle(o),c=z(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:r,sideEffects:n,keyframes:i}={...e3,...e};return e=>{let{active:o,dragOverlay:l,transform:a,...s}=e;if(!t)return;let u={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},c={scaleX:1!==a.scaleX?o.rect.width*a.scaleX/l.rect.width:1,scaleY:1!==a.scaleY?o.rect.height*a.scaleY/l.rect.height:1},d={x:a.x-u.x,y:a.y-u.y,...c},f=i({...s,active:o,dragOverlay:l,transform:{initial:a,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==n?void 0:n({active:o,dragOverlay:l,...s}),y=l.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(e=>{y.onfinish=()=>{null==m||m(),e()}})}}(t);return er(a,i.draggable.measure),d({active:{id:e,data:l.data,node:a,rect:i.draggable.measure(a)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(s)},droppableContainers:n,measuringConfiguration:i,transform:c})})}({config:n,draggableNodes:m,droppableContainers:v,measuringConfiguration:S}),O=k?_.setRef:void 0;return p.createElement(e0,null,p.createElement(eX,{animation:A},d&&T?p.createElement(e4,{key:T,id:d.id,ref:O,as:a,activatorEvent:c,adjustScale:t,className:s,transition:o,rect:k,style:{zIndex:u,...i},transform:N},r):null))})},71202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462);t.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`},code(e,t){let{gen:r,data:i,$data:o,schema:l,schemaCode:a,it:s}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=s;u.validateFormats&&(o?function(){let o=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),l=r.const("fDef",(0,n._)`${o}[${a}]`),s=r.let("fType"),c=r.let("format");r.if((0,n._)`typeof ${l} == "object" && !(${l} instanceof RegExp)`,()=>r.assign(s,(0,n._)`${l}.type || "string"`).assign(c,(0,n._)`${l}.validate`),()=>r.assign(s,(0,n._)`"string"`).assign(c,l)),e.fail$data((0,n.or)(!1===u.strictSchema?n.nil:(0,n._)`${a} && !${c}`,function(){let e=d.$async?(0,n._)`(${l}.async ? await ${c}(${i}) : ${c}(${i}))`:(0,n._)`${c}(${i})`,r=(0,n._)`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return(0,n._)`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){let o=f.formats[l];if(!o){if(!1===u.strictSchema)return f.logger.warn(a());throw Error(a());function a(){return`unknown format "${l}" ignored in schema at path "${c}"`}}if(!0===o)return;let[s,h,p]=function(e){let t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(l)}`:void 0,i=r.scopeValue("formats",{key:l,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,(0,n._)`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw Error("async format in sync schema");return(0,n._)`await ${p}(${i})`}return"function"==typeof h?(0,n._)`${p}(${i})`:(0,n._)`${p}.test(${i})`}())}())}}},71591:e=>{"use strict";var t=function(e){var t,n,i;return!!(t=e)&&"object"==typeof t&&(n=e,"[object RegExp]"!==(i=Object.prototype.toString.call(n))&&"[object Date]"!==i&&n.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function l(e,t){try{return t in e}catch(e){return!1}}function a(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,s):d?s.arrayMerge(e,r,s):(c={},(u=s).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=n(e[t],u)}),o(r).forEach(function(t){l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(l(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},72340:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});
27var n=r(78300),i=r(94799),o=r(34023),l=r(11241),a=function(e,t){var r,i,a,s=(0,l.c)(8),u=void 0===e?{}:e,c=u.root,d=u.rootMargin,f=u.threshold,h=(0,n._)((0,o.useState)(),2),p=h[0],m=h[1],y=(0,n._)((0,o.useState)(null),2),v=y[0],_=y[1],b=(0,o.useRef)("undefined"!=typeof window&&"IntersectionObserver"in window&&!t?new window.IntersectionObserver(function(e){return m((0,n._)(e,1)[0])},{root:void 0===c?null:c,rootMargin:void 0===d?"0px":d,threshold:void 0===f?0:f}):null);return s[0]!==t||s[1]!==v?(r=function(){if(!t){var e=b.current;return e.disconnect(),v&&e.observe(v),function(){return e.disconnect()}}},i=[v,t],s[0]=t,s[1]=v,s[2]=r,s[3]=i):(r=s[2],i=s[3]),(0,o.useEffect)(r,i),s[4]!==p||s[5]!==v||s[6]!==_?(a=[_,p,v],s[4]=p,s[5]=v,s[6]=_,s[7]=a):a=s[7],a};r(16557);var s=function(e){var t=e.alignCaret,r=void 0===t?"center":t,l=e.boundingRef,s=e.children,u=e.className,c=e.delay,d=void 0===c?350:c,f=e.position,h=e.show,p=void 0===h||h,m=e.staticPositioning,y=void 0!==m&&m,v=(0,n._)(o.useState(p),2),_=v[0],b=v[1],S=(0,n._)(o.useState("top"),2),w=S[0],x=S[1],E=(0,n._)(a({root:(null==l?void 0:l.current)||null,rootMargin:"-145px 0px 0px 100px",threshold:0},y),2),C=E[0],T=E[1];return(0,o.useEffect)(function(){var e;return d&&p?e=setTimeout(function(){b(p)},d):b(p),function(){e&&clearTimeout(e)}},[p,d]),(0,o.useEffect)(function(){y||x((null==T?void 0:T.isIntersecting)?"top":"bottom")},[T,y]),(0,i.jsxs)(o.Fragment,{children:[!y&&(0,i.jsx)("aside",{"aria-hidden":"true",className:["tooltip",u,"tooltip--caret-".concat(r),"tooltip--position-top"].filter(
27Boolean).join(" "),ref:C,style:{opacity:"0"},children:(0,i.jsx)("div",{className:"tooltip-content",children:s})}),(0,i.jsx)("aside",{className:["tooltip",u,_&&"tooltip--show","tooltip--caret-".concat(r),"tooltip--position-".concat(f||w)].filter(Boolean).join(" "),title:"string"==typeof s?s:"",children:(0,i.jsx)("div",{className:"tooltip-content",children:s})})]})}},72792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462);t.default={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")}},73382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(43510).validateUnion,error:{message:"must match a schema in anyOf"}}},73796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462);t.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,o="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${o} ${i}`)}}},73803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(35433),i=r(82780),o=r(39444),l=r(11449),a=r(29065),s=r(8208),u=r(73796),c=r(85586),d=r(82880),f=r(8756);t.default=[n.default,i.default,o.default,l.default,a.default,s.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default]},73829:(e,t,r)=>{"use strict";function n(e){return null!=e&&("string"!=typeof e||""!==e.trim())&&!Number.isNaN(Number(e))}r.d(t,{E:()=>n})},74553:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>e?e.or&&!e.and?{or:e.or.map(e=>e.and?e:{and:[e]})}:e.and&&!e.or?{or:[{and:e.and}]}:e.or||e.and?e:{or:[{and:[e]}]}:{}},74578:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});
27var n=r(11241),i=r(35509),o=r(67331),l=r(76270),a=r(34023),s=(e,t)=>{let r,s=(0,n.c)(24),[u]=(0,i.DF)(),[c,d]=(0,a.useState)(null),[f,h]=(0,a.useState)(!1),{closeModal:p,modalState:m,toggleModal:y}=(0,o.useModal)(),v;s[0]!==u?(v=()=>{u.read(()=>{d((0,l.vJq)()??(0,l.S1w)())})},s[0]=u,s[1]=v):v=s[1];let _=v,b;s[2]!==u||s[3]!==c?(b=()=>{c&&u.update(()=>{(0,l.n1P)(c.clone())},{discrete:!0,skipTransforms:!0})},s[2]=u,s[3]=c,s[4]=b):b=s[4];let S=b,w;s[5]!==p||s[6]!==e?(w=()=>{p(e)},s[5]=p,s[6]=e,s[7]=w):w=s[7];let x=w,E=m?.[e]?.isOpen,C;s[8]!==E||s[9]!==S||s[10]!==e||s[11]!==_||s[12]!==y?(C=()=>{E?S():_(),h(!0),y(e)},s[8]=E,s[9]=S,s[10]=e,s[11]=_,s[12]=y,s[13]=C):C=s[13];let T=C,N,k;return s[14]!==m||s[15]!==t||s[16]!==S||s[17]!==e||s[18]!==f?(N=()=>{if(!f)return;let r=m[e];r&&!r?.isOpen&&(h(!1),t?setTimeout(()=>{S()},0):S())},k=[m,e,S,f,t],s[14]=m,s[15]=t,s[16]=S,s[17]=e,s[18]=f,s[19]=N,s[20]=k):(N=s[19],k=s[20]),(0,a.useEffect)(N,k),s[21]!==x||s[22]!==T?(r={closeDrawer:x,toggleDrawer:T},s[21]=x,s[22]=T,s[23]=r):r=s[23],r}},75892:()=>{},76002:(e,t,r)=>{"use strict";r.d(t,{Locked:()=>f});var n=r(78300),i=r(11241),o=r(94799),l=r(34023);r(75892);let a=({className:e})=>
27(0,o.jsxs)("svg",{className:["icon icon--lock",e].filter(Boolean).join(" "),fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{className:"stroke",d:"M7.5 9.5V7.5C7.5 6.83696 7.76339 6.20107 8.23223 5.73223C8.70107 5.26339 9.33696 5 10 5C10.663 5 11.2989 5.26339 11.7678 5.73223C12.2366 6.20107 12.5 6.83696 12.5 7.5V9.5",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"1"}),(0,o.jsx)("path",{className:"stroke",d:"M13.5 9.5H6.5C5.94772 9.5 5.5 9.94772 5.5 10.5V14C5.5 14.5523 5.94772 15 6.5 15H13.5C14.0523 15 14.5 14.5523 14.5 14V10.5C14.5 9.94772 14.0523 9.5 13.5 9.5Z",stopOpacity:"1",strokeLinecap:"round",strokeLinejoin:"round"})]});var s=r(45593);r(27357);var u=(0,l.createContext)({i18n:{dateFNS:s.enUS,dateFNSKey:"en-US",fallbackLanguage:"en",language:"en",t:function(e){return e},translations:{}},languageOptions:void 0,switchLanguage:void 0,t:function(e){}}),c=r(72340);r(45644);var d="locked",f=function(e){var t,r,s,f,h,p=(0,i.c)(8),m=e.className,y=e.user,v=(0,n._)((0,l.useState)(!1),2),_=v[0],b=v[1],S=(0,l.use)(u).t,w=y&&"object"==typeof y?null!=(t=y.email)?t:y.id:S("general:anotherUser");p[0]!==m?(r=[d,m].filter(Boolean),p[0]=m,p[1]=r):r=p[1];var x=r.join(" ");p[2]===Symbol.for("react.memo_cache_sentinel")?(s=function(){return b(!0)},f=function(){return b(!1)},p[2]=s,p[3]=f):(s=p[2],f=p[3]);var E="".concat(w," ").concat(S("general:isEditing"));return p[4]!==_||p[5]!==x||p[6]!==E?(h=(0,o.jsxs)("div",{className:x,onMouseEnter:s,onMouseLeave:f,role:"button",tabIndex:0,children:[(0,o.jsx)(c.m,{alignCaret:"left",className:"".concat(d,"__tooltip"),position:"top",show:_,children:E}),(0,o.jsx)(a,{})]}),p[4]=_,p[5]=x,p[6]=E,p[7]=h):h=p[7],h}},76270:(e,t,r)=>{"use strict";function n(e,...t){let r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let r of(i.append("code",e),t))i.append("v",r);throw r.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);r.search=n.toString(),console.warn(`Minified Lexical warning #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}r.d(t,{$7r:()=>td,$c$:()=>t3,$ey:()=>eU,$iu:()=>oD,A7V:()=>nA,AX0:()=>eY,AcJ:()=>nD,Ave:()=>oR,B$P:()=>ik,BtT:()=>ot,Bts:()=>oT,CHU:()=>iB,CaD:()=>Y,Chh:()=>j,Cku:()=>rP,Csq:()=>oU,Cyw:()=>nw,Ey8:()=>ru,FEN:()=>eL,FtC:()=>oK,FyW:()=>n4,GMe:()=>ns,GRK:()=>t7,GYG:()=>oZ,GcU:()=>r8,Gew:()=>ij,H2A:()=>r0,HEf:()=>oQ,HYn:()=>tl,Huu:()=>e1,I2H:()=>tf,I2P:()=>rk,I8X:()=>L,IlV:()=>og,IqF:()=>iF,JAT:()=>iI,JM3:()=>eH,JjG:()=>n$,Jvg:()=>nV,K8K:()=>iY,KfJ:()=>tc,Kp7:()=>nS,LYZ:()=>nH,LZn:()=>S,MZu:()=>rb,MvL:()=>eA,NG9:()=>o$,NiT:()=>ia,O0w:()=>oH,OBE:()=>rq,OQi:()=>t4,OSq:()=>iW,OXk:()=>e5,OpE:()=>oc,P6U:()=>o_,PiT:()=>e9,Q$N:()=>e4,RTZ:()=>rO,RTo:()=>e0,Rb_:()=>nQ,S1w:()=>rJ,SKc:()=>ta,Sdt:()=>o0,Sr4:()=>e8,T40:()=>t1,TJt:()=>oC,Tc1:()=>oY,TgX:()=>tt,U5P:()=>i5,UDz:()=>eX,V30:()=>eW,VSO:()=>to,WKo:()=>re,WWb:()=>tu,WgU:()=>nL,WuB:()=>e$,XI_:()=>t5,XKQ:()=>ej,YW5:()=>e6,Z$U:()=>nJ,ZB7:()=>oX,ZKf:()=>eV,_On:()=>iZ,a9V:()=>iX,bM3:()=>eF,bMH:()=>t0,bSg:()=>nM,bbF:()=>eQ,cmH:()=>od,d8p:()=>eR,da8:()=>nj,dxY:()=>i6,e1k:()=>iE,erb:()=>ob,ev7:()=>rS,fD3:()=>nO,fGB:()=>nv,fUS:()=>te,ff4:()=>n_,fwY:()=>t2,gCZ:()=>e2,guI:()=>ek,hVZ:()=>nE,haT:()=>nx,hi0:()=>ez,i0_:()=>i0,ieJ:()=>nB,jG6:()=>n3,jZM:()=>nI,k1Q:()=>oW,kBm:()=>tG,kFe:()=>rv,lJ7:()=>nP,lSZ:()=>oF,lVE:()=>oG,mB:()=>eq,mB$:()=>n1,mWO:()=>ox,n0X:()=>tQ,n1P:()=>iu,nYP:()=>iJ,nsf:()=>ie,oqR:()=>eO,pGK:()=>oB,pJU:()=>it,pTq:()=>iU,pd8:()=>i9,peL:()=>iV,phO:()=>oe,rN:()=>ou,rUs:()=>rK,riq:()=>tr,sTu:()=>ry,sWS:()=>oE,sby:()=>iH,scG:()=>nY,sik:()=>e7,sne:()=>t9,t5V:()=>ts,u5G:()=>ti,uTE:()=>rz,urt:()=>$,uwZ:()=>ov,v0B:()=>nN,vAA:()=>iG,vE9:()=>oJ,vJq:()=>rW,viC:()=>eK,w$Z:()=>e3,w3H:()=>iQ,wH$:()=>rt,waI:()=>eB,wp6:()=>oP,xKE:()=>t6,xL4:()=>ii,xQ8:()=>oM,y68:()=>rB,z8s:()=>rE});let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=o&&"documentMode"in document?document.documentMode:null,a=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=o&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),u=!(!o||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),c=o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),d=o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f=o&&/Android/.test(navigator.userAgent),h=o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),p=o&&f&&h,m=o&&/AppleWeb
27Kit\/[\d.]+/.test(navigator.userAgent)&&a&&!h,y=c||d||m?"\xa0":"â",v=s?"\xa0":y,_="Ö-ß¿ï¬-﷽ﹰ-ﻼ",b="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",S=(RegExp("^[^"+b+"]*["+_+"]"),RegExp("^[^"+_+"]*["+b+"]"),{bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512}),w={directionless:1,unmergeable:2},x={center:2,end:6,justify:4,left:1,right:3,start:5},E={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},C={normal:0,segmented:2,token:1},T={0:"normal",2:"segmented",1:"token"},N="$config",k=!1,A=0;function O(e){A=e.timeStamp}function R(e,t,r){let n="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||n&&e.previousSibling===i)||n&&void 0!==ir(e,r)}function P(e,t,r){k=!0;let n=performance.now()-A>100;try{ng(e,()=>{let i=rW()||e.getEditorState().read(()=>{let e=rW();return null!==e?e.clone():null}),o=new Map,l=e.getRootElement(),a=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let r=0;r<t.length;r++){let f=t[r],h=f.type,p=f.target,m=function(e,t,r,n){var i;for(let o=e;o&&(i=o,!0!==i.__lexicalUnmanaged);o=iP(o)){let e=ir(o,t);if(void 0!==e){let t=ie(e,r);if(t)return nw(t)||!iH(o)?void 0:[o,t]}else if(o===n)return[n,is(r)]}}(p,e,a,l);if(!m)continue;let[y,v]=m;if("characterData"===h)n&&rv(v)&&n0(p)&&function(e,t,r){if(rk(e)){let t=e.anchor.getNode();if(t.is(r)&&e.format!==t.getFormat())return!1}return n0(t)&&r.isAttached()}(i,p,v)&&function(e,t,r){let n=iV(iL(r)),i=null,o=null;null!==n&&n.anchorNode===e&&(i=n.anchorOffset,o=n.focusOffset);let l=e.nodeValue;null!==l&&iy(t,l,i,o,!1)}(p,v,e);else if("childList"===h){c=!0;let t=f.addedNodes;for(let r=0;r<t.length;r++){let n=t[r],i=it(n),o=n.parentNode;if(null!=o&&n!==u&&null===i&&!R(n,o,e)){if(s){let e=(iH(n)?n.innerText:null)||n.nodeValue;e&&(d+=e)}o.removeChild(n)}}let r=f.removedNodes,n=r.length;if(n>0){let t=0;for(let i=0;i<n;i++){let n=r[i];(R(n,p,e)||u===n)&&(p.appendChild(n),t++)}n!==t&&o.set(y,v)}}}if(o.size>0)for(let[t,r]of o)r.reconcileObservedMutation(t,e);let f=r.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let r=f[t],n=r.addedNodes,i=r.target;for(let t=0;t<n.length;t++){let r=n[t],o=r.parentNode;null==o||"BR"!==r.nodeName||R(r,i,e)||o.removeChild(r)}}r.takeRecords()}null!==i&&(c&&iu(i),s&&iA(e)&&i.insertRawText(d))})}finally{k=!1}}function M(e){let t=e._observer;null!==t&&P(e,t.takeRecords(),t)}function I(e){0===A&&iL(e).addEventListener("textInput",O,!0),e._observer=new MutationObserver((t,r)=>{P(e,t,r)})}class D{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||K).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}}function $(e,t){return new D(e,t)}function L(e,t,r="latest"){let n=("latest"===r?e.getLatest():e).__state;return n?n.getValue(t):t.defaultValue}function j(e,t,r){let n;if(ne(),"function"==typeof r){let i=e.getLatest(),o=L(i,t);if(n=r(o),t.isEqual(o,n))return i}else n=r;let i=e.getWritable();return B(i).updateFromKnown(t,n),i}class F{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,r,n=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=n;let{sharedConfigMap:o}=this.sharedNodeState,l=void 0!==i?i:function(e,t,r){let n=r.size;if(t)for(let i in t){let t=e.get(i);t&&r.has(t)||n++}return n}(o,r,n);this.size=l}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(r=e.parse(t)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,r]of this.knownState)t.isEqual(r,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(r);for(let r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return z(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:r}=this,n=new Map(this.knownState);return new F(e,t,function(e,t,r){let n;if(r)for(let[i,o]of Object.entries(r)){let r=e.get(i);r?t.has(r)||t.set(r,r.parse(o)):(n=n||{})[i]=o}return n}(t.sharedConfigMap,n,r),n,this.size)}updateFromKnown(e,t){let r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);let{knownState:n,unknownState:i}=this;n.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=z(i)),this.size++),n.set(e,t)}updateFromUnknown(e,t){let r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,r]of Object.entries(e))this.updateFromUnknown(t,r)}}function B(e){let t=e.getWritable(),r=t.__state?t.__state.getWritable(t):new F(t,U(t));return t.__state=r,r}function U(e){return e.__state?e.__state.sharedNodeState:nq(i0(),e.getType()).sharedNodeState}function z(e){if(e)for(let t in e)return e}function K(e){return e}function q(e,t,r){for(let[n,i]of t.knownState){if(e.has(n.key))continue;e.add(n.key);let t=r?r.getValue(n):n.defaultValue;
27if(t!==i&&!n.isEqual(t,i))return!0}return!1}function V(e,t,r){let{unknownState:n}=t,i=r?r.unknownState:void 0;if(n){for(let[t,r]of Object.entries(n))if(!e.has(t)&&(e.add(t),r!==(i?i[t]:void 0)))return!0}return!1}function W(e,t){let r=e.__state;return r&&r.node===e?r.getWritable(t):r}function J(e,t){let r=e.__mode,n=e.__format,i=e.__style,o=t.__mode,l=t.__format,a=t.__style,s=e.__state,u=t.__state;return(null===r||r===o)&&(null===n||n===l)&&(null===i||i===a)&&(null===e.__state||s===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let r=new Set;return!(e&&q(r,e,t)||t&&q(r,t,e)||e&&V(r,e,t)||t&&V(r,t,e))}(s,u))}function H(e,t){let r=e.mergeWithSibling(t),n=nn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function G(e){let t,r,n=e;if(""!==n.__text||!n.isSimpleText()||n.isUnmergeable()){for(;null!==(t=n.getPreviousSibling())&&rv(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){J(t,n)&&(n=H(t,n));break}t.remove()}for(;null!==(r=n.getNextSibling())&&rv(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(""!==r.__text){J(n,r)&&(n=H(n,r));break}r.remove()}}else n.remove()}function Y(e){return Z(e.anchor),Z(e.focus),e}function Z(e){for(;"element"===e.type;){let t,r,n=e.getNode(),i=e.offset;if(i===n.getChildrenSize()?(t=n.getChildAtIndex(i-1),r=!0):(t=n.getChildAtIndex(i),r=!1),rv(t)){e.set(t.__key,r?t.getTextContentSize():0,"text",!0);break}if(!n_(t))break;e.set(t.__key,r?t.getChildrenSize():0,"element",!0)}}let X,Q,ee,et,er,en,ei,eo,el,ea,es="",eu=null,ec=null,ed=!1,ef=!1;function eh(e,t){let r=ei.get(e);if(null!==t){let r=eN(e);r.parentNode===t&&t.removeChild(r)}if(eo.has(e)||Q._keyToDOMMap.delete(e),n_(r)){let e=ex(r,ei);ep(e,0,e.length-1,null)}void 0!==r&&iT(ea,ee,et,r,"destroyed")}function ep(e,t,r,n){for(let i=t;i<=r;++i){let t=e[i];void 0!==t&&eh(t,n)}}function eg(e,t){e.setProperty("text-align",t)}function em(e,t){let r=X.theme.indent;if("string"==typeof r){let n=e.classList.contains(r);t>0&&!n?e.classList.add(r):t<1&&n&&e.classList.remove(r)}if(0===t)return void e.style.setProperty("padding-inline-start","");let n=getComputedStyle(Q._rootElement||e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",`calc(${t} * ${n})`)}function ey(e,t){let r=e.style;0===t?eg(r,""):1===t?eg(r,"left"):2===t?eg(r,"center"):3===t?eg(r,"right"):4===t?eg(r,"justify"):5===t?eg(r,"start"):6===t&&eg(r,"end")}function ev(e,t){let r=function(e){let t=e.__dir;if(null!==t)return t;if(nE(e))return null;let r=e.getParentOrThrow();return nE(r)&&null===r.__dir?"auto":null}(t);null!==r?e.dir=r:e.removeAttribute("dir")}function e_(e,t){let r=eo.get(e);void 0===r&&n(60);let i=r.createDOM(X,Q);if(function(e,t,r){let n=r._keyToDOMMap;t[`__lexicalKey_${r._key}`]=e,n.set(e,t)}(e,i,Q),rv(r)?i.setAttribute("data-lexical-text","true"):nw(r)&&i.setAttribute("data-lexical-decorator","true"),n_(r)){let e=r.__indent,t=r.__size;ev(i,r),0!==e&&em(i,e),0!==t&&eb(ex(r,eo),r,0,t-1,r.getDOMSlot(i));let n=r.__format;0!==n&&ey(i,n),r.isInline()||ew(null,r,i)}else{let t=r.getTextContent();if(nw(r)){let t=r.decorate(Q,X);null!==t&&eE(e,t),i.contentEditable="false"}es+=t}return null!==t&&t.insertChild(i),iT(ea,ee,et,r,"created"),i}function eb(e,t,r,n,i){let o=es;es="";let l=r;for(;l<=n;++l){e_(e[l],i);let t=eo.get(e[l]);null!==t&&rv(t)?null===eu&&(eu=t.getFormat(),ec=t.getStyle()):n_(t)&&l<n&&!t.isInline()&&(es+="\n\n")}i.element.__lexicalTextContent=es,es=o+es}function eS(e,t){if(e){let r=e.__last;if(r){let e=t.get(r);if(e)return rt(e)?"line-break":nw(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ew(e,t,r){let n=eS(e,ei),i=eS(t,eo);n!==i&&t.getDOMSlot(r).setManagedLineBreak(i)}function ex(e,t){let r=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&n(101),r.push(i),i=e.__next}return r}function eE(e,t){let r=Q._pendingDecorators,n=Q._decorators;if(null===r){if(n[e]===t)return;r=io(Q)}r[e]=t}function eC(e){let t=e.nextSibling;return null!==t&&t===Q._blockCursorElement&&(t=t.nextSibling),t}function eT(e,t){let r=new Set;for(let n=t;n<e.length;n++)r.add(e[n]);return r}function eN(e){let t=el.get(e);return void 0===t&&n(75,e),t}function ek(e){return{type:e}}let eA=ek("SELECTION_CHANGE_COMMAND"),eO=ek("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eR=ek("CLICK_COMMAND"),eP=ek("BEFORE_INPUT_COMMAND"),eM=ek("INPUT_COMMAND"),eI=ek("COMPOSITION_START_COMMAND"),eD=ek("COMPOSITION_END_COMMAND"),e$=ek("DELETE_CHARACTER_COMMAND"),eL=ek("INSERT_LINE_BREAK_COMMAND"),ej=ek("INSERT_PARAGRAPH_COMMAND"),eF=ek("CONTROLLED_TEXT_INSERTION_COMMAND"),eB=ek("PASTE_COMMAND"),eU=ek("REMOVE_TEXT_COMMAND"),ez=ek("DELETE_WORD_COMMAND"),eK=ek("DELETE_LINE_COMMAND"),eq=ek("FORMAT_TEXT_COMMAND"),eV=ek("UNDO_COMMAND"),eW=ek("REDO_COMMAND"),eJ=ek("KEYDOWN_COMMAND"),eH=ek("KEY_ARROW_RIGHT_COMMAND"),eG=ek("MOVE_TO_END"),eY=ek("KEY_ARROW_LEFT_COMMAND"),eZ=ek("MOVE_TO_START"),eX=ek("KEY_ARROW_UP_COMMAND"),eQ=ek("KEY_ARROW_DOWN_COMMAND"),e0=ek("KEY_ENTER_COMMAND"),e1=ek("KEY_SPACE_COMMAND"),e2=ek("KEY_BACKSPACE_COMMAND"),e4=ek("KEY_ESCAPE_COMMAND"),e3=ek("KEY_DELETE_COMMAND"),e5=ek("KEY_TAB_COMMAND"),e6=ek("INSERT_TAB_COMMAND"),e9=ek("INDENT_CONTENT_COMMAND"),e7=ek("OUTDENT_CONTENT_COMMAND"),e8=ek("DROP_COMMAND"),te=ek("FORMAT_ELEMENT_COMMAND"),tt=ek("DRAGSTART_COMMAND"),tr=ek("DRAGOVER_COMMAND"),tn=ek("DRAGEND_COMMAND"),ti=ek("COPY_COMMAND"),to=ek("CUT_COMMAND"),tl=ek("SELECT_ALL_COMMAND"),ta=ek("CLEAR_EDITOR_COMMAND"),ts=ek("CLEAR_HISTORY_COMMAND"),tu=ek("CAN_REDO_COMMAND"),tc=ek("CAN_UNDO_COMMAND"),td=ek("FOCUS_COMMAND"),tf=ek("BLUR_COMMAND"),th=ek("KEY_MODIFIER_COMMAND"),tp=Object.freeze({}),tg=[["keydown",function(e,t){tm=e.timeStamp,ty=e.key,t.isComposing()||iO(t,eJ,e)}],["pointerdown",function(e,t){let r=e.target,n=e.pointerType;iG(r)&&"touch"!==n&&"pen"!==n&&0===e.button&&ng(t,()=>{nw(ii(r))||(tx=!0)})}],["compositionstart",function(e,t){iO(t,eI,e)}],["compositionend",function(e,t){s?tC=!0:!d&&(c||m)?(tT=!0,tN=e.data):iO(t,eD,e)}],["input",function(e,t){e.stopPropagation(),ng(t,()=>{t.dispatchCommand(eM,e)},{event:e}),t_=null}],["click",function(e,t){ng(t,()=>{let r=rW(),n=iV(iL(t)),i=rJ();if(n){if(rk(r)){let t=r.anchor,o=t.getNode();if("element"===t.type&&0===t.offset&&r.isCollapsed()&&!nE(o)&&1===ia().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i))n.removeAllRanges(),r.dirty=!0;else if(3===e.detail&&!r.isCollapsed()&&o!==r.focus.getNode()){let e=ot(o,e=>n_(e)&&!e.isInline());n_(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let r=n.anchorNode;(iH(r)||n0(r))&&iu(rV(i,n,t,e))}}iO(t,eR,e)})}],["cut",tp],["copy",tp],["dragstart",tp],["dragover",tp],["dragend",tp],["paste",tp],["focus",tp],["blur",tp],["drop",tp]];u&&tg.push(["beforeinput",(e,t)=>(function(e,t){let r=e.inputType;"deleteCompositionText"===r||s&&iA(t)||"insertCompositionText"!==r&&iO(t,eP,e)})(e,t)]);let tm=0,ty=null,tv=0,t_=null,tb=new WeakMap,tS=new WeakMap,tw=!1,tx=!1,tE=!1,tC=!1,tT=!1,tN="",tk=null,tA=[0,"",0,"root",0];
27function tO(e,t,r,n,i){let o=e.anchor,l=e.focus,a=o.getNode(),s=nn(),c=iV(iL(s)),d=null!==c?c.anchorNode:null,f=o.key,h=s.getElementByKey(f),p=r.length;return f!==l.key||!rv(a)||(!i&&(!u||tv<n+50)||a.isDirty()&&p<2||id(r))&&o.offset!==l.offset&&!a.isComposing()||nQ(a)||a.isDirty()&&p>1||(i||!u)&&null!==h&&!a.isComposing()&&d!==n2(h)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!a.isComposing()&&(a.getFormat()!==e.format||a.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let r=e.anchor.offset,n=t.getParentOrThrow(),i=nX(t);return 0===r?!t.canInsertTextBefore()||!n.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(rv(t)||n_(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()&&!t.isComposing()||i)}(e,a)}function tR(e,t){return n0(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tP(e,t,r){let{anchorNode:i,anchorOffset:o,focusNode:l,focusOffset:a}=e;tw&&(tw=!1,tR(i,o)&&tR(l,a)&&!tk)||ng(t,()=>{if(!r)return void iu(null);if(!nH(t,i,l))return;let s=rW();if(tk&&rk(s)&&s.isCollapsed()){let e=s.anchor,t=tk.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&iu(s=tk.clone())}if(tk=null,rk(s)){let r=s.anchor,i=r.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);let o=iL(t).event,l=o?o.timeStamp:performance.now(),[a,c,d,f,h]=tA,p=ia(),m=!1===t.isComposing()&&""===p.getTextContent();if(l<h+200&&r.offset===d&&r.key===f)tM(s,a,c);else if("text"===r.type)rv(i)||n(141),tI(s,i);else if("element"===r.type&&!m){var u;n_(i)||n(259);let e=r.getNode();e.isEmpty()?tM(s,(u=e).getTextFormat(),u.getTextStyle()):tM(s,0,"")}}else{let e=r.key,t=s.focus.key,n=s.getNodes(),i=n.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t,h=2047,p=!1;for(let e=0;e<i;e++){let t=n[e],r=t.getTextContentSize();if(rv(t)&&0!==r&&(0!==e||t.__key!==d||u!==r)&&(e!==i-1||t.__key!==f||0!==c)&&(p=!0,0==(h&=t.getFormat())))break}s.format=p?h:0}}iO(t,eA,void 0)})}function tM(e,t,r){e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}function tI(e,t){tM(e,t.getFormat(),t.getStyle())}function tD(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function t$(e){var t;let r=e.inputType,i=tD(e),o=nn(),l=rW();if("deleteContentBackward"===r){if(null===l){let e=rJ();if(!rk(e))return!0;iu(e.clone())}if(rk(l)){let r=l.anchor.key===l.focus.key;if(t=e.timeStamp,"MediaLast"===ty&&t<tm+30&&o.isComposing()&&r){if(n7(null),tm=0,setTimeout(()=>{ng(o,()=>{n7(null)})},30),rk(l)){let e=l.anchor.getNode();e.markDirty(),rv(e)||n(142),tI(l,e)}}else{n7(null),e.preventDefault();let t=l.anchor.getNode(),n=t.getTextContent(),i=t.canInsertTextAfter(),a=0===l.anchor.offset&&l.focus.offset===n.length,s=p&&r&&!a&&i;if(s&&l.isCollapsed()&&(s=!nw(ik(l.anchor,!0))),!s){iO(o,e$,!0);let e=rW();p&&rk(e)&&e.isCollapsed()&&(tk=e,setTimeout(()=>tk=null))}}return!0}}if(!rk(l))return!0;let a=e.data;null!==t_&&im(!1,o,t_),l.dirty&&null===t_||!l.isCollapsed()||nE(l.anchor.getNode())||null===i||l.applyDOMRange(i),t_=null;let s=l.anchor,u=l.focus,c=s.getNode(),f=u.getNode();if("insertText"===r||"insertTranspose"===r){if("\n"===a)e.preventDefault(),iO(o,eL,!1);else if("\n\n"===a)e.preventDefault(),iO(o,ej,void 0);else if(null==a&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),l.insertRawText(t)}else null!=a&&tO(l,i,a,e.timeStamp,!0)?(e.preventDefault(),iO(o,eF,a)):t_=a;return tv=e.timeStamp,!0}switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":iO(o,eF,e);break;case"insertFromComposition":n7(null),iO(o,eF,e);break;case"insertLineBreak":n7(null),iO(o,eL,!1);break;case"insertParagraph":n7(null),tE&&!d?(tE=!1,iO(o,eL,!1)):iO(o,ej,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":iO(o,eB,e);break;case"deleteByComposition":(c!==f||n_(c)||n_(f)||!nX(c)||!nX(f))&&iO(o,eU,e);break;case"deleteByDrag":case"deleteByCut":iO(o,eU,e);break;case"deleteContent":iO(o,e$,!1);break;case"deleteWordBackward":iO(o,ez,!0);break;
27case"deleteWordForward":iO(o,ez,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":iO(o,eK,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":iO(o,eK,!1);break;case"formatStrikeThrough":iO(o,eq,"strikethrough");break;case"formatBold":iO(o,eq,"bold");break;case"formatItalic":iO(o,eq,"italic");break;case"formatUnderline":iO(o,eq,"underline");break;case"historyUndo":iO(o,eV,void 0);break;case"historyRedo":iO(o,eW,void 0)}return!0}function tL(e){if(iH(e.target)&&nw(ii(e.target)))return!0;let t=nn(),r=rW(),n=e.data,i=tD(e);if(null!=n&&rk(r)&&tO(r,i,n,e.timeStamp,!1)){tC&&(tB(t,n),tC=!1);let i=r.anchor.getNode(),o=iV(iL(t));if(null===o)return!0;let l=r.isBackward(),a=l?r.anchor.offset:r.focus.offset,c=l?r.focus.offset:r.anchor.offset;u&&!r.isCollapsed()&&rv(i)&&null!==o.anchorNode&&i.getTextContent().slice(0,a)+n+i.getTextContent().slice(a+c)===ig(o.anchorNode)||iO(t,eF,n);let d=n.length;s&&d>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(r.anchor.offset-=d),p&&t.isComposing()&&(tm=0,n7(null))}else im(!1,t,null!==n?n:void 0),tC&&(tB(t,n||void 0),tC=!1);return ne(),M(nn()),!0}function tj(e){let t=nn(),r=rW();if(rk(r)&&!t.isComposing()){let n=r.anchor,i=r.anchor.getNode();n7(n.key),iI(t6),(e.timeStamp<tm+30||"element"===n.type||!r.isCollapsed()||i.getFormat()!==r.format||rv(i)&&i.getStyle()!==r.style)&&iO(t,eF,v)}return!0}function tF(e){return tB(nn(),e.data),iI(t9),!0}function tB(e,t){let r=e._compositionKey;if(n7(null),null!==r&&null!=t){if(""===t){let t=ie(r),n=n2(e.getElementByKey(r));if(null!==n&&null!==n.nodeValue&&rv(t)){let r=iV(iL(e)),i=null,o=null;null!==r&&r.anchorNode===n&&(i=r.anchorOffset,o=r.focusOffset),iy(t,n.nodeValue,i,o,!0)}return}if("\n"===t[t.length-1]){let t=rW();if(rk(t)||rO(t)){if(rk(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void iO(e,e0,null)}}}im(!0,e,t)}function tU(e){let t=nn();if(null==e.key)return!0;if(tT){if(ix(e))return ng(t,()=>{tB(t,tN)}),tT=!1,tN="",!0;tT=!1,tN=""}if(ib(e,"ArrowRight",{shiftKey:"any"}))iO(t,eH,e);else if(ib(e,"ArrowRight",iS))iO(t,eG,e);else if(ib(e,"ArrowLeft",{shiftKey:"any"}))iO(t,eY,e);else if(ib(e,"ArrowLeft",iS))iO(t,eZ,e);else if(ib(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))iO(t,eX,e);else if(ib(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))iO(t,eQ,e);else if(ib(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tE=!0,iO(t,e0,e);else if(" "===e.key)iO(t,e1,e);else if(a&&ib(e,"o",{ctrlKey:!0}))e.preventDefault(),tE=!0,iO(t,eL,!0);else if(ib(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tE=!1,iO(t,e0,e);else if(ib(e,"Backspace",{shiftKey:"any"})||a&&ib(e,"h",{ctrlKey:!0}))ix(e)?iO(t,e2,e):(e.preventDefault(),iO(t,e$,!0));else if("Escape"===e.key)iO(t,e4,e);else if(ib(e,"Delete",{})||a&&ib(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),iO(t,e$,!1)):iO(t,e3,e);else if(ib(e,"Backspace",iw))e.preventDefault(),iO(t,ez,!0);else if(ib(e,"Delete",iw))e.preventDefault(),iO(t,ez,!1);else if(a&&ib(e,"Backspace",{metaKey:!0}))e.preventDefault(),iO(t,eK,!0);else if(a&&(ib(e,"Delete",{metaKey:!0})||ib(e,"k",{ctrlKey:!0})))e.preventDefault(),iO(t,eK,!1);else if(ib(e,"b",iS))e.preventDefault(),iO(t,eq,"bold");else if(ib(e,"u",iS))e.preventDefault(),iO(t,eq,"underline");else if(ib(e,"i",iS))e.preventDefault(),iO(t,eq,"italic");else if(ib(e,"Tab",{shiftKey:"any"}))iO(t,e5,e);else if(ib(e,"z",iS))e.preventDefault(),iO(t,eV,void 0);else if(a?ib(e,"z",{metaKey:!0,shiftKey:!0}):ib(e,"y",{ctrlKey:!0})||ib(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),iO(t,eW,void 0);else{let r=t._editorState._selection;null===r||rk(r)?ib(e,"a",iS)&&(e.preventDefault(),iO(t,tl,e)):ib(e,"c",iS)?(e.preventDefault(),iO(t,ti,e)):ib(e,"x",iS)?(e.preventDefault(),iO(t,to,e)):ib(e,"a",iS)&&(e.preventDefault(),iO(t,tl,e))}return(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&t.dispatchCommand(th,e),!0}function tz(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tK=new Map;function tq(e){let t=iW(e.target);if(null===t)return;let r=nY(t.anchorNode);if(null===r)return;tx&&(tx=!1,ng(r,()=>{let n=rJ(),i=t.anchorNode;(iH(i)||n0(i))&&iu(rV(n,t,r,e))}));let n=ih(r),i=n[n.length-1],o=i._key,l=tK.get(o),a=l||i;a!==r&&tP(t,a,!1),tP(t,r,!0),r!==i?tK.set(o,r):l&&tK.delete(o)}function tV(e){e._lexicalHandled=!0}function tW(e){return!0===e._lexicalHandled}let tJ=()=>{};function tH(e,t,r){ne();let n=e.__key,i=e.getParent();if(null===i)return;let o=function(e){let t=rW();if(!rk(t)||!n_(e))return t;let{anchor:r,focus:n}=t,i=r.getNode(),o=n.getNode();return iD(i,e)&&r.set(e.__key,0,"element"),iD(o,e)&&n.set(e.__key,0,"element"),t}(e),l=!1;if(rk(o)&&t){let t=o.anchor,r=o.focus;t.key===n&&(rY(t,e,i,e.getPreviousSibling(),e.getNextSibling()),l=!0),r.key===n&&(rY(r,e,i,e.getPreviousSibling(),e.getNextSibling()),l=!0)}else rO(o)&&t&&e.isSelected()&&e.selectPrevious();if(rk(o)&&t&&!l){let t=e.getIndexWithinParent();n6(e),rH(o,i,t,-1)}else n6(e);r||iF(i)||i.canBeEmpty()||!i.isEmpty()||tH(i,t),t&&o&&nE(i)&&i.isEmpty()&&i.selectEnd()}function tG(e){return e}let tY=Symbol.for("ephemeral");function tZ(e){return e[tY]||!1}class tX{__type;__key;__parent;__prev;__next;__state;static getType(){let{ownNodeType:e}=i8(this);return void 0===e&&n(64,this.name),e}static clone(e){n(65,this.name)}$config(){return{}}config(e,t){let r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),n5(this,e)}getType(){return this.__type}isInline(){n(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=ie(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||rW();if(null==t)return!1;let r=t.getNodes().some(e=>e.__key===this.__key);if(rv(this))return r;if(rk(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(nw(this)&&this.isInline()&&e){let r=t.isBackward()?t.focus:t.anchor;if(e.is(r.getNode())&&r.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),r=0;for(;null!==t;){if(this.is(t))return r;r++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:ie(e)}getParentOrThrow(){let e=this.getParent();return null===e&&n(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(iF(t))return n_(e)||e===this&&nw(e)||n(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&n(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:ie(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let r=t.getFirstChild();for(;null!==r&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:ie(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=n_(this)?this:this.getParent(),r=n_(e)?e:e.getParent(),n=t&&r?oO(t,r):null;return n?n.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=oO(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ok(t):("same"!==t.type&&"ancestor"!==t.type&&n(279),!1)))}isParentOf(e){let t=oO(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),r=[],i=new Set,o=this;for(;null!==o;){let l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;let a=n_(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}let s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}let u=o.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let c=null,d=u;do{if(null===d&&n(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||r.push(d)}while(null===c);o=c}return t||r.reverse(),r}isDirty(){let e=nn()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(tZ(this))return this;let e=ie(this.__key);return null===e&&n(113),e}getWritable(){if(tZ(this))return this;ne();let e=nr(),t=nn(),r=e._nodeMap,n=this.__key,i=this.getLatest(),o=t._cloneNotNeeded,l=rW();
27if(null!==l&&l.setCachedNodes(null),o.has(n))return n9(i),i;let a=i3(i);return o.add(n),n9(a),r.set(n,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){n(70)}updateDOM(e,t,r){n(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){n(18,this.name)}updateFromJSON(e){return function(e,t){let r=e.getWritable(),n=t.$,i=n;for(let e of U(r).flatKeys)e in t&&(void 0!==i&&i!==n||(i={...n}),i[e]=t[e]);return(r.__state||i)&&B(e).updateFromJSON(i),r}(this,e)}static transform(){return null}remove(e){tH(this,!0,e)}replace(e,t){ne();let r=rW();null!==r&&(r=r.clone()),iz(this,e);let i=this.getLatest(),o=this.__key,l=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),u=s.__size;n6(a);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,h=i.__next,p=i.__parent;if((tH(i,!1,!0),null===c)?s.__first=l:c.getWritable().__next=l,(a.__prev=f,null===d)?s.__last=l:d.getWritable().__prev=l,a.__next=h,a.__parent=p,s.__size=u,t&&(n_(this)&&n_(a)||n(139),this.getChildren().forEac
27h(e=>{a.append(e)})),rk(r)){iu(r);let e=r.anchor,t=r.focus;e.key===o&&rT(e,a),t.key===o&&rT(t,a)}return n8()===o&&n7(l),a}insertAfter(e,t=!0){ne(),iz(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.getParent(),o=rW(),l=!1,a=!1;if(null!==i){let t=e.getIndexWithinParent();if(n6(n),rk(o)){let e=i.__key,r=o.anchor,n=o.focus;l="element"===r.type&&r.key===e&&r.offset===t+1,a="element"===n.type&&n.key===e&&n.offset===t+1}}let s=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=n.__key,d=r.__next;if(null===s?u.__last=c:s.getWritable().__prev=c,u.__size++,r.__next=c,n.__next=d,n.__prev=r.__key,n.__parent=r.__parent,t&&rk(o)){let e=this.getIndexWithinParent();rH(o,u,e+1);let t=u.__key;l&&o.anchor.set(t,e+2,"element"),a&&o.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){ne(),iz(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.__key;n6(n);let o=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,s=this.getIndexWithinParent();null===o?l.__first=i:o.getWritable().__next=i,l.__size++,r.__prev=i,n.__prev=a,n.__next=r.__key,n.__parent=r.__parent;let u=rW();return t&&rk(u)&&rH(u,this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return nP()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){ne();let r=this.getPreviousSibling(),n=this.getParentOrThrow();if(null===r)return n.select(0,0);if(n_(r))return r.select();if(!rv(r)){let e=r.getIndexWithinParent()+1;return n.select(e,e)}return r.select(e,t)}selectNext(e,t){ne();let r=this.getNextSibling(),n=this.getParentOrThrow();if(null===r)return n.select();if(n_(r))return r.select(0,0);if(!rv(r)){let e=r.getIndexWithinParent();return n.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}let tQ="historic",t0="history-push",t1="history-merge",t2="paste",t4="skip-scroll-into-view",t3="skip-dom-selection",t5="skip-selection-focus",t6="composition-start",t9="composition-end";class t7 extends tX{static getType(){return"linebreak"}static clone(e){return new t7(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iX(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rr(r)){let r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iX(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rr(r))return!1;let n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}return!1}(e)?null:{conversion:t8,priority:0}}}static importJSON(e){return re().updateFromJSON(e)}}function t8(e){return{node:re()}}function re(){return iU(new t7)}function rt(e){return e instanceof t7}function rr(e){return n0(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function rn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ri(e,t){return 1&t?"strong":2&t?"em":"span"}function ro(e,t,r,n,i){let o=n.classList,l=iC(i,"base");void 0!==l&&o.add(...l);let a=!1,s=8&t&&4&t;for(let e in void 0!==(l=iC(i,"underlineStrikethrough"))&&(8&r&&4&r?(a=!0,s||o.add(...l)):s&&o.remove(...l)),S){let n=S[e];if(void 0!==(l=iC(i,e)))if(r&n){if(a&&("underline"===e||"strikethrough"===e)){t&n&&o.remove(...l);continue}(0==(t&n)||s&&"underline"===e||"strikethrough"===e)&&o.add(...l)}else t&n&&o.remove(...l)}}function rl(e,t,r){let n=t.firstChild,i=r.isComposing(),o=e+(i?y:"");if(null==n)t.textContent=o;else{let e=n.nodeValue;if(e!==o)if(i||s){let[t,r,i]=function(e,t){let r=e.length,n=t.length,i=0,o=0;for(;i<r&&i<n&&e[i]===t[i];)i++;for(;o+i<r&&o+i<n&&e[r-o-1]===t[n-o-1];)o++;return[i,r-i-o,t.slice(i,n-o)]}(e,o);0!==r&&n.deleteData(t,r),n.insertData(t,i)}else n.nodeValue=o}}function ra(e,t,r,n,i,o){rl(i,e,t);let l=o.theme.text;void 0!==l&&ro(0,0,n,e,l)}function rs(e,t){let r=document.createElement(t);return r.appendChild(e),r}class ru extends tX{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new ru(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return T[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===n8()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=S[e];return 0!=(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return n4(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let r=this.__format,n=rn(0,r),i=ri(0,r),o=null===n?i:n,l=document.createElement(o),a=l;
27this.hasFormat("code")&&l.setAttribute("spellcheck","false"),null!==n&&(a=document.createElement(i),l.appendChild(a)),ra(a,this,0,r,this.__text,e);let s=this.__style;return""!==s&&(l.style.cssText=s),l}updateDOM(e,t,r){let i=this.__text,o=e.__format,l=this.__format,a=rn(0,o),s=rn(0,l),u=ri(0,o),c=ri(0,l);if((null===a?u:a)!==(null===s?c:s))return!0;if(a===s&&u!==c){let e=t.firstChild;null==e&&n(48);let o=document.createElement(c);return ra(o,this,0,l,i,r),t.replaceChild(o,e),!1}let d=t;null!==s&&null!==a&&null==(d=t.firstChild)&&n(49),rl(i,d,this);let f=r.theme.text;void 0!==f&&o!==l&&ro(0,o,l,d,f);let h=e.__style,p=this.__style;return h!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:rh,priority:0}),b:()=>({conversion:rd,priority:0}),code:()=>({conversion:rm,priority:0}),em:()=>({conversion:rm,priority:0}),i:()=>({conversion:rm,priority:0}),mark:()=>({conversion:rm,priority:0}),s:()=>({conversion:rm,priority:0}),span:()=>({conversion:rc,priority:0}),strong:()=>({conversion:rm,priority:0}),sub:()=>({conversion:rm,priority:0}),sup:()=>({conversion:rm,priority:0}),u:()=>({conversion:rm,priority:0})}}static importJSON(e){return ry().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
27exportDOM(e){let{element:t}=super.exportDOM(e);return iH(t)||n(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=rs(t,"b")),this.hasFormat("italic")&&(t=rs(t,"i")),this.hasFormat("strikethrough")&&(t=rs(t,"s")),this.hasFormat("underline")&&(t=rs(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?S[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?w[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=n4(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=C[e];if(this.__mode===t)return this;let r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){ne();let r=e,n=t,i=rW(),o=this.getTextContent(),l=this.__key;if("string"==typeof o){let e=o.length;void 0===r&&(r=e),void 0===n&&(n=e)}else r=0,n=0;if(!rk(i))return rU(l,r,l,n,"text","text");{let e=n8();e!==i.anchor.key&&e!==i.focus.key||n7(l),i.setTextNodeRange(this,r,this,n)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,n){let i=this.getWritable(),o=i.__text,l=r.length,a=e;a<0&&(a=l+a)<0&&(a=0);let s=rW();if(n&&rk(s)){let t=e+l;s.setTextNodeRange(i,t,i,t)}return i.__text=o.slice(0,a)+r+o.slice(a+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;ne();let r=this.getLatest(),n=r.getTextContent();if(""===n)return[];let i=r.__key,o=n8(),l=n.length;e.sort((e,t)=>e-t),e.push(l);let a=[],s=e.length;for(let t=0,r=0;t<l&&r<=s;r++){let i=e[r];i>t&&(a.push(n.slice(t,i)),t=i)}let u=a.length;if(1===u)return[r];let c=a[0],d=r.getParent(),f=r.getFormat(),h=r.getStyle(),p=r.__detail,m=!1,y=null,v=null,_=rW();if(rk(_)){let[e,t]=_.isBackward()?[_.focus,_.anchor]:[_.anchor,_.focus];"text"===e.type&&e.key===i&&(y=e),"text"===t.type&&t.key===i&&(v=t)}r.isSegmented()?((t=ry(c)).__format=f,t.__style=h,t.__detail=p,t.__state=W(r,t),m=!0):t=r.setTextContent(c);let b=[t];for(let e=1;e<u;e++){let t=ry(a[e]);t.__format=f,t.__style=h,t.__detail=p,t.__state=W(r,t);let n=t.__key;o===i&&n7(n),b.push(t)}let S=y?y.offset:null,w=v?v.offset:null,x=0;for(let e of b){if(!y&&!v)break;let t=x+e.getTextContentSize();if(null!==y&&null!==S&&S<=t&&S>=x&&(y.set(e.getKey(),S-x,"text"),S<t&&(y=null)),null!==v&&null!==w&&w<=t&&w>=x){v.set(e.getKey(),w-x,"text");break}x=t}if(null!==d){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&n9(e),null!==t&&n9(t);let r=d.getWritable(),n=this.getIndexWithinParent();m?(r.splice(n,0,b),this.remove()):r.splice(n,1,b),rk(_)&&rH(_,d,n,u-1)}return b}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||n(50);let r=this.__key,i=e.__key,o=this.__text,l=o.length;n8()===i&&n7(r);let a=rW();if(rk(a)){let n=a.anchor,o=a.focus;null!==n&&n.key===i&&rZ(n,t,r,e,l),null!==o&&o.key===i&&rZ(o,t,r,e,l)}let s=e.__text,u=t?s+o:o+s;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function rc(e){return{forChild:r_(e.style),node:null}}function rd(e){let t="normal"===e.style.fontWeight;return{forChild:r_(e.style,t?void 0:"bold"),node:null}}let rf=new WeakMap;function rh(e){null===e.parentElement&&n(129);let t=e.textContent||"";if(null!==function(e){let t,r=e.parentNode,n=[e];for(;null!==r&&void 0===(t=rf.get(r))&&!function(e){if(!iH(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(r);)n.push(r),r=r.parentNode;let i=void 0===t?r:t;for(let e=0;e<n.length;e++)rf.set(n[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),r=[],n=e.length;for(let t=0;t<n;t++){let n=e[t];"\n"===n||"\r\n"===n?r.push(re()):" "===n?r.push(rS()):""!==n&&r.push(ry(n))}return{node:r}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let r=e,n=!0;for(;null!==r&&null!==(r=rp(r,!1));){let e=r.textContent||"";if(e.length>
270){/[ \t\n]$/.test(e)&&(t=t.slice(1)),n=!1;break}}n&&(t=t.slice(1))}if(" "===t[t.length-1]){let r=e,n=!0;for(;null!==r&&null!==(r=rp(r,!0));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){n=!1;break}n&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:ry(t)}}function rp(e,t){let r=e;for(;;){let e;for(;null===(e=t?r.nextSibling:r.previousSibling);){let e=r.parentElement;if(null===e)return null;r=e}if(iH(r=e)){let e=r.style.display;if(""===e&&!iZ(r)||""!==e&&!e.startsWith("inline"))return null}let n=r;for(;null!==(n=t?r.firstChild:r.lastChild);)r=n;if(n0(r))return r;if("BR"===r.nodeName)return null}}let rg={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function rm(e){let t=rg[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:r_(e.style,t),node:null}}function ry(e=""){return iU(new ru(e))}function rv(e){return e instanceof ru}function r_(e,t){let r=e.fontWeight,n=e.textDecoration.split(" "),i="700"===r||"bold"===r,o=n.includes("line-through"),l="italic"===e.fontStyle,a=n.includes("underline"),s=e.verticalAlign;return e=>(rv(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),o&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),l&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==s||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==s||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class rb extends ru{static getType(){return"tab"}static clone(e){return new rb(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),r=iC(e.theme,"tab");return void 0!==r&&t.classList.add(...r),t}static importJSON(e){return rS().updateFromJSON(e)}setTextContent(e){return" "!==e&&""!==e&&i(126),super.setTextContent(" ")}spliceText(e,t,r,i){return""===r&&0===t||" "===r&&1===t||n(286),this}setDetail(e){return 2!==e&&n(127),this}setMode(e){return"normal"!==e&&n(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rS(){return iU(new rb)}function rw(e){return e instanceof rb}class rx{key;offset;type;_selection;constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>oN(oF(oR(this,"next")),oF(oR(e,"next")))}getNode(){let e=ie(this.key);return null===e&&n(20),e}set(e,t,r,n){let i=this._selection,o=this.key;n&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,r8()||(n8()===o&&n7(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function rE(e,t,r){return new rx(e,t,r)}function rC(e,t){let r=t.__key,n=e.offset,i="element";if(rv(t)){i="text";let e=t.getTextContentSize();n>e&&(n=e)}else if(!n_(t)){let e=t.getNextSibling();if(rv(e))r=e.__key,n=0,i="text";else{let e=t.getParent();e&&(r=e.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,i)}function rT(e,t){if(n_(t)){let r=t.getLastDescendant();n_(r)||rv(r)?rC(e,r):rC(e,t)}else rC(e,t)}class rN{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!rO(e))return!1;let t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(e=>r.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new rN(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,r=this.getNodes(),n=r.length,i=r[n-1];if(rv(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<n;e++)r[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,r=[];for(let e of t){let t=ie(e);null!==t&&r.push(t)}return r8()||(this._cachedNodes=r),r}getTextContent(){let e=this.getNodes(),t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){let e=this.getNodes();
27if((rW()||rJ())===this&&e[0]){let t=og(e[0],"next");oM(oC(t,t))}for(let t of e)t.remove()}}function rk(e){return e instanceof rA}class rA{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,r,n){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=n,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!rk(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[r,n]=e.getTextSlices();r&&t.push(r.caret.origin);let i=new Set,o=new Set;for(let r of e)if(od(r)){let{origin:e}=r;0===t.length?i.add(e):(o.add(e),t.push(e))}else{let{origin:e}=r;n_(e)&&o.has(e)||t.push(e)}if(n&&t.push(n.caret.origin),oc(e.focus)&&n_(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let r=ov(e.focus.origin,"previous");od(r)&&i.has(r.origin)&&!r.origin.isEmpty()&&r.origin.is(t[t.length-1]);r=ob(r))i.delete(r.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!n_(e)||o.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let r=oF(e.anchor),n=oF(e.anchor.getFlipped()),i=e=>ou(e)?e.origin:e.getNodeAtCaret(),o=i(r)||i(n)||(e.anchor.getNodeAtCaret()?r.origin:n.origin);t.push(o)}return t}(oz(oD(this),"next"));return r8()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,n){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,n,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],r=e[e.length-1],n=this.anchor,i=this.focus,o=n.isBefore(i),[l,a]=rP(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(n_(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,rv(d)){let e=d.getTextContent();d===t?d===r?"element"===n.type&&"element"===i.type&&i.offset!==n.offset||(e=l<a?e.slice(l,a):e.slice(a,l)):e=o?e.slice(l):e.slice(a):d===r&&(e=o?e.slice(0,a):e.slice(0,l)),s+=e}else!nw(d)&&!rt(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=nn(),r=t.getEditorState()._selection,n=rF(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(null===n)return;let[i,o]=n;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),Y(this)}clone(){let e=this.anchor,t=this.focus;return new rA(rE(e.key,e.offset,e.type),rE(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=n4(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=S[e];return 0!=(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),r=[],n=t.length;for(let e=0;e<n;e++){let n=t[e];"\n"===n||"\r\n"===n?r.push(re()):" "===n?r.push(rS()):r.push(ry(n))}this.insertNodes(r)}insertText(e){let t=this.anchor,r=this.focus,i=this.format,o=this.style,l=t,a=r;!this.isCollapsed()&&r.isBefore(t)&&(l=r,a=t),"element"===l.type&&function(e,t,r,n){let i=e.getNode(),o=i.getChildAtIndex(e.offset),l=ry();if(l.setFormat(r),l.setStyle(n),nM(o))o.splice(0,0,[l]);else{let e=nE(i)?nP().append(l):l;null===o?i.append(e):o.insertBefore(e)}e.is(t)&&t.set(l.__key,0,"text"),e.set(l.__key,0,"text")}(l,a,i,o),"element"===a.type&&oP(a,oF(oR(a,"next")));let s=l.offset,u=a.offset,c=this.getNodes(),d=c.length,f=c[0];rv(f)||n(26);let h=f.getTextContent().length,p=f.getParentOrThrow(),m=c[d-1];if(1===d&&"element"===a.type&&(u=h,a.set(l.key,u,"text")),this.isCollapsed()&&s===h&&(nQ(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(rv(t)&&t.canInsertTextBefore()&&!nQ(t)||((t=ry()).setFormat(i),t.setStyle(o),p.canInsertTextAfter()?f.insertAfter(t):p.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(nQ(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(rv(t)&&!nQ(t)||((t=ry()).setFormat(i),p.canInsertTextBefore()?f.insertBefore(t):p.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&s!==h){let e=ry(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||n_(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),rj(this.anchor,this.focus),void this.insertText(e)}if(1===d){if(nX(f)){let t=ry(e);return t.select(),void f.replace(t)}let t=f.getFormat(),r=f.getStyle();if(s!==u||t===i&&r===o){if(rw(f)){let t=ry(e);return t.setFormat(i),t.setStyle(o),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=ry(e);if(t.setFormat(i),t.setStyle(o),t.select(),0===s)f.insertBefore(t,!1);else{let[e]=f.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(o)}let n=u-s;""===(f=f.spliceText(s,n,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=t,this.style=r,f.isComposing()&&(this.anchor.offset-=e.length))}else{let t=new Set([...f.getParentKeys(),...m.getParentKeys()]),r=n_(f)?f:f.getParentOrThrow(),n=n_(m)?m:m.getParentOrThrow(),i=m;if(!r.is(n)&&n.isInline())do i=n,n=n.getParentOrThrow();while(n.isInline());if("text"===a.type&&(0!==u||""===m.getTextContent())||"element"===a.type&&m.getIndexWithinParent()<u)if(rv(m)&&!nX(m)&&u!==m.getTextContentSize()){if(m.isSegmented()){let e=ry(m.getTextContent());m.replace(e),m=e}nE(a.getNode())||"text"!==a.type||(m=m.spliceText(0,u,"")),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?m.remove():e.remove()}else t.add(m.__key);let o=n.getChildren(),l=new Set(c),p=r.is(n),y=r.isInline()&&null===f.getNextSibling()?r:f;for(let e=o.length-1;e>=0;
27e--){let t=o[e];if(t.is(f)||n_(t)&&t.isParentOf(f))break;t.isAttached()&&(!l.has(t)||t.is(i)?p||y.insertAfter(t,!1):t.remove())}if(!p){let e=n,r=null;for(;null!==e;){let n=e.getChildren(),i=n.length;(0===i||n[i-1].is(r))&&(t.delete(e.__key),r=e),e=e.getParent()}}if(nX(f))if(s===h)f.select();else{let t=ry(e);t.select(),f.replace(t)}else""===(f=f.spliceText(s,h-s,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=f.getFormat(),this.style=f.getStyle(),f.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<d;e++){let r=c[e],n=r.__key;t.has(n)||r.remove()}}}removeText(){let e=rW()===this;oI(this,function(e,t="removeEmptySlices"){let r,i;if(e.isCollapsed())return e;let o="root",l="next",a=t,s=oz(e,l),u=oL(s.anchor,o),c=oL(s.focus.getFlipped(),o),d=new Set,f=[];for(let e of s.iterNodeCarets(o))if(od(e))d.add(e.origin.getKey());else if(oc(e)){let{origin:t}=e;n_(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of s.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,r=t.getTextContentSize(),n=o$(og(t,l)),i=t.getMode();if(Math.abs(e.distance)===r&&"removeEmptySlices"===a||"token"===i&&0!==e.distance)n.remove();else if(0!==e.distance){a="removeEmptySlices";let t=e.removeTextSlice(),r=e.caret.origin;if("segmented"===i){let e=t.origin,r=ry(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());n.replaceOrInsert(r),t=om(r,l,t.offset)}r.is(u[0].origin)&&(u[0]=t),r.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(oj(e)){r=oF(e);break}for(let e of c)if(oj(e)){i=oF(e);break}let h=function(e,t,r){let n;if(!e||!t)return null;let i=e.getParentAtCaret(),o=t.getParentAtCaret();if(!i||!o)return null;let l=i.getParents().reverse();l.push(i);let a=o.getParents().reverse();a.push(o);let s=Math.min(l.length,a.length);for(n=0;n<s&&l[n]===a[n];n++);let u=(e,t)=>{let r;for(let i=n;i<e.length;i++){let n=e[i];if(iF(n))return;!r&&t(n)&&(r=n)}return r},c=u(l,iQ),d=c&&u(a,e=>r.has(e.getKey())&&iQ(e));return c&&d?[c,d]:null}(r,i,d);if(h){let[e,t]=h;ov(e,"previous").splice(0,t.getChildren());let r=t.getParent();for(t.remove(!0);r&&r.isEmpty();){let e=r;r=r.getParent(),e.remove(!0)}}let p=[r,i,...u,...c].find(oj);if(p)return oE(oU(oF(p),e.direction));n(269,JSON.stringify(u.map(e=>e.origin.__key)))}(oD(this))),e&&rW()!==this&&iu(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void n7(null);let r=this.getNodes(),n=[];for(let e of r)rv(e)&&n.push(e);let i=t=>{r.forEach(r=>{if(n_(r)){let n=r.getFormatFlags(e,t);r.setTextFormat(n)}})},o=n.length;if(0===o)return this.toggleFormat(e),n7(null),void i(t);let l=this.anchor,a=this.focus,s=this.isBackward(),u=s?a:l,c=s?l:a,d=0,f=n[0],h="element"===u.type?0:u.offset;if("text"===u.type&&h===f.getTextContentSize()&&(d=1,f=n[1],h=0),null==f)return;let p=f.getFormatFlags(e,t);i(p);let m=o-1,y=n[m],v="text"===c.type?c.offset:y.getTextContentSize();if(f.is(y)){if(h===v)return;if(nQ(f)||0===h&&v===f.getTextContentSize())f.setFormat(p);else{let e=f.splitText(h,v),t=0===h?e[0]:e[1];t.setFormat(p),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-h,"text")}return void(this.format=p)}0===h||nQ(f)||([,f]=f.splitText(h),h=0),f.setFormat(p);let _=y.getFormatFlags(e,p);v>0&&(v===y.getTextContentSize()||nQ(y)||([y]=y.splitText(v)),y.setFormat(_));for(let t=d+1;t<m;t++){let r=n[t],i=r.getFormatFlags(e,_);r.setFormat(i)}"text"===u.type&&u.set(f.__key,h,"text"),"text"===c.type&&c.set(y.__key,v,"text"),this.format=p|_}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=rW();return rk(t)||n(134),t.insertNodes(e)}let r=(this.isBackward()?this.focus:this.anchor).getNode(),i=ot(r,iQ),o=e[e.length-1];if(n_(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=r1(this);i.splice(t,0,e),o.selectEnd()}return}if(!e.some(e=>(n_(e)||nw(e))&&!e.isInline())){n_(i)||n(211,r.constructor.name,r.getType());let t=r1(this);return i.splice(t,0,e),void o.selectEnd()}let l=function(e){let t=nP(),r=null;for(let n=0;n<e.length;n++){let i=e[n],o=rt(i);if(o||nw(i)&&i.isInline()||n_(i)&&i.isInline()||rv(i)||i.isParentRequired()){if
27(null===r&&(r=i.createParentElementNode(),t.append(r),o))continue;null!==r&&r.append(i)}else t.append(i),r=null}return t}(e),a=l.getLastDescendant(),s=l.getChildren(),u=n_(i)&&i.isEmpty()?null:this.insertParagraph(),c=s[s.length-1],d=s[0];n_(t=d)&&iQ(t)&&!t.isEmpty()&&n_(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(n_(i)||n(211,r.constructor.name,r.getType()),i.append(...d.getChildren()),d=s[1]),d&&(null===i&&n(212,r.constructor.name,r.getType()),function(e,t){let r=t.getParentOrThrow().getLastChild(),i=t,o=[t];for(;i!==r;)i.getNextSibling()||n(140),o.push(i=i.getNextSibling());let l=e;for(let e of o)l=l.insertAfter(e)}(i,d));let f=ot(a,iQ);u&&n_(f)&&(u.canMergeWhenEmpty()||iQ(c))&&(f.append(...u.getChildren()),u.remove()),n_(i)&&i.isEmpty()&&i.remove(),a.selectEnd();let h=n_(i)?i.getLastChild():null;rt(h)&&f!==i&&h.remove()}insertParagraph(){if("root"===this.anchor.key){let e=nP();return ia().splice(this.anchor.offset,0,[e]),e.select(),e}let e=r1(this),t=ot(this.anchor.getNode(),iQ);n_(t)||n(213);let r=t.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...i),o.selectStart(),o):null}insertLineBreak(e){let t=re();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),r=t.getIndexWithinParent();e.select(r,r)}}extract(){let e=[...this.getNodes()],t=e.length,r=e[0],n=e[t-1],[i,o]=rP(this),l=this.isBackward(),[a,s]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=l?[o,i]:[i,o];if(0===t)return[];if(1===t){if(rv(r)&&!this.isCollapsed()){let e=r.splitText(u,c),t=0===u?e[0]:e[1];return t?(a.set(t.getKey(),0,"text"),s.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[r]}if(rv(r)&&(u===r.getTextContentSize()?e.shift():0!==u&&([,r]=r.splitText(u),e[0]=r,a.set(r.getKey(),0,"text"))),rv(n)){let t=n.getTextContent().length;0===c?e.pop():c!==t&&([n]=n.splitText(c),e[e.length-1]=n,s.set(n.getKey(),n.getTextContentSize(),"text"))}return e}modify(e,t,r){var n;if(r2(this,e,t,r))return;let i="move"===e,o=nn(),l=iV(iL(o));if(!l)return;let a=o._blockCursorElement,s=o._rootElement,u=this.focus.getNode();if(null===s||null===a||!n_(u)||u.isInline()||u.canBeEmpty()||iq(a,o,s),this.dirty){let e=iR(o,this.anchor.key),t=iR(o,this.focus.key);"text"===this.anchor.type&&(e=n2(e)),"text"===this.focus.type&&(t=n2(t)),e&&t&&rX(l,e,this.anchor.offset,t,this.focus.offset)}if(n=t?"backward":"forward",l.modify(e,n,r),l.rangeCount>0){let e=l.getRangeAt(0),r=this.anchor.getNode(),n=nE(r)?r:function(e){let t=e.getParentOrThrow();for(;null!==t&&!iF(t);)t=t.getParentOrThrow();return t}(r);if(this.applyDOMRange(e),this.dirty=!0,!i){let r=this.getNodes(),i=[],o=!1;for(let e=0;e<r.length;e++){let t=r[e];iD(t,n)?i.push(t):o=!0}if(o&&i.length>0)if(t){let e=i[0];n_(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];n_(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}l.anchorNode===e.startContainer&&l.anchorOffset===e.startOffset||function(e){let t=e.focus,r=e.anchor,n=r.key,i=r.offset,o=r.type;r.set(t.key,t.offset,t.type,!0),t.set(n,i,o,!0)}(this)}}"lineboundary"===r&&r2(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&("element"===e.type&&n_(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),r=t.getNextSibling()||(null===e?null:e.getNextSibling());if(n_(r)&&r.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;let n=ox(oR(t,e?"previous":"next"));if(n.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of n.iterNodeCarets("shadowRoot"))if(od(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(n_(n.anchor.origin)&&n.anchor.origin.isEmpty()){let e=oF(t);oI(this,oC(e,e)),n.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(oc(t)){if(n_(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(n.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(nw(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&n_(n.anch
27or.origin)&&n.anchor.origin.isEmpty()){n.anchor.origin.remove();let e=rK();e.add(t.origin.getKey()),iu(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:r}=e;return oI(this,oC(!t.origin.isEmpty()&&r.isEmpty()?o$(og(r,t.direction)):n.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&rM(this,t.getNode()))return}else{let n="text"===i.type?i.getNode():null;if(r="text"===t.type?t.getNode():null,null!==n&&n.isSegmented()){let t=i.offset,o=n.getTextContentSize();if(n.is(r)||e&&t!==o||!e&&0!==t)return void rD(n,e,t)}else if(null!==r&&r.isSegmented()){let i=t.offset,o=r.getTextContentSize();if(r.is(n)||e&&0!==i||!e&&i!==o)return void rD(r,e,i)}!function(e,t){let r=e.anchor,n=e.focus,i=r.getNode();if(i===n.getNode()&&"text"===r.type&&"text"===n.type){var o;let e=r.offset,l=n.offset,a=e<l,s=a?e:l,u=a?l:e,c=u-1;s===c||id(o=i.getTextContent().slice(s,u))||rI(o)||(t?n.set(n.key,c,n.type):r.set(r.key,c,r.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&nE(e.getParent())&&null===e.getPreviousSibling()&&rM(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function rO(e){return e instanceof rN}function rR(e){let t=e.offset;if("text"===e.type)return t;let r=e.getNode();return t===r.getChildrenSize()?r.getTextContent().length:0}function rP(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[r,n]=t;return"element"===r.type&&"element"===n.type&&r.key===n.key&&r.offset===n.offset?[0,0]:[rR(r),rR(n)]}function rM(e,t){for(let r=t;r;r=r.getParent()){if(n_(r)){if(r.collapseAtStart(e))return!0;if(iF(r))break}if(r.getPreviousSibling())break}return!1}let rI=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("â¤ï¸")&&t("#ï¸â£")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function rD(e,t,r){let n=e.getTextContent().split(/(?=\s)/g),i=n.length,o=0,l=0;for(let e=0;e<i;e++){let a=e===i-1;if(l=o,o+=n[e].length,t&&o===r||o>r||a){n.splice(e,1),a&&(l=void 0);break}}let a=n.join("").trim();""===a?e.remove():(e.setTextContent(a),e.select(l,l))}function r$(e,t,r,i){let o,l=t;if(iH(e)){let a=!1,s=e.childNodes,u=s.length,c=i._blockCursorElement;l===u&&(a=!0,l=u-1);let d=s[l],f=!1;
27if(d===c)d=s[l+1],f=!0;else if(null!==c){let r=c.parentNode;e===r&&t>Array.prototype.indexOf.call(r.children,c)&&l--}if(rv(o=ic(d)))l=oy(o,a?"next":"previous");else{let s=ic(e);if(null===s)return null;if(n_(s)){let u=i.getElementByKey(s.getKey());null===u&&n(214);let c=s.getDOMSlot(u);[s,l]=c.resolveChildIndex(s,u,e,t),n_(s)||n(215),a&&l>=s.getChildrenSize()&&(l=Math.max(0,s.getChildrenSize()-1));let d=s.getChildAtIndex(l);if(n_(d)&&function(e,t,r){let n=e.getParent();return null===r||null===n||!n.canBeEmpty()||n!==r.getNode()}(d,0,r)){let e=a?d.getLastDescendant():d.getFirstDescendant();s=null===e||n_(d=e)?d:d.getParentOrThrow(),l=0}rv(d)?(o=d,s=null,l=oy(d,a?"next":"previous")):d!==s&&a&&!f&&(n_(s)||n(216),l=Math.min(s.getChildrenSize(),l+1))}else{let r=s.getIndexWithinParent();l=0===t&&nw(s)&&ic(e)===s?r:r+1,s=s.getParentOrThrow()}if(n_(s))return rE(s.__key,l,"element")}}else o=ic(e);return rv(o)?rE(o.__key,oy(o,l,"clamp"),"text"):null}function rL(e,t,r){let n=e.offset,i=e.getNode();if(0===n){let n=i.getPreviousSibling(),o=i.getParent();if(t){if((r||!t)&&null===n&&n_(o)&&o.isInline()){let t=o.getPreviousSibling();rv(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else n_(n)&&!r&&n.isInline()?e.set(n.__key,n.getChildrenSize(),"element"):rv(n)&&e.set(n.__key,n.getTextContent().length,"text")}else if(n===i.getTextContent().length){let n=i.getNextSibling(),o=i.getParent();if(t&&n_(n)&&n.isInline())e.set(n.__key,0,"element");else if((r||t)&&null===n&&n_(o)&&o.isInline()&&!o.canInsertTextAfter()){let t=o.getNextSibling();rv(t)&&e.set(t.__key,0,"text")}}}function rj(e,t,r){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),n=e.is(t);rL(e,r,n),rL(t,!r,n),n&&t.set(e.key,e.offset,e.type)}}function rF(e,t,r,n,i,o){if(null===e||null===r||!nH(i,e,r))return null;let l=r$(e,t,rk(o)?o.anchor:null,i);if(null===l)return null;let a=r$(r,n,rk(o)?o.focus:null,i);if(null===a)return null;if("element"===l.type&&"element"===a.type){let t=ic(e),n=ic(r);if(nw(t)&&nw(n))return null}return rj(l,a),[l,a]}function rB(e){return n_(e)&&!e.isInline()}function rU(e,t,r,n,i,o){let l=nr(),a=new rA(rE(e,t,i),rE(r,n,o),0,"");return a.dirty=!0,l._selection=a,a}function rz(){return new rA(rE("root",0,"element"),rE("root",0,"element"),0,"")}function rK(){return new rN(new Set)}function rq(e,t){return rV(null,e,t,null)}function rV(e,t,r,n){let i,o,l,a,s=r._window;if(null===s)return null;let u=n||s.event,c=u?u.type:void 0,d="selectionchange"===c,f=!k&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(rk(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,o=t.focusNode,l=t.anchorOffset,a=t.focusOffset,(d||void 0===c)&&rk(e)&&!nH(r,i,o))return e.clone();let h=rF(i,l,o,a,r,e);if(null===h)return null;let[p,m]=h,y=0,v="";if(rk(e)){let t=e.anchor;if(p.key===t.key)y=e.format,v=e.style;else{let e=p.getNode();rv(e)?(y=e.getFormat(),v=e.getStyle()):n_(e)&&(y=e.getTextFormat(),v=e.getTextStyle())}}return new rA(p,m,y,v)}function rW(){return nr()._selection}function rJ(){return nn()._editorState._selection}function rH(e,t,r,n=1){let i=e.anchor,o=e.focus,l=i.getNode(),a=o.getNode();if(!t.is(l)&&!t.is(a))return;let s=t.__key;if(e.isCollapsed()){let t=i.offset;if(r<=t&&n>0||r<t&&n<0){let r=Math.max(0,t+n);i.set(s,r,"element"),o.set(s,r,"element"),rG(e)}}else{let l=e.isBackward(),a=l?o:i,u=a.getNode(),c=l?i:o,d=c.getNode();if(t.is(u)){let e=a.offset;(r<=e&&n>0||r<e&&n<0)&&a.set(s,Math.max(0,e+n),"element")}if(t.is(d)){let e=c.offset;(r<=e&&n>0||r<e&&n<0)&&c.set(s,Math.max(0,e+n),"element")}}rG(e)}function rG(e){let t=e.anchor,r=t.offset,n=e.focus,i=n.offset,o=t.getNode(),l=n.getNode();if(e.isCollapsed()){if(!n_(o))return;let e=o.getChildrenSize(),i=r>=e,l=i?o.getChildAtIndex(e-1):o.getChildAtIndex(r);if(rv(l)){let e=0;i&&(e=l.getTextContentSize()),t.set(l.__key,e,"text"),n.set(l.__key,e,"text")}return}if(n_(o)){let e=o.getChildrenSize(),n=r>=e,i=n?o.getChildAtIndex(e-1):o.getChildAtIndex(r);if(rv(i)){let e=0;n&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(n_(l)){let e=l.getChildrenSize(),t=i>=e,r=t?l.getChildAtIndex(e-1):l.getChildAtIndex(i);if(rv(r)){let e=0;t&&(e=r.getTextContentSize()),n.set(r.__key,e,"text")}}}function rY(e,t,r,n,i){let o=null,l=0,a=null;null!==n?(o=n.__key,rv(n)?(l=n.getTextContentSize(),a="text"):n_(n)&&(l=n.getChildrenSize(),a="element")):null!==i&&(o=i.__key,rv(i)?a="text":n_(i)&&(a="element")),null!==o&&null!==a?e.set(o,l,a):(-1===(l=t.getIndexWithinParent())&&(l=r.getChildrenSize()),e.set(r.__key,l,"element"))}function rZ(e,t,r,n,i){"text"===e.type?e.set(r,e.offset+(t?0:i),"text"):e.offset>n.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function rX(e,t,r,n,i){try{e.setBaseAndExtent(t,r,n,i)}catch(e){}}function rQ(e,t,r){let n=iR(e,t.getKey());if(n_(t)){let e=t.getDOMSlot(n);return[e.element,r+e.getFirstChildOffset()]}return[n,r]}function r0(e){let t=rW()||rJ();
27null===t&&(t=ia().selectEnd()),t.insertNodes(e)}function r1(e){let t=e;e.isCollapsed()||t.removeText();let r=rW();rk(r)&&(t=r),rk(t)||n(161);let i=t.anchor,o=i.getNode(),l=i.offset;for(;!iQ(o);){let e=o;if([o,l]=function(e,t){let r=e.getParent();if(!r){let e=nP();return ia().append(e),e.select(),[ia(),0]}if(rv(e)){let n=e.splitText(t);if(0===n.length)return[r,e.getIndexWithinParent()];let i=+(0!==t);return[r,n[0].getIndexWithinParent()+i]}if(!n_(e)||0===t)return[r,e.getIndexWithinParent()];let n=e.getChildAtIndex(t);if(n){let r=new rA(rE(e.__key,t,"element"),rE(e.__key,t,"element"),0,""),i=e.insertNewAfter(r);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}(o,l),e.is(o))break}return l}function r2(e,t,r,n,i="decorators-and-blocks"){if("move"===t&&"character"===n&&!e.isCollapsed()){let[t,n]=r===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return n.set(t.key,t.offset,t.type),!0}let o=oR(e.focus,r?"previous":"next"),l="lineboundary"===n,a="move"===t,s=o,u="decorators-and-blocks"===i;if(!oB(s)){for(let e of s){u=!1;let{origin:t}=e;if(!nw(t)||t.isIsolated()||(s=e,!l||!t.isInline()))break}if(u)for(let e of ox(o).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(od(e))e.origin.isInline()||(s=e);else{if(n_(e.origin))continue;nw(e.origin)&&!e.origin.isInline()&&(s=e)}break}}if(s===o)return!1;if(a&&!l&&nw(s.origin)&&s.origin.isKeyboardSelectable()){let e=rK();return e.add(s.origin.getKey()),iu(e),!0}return s=oF(s),a&&oP(e.anchor,s),oP(e.focus,s),u||!l}let r4=null,r3=null,r5=!1,r6=!1,r9=0,r7={characterData:!0,childList:!0,subtree:!0};function r8(){return r5||null!==r4&&r4._readOnly}function ne(){r5&&n(13)}function nt(){r9>99&&n(14)}function nr(){return null===r4&&n(195,ni()),r4}function nn(){return null===r3&&n(196,ni()),r3}function ni(){let e=0,t=new Set,r=nU.version;if("undefined"!=typeof window)for(let n of document.querySelectorAll("[contenteditable]")){let i=nZ(n);if(nG(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===r&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let n=` Detected on the page: ${e} compatible editor(s) with version ${r}`;return t.size&&(n+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),n}function no(e,t,r){let n=t.__type,i=nq(e,n),o=r.get(n);void 0===o&&(o=Array.from(i.transforms),r.set(n,o));let l=o.length;for(let e=0;e<l&&(o[e](t),t.isAttached());e++);}function nl(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function na(e,t){if(!t)return;let r=e._updateTags,n=t;for(let e of(Array.isArray(t)||(n=[t]),n))r.add(e)}function ns(e){return nu(e,nn()._nodes)}function nu(e,t){let r=e.type,i=t.get(r);void 0===i&&n(17,r);let o=i.klass;e.type!==o.getType()&&n(18,o.name);let l=o.importJSON(e),a=e.children;if(n_(l)&&Array.isArray(a))for(let e=0;e<a.length;e++){let r=nu(a[e],t);l.append(r)}return l}function nc(e,t,r){let n=r4,i=r5,o=r3;r4=t,r5=!0,r3=e;try{return r()}finally{r4=n,r5=i,r3=o}}function nd(e,t){let r=e._pendingEditorState,i=e._rootElement,o=e._headless||null===i;if(null===r)return;let l=e._editorState,a=l._selection,u=r._selection,c=0!==e._dirtyType,d=r4,f=r5,h=r3,p=e._updating,m=e._observer,y=null;if(e._pendingEditorState=null,e._editorState=r,!o&&c&&null!==m){r3=e,r4=r,r5=!1,e._updating=!0;try{let t=e._dirtyType,i=e._dirtyElements,o=e._dirtyLeaves;m.disconnect(),y=function(e,t,r,i,o,l){es="",ed=2===i,Q=r,X=r._config,ee=r._nodes,et=Q._listeners.mutation,er=o,en=l,ei=e._nodeMap,eo=t._nodeMap,ef=t._readOnly,el=new Map(r._keyToDOMMap);let a=new Map;return ea=a,function e(t,r){let i=ei.get(t),o=eo.get(t);void 0!==i&&void 0!==o||n(61);let l=ed||en.has(t)||er.has(t),a=iR(Q,t);if(i===o&&!l){let e;if(n_(i)){let t=a.__lexicalTextContent;"string"==typeof t?e=t:a.__lexicalTextContent=e=i.getTextContent()}else e=i.getTextContent();return es+=e,a}if(i!==o&&l&&iT(ea,ee,et,o,"updated"),o.updateDOM(i,a,X)){let e=e_(t,null);return null===r&&n(62),r.replaceChild(e,a),eh(t,null),e}if(n_(i)){n_(o)||n(334,t);let r=o.__indent;(ed||r!==i.__indent)&&em(a,r);let s=o.__format;if((ed||s!==i.__format)&&ey(a,s),l)(function(t,r,i){eu=null,ec=null,function(t,r,i){let o=es,l=t.__size,a=r.__size;es="";let s=i.element;
27if(1===l&&1===a){let n=t.__first,i=r.__first;if(n===i)e(n,s);else{let e=eN(n),t=e_(i,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r)throw Error(`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${n}}.`);throw r}eh(n,null)}let o=eo.get(i);rv(o)&&null===eu&&(eu=o.getFormat(),ec=o.getStyle())}else{let o=ex(t,ei),u=ex(r,eo);if(o.length!==l&&n(227),u.length!==a&&n(228),0===l)0!==a&&eb(u,0,0,a-1,i);else if(0===a){if(0!==l){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;ep(o,0,l-1,e?null:s),e&&(s.textContent="")}}else!function(t,r,n,i,o,l){let a=i-1,s=o-1,u,c,d=l.getFirstChild(),f=0,h=0;for(;f<=a&&h<=s;){let t=r[f],i=n[h];if(t===i)d=eC(e(i,l.element)),f++,h++;else{if(void 0===c&&(c=eT(n,h)),void 0===u)u=eT(r,f);else if(!u.has(t)){f++;continue}if(!c.has(t)){d=eC(eN(t)),eh(t,l.element),f++,u.delete(t);continue}if(u.has(i)){let t=iR(Q,i);t!==d&&l.withBefore(d).insertChild(t),d=eC(e(i,l.element)),f++,h++}else e_(i,l.withBefore(d)),h++}let o=eo.get(i);null!==o&&rv(o)?null===eu&&(eu=o.getFormat(),ec=o.getStyle()):n_(o)&&h<=s&&!o.isInline()&&(es+="\n\n")}let p=f>a,m=h>s;if(p&&!m){let e=n[s+1],t=void 0===e?null:Q.getElementByKey(e);eb(n,0,h,s,l.withBefore(t))}else m&&!p&&ep(r,f,a,l.element)}(0,o,u,l,a,i)}s.__lexicalTextContent=es,es=o+es}(t,r,r.getDOMSlot(i)),null==eu||eu===r.__textFormat||ef||r.setTextFormat(eu),null==ec||ec===r.__textStyle||ef||r.setTextStyle(ec)})(i,o,a),nE(o)||o.isInline()||ew(i,o,a);else{let e,t=a.__lexicalTextContent;"string"==typeof t?e=t:a.__lexicalTextContent=e=i.getTextContent(),es+=e}if((ed||o.__dir!==i.__dir)&&(ev(a,o),nE(o)&&!ed))for(let e of o.getChildren())n_(e)&&ev(iR(Q,e.getKey()),e)}else{let e=o.getTextContent();if(nw(o)){let e=o.decorate(Q,X);null!==e&&eE(t,e)}es+=e}if(!ef&&nE(o)&&o.__cachedText!==es){let e=o.getWritable();e.__cachedText=es,o=e}return a}("root",null),Q=void 0,ee=void 0,er=void 0,en=void 0,ei=void 0,eo=void 0,X=void 0,el=void 0,ea=void 0,a}(l,r,e,t,i,o)}catch(t){if(t instanceof Error&&e._onError(t),r6)throw t;return nF(e,null,i,r),I(e),e._dirtyType=2,r6=!0,nd(e,l),void(r6=!1)}finally{m.observe(i,r7),e._updating=p,r4=d,r5=f,r3=h}}r._readOnly||(r._readOnly=!0);let v=e._dirtyLeaves,_=e._dirtyElements,b=e._normalizedNodes,S=e._updateTags,w=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let r,n=e._decorators,i=e._pendingDecorators||n,o=t._nodeMap;for(r in i)o.has(r)||(i===n&&(i=io(e)),delete i[r])}(e,r);let x=o?null:iV(iL(e));if(e._editable&&null!==x&&(c||null===u||u.dirty||!u.is(a))&&null!==i&&!S.has(t3)){r3=e,r4=r;try{if(null!==m&&m.disconnect(),c||null===u||u.dirty){let t=e._blockCursorElement;null!==t&&iq(t,e,i),function(e,t,r,n,i,o,l){var a;
27let u=n.anchorNode,c=n.focusNode,d=n.anchorOffset,f=n.focusOffset,h=document.activeElement;if(i.has("collaboration")&&h!==o||null!==h&&nJ(h))return;if(!rk(t))return null!==e&&nH(r,u,c)&&n.removeAllRanges();let p=t.anchor,m=t.focus,y=p.getNode(),v=m.getNode(),[_,b]=rQ(r,y,p.offset),[S,w]=rQ(r,v,m.offset),x=t.format,E=t.style,C=t.isCollapsed(),T=_,N=S,k=!1;if("text"===p.type?(T=n2(_),k=y.getFormat()!==x||y.getStyle()!==E):rk(e)&&"text"===e.anchor.type&&(k=!0),"text"===m.type&&(N=n2(S)),null!==T&&null!==N&&(C&&(null===e||k||rk(e)&&(e.format!==x||e.style!==E))&&(a=p.key,tA=[x,E,b,a,performance.now()]),d!==b||f!==w||u!==T||c!==N||"Range"===n.type&&C||(null!==h&&o.contains(h)||i.has(t5)||o.focus({preventScroll:!0}),"element"===p.type))){if(rX(n,T,b,N,w),!s||!t.isCollapsed()||null===o||i.has(t5)||null!==document.activeElement&&o.contains(document.activeElement)||o.focus({preventScroll:!0}),!i.has(t4)&&t.isCollapsed()&&null!==o&&o===document.activeElement){let e=rk(t)&&"element"===t.anchor.type?T.childNodes[b]||null:n.rangeCount>0?n.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let r=document.createRange();r.selectNode(e),t=r.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,r){let n=iM(r),i=i$(n);if(null===n||null===i)return;let{top:o,bottom:l}=t,a=0,s=0,u=r;for(;null!==u;){let t=u===n.body;if(t)a=0,s=iL(e).innerHeight;else{let e=u.getBoundingClientRect();a=e.top,s=e.bottom}let r=0;if(o<a?r=-(a-o):l>s&&(r=l-s),0!==r)if(t)i.scrollBy(0,r);else{let e=u.scrollTop;u.scrollTop+=r;let t=u.scrollTop-e;o-=t,l-=t}if(t)break;u=iP(u)}}(r,t,o)}}tw=!0}}(a,u,e,x,S,i)}!function(e,t,r){let n=e._blockCursorElement;if(rk(r)&&r.isCollapsed()&&"element"===r.anchor.type&&t.contains(document.activeElement)){let i=r.anchor,o=i.getNode(),l=i.offset,a=!1,s=null;if(l===o.getChildrenSize())iK(o.getChildAtIndex(l-1))&&(a=!0);else{let t=o.getChildAtIndex(l);if(null!==t&&iK(t)){let r=t.getPreviousSibling();(null===r||iK(r))&&(a=!0,s=e.getElementByKey(t.__key))}}if(a){let r=e.getElementByKey(o.__key);return null===n&&(e._blockCursorElement=n=function(e){let t=e.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let n=t.blockCursor;return void 0!==n&&("string"==typeof n&&(n=t.blockCursor=oZ(n)),void 0!==n&&r.classList.add(...n)),r}(e._config)),t.style.caretColor="transparent",null===s?r.appendChild(n):r.insertBefore(n,s)}}null!==n&&iq(n,e,t)}(e,i,u)}finally{null!==m&&m.observe(i,r7),r3=h,r4=d}}null!==y&&function(e,t,r,n,i){let o=Array.from(e._listeners.mutation),l=o.length;for(let e=0;e<l;e++){let[l,a]=o[e];for(let e of a){let o=t.get(e);void 0!==o&&l(o,{dirtyLeaves:n,prevEditorState:i,updateTags:r})}}}(e,y,S,v,l),rk(u)||null===u||null!==a&&a.is(u)||e.dispatchCommand(eA,void 0);let E=e._pendingDecorators;null!==E&&(e._decorators=E,e._pendingDecorators=null,nf("decorator",e,!0,E)),function(e,t,r){let n=il(t),i=il(r);n!==i&&nf("textcontent",e,!0,i)}(e,t||l,r),nf("update",e,!0,{dirtyElements:_,dirtyLeaves:v,editorState:r,mutatedNodes:y,normalizedNodes:b,prevEditorState:t||l,tags:S}),function(e,t){if(e._deferred=[],0!==t.length){let r=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=r}}}(e,w),function(e){let t=e._updates;if(0!==t.length){let r=t.shift();if(r){let[t,n]=r;np(e,t,n)}}}(e)}function nf(e,t,r,...n){let i=t._updating;t._updating=r;try{let r=Array.from(t._listeners[e]);for(let e=0;e<r.length;e++)r[e].apply(null,n)}finally{t._updating=i}}function nh(e,t){let r=e._updates,i=t||!1;for(;0!==r.length;){let t=r.shift();if(t){let r,[o,l]=t,a=e._pendingEditorState;void 0!==l&&(r=l.onUpdate,l.skipTransforms&&(i=!0),l.discrete&&(null===a&&n(191),a._flushSync=!0),r&&e._deferred.push(r),na(e,l.tag)),null==a?np(e,o,l):o()}}return i}function np(e,t,r){let i=e._updateTags,o,l=!1,a=!1;void 0!==r&&(o=r.onUpdate,na(e,r.tag),l=r.skipTransforms||!1,a=r.discrete||!1),o&&e._deferred.push(o);let s=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=nC(u||s),c=!0),u._flushSync=a;let d=r4,f=r5,h=r3,p=e._updating;r4=u,r5=!1,e._updating=!0,r3=e;let m=e._headless||null===e.getRootElement();nz=null;try{c&&(m?null!==s._selection&&(u._selection=s._selection.clone()):u._selection=function(e,t){let r=e.getEditorState()._selection,n=iV(iL(e));return rk(r)||null==r?rV(r,n,e,t):r.clone()}(e,r&&r.event||null));let i=e._compositionKey;t(),l=nh(e,l),function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(rk(n)){let e,t=n.anchor,i=n.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(r,n),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(r,n)}}}(u,e),0!==e._dirtyType&&(l?function(e,t){let r=t._dirtyLeaves,n=e._nodeMap;for(let e of r){let t=n.get(e);rv(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&G(t)}}(u,e):function(e,t){let r=t._dirtyLeaves,n=t._dirtyElements,i=e._nodeMap,o=n8(),l=new Map,a=r,s=a.size,u=n,c=u.size;
27for(;s>0||c>0;){if(s>0){for(let e of(t._dirtyLeaves=new Set,a)){let n=i.get(e);rv(n)&&n.isAttached()&&n.isSimpleText()&&!n.isUnmergeable()&&G(n),void 0!==n&&nl(n,o)&&no(t,n,l),r.add(e)}if((s=(a=t._dirtyLeaves).size)>0){r9++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let r=e[0],a=e[1];if(n.set(r,a),!a)continue;let s=i.get(r);void 0!==s&&nl(s,o)&&no(t,s,l)}s=(a=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,r9++}t._dirtyLeaves=r,t._dirtyElements=n}(u,e),nh(e),function(e,t,r,n){let i=e._nodeMap,o=t._nodeMap,l=[];for(let[e]of n){let t=o.get(e);void 0!==t&&(t.isAttached()||(n_(t)&&function e(t,r,n,i,o,l){let a=t.getFirstChild();for(;null!==a;){let t=a.__key;a.__parent===r&&(n_(a)&&e(a,t,n,i,o,l),n.has(t)||l.delete(t),o.push(t)),a=a.getNextSibling()}}(t,e,i,o,l,n),i.has(e)||n.delete(e),l.push(e)))}for(let e of l)o.delete(e);for(let e of r){let t=o.get(e);void 0===t||t.isAttached()||(i.has(e)||r.delete(e),o.delete(e))}}(s,u,e._dirtyLeaves,e._dirtyElements)),i!==e._compositionKey&&(u._flushSync=!0);let o=u._selection;if(rk(o)){let e=u._nodeMap,t=o.anchor.key,r=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(r)||n(19)}else rO(o)&&0===o._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nd(e)}finally{r4=d,r5=f,r3=h,e._updating=p,r9=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(null!==n){if(n.dirty||!n.is(r))return!0}else if(null!==r)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,nd(e)):c&&nW(()=>{nd(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function ng(e,t,r){r3===e&&void 0===r?t():np(e,t,r)}class nm{element;before;after;constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new nm(this.element,e,this.after)}withAfter(e){return new nm(this.element,this.before,e)}withElement(e){return this.element===e?this:new nm(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&n(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&n(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&n(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(m||d||c))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,r="IMG"===e.nodeName?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let r=this.element,n=this.before,i=document.createElement("br");if(r.insertBefore(i,n),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",r.insertBefore(e,i),r.__lexicalLineBreak=e}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,n){if(r===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,n))]}let i=ny(t,r);i.push(n);let o=ny(t,this.element),l=e.getIndexWithinParent();for(let e=0;e<o.length;e++){let t=i[e],r=o[e];if(void 0===t||t<r)break;if(t>r){l+=1;break}}return[e.getParentOrThrow(),l]}}function ny(e,t){let r=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;r.push(e)}return i!==e&&n(225),r.reverse()}class nv extends tX{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return E[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nn()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(rv(t)&&e.push(t),n_(t)){let r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;n_(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;n_(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),r=t.length;if(e>=r){let e=t[r-1];return n_(e)&&e.getLastDescendant()||e||null}let n=t[e];return n_(n)&&n.getFirstDescendant()||n||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:ie(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&n(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:ie(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&n(96,this.__key),e}getChildAtIndex(e){let t,r,n=this.getChildrenSize();if(e<n/2){for(t=this.getFirstChild(),r=0;null!==t&&r<=e;){if(r===e)return t;t=t.getNextSibling(),r++}return null}for(t=this.getLastChild(),r=n-1;null!==t&&r>=e;){if(r===e)return t;t=t.getPreviousSibling(),r--}return null}getTextContent(){let e="",t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContent(),n_(i)&&n!==r-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContentSize(),n_(i)&&n!==r-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=x[e];return 0!=(this.getFormat()&t)}return!1}hasTextFormat(e){let t=S[e];return 0!=(this.getTextFormat()&t)}getFormatFlags(e,t){return n4(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){ne();let r=rW(),n=e,i=t,o=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(rv(e)||n_(e))return e.select(0,0)}
27else if((void 0===e||e===o)&&(void 0===t||t===o)){let e=this.getLastChild();if(rv(e)||n_(e))return e.select()}}void 0===n&&(n=o),void 0===i&&(i=o);let l=this.__key;return rk(r)?(r.anchor.set(l,n,"element"),r.focus.set(l,i,"element"),r.dirty=!0,r):rU(l,n,l,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?x[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){tZ(this)&&n(324,this.__key,this.__type);let i=this.getChildrenSize(),o=this.getWritable();e+t<=i||n(226,String(e),String(t),String(i));let l=o.__key,a=[],s=[],u=this.getChildAtIndex(e+t),c=null,d=i-t+r.length;if(0!==e)if(e===i)c=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let r=0;r<t;r++){null===e&&n(100);let t=e.getNextSibling(),r=e.__key;n6(e.getWritable()),s.push(r),e=t}}let f=c;for(let e of r){null!==f&&e.is(f)&&(c=f=f.getPreviousSibling());let t=e.getWritable();t.__parent===l&&d--,n6(t);let r=e.__key;if(null===f)o.__first=r,t.__prev=null;else{let e=f.getWritable();e.__next=r,t.__prev=e.__key}e.__key===l&&n(76),t.__parent=l,a.push(r),f=e}if(e+t===i)null!==f&&(f.getWritable().__next=null,o.__last=f.__key);else if(null!==u){let e=u.getWritable();if(null!==f){let t=f.getWritable();e.__prev=f.__key,t.__next=u.__key}else e.__prev=null}if(o.__size=d,s.length){let e=rW();if(rk(e)){let t=new Set(s),r=new Set(a),{anchor:n,focus:i}=e;nb(n,t,r)&&rY(n,n.getNode(),this,c,u),nb(i,t,r)&&rY(i,i.getNode(),this,c,u),0!==d||this.canBeEmpty()||iF(this)||this.remove()}}return o}getDOMSlot(e){return new nm(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iH(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let r=this.getDirection();r&&(t.dir=r)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),r=this.getTextStyle();return 0===t&&""===r||iF(this)||this.getChildren().some(rv)||(0!==t&&(e.textFormat=t),""!==r&&(e.textStyle=r)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let r=this.getDOMSlot(e),n=r.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==n?(r.insertChild(i),n=i):n!==i&&r.replaceChild(i,n),n=n.nextSibling)}}}function n_(e){return e instanceof nv}function nb(e,t,r){let n=e.getNode();for(;n;){let e=n.__key;if(t.has(e)&&!r.has(e))return!0;n=n.getParent()}return!1}class nS extends tX{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function nw(e){return e instanceof nS}class nx extends nv{__cachedText;static getType(){return"root"}static clone(){return new nx}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){n(51)}getTextContent(){let e=this.__cachedText;return(r8()||0===nn()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){n(52)}replace(e){n(53)}insertBefore(e){n(54)}insertAfter(e){n(55)}updateDOM(e,t){return!1}splice(e,t,r){for(let e of r)n_(e)||nw(e)||n(282);return super.splice(e,t,r)}static importJSON(e){return ia().updateFromJSON(e)}collapseAtStart(){return!0}}function nE(e){return e instanceof nx}function nC(e){return new nk(new Map(e._nodeMap))}function nT(){return new nk(new Map([["root",new nx]]))}function nN(e){return e instanceof nk}class nk{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return nc(t&&t.editor||null,this,e)}clone(e){let t=new nk(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nc(null,this,()=>({root:function e(t){let r=t.exportJSON(),i=t.constructor;if(r.type!==i.getType()&&n(130,i.name),n_(t)){let o=r.children;Array.isArray(o)||n(59,i.name);let l=t.getChildren();for(let t=0;t<l.length;t++){let r=e(l[t]);o.push(r)}}return r}(ia())}))}}class nA extends nv{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class nO extends nv{static getType(){return"paragraph"}static clone(e){return new nO(e.__key)}createDOM(e){let t=document.createElement("p"),r=iC(e.theme,"paragraph");return void 0!==r&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:nR,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iH(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return nP().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){let t=this.getChildren().find(rv);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let r=nP();r.setTextFormat(e.format),r.setTextStyle(e.style);let n=this.getDirection();return r.setDirection(n),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){let e=this.getChildren();if(0===e.length||rv(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function nR(e){let t=nP();if(e.style&&(t.setFormat(e.style.textAlign),i6(e,t)),""===t.getFormatType()){let r=e.getAttribute("align");r&&r&&r in x&&t.setFormat(r)}return{node:t}}function nP(){return iU(new nO)}function nM(e){return e instanceof nO}let nI=0,nD=1,n$=2,nL=3,nj=4;function nF(e,t,r,n){let i=e._keyToDOMMap;i.clear(),e._editorState=nT(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let o=e._observer;null!==o&&(o.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==r&&(r.textContent="",i.set("root",r))}function nB(e){let t,r=e||{},n=r3,i=r.theme||{},o=void 0===e?n:r.parentEditor||null,l=r.disableEvents||!1,a=nT(),s=r.namespace||(null!==o?o._config.namespace:ip()),u=r.editorState,c=[nx,ru,t7,rb,nO,nA,...r.nodes||[]],{onError:d,html:f}=r,h=void 0===r.editable||r.editable;if(void 0===e&&null!==n)t=n._nodes;else{t=new Map;for(let e=0;e<c.length;e++){let r=c[e],n=null,i=null;if("function"!=typeof r){let e=r;r=e.replace,n=e.with,i=e.withKlass||null}i8(r);let o=r.getType(),l=function(e){let t=new Set,r=new Set,n=e;for(;n;){let{ownNodeConfig:e}=i8(n),i=n.transform;if(!r.has(i)){r.add(i);let e=n.transform();e&&t.add(e)}if(e){let r=e.$transform;r&&t.add(r),n=e.extends}else{let e=Object.getPrototypeOf(n);n=e.prototype instanceof tX&&e!==tX?e:void 0}}return t}(r);t.set(o,{exportDOM:f&&f.export?f.export.get(r):void 0,klass:r,replace:n,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,r=new Set;for(let n="function"==typeof e?e:e.replace;n.prototype&&void 0!==n.prototype.getType;n=Object.getPrototypeOf(n)){let{ownNodeConfig:e}=i8(n);if(e&&e.stateConfigs)for(let n of e.stateConfigs){let e;"stateConfig"in n?(e=n.stateConfig,n.flat&&r.add(e.key)):e=n,t.set(e.key,e)}}return{flatKeys:r,sharedConfigMap:t}}(c[e]),transforms:l})}}let p=new nU(a,o,t,{disableEvents:l,namespace:s,theme:i},d||console.error,function(e,t){let r=new Map,n=new Set,i=e=>{Object.keys(e).forEach(t=>{let n=r.get(t);void 0===n&&(n=[],r.set(t,n)),n.push(e[t])})};
27return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||n.has(t))return;n.add(t);let r=t.call(e.klass);null!==r&&i(r)}),t&&i(t),r}(t,f?f.import:void 0),h,e);return void 0!==u&&(p._pendingEditorState=u,p._dirtyType=2),p.registerCommand(eP,t$,nI),p.registerCommand(eM,tL,nI),p.registerCommand(eI,tj,nI),p.registerCommand(eD,tF,nI),p.registerCommand(eJ,tU,nI),p}class nU{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,r,n,i,o,l,a){this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=n,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=ip(),this._onError=i,this._htmlConversions=o,this._editable=l,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){void 0===r&&n(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);void 0===o&&n(36,String(e));let l=o[r];return l.add(t),()=>{l.delete(t),o.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,r){let n=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,o=i.get(t);void 0===o&&(o=new Set,i.set(t,o)),o.add(n);let l=r&&r.skipInitialization;return void 0!==l&&l||this.initializeMutationListener(t,n),()=>{o.delete(n),0===o.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&n(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let r=this._editorState,n=i4(r).get(t.getType());if(!n)return;let i=new Map;for(let e of n.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){let r=this.registerNodeTransformToKlass(e,t),n=[r],i=r.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);n.push(e)}return function(e,t){let r=i4(e.getEditorState()),n=[];for(let e of t){let t=r.get(e);t&&n.push(t)}0!==n.length&&e.update(()=>{for(let e of n)for(let t of e.keys()){let e=ie(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:t1}:void 0)}(this,n.map(e=>e.klass.getType())),()=>{n.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return iO(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let r=iC(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,nF(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=tb.get(e);if(void 0===t)return tJ();let r=tS.get(t);if(void 0===r)return tJ();let i=r-1;i>=0||n(164),tb.delete(e),tS.set(t,i),0===i&&t.removeEventListener("selectionchange",tq);let o=nZ(e);nG(o)?(!function(e){if(null!==e._parentEditor){let t=ih(e),r=t[t.length-1]._key;tK.get(r)===e&&tK.delete(r)}else tK.delete(e._key)}(o),e.__lexicalEditor=null):o&&n(198);let l=tz(e);for(let e=0;e<l.length;e++)l[e]();e.__lexicalEventHandles=[]}(t),null!=r&&t.classList.remove(...r)),null!==e){let t=i$(e),n=e.style;n.userSelect="text",n.whiteSpace="pre-wrap",n.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,I(this),this._updateTags.add(t1),nd(this),this._config.disableEvents||function(e,t){let r=e.ownerDocument;tb.set(e,r);let n=tS.get(r)??0;n<1&&r.addEventListener("selectionchange",tq),tS.set(r,n+1),e.__lexicalEditor=t;let i=tz(e);for(let r=0;r<tg.length;r++){let[n,o]=tg[r],l="function"==typeof o?e=>{tW(e)||(tV(e),(t.isEditable()||"click"===n)&&o(e,t))}:e=>{if(tW(e))return;tV(e);let r=t.isEditable();switch(n){case"cut":return r&&iO(t,to,e);case"copy":return iO(t,ti,e);case"paste":return r&&iO(t,eB,e);case"dragstart":return r&&iO(t,tt,e);case"dragover":return r&&iO(t,tr,e);case"dragend":return r&&iO(t,tn,e);case"focus":return r&&iO(t,td,e);case"blur":return r&&iO(t,tf,e);case"drop":return r&&iO(t,e8,e)}};e.addEventListener(n,l),i.push(()=>{e.removeEventListener(n,l)})}}(e,this),null!=r&&e.classList.add(...r)}else this._window=null,this._updateTags.add(t1),nd(this);nf("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&n(38);let r=e;r._readOnly&&((r=nC(e))._selection=e._selection?e._selection.clone():null),M(this);
27let i=this._pendingEditorState,o=this._updateTags,l=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=l&&o.add(l),nd(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=l&&o.add(l),this._updating||nd(this)}parseEditorState(e,t){return function(e,t,r){let n=nT(),i=r4,o=r5,l=r3,a=t._dirtyElements,s=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,r4=n,r5=!1,r3=t,nz=null;try{let i=t._nodes;nu(e.root,i),r&&r(),n._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=s,t._cloneNotNeeded=u,t._dirtyType=c,r4=i,r5=o,r3=l}return n}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nd(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):np(this,e,t)}focus(e,t={}){let r=this._rootElement;null!==r&&(r.setAttribute("autocapitalize","off"),ng(this,()=>{var n;let i=rW(),o=ia();null!==i?i.dirty||iu(i.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),iI("focus"),n=()=>{r.removeAttribute("autocapitalize"),e&&e()},ne(),nn()._deferred.push(n)}),null===this._pendingEditorState&&r.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=iV(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nf("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}nU.version="0.41.0+prod.esm";let nz=null,nK=1;function nq(e,t){let r=nV(e,t);return void 0===r&&n(30,t),r}function nV(e,t){return e._nodes.get(t)}let nW="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function nJ(e){let t=document.activeElement;if(!iH(t))return!1;let r=t.nodeName;return nw(ii(e))&&("INPUT"===r||"TEXTAREA"===r||"true"===t.contentEditable&&null==nZ(t))}function nH(e,t,r){let n=e.getRootElement();try{return null!==n&&n.contains(t)&&n.contains(r)&&null!==t&&!nJ(t)&&nY(t)===e}catch(e){return!1}}function nG(e){return e instanceof nU}function nY(e){let t=e;for(;null!=t;){let e=nZ(t);if(nG(e))return e;t=iP(t)}return null}function nZ(e){return e?e.__lexicalEditor:null}function nX(e){return rw(e)||e.isToken()}function nQ(e){return nX(e)||e.isSegmented()}
27function n0(e){return iG(e)&&3===e.nodeType}function n1(e){return iG(e)&&9===e.nodeType}function n2(e){let t=e;for(;null!=t;){if(n0(t))return t;t=t.firstChild}return null}function n4(e,t,r){let n=S[t];if(null!==r&&(e&n)==(r&n))return e;let i=e^n;return"subscript"===t?i&=~S.superscript:"superscript"===t?i&=~S.subscript:"lowercase"===t?(i&=~S.uppercase,i&=~S.capitalize):"uppercase"===t?(i&=~S.lowercase,i&=~S.capitalize):"capitalize"===t&&(i&=~S.lowercase,i&=~S.uppercase),i}function n3(e){return rv(e)||rt(e)||nw(e)}function n5(e,t){let r=function(){let e=nz;return nz=null,e}();if(null!=(t=t||r&&r.__key))return void(e.__key=t);ne(),nt();let n=nn(),i=nr(),o=""+nK++;i._nodeMap.set(o,e),n_(e)?n._dirtyElements.set(o,!0):n._dirtyLeaves.add(o),n._cloneNotNeeded.add(o),n._dirtyType=1,e.__key=o}function n6(e){let t=e.getParent();if(null!==t){let r=e.getWritable(),n=t.getWritable(),i=e.getPreviousSibling(),o=e.getNextSibling(),l=null!==o?o.__key:null,a=null!==i?i.__key:null,s=null!==i?i.getWritable():null,u=null!==o?o.getWritable():null;null===i&&(n.__first=l),null===o&&(n.__last=a),null!==s&&(s.__next=l),null!==u&&(u.__prev=a),r.__prev=null,r.__next=null,r.__parent=null,n.__size--}}function n9(e){nt(),tZ(e)&&n(323,e.__key,e.__type);let t=e.getLatest(),r=t.__parent,i=nr(),o=nn(),l=i._nodeMap,a=o._dirtyElements;null!==r&&function(e,t,r){let n=e;for(;null!==n;){if(r.has(n))return;let e=t.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}}(r,l,a);let s=t.__key;o._dirtyType=1,n_(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function n7(e){ne();let t=nn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,null!==r){let e=ie(r);null!==e&&e.getWritable()}if(null!==e){let t=ie(e);null!==t&&t.getWritable()}}}function n8(){return r8()?null:nn()._compositionKey}function ie(e,t){let r=(t||nr())._nodeMap.get(e);return void 0===r?null:r}function it(e,t){let r=ir(e,nn());return void 0!==r?ie(r,t):null}function ir(e,t){return e[`__lexicalKey_${t._key}`]}function ii(e,t){let r=e;for(;null!=r;){let e=it(r,t);if(null!==e)return e;r=iP(r)}return null}function io(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function il(e){return e.read(()=>ia().getTextContent())}function ia(){return is(nr())}function is(e){return e._nodeMap.get("root")}function iu(e){ne();let t=nr();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function ic(e){let t=nn(),r=function(e,t){let r=e;for(;null!=r;){let e=ir(r,t);if(void 0!==e)return e;r=iP(r)}return null}(e,t);return null===r?e===t.getRootElement()?ie("root"):null:ie(r)}function id(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ih(e){let t=[],r=e;for(;null!==r;)t.push(r),r=r._parentEditor;return t}function ip(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ig(e){return n0(e)?e.nodeValue:null}function im(e,t,r){let n=iV(iL(t));if(null===n)return;let i=n.anchorNode,{anchorOffset:o,focusOffset:l}=n;if(null!==i){let t=ig(i),n=ii(i);if(null!==t&&rv(n)){if((t===y||t===v)&&r){let e=r.length;t=r,o=e,l=e}null!==t&&iy(n,t,o,l,e)}}}function iy(e,t,r,n,i){let o=e;if(o.isAttached()&&(i||!o.isDirty())){let l=o.isComposing(),a=t;if((l||i)&&(t.endsWith(y)&&(a=t.slice(0,-y.length)),i)){let e;for(;-1!==(e=a.indexOf(v));)a=a.slice(0,e)+a.slice(e+v.length),null!==r&&r>e&&(r=Math.max(e,r-v.length)),null!==n&&n>e&&(n=Math.max(e,n-v.length))}let s=o.getTextContent();if(i||a!==s){if(""===a){if(n7(null),c||d||m)o.remove();else{let e=nn();setTimeout(()=>{e.update(()=>{o.isAttached()&&o.remove()})},20)}return}let t=o.getParent(),i=rJ(),s=o.getTextContentSize(),u=n8(),f=o.getKey();if(o.isToken()||null!==u&&f===u&&!l||rk(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!l||i.focus.key===e.__key&&i.focus.offset===s&&!o.canInsertTextAfter()&&!l))return void o.markDirty();let h=rW();if(!rk(h)||null===r||null===n)return void iv(o,a,h);if(h.setTextNodeRange(o,r,o,n),o.isSegmented()){let e=ry(o.getTextContent());o.replace(e),o=e}iv(o,a,h)}}}function iv(e,t,r){if(e.setTextContent(t),rk(r)){let t=e.getKey();for(let n of["anchor","focus"]){let i=r[n];"text"===i.type&&i.key===t&&(i.offset=oy(e,i.offset,"clamp"))}}}function i_(e,t,r){let n=t[r]||!1;return"any"===n||n===e[r]}function ib(e,t,r){if(!(i_(e,r,"altKey")&&i_(e,r,"ctrlKey")&&i_(e,r,"shiftKey")&&i_(e,r,"metaKey")))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;
27if(t.length>1||1===e.key.length&&127>=e.key.charCodeAt(0))return!1;let n="Key"+t.toUpperCase();return e.code===n}let iS={ctrlKey:!a,metaKey:a},iw={altKey:a,ctrlKey:!a};function ix(e){return"Backspace"===e.key}function iE(e){let t=ia();if(rk(e)){let t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(n.getKey(),0,"element"),r.set(n.getKey(),n.getChildrenSize(),"element"),Y(e),e}{let e=t.select(0,t.getChildrenSize());return iu(Y(e)),e}}function iC(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let r=e.__lexicalClassNameCache,n=r[t];if(void 0!==n)return n;let i=e[t];if("string"==typeof i){let e=oZ(i);return r[t]=e,e}return i}function iT(e,t,r,i,o){if(0===r.size)return;let l=i.__type,a=i.__key,s=t.get(l);void 0===s&&n(33,l);let u=s.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(a),f="destroyed"===d&&"created"===o;(void 0===d||f)&&c.set(a,f?"updated":o)}function iN(e,t,r){let n=e.getParent(),i=r,o=e;return null!==n&&(t&&0===r?(i=o.getIndexWithinParent(),o=n):t||r!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=n)),o.getChildAtIndex(t?i-1:i)}function ik(e,t){let r=e.offset;if("element"===e.type)return iN(e.getNode(),t,r);{let n=e.getNode();if(t&&0===r||!t&&r===n.getTextContentSize()){let e=t?n.getPreviousSibling():n.getNextSibling();return null===e?iN(n.getParentOrThrow(),t,n.getIndexWithinParent()+ +!t):e}}return null}function iA(e){let t=iL(e).event,r=t&&t.inputType;return"insertFromPaste"===r||"insertFromPasteAsQuotation"===r}function iO(e,t,r){return function(e,t,r){let n=ih(e);for(let i=4;i>=0;i--)for(let o=0;o<n.length;o++){let l=n[o],a=l._commands.get(t);if(void 0!==a){let t=a[i];if(void 0!==t){let n=Array.from(t),i=n.length,o=!1;if(ng(l,()=>{for(let t=0;t<i;t++)if(n[t](r,e))return void(o=!0)}),o)return o}}}return!1}(e,t,r)}function iR(e,t){let r=e._keyToDOMMap.get(t);return void 0===r&&n(75,t),r}function iP(e){let t=e.assignedSlot||e.parentElement;return iY(t)?t.host:t}function iM(e){return n1(e)?e:iH(e)?e.ownerDocument:null}function iI(e){ne(),nn()._updateTags.add(e)}function iD(e,t){let r=e.getParent();for(;null!==r;){if(r.is(t))return!0;r=r.getParent()}return!1}function i$(e){let t=iM(e);return t?t.defaultView:null}function iL(e){let t=e._window;return null===t&&n(78),t}function ij(e){return n_(e)&&e.isInline()||nw(e)&&e.isInline()}function iF(e){return nE(e)||n_(e)&&e.isShadowRoot()}function iB(e){let t=e.constructor.clone(e);return n5(t,null),t.afterCloneFrom(e),t}function iU(e){let t=nn(),r=e.getType(),i=nV(t,r);void 0===i&&n(200,e.constructor.name,r);let{replace:o,replaceWithKlass:l}=i;if(null!==o){let t=o(e),i=t.constructor;return null!==l?t instanceof l||n(201,l.name,l.getType(),i.name,i.getType(),e.constructor.name,r):t instanceof e.constructor&&i!==e.constructor||n(202,i.name,i.getType(),e.constructor.name,r),t.__key===e.__key&&n(203,e.constructor.name,r,i.name,i.getType()),t}return e}function iz(e,t){!nE(e.getParent())||n_(t)||nw(t)||n(99)}function iK(e){return(nw(e)||n_(e)&&!e.canBeEmpty())&&!e.isInline()}function iq(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;let n=e.parentElement;null!==n&&n.removeChild(e)}function iV(e){return o?(e||window).getSelection():null}function iW(e){let t=i$(e);return t?t.getSelection():null}function iJ(e){return iH(e)&&"A"===e.tagName}function iH(e){return iG(e)&&1===e.nodeType}function iG(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iY(e){return iG(e)&&11===e.nodeType}function iZ(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iX(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iQ(e){if(nw(e)&&!e.isInline())return!0;if(!n_(e)||iF(e))return!1;let t=e.getFirstChild(),r=null===t||rt(t)||rv(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&r}function i0(){return nn()}
27let i1=new WeakMap,i2=new Map;function i4(e){if(!e._readOnly&&e.isEmpty())return i2;e._readOnly||n(192);let t=i1.get(e);return t||(t=function(e){let t=new Map;for(let[r,n]of e._nodeMap){let e=n.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(r,n)}return t}(e),i1.set(e,t)),t}function i3(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function i5(e){var t;return(t=i3(e))[tY]=!0,t}function i6(e,t){let r=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(r)}function i9(e){e.__lexicalUnmanaged=!0}function i7(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tX[t]}function i8(e){let t=N in e.prototype?e.prototype[N]():void 0,r=function(e){if(!(e===tX||e.prototype instanceof tX)){let t="<unknown>",r="<unknown>";try{t=e.getType()}catch(e){}try{nU.version&&(r=JSON.parse(nU.version))}catch(e){}n(290,e.name,t,r)}return e===nS||e===nv||e===tX}(e),i=!r&&i7(e,"getType")?e.getType():void 0,o,l=i;if(t)if(i)o=t[i];else for(let[e,r]of Object.entries(t))l=e,o=r;if(!r&&l&&(i7(e,"getType")||(e.getType=()=>l),i7(e,"clone")||(e.clone=t=>(nz=t,new e)),i7(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!i7(e,"importDOM")&&o)){let{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:l}}function oe(e){let t=i0();return ne(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}let ot=(e,t)=>
27{let r=e;for(;null!=r&&!nE(r);){if(t(r))return r;r=r.getParent()}return null},or={next:"previous",previous:"next"};class on{origin;constructor(e){this.origin=e}[Symbol.iterator](){return oT({hasNext:oc,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return og(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return og(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(null===r?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){let i=r===this.direction?t:Array.from(t).reverse(),o=this,l=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();a.set(e.getKey(),e)}for(let e of i){if(a.size>0){let t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{let r=e.getParent();r&&r.is(l)&&e.remove(),t.replace(e)}else null===t&&n(263,Array.from(a).join(" "))}else o.insert(e);o=og(e,this.direction)}for(let e of a.values())e.remove();return this}}class oi extends on{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ov(e,this.direction)}getParentCaret(e="root"){return og(ol(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=or[this.direction];return og(this.getNodeAtCaret(),e)||ov(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof oi&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let oo={root:nE,shadowRoot:iF};function ol(e,t="root"){return oo[t](e)?null:e}class oa extends on{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:og(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return n_(this.origin)?ov(this.origin,this.direction):null}getParentCaret(e="root"){return og(ol(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=or[this.direction];return og(this.getNodeAtCaret(),e)||ov(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof oa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof oa||e instanceof os)&&this.direction===e.direction&&this.origin.is(e.origin)}}class os extends on{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:om(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return og(ol(this.getParentAtCaret(),e),this.direction)}getFlipped(){return om(this.origin,or[this.direction],this.offset)}isSamePointCaret(e){return e instanceof os&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof oa||e instanceof os)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return og(this.origin,this.direction)}}function ou(e){return e instanceof os}function oc(e){return e instanceof oa}function od(e){return e instanceof oi}let of={next:class extends os{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends os{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},oh={next:class extends oa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends oa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},op={next:class extends oi{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends oi{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function og(e,t){return e?new oh[t](e):null}function om(e,t,r){return e?new of[t](e,oy(e,r)):null}function oy(e,t,r="error"){let n=e.getTextContentSize(),o="next"===t?n:"previous"===t?0:t;return(o<0||o>
27n)&&("clamp"!==r&&i(284,String(t),String(n),e.getKey()),o=o<0?0:n),o}function ov(e,t){return n_(e)?new op[t](e):null}function o_(e){return e&&e.getChildCaret()||e}function ob(e){return e&&o_(e.getAdjacentCaret())}class oS{type="node-caret-range";direction;anchor;focus;constructor(e,t,r){this.anchor=e,this.focus=t,this.direction=r}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new oS(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return ou(t)?function(e,t){let{direction:r,origin:n}=e;return new ow(e,oy(n,"focus"===t?or[r]:r)-e.offset)}(t,e):null},t=e("anchor"),r=e("focus");if(t&&r){let{caret:e}=t,{caret:n}=r;if(e.isSameNodeCaret(n))return[new ow(e,n.offset-e.offset),null]}return[t,r]}iterNodeCarets(e="root"){let t=ou(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),n=ou(r),i=t=>t.isSameNodeCaret(r)?null:ob(t)||t.getParentCaret(e);return oT({hasNext:e=>null!==e&&!(n&&r.isSameNodeCaret(e)),initial:t.isSameNodeCaret(r)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ow{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[r,n]=this.getSliceIndices(),i=e.getTextContent();return om(e.setTextContent(i.slice(0,r)+i.slice(n)),t,r)}}function ox(e){return oC(e,og(ia(),e.direction))}function oE(e){return oC(e,e)}function oC(e,t){return e.direction!==t.direction&&n(265),new oS(e,t,e.direction)}function oT(e){let{initial:t,hasNext:r,step:n,map:i}=e,o=t;return{[Symbol.iterator](){return this},next(){if(!r(o))return{done:!0,value:void 0};let e={done:!1,value:i(o)};return o=n(o),e}}}function oN(e,t){let r=oO(e.origin,t.origin);switch(null===r&&n(275,e.origin.getKey(),t.origin.getKey()),r.type){case"same":{let r="text"===e.type,n="text"===t.type;return r&&n?Math.sign(e.offset-t.offset):e.type===t.type?0:r?-1:n?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ok(r)}}function ok(e){let{a:t,b:r}=e,n=t.__key,i=r.__key,o=t,l=r;for(;o&&l;o=o.getNextSibling(),l=l.getNextSibling()){if(o.__key===i)return -1;if(l.__key===n)return 1}return null===o?1:-1}function oA(e){return n_(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function oO(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let r=new Map;for(let[t,n]=oA(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,o]=oA(t);i;o=i,i=i.getParent()){let l=r.get(i);if(void 0!==l)return null===l?(i.is(e)||n(276),{commonAncestor:i,type:"ancestor"}):null===o?(i.is(t)||n(277),{commonAncestor:i,type:"descendant"}):((n_(l)||l.is(e))&&(n_(o)||o.is(t))&&i.is(l.getParent())&&i.is(o.getParent())||n(278),{a:l,b:o,commonAncestor:i,type:"branch"})}return null}function oR(e,t){let{type:r,key:i,offset:o}=e,l=function(e){let t=ie(e);return null===t&&n(63,e),t}(e.key);return"text"===r?(rv(l)||n(266,l.getType(),i),om(l,t,o)):(n_(l)||n(267,l.getType(),i),function(e,t,r){let n=ov(e,"next");for(let e=0;e<t;e++){let e=n.getAdjacentCaret();if(null===e)break;n=e}return oU(n,r)}(l,e.offset,t))}function oP(e,t){let{origin:r,direction:i}=t,o="next"===i;ou(t)?e.set(r.getKey(),t.offset,"text"):oc(t)?rv(r)?e.set(r.getKey(),oy(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+ +!!o,"element"):(od(t)&&n_(r)||n(268),e.set(r.getKey(),o?0:r.getChildrenSize(),"element"))}function oM(e){let t=rW(),r=rk(t)?t:rz();return oI(r,e),iu(r),r}function oI(e,t){oP(e.anchor,t.anchor),oP(e.focus,t.focus)}function oD(e){let{anchor:t,focus:r}=e,n=oR(t,"next"),i=oR(r,"next"),o=0>=oN(n,i)?"next":"previous";return oC(oU(n,o),oU(i,o))}function o$(e){let{direction:t,origin:r}=e,n=og(r,or[t]).getNodeAtCaret();return n?og(n,t):ov(r.getParentOrThrow(),t)}function oL(e,t="root"){let r=[e];for(let n=od(e)?e.getParentCaret(t):e.getSiblingCaret();null!==n;n=n.getParentCaret(t))r.push(o$(n));return r}function oj(e){return!!e&&e.origin.isAttached()}function oF(e){let t=function(e){let t=e;for(;od(t);){let e=ob(t);if(!od(e))break;t=e}return t}(e.getLatest()),{direction:r}=t;if(rv(t.origin))return ou(t)?t:om(t.origin,r,r);let n=t.getAdjacentCaret();return oc(n)&&rv(n.origin)?om(n.origin,r,or[r]):t}function oB(e){return ou(e)&&e.offset!==oy(e.origin,e.direction)}function oU(e,t){return e.direction===t?e:e.getFlipped()}function oz(e,t){return e.direction===t?e:oC(oU(e.focus,t),oU(e.anchor,t))}function oK(e,t="root"){let r=0,n=e,i=ob(n);for(;null===i;){if(r--,!(i=n.getParentCaret(t)))return null;i=ob(n=i)}return i&&[i,r]}function oq(e){let{origin:t,offset:r,direction:i}=e;if(r===oy(t,i))return e.getSiblingCaret();if(r===oy(t,or[i]))return o$(e.getSiblingCaret());let[o]=t.splitText(r);return rv(o)||n(281),oU(og(o,"next"),i)}function oV(e,t){return!0}function oW(e,{$copyElementNode:t=iB,$splitTextPointCaretNext:r=oq,rootMode:n="shadowRoot",$shouldSplit:i=oV}={}){if(ou(e))return r(e);let o=e.getParentCaret(n);if(o){let{origin:r}=o;if(od(e)&&(!r.canBeEmpty()||!i(r,"first")))return o$(o);let n=function(e){let t=[];for(let r=e.getAdjacentCaret();r;r=r.getAdjacentCaret())t.push(r.origin);return t}(e);(n.length>0||r.canBeEmpty()&&i(r,"last"))&&o.insert(t(r).splice(0,0,n))}return o}function oJ(e){return e}function oH(...e){return e}function oG(e){return e}function oY(e,t){if(!t||e===t)return e;for(let r in t)if(e[r]!==t[r])return{...e,...t};return e}function oZ(...e){let t=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))t.push(e);return t}function oX(e,...t){let r=oZ(...t);r.length>0&&e.classList.add(...r)}function oQ(e,...t){let r=oZ(...t);r.length>0&&e.classList.remove(...r)}function o0(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}},78149:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var n=(0,r(76270).guI)("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND")},78573:(e,t,r)=>{"use strict";r.d(t,{FolderTableCellClient:()=>h});var n=r(27470),i=r(91769),o=r(78300),l=r(25526),a=r(94799),s=r(2831),u=r(34023),c=r(83390),d=r(50614),f=r(67331),h=function(e){var t=e.collectionSlug,r=e.data,h=e.docTitle,p=e.folderCollectionSlug,m=e.folderFieldName,y=e.viewType,v=r.id,_=null==r?void 0:r[m],b=(0,c.c)().config,S=(0,d.d)().t,w=(0,o._)(u.useState(function(){return _?"".concat(S("general:loading"),"..."):S("folder:noFolder")}),2),x=w[0],E=w[1],C=(0,o._)(u.useState(_),2),T=C[0],N=C[1],k=u.useRef(!1),A=u.useCallback(function(e){var r=e.id,o=e.name;return(0,n._)(function(){return(0,l.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch((0,s.Q)({apiRoute:b.routes.api,path:"/".concat(t,"/").concat(v)}),{body:JSON.stringify((0,i._)({},m,r)),credentials:"include",headers:{"Content-Type":"application/json"},method:"PATCH"})];case 1:return e.sent(),N(r),E(o||S("folder:noFolder")),[3,3];case 2:return console.error("Error moving document to folder",e.sent()),[3,3];case 3:return[2]}})})()},[b.routes.api,t,v,m,S]);return(0,u.useEffect)(function(){k.current||((0,n._)(function(){var e;return(0,l.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,fetch((0,s.Q)({apiRoute:b.routes.api,path:"/".concat(p).concat(_?"/".concat(_):"")}),{credentials:"include",headers:{"Content-Type":"application/json"},method:"GET"})];case 1:return[4,t.sent().json()];case 2:return E((null==(e=t.sent())?void 0:e.name)||S("folder:noFolder")),[3,4];case 3:return console.error("Error moving document to folder",t.sent()),[3,4];case 4:return[2]}})})(),k.current=!0)},[b.routes.api,p,_,S]),(0,a.jsx)(f.MoveDocToFolderButton,{buttonProps:{disabled:"trash"===y,size:"small"},collectionSlug:t,docData:r,docID:v,docTitle:h,folderCollectionSlug:p,folderFieldName:m,fromFolderID:T,fromFolderName:x,modalSlug:"move-doc-to-folder-cell--".concat(v),onConfirm:A,skipConfirmModal:!1})}},78788:(e,t)=>
27{"use strict";function r(e,t){return t.rules.some(t=>n(e,t))}function n(e,t){var r;return void 0!==e[t.keyword]||(null==(r=t.definition.implements)?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){let i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},78920:(e,t,r)=>{"use strict";r.d(t,{KS:()=>function e(t,r={}){if("object"!=typeof t||null===t||!("$$typeof"in t)||"symbol"!=typeof t.$$typeof){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map(t=>"object"!=typeof t||null===t?t:e(t,r));if(t instanceof File){if(r.excludeFiles)return;return t}if(t instanceof Date)return new Date(t);let n={};for(let i in t){let o=t[i];n[i]="object"!=typeof o||null===o?o:e(o,r)}return n}}});var n=r(7564).hp;function i(e){return e instanceof n?n.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}let o=new Map;o.set(Date,e=>new Date(e)),o.set(Map,(e,t)=>new Map(a(Array.from(e),t))),o.set(Set,(e,t)=>new Set(a(Array.from(e),t))),o.set(RegExp,e=>new RegExp(e.source,e.flags));let l=null;function a(e,t){let r=Object.keys(e),n=Array(r.length);for(let a=0;a<r.length;a++){let s=r[a],u=e[s];"object"!=typeof u||null===u?n[s]=u:u instanceof RegExp?n[s]=new RegExp(u.source,u.flags):u.constructor!==Object&&(l=o.get(u.constructor))?n[s]=l(u,t):ArrayBuffer.isView(u)?n[s]=i(u):n[s]=t(u)}return n}let s=e=>{if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return a(e,s);if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e.constructor!==Object&&(l=o.get(e.constructor)))return l(e,s);let t={};for(let r in e){if(!1===Object.hasOwnProperty.call(e,r))continue;let n=e[r];"object"!=typeof n||null===n?t[r]=n:n instanceof RegExp?t[r]=new RegExp(n.source,n.flags):n.constructor!==Object&&(l=o.get(n.constructor))?t[r]=l(n,s):ArrayBuffer.isView(n)?t[r]=i(n):t[r]=s(n)}return t}},79004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;let n=r(5462),i=r(19792);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:l,errSchemaPath:a,topSchemaRef:s}){if(void 0!==t&&void 0!==o)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){let o=e.schema[t];return void 0===r?{schema:o,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===l||void 0===a||void 0===s)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:l,topSchemaRef:s,errSchemaPath:a}}throw Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:l,dataTypes:a,propertyName:s}){if(void 0!==l&&void 0!==r)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(void 0!==r){let{errorPath:l,dataPathArr:a,opts:s}=t;c(u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=(0,n.str)`${l}${(0,i.getErrorPath)(r,o,s.jsPropertySyntax)}`,e.parentDataProperty=(0,n._)`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==l&&(c(l instanceof n.Name?l:u.let("data",l,!0)),void 0!==s&&(e.propertyName=s)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},79447:(e,t,r)=>{"use strict";r.d(t,{P:()=>l,U:()=>o});var n=r(12671),i=r(76270);function o(e){let t=window.location.origin,r=r=>{if(r.origin!==t)return;let n=e.getRootElement();if(document.activeElement!==n)return;let o=r.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let n=t.payload;if(n&&"makeChanges"===n.functionId){let t=n.args;if(t){let[n,o,l,a,s]=t;e.update(()=>{let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.anchor,u=t.getNode(),c=0,d=0;if((0,i.kFe)(u)&&n>=0&&o>=0&&(c=n,d=n+o,e.setTextNodeRange(u,c,u,d)),c===d&&""===l||(e.insertRawText(l),u=t.getNode()),(0,i.kFe)(u)){c=a,d=a+s;let t=u.getTextContentSize();c=c>t?t:c,d=d>t?t:d,e.setTextNodeRange(u,c,u,d)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}let l=(0,i.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,i.lVE)({disabled:"undefined"==typeof window}),name:"@lexical/dragon",register:(e,t,r)=>(0,n.QZ)(()=>r.getOutput().disabled.value?void 0:o(e))})},79660:(e,t,r)=>{"use strict";r.d(t,{NotFoundClient:()=>c});
27var n=r(11241),i=r(94799),o=r(67331),l=r(50614),a=r(83390),s=r(34023),u="not-found",c=function(e){var t,r,c,d,f=(0,n.c)(10),h=e.marginTop,p=void 0===h?"large":h,m=(0,o.useStepNav)().setStepNav,y=(0,l.d)().t,v=(0,a.c)().config.routes.admin;f[0]!==m||f[1]!==y?(t=function(){m([{label:y("general:notFound")}])},r=[m,y],f[0]=m,f[1]=y,f[2]=t,f[3]=r):(t=f[2],r=f[3]),(0,s.useEffect)(t,r);var _=p&&"".concat(u,"--margin-top-").concat(p);f[4]!==_?(c=[u,_].filter(Boolean),f[4]=_,f[5]=c):c=f[5];var b=c.join(" ");return f[6]!==v||f[7]!==y||f[8]!==b?(d=(0,i.jsx)("div",{className:b,children:(0,i.jsxs)(o.Gutter,{className:"".concat(u,"__wrap"),children:[(0,i.jsxs)("div",{className:"".concat(u,"__content"),children:[(0,i.jsx)("h1",{children:y("general:nothingFound")}),(0,i.jsx)("p",{children:y("general:sorryNotFound")})]}),(0,i.jsx)(o.Button,{className:"".concat(u,"__button"),el:"link",size:"large",to:v,children:y("general:backToDashboard")})]})}),f[6]=v,f[7]=y,f[8]=b,f[9]=d):d=f[9],d}},80197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},80527:()=>{},80692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(19792);t.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}},81151:()=>{},81343:(e,t,r)=>{"use strict";function n({field:e,index:t,parentIndexPath:r,parentPath:n="",parentSchemaPath:i}){let o=n.split("."),l=o?.[o.length-1]?.startsWith("_index-"),a=l?o.slice(0,-1).join("."):n,s=l?a:n;if("name"in e)return{indexPath:"",path:`${s?s+".":""}${e.name}`,schemaPath:`${i?i+".":""}${e.name}`};let u=`_index-${r?r+"-":""}${t}`,c=i.split(".");return{indexPath:`${r?r+"-":""}${t}`,path:`${s?s+".":""}${u}`,schemaPath:c?.[c.length-1]?.startsWith("_index-")?`${i}-${t}`:`${i?i+".":""}${u}`}}r.d(t,{Z:()=>n})},81459:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(69043),i=r(35509),o=r(76270),l=r(34023);function a({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){let[r]=(0,i.DF)();return(0,l.useEffect)(()=>{if(!r.hasNodes([n.v5,n.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[r]),(0,l.useEffect)(()=>(0,o.Sdt)((0,n.cz)(r,{restoreNumbering:t}),e?(0,n.Js)(r):()=>{}),[r,e,t]),(0,l.useEffect)(()=>(0,n.cz)(r),[r]),null}},81465:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=({sizes:e,targetSizeMax:t=180,targetSizeMin:r=40,thumbnailURL:n,url:i,width:o})=>n||e&&Object.values(e).reduce((e,n)=>!n.width||n.width<r?e:n.width>=r&&n.width<=t?!e.width||n.width<e.width||e.width<r||e.width>t?n:e:!e.width||!e.original&&e.width<r&&n.width>e.width||e.width>t&&n.width<e.width?n:e,{original:!0,url:i,width:o}).url||i},81749:(e,t,r)=>{"use strict";r.d(t,{RenderVersionFieldsToDiff:()=>u});var n=r(78300),i=r(11241),o=r(94799),l=r(83390),a=r(34023),s="render-field-diffs",u=function(e){var t,r,u,d=(0,i.c)(6),f=e.parent,h=e.versionFields,p=(0,n._)(a.useState(!1),2),m=p[0],y=p[1];d[0]===Symbol.for("react.memo_cache_sentinel")?(t=function(){y(!0)},r=[],d[0]=t,d[1]=r):(t=d[0],r=d[1]),(0,a.useEffect)(t,r);var v="".concat(s).concat(void 0!==f&&f?" ".concat(s,"--parent"):"");return d[2]!==m||d[3]!==v||d[4]!==h?(u=(0,o.jsx)("div",{className:v,children:m?null==h?void 0:h.map(c):(0,o.jsx)(a.Fragment,{children:(0,o.jsx)(l.f,{height:"8rem",width:"100%"})})}),d[2]=m,d[3]=v,d[4]=h,d[5]=u):u=d[5],u};function c(e,t){if(e.fieldByLocale){var r=[],i=!0,l=!1,a=void 0;try{for(var u,c=Object.entries(e.fieldByLocale)[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=(0,n._)(u.value,2),f=d[0],h=d[1];r.push((0,o.jsx)("div",{className:"".concat(s,"__locale"),"data-field-path":h.path,"data-locale":f,children:(0,o.jsx)("div",{className:"".concat(s,"__locale-value"),children:h.CustomComponent})},[f,t].join("-")))}}catch(e){l=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(l)throw a}}return(0,o.jsx)("div",{className:"".concat(s,"__field"),children:r},t)}return e.field?(0,o.jsx)("div",{className:"".concat(s,"__field field__").concat(e.field.type),"data-field-path":e.field.path,children:e.field.CustomComponent},t):null}},82780:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462);t.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`},code(e){let{gen:t,data:r,schemaCode:i,it:o}=e,l=o.opts.multipleOfPrecision,a=t.let("res"),s=l?(0,n._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${l}`:(0,n._)`${a} !== parseInt(${a})`;e.fail$data((0,n._)`(${i} === 0 || (${a} = ${r}/${i}, ${s}))`)}}},82880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5462),i=r(19792),o=r(42901);t.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:r,$data:l,schemaCode:a,schema:s}=e;l||s&&"object"==typeof s?e.fail$data((0,n._)`!${(0,i.useFunc)(t,o.default)}(${r}, ${a})`):e.fail((0,n._)`${s} !== ${r}`)}}},83264:()=>{},83390:(e,t,r)=>{"use strict";r.d(t,{a:()=>Y,b:()=>X,c:()=>Q,d:()=>ee,e:()=>ea,f:()=>eu,g:()=>ec,h:()=>ei,i:()=>eo,j:()=>el,k:()=>ed,l:()=>ep}),r(85294);var n=r(54947),i=r(82998),o=r(66508),l=r(78300),a=r(15335),s=r(52252),u=r(34023);r(56742);var c=r(11241),d=r(94799);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(r,[].concat(i,n))}}}function y(e){return({}).toString.call(e).includes("Object")}function v(e){return"function"==typeof e}var _=m(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),b={changes:function(e,t){return y(t)||_("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&_("changeField"),t},selector:function(e){v(e)||_("selectorType")},handler:function(e){v(e)||y(e)||_("handlerType"),y(e)&&Object.values(e).some(function(e){return!v(e)})&&_("handlersType")},initial:function(e){e||_("initialIsRequired"),y(e)||_("initialType"),Object.keys(e).length||_("initialContent")}};function S(e,t){return v(t)?t(e.current):t}function w(e,t){return e.current=p(p({},e.current),t),t}function x(e,t,r){return v(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var E={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},C=(function(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(r,[].concat(i,n))}}})(function(e,t){throw Error(e[t]||e.default)})(E),T=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},N={type:"cancelation",msg:"operation is manually canceled"};function k(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(N):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:("undefined"==typeof Symbol?"undefined":(0,s._)(Symbol))<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,l,a=[],u=!0,c=!1;try{o=(r=r.call(e)).next,!0;for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}
27finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b.initial(e),b.handler(t);var r={current:e},n=m(x)(r,t),i=m(w)(r),o=m(b.changes)(e),l=m(S)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return b.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,i,o,l)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/[email protected]/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),O=A[0],R=A[1];function P(e){return document.body.appendChild(e)}function M(e){var t,r,n=O(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return i.onload=function(){return e()},i.onerror=n.reject,i}function I(){var e=O(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;D(r),e.resolve(r)},function(t){e.reject(t)})}function D(e){O().monaco||R({monaco:e})}var $=new Promise(function(e,t){return R({resolve:e,reject:t})}),L={init:function(){var e=O(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(R({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),k($);if(window.monaco&&window.monaco.editor)return D(window.monaco),e.resolve(window.monaco),k($);T(P,M)(I)}return k($)}},j={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},F={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},B=function(e){var t=e.children;return u.createElement("div",{style:F.container},t)},U=(0,u.memo)(function(e){var t=e.width,r=e.height,o=e.isEditorReady,l=e.loading,a=e._ref,s=e.className,c=e.wrapperProps;return u.createElement("section",(0,n._)({style:(0,i._)((0,n._)({},j.wrapper),{width:t,height:r})},c),!o&&u.createElement(B,null,l),u.createElement("div",{ref:a,style:(0,n._)({},j.fullWidth,!o&&j.hide),className:s}))}),z=function(e){(0,u.useEffect)(e,[])},K=function(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,u.useRef)(!0);(0,u.useEffect)(n.current||!r?function(){n.current=!1}:e,t)};function q(){}function V(e,t,r,n){var i,o,l,a,s,u;return i=e,o=n,i.editor.getModel(W(i,o))||(l=e,a=t,s=r,u=n,l.editor.createModel(a,s,u?W(l,u):void 0))}function W(e,t){return e.Uri.parse(t)}var J=function(e){var t=(0,u.useRef)();return(0,u.useEffect)(function(){t.current=e},[e]),t.current},H=new Map,G=(0,u.memo)(function(e){var t=e.defaultValue,r=e.defaultLanguage,i=e.defaultPath,o=e.value,a=e.language,s=e.path,c=e.theme,d=void 0===c?"light":c,f=e.line,h=e.loading,p=e.options,m=void 0===p?{}:p,y=e.overrideServices,v=void 0===y?{}:y,_=e.saveViewState,b=void 0===_||_,S=e.keepCurrentModel,w=void 0!==S&&S,x=e.width,E=e.he
27ight,C=e.className,T=e.wrapperProps,N=e.beforeMount,k=e.onMount,A=e.onChange,O=e.onValidate,R=void 0===O?q:O,P=(0,l._)((0,u.useState)(!1),2),M=P[0],I=P[1],D=(0,l._)((0,u.useState)(!0),2),$=D[0],j=D[1],F=(0,u.useRef)(null),B=(0,u.useRef)(null),W=(0,u.useRef)(null),G=(0,u.useRef)(void 0===k?q:k),Y=(0,u.useRef)(void 0===N?q:N),Z=(0,u.useRef)(),X=(0,u.useRef)(o),Q=J(s),ee=(0,u.useRef)(!1),et=(0,u.useRef)(!1);z(function(){var e=L.init();return e.then(function(e){return(F.current=e)&&j(!1)}).catch(function(e){return(null==e?void 0:e.type)!=="cancelation"&&console.error("Monaco initialization: error:",e)}),function(){var t,r;return B.current?void(null==(t=Z.current)||t.dispose(),w?b&&H.set(s,B.current.saveViewState()):null==(r=B.current.getModel())||r.dispose(),B.current.dispose()):e.cancel()}}),K(function(){var e,n,l,u,c=V(F.current,t||o||"",r||a||"",s||i||"");c!==(null==(e=B.current)?void 0:e.getModel())&&(b&&H.set(Q,null==(n=B.current)?void 0:n.saveViewState()),null==(l=B.current)||l.setModel(c),b&&(null==(u=B.current)||u.restoreViewState(H.get(s))))},[s],M),K(function(){var e;null==(e=B.current)||e.updateOptions(m)},[m],M),K(function(){B.current&&void 0!==o&&(B.current.getOption(F.current.editor.EditorOption.readOnly)?B.current.setValue(o):o!==B.current.getValue()&&(et.current=!0,B.current.executeEdits("",[{range:B.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),B.current.pushUndoStop(),et.current=!1))},[o],M),K(function(){var e,t,r=null==(e=B.current)?void 0:e.getModel();r&&a&&(null==(t=F.current)||t.editor.setModelLanguage(r,a))},[a],M),K(function(){var e;void 0!==f&&(null==(e=B.current)||e.revealLine(f))},[f],M),K(function(){var e;null==(e=F.current)||e.editor.setTheme(d)},[d],M);var er=(0,u.useCallback)(function(){if(!(!W.current||!F.current)&&!ee.current){Y.current(F.current);var e,l=s||i,u=V(F.current,o||t||"",r||a||"",l||"");B.current=null==(e=F.current)?void 0:e.editor.create(W.current,(0,n._)({model:u,automaticLayout:!0},m),v),b&&B.current.restoreViewState(H.get(l)),F.current.editor.setTheme(d),void 0!==f&&B.current.revealLine(f),I(!0),ee.current=!0}},[t,r,i,o,a,s,m,v,b,d,f]);return(0,u.useEffect)(function(){M&&G.current(B.current,F.current)},[M]),(0,u.useEffect)(function(){$||M||er()},[$,M,er]),X.current=o,(0,u.useEffect)(function(){var e,t;M&&A&&(null==(e=Z.current)||e.dispose(),Z.current=null==(t=B.current)?void 0:t.onDidChangeModelContent(function(e){et.current||A(B.current.getValue(),e)}))},[M,A]),(0,u.useEffect)(function(){if(M){var e=F.current.editor.onDidChangeMarkers(function(e){var t,r=null==(t=B.current.getModel())?void 0:t.uri;if(r&&e.find(function(e){return e.path===r.path})){var n=F.current.editor.getModelMarkers({resource:r});null==R||R(n)}});return function(){null==e||e.dispose()}}return function(){}},[M,R]),u.createElement(U,{width:void 0===x?"100%":x,height:void 0===E?"100%":E,isEditorReady:M,loading:void 0===h?"Loading...":h,_ref:W,className:C,wrapperProps:void 0===T?{}:T})});function Y(e,t){var r,n,i=(0,c.c)(5),o=(0,l._)((0,u.useState)(e),2),a=o[0],s=o[1],d=(0,u.useRef)(!0);i[0]!==e?(r=function(){if(d.current){d.current=!1;return}s(e)},n=[e],i[0]=e,i[1]=r,i[2]=n):(r=i[1],n=i[2]),(0,u.useEffect)(r,n);var f,h=null!=a?a:t;return i[3]!==h?(f=[h,s],i[3]=h,i[4]=f):f=i[4],f}var Z=(0,u.createContext)(void 0),X=function(e){var t=e.children,r=e.config,n=(0,l._)(Y(r),2),i=n[0],o=n[1],a=(0,u.useMemo)(function(){var e={},t={},r=!0,n=!1,o=void 0;try{for(var l,a=i.collections[Symbol.iterator]();!(r=(l=a.next()).done);r=!0){var s=l.value;e[s.slug]=s}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}var u=!0,c=!1,d=void 0;try{for(var f,h=i.globals[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var p=f.value;t[p.slug]=p}}catch(e){c=!0,d=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw d}}return{collectionsBySlug:e,globalsBySlug:t}},[i]),s=a.collectionsBySlug,c=a.globalsBySlug,f=(0,u.useCallback)(function(e){var t,r;return"collectionSlug"in e&&e.collectionSlug?null!=(t=s[e.collectionSlug])?t:null:"globalSlug"in e&&e.globalSlug&&null!=(r=c[e.globalSlug])?r:null},[s,c]),h=(0,u.useMemo)(function(){return{config:i,getEntityConfig:f,setConfig:o}},[i,f,o]);return(0,d.jsx)(Z,{value:h,children:t})},Q=function(){return(0,u.use)(Z)},ee=function(e){var t,r,n,i=(0,c.c)(7),o=e.children,l=e.config,a=Q(),s=a.config,f=a.setConfig;return(i[0]!==l||i[1]!==f?(r=function(){f(l)},n=[l,f],i[0]=l,i[1]=f,i[2]=r,i[3]=n):(r=i[2],n=i[3]),(0,u.useEffect)(r,n),s!==l&&s.unauthenticated!==l.unauthenticated)?(i[4]!==o||i[5]!==l?(t=(0,d.jsx)(X,{config:l,children:o}),i[4]=o,i[5]=l,i[6]=t):t=i[6],t):o},et=(0,u.createContext)({autoMode:!0,setTheme:function(){return null},theme:"light"});function er(e,t,r){var n=new Date;n.setTime(n.getTime()+24*r*36e5);var i="expires="+n.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}var en=function(e){var t,r,n=null==(t=window.document.cookie.split("; ").find(function(t){return t.startsWith("".concat(e,"="))}))?void 0:t.split("=")[1];return r="light"===n||"dark"===n?n:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
27k":"light",document.documentElement.setAttribute("data-theme",r),{theme:r,themeFromCookies:n}},ei="light",eo=function(e){var t,r,n=(0,c.c)(11),i=e.children,o=e.theme,a=Q().config,s=a.admin.theme,f="".concat(a.cookiePrefix||"payload","-theme"),h=(0,l._)((0,u.useState)(o||ei),2),p=h[0],m=h[1],y=(0,l._)((0,u.useState)(),2),v=y[0],_=y[1];n[0]!==f||n[1]!==s?(t=function(){if("all"===s){var e=en(f),t=e.theme,r=e.themeFromCookies;m(t),_(!r)}},r=[s,f],n[0]=f,n[1]=s,n[2]=t,n[3]=r):(t=n[2],r=n[3]),(0,u.useEffect)(t,r),n[4]!==f?(b=function(e){if("light"===e||"dark"===e)m(e),_(!1),er(f,e,365),document.documentElement.setAttribute("data-theme",e);else if("auto"===e){er(f,e,-1);var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.documentElement.setAttribute("data-theme",t),_(!0),m(t)}},n[4]=f,n[5]=b):b=n[5];var b,S,w=b;return n[6]!==v||n[7]!==i||n[8]!==w||n[9]!==p?(S=(0,d.jsx)(et,{value:{autoMode:v,setTheme:w,theme:p},children:i}),n[6]=v,n[7]=i,n[8]=w,n[9]=p,n[10]=S):S=n[10],S},el=function(){return(0,u.use)(et)},ea=function(e,t){var r,n,i=(0,c.c)(9),o=void 0!==t&&t,a=(0,l._)(u.useState(!1),2),s=a[0],d=a[1],f=u.useRef(void 0);i[0]!==e?(n=function(){return d(!1),clearTimeout(f.current),f.current=setTimeout(function(){d(!0)},e),function(){clearTimeout(f.current)}},i[0]=e,i[1]=n):n=i[1];var h,p,m=n;return i[2]!==m||i[3]!==o?(h=function(){o&&m()},p=[m,o],i[2]=m,i[3]=o,i[4]=h,i[5]=p):(h=i[4],p=i[5]),u.useEffect(h,p),i[6]!==s||i[7]!==m?(r=[s,m],i[6]=s,i[7]=m,i[8]=r):r=i[8],r},es="shimmer-effect",eu=function(e){var t=e.animationDelay,r=e.className,l=e.disableInlineStyles,a=void 0!==l&&l,s=e.height,u=void 0===s?"60px":s,c=e.transparent,f=e.width,h=void 0===f?"100%":f,p=(0,o._)(e,["animationDelay","className","disableInlineStyles","height","transparent","width"]);return(0,d.jsx)("div",(0,i._)((0,n._)({},p),{className:[es,c&&"".concat(es,"--transparent"),r].filter(Boolean).join(" "),style:(0,i._)((0,n._)({},(null==p?void 0:p.style)||{}),{height:!a&&("number"==typeof u?"".concat(u,"px"):u),width:!a&&("number"==typeof h?"".concat(h,"px"):h)}),children:(0,d.jsx)("div",{className:"shimmer-effect__shine",style:{animationDelay:void 0===t?"0ms":t}})}))},ec=function(e){var t,r,n=(0,c.c)(9),i=e.className,o=e.count,s=e.height,u=e.renderDelay,f=e.shimmerDelay,h=e.shimmerItemClassName,p=e.width,m=void 0===f?25:f,y="number"==typeof m?"".concat(m,"ms"):m;return(0,l._)(ea(void 0===u?500:u,!0),1)[0]?(n[0]!==o?(t=(0,a._)(Array(o)),n[0]=o,n[1]=t):t=n[1],n[2]!==i||n[3]!==s||n[4]!==y||n[5]!==h||n[6]!==t||n[7]!==p?(r=(0,d.jsx)("div",{className:i,children:t.map(function(e,t){return(0,d.jsx)("div",{className:h,children:(0,d.jsx)(eu,{animationDelay:"calc(".concat(t," * ").concat(y,")"),height:s,width:p})},t)})}),n[2]=i,n[3]=s,n[4]=y,n[5]=h,n[6]=t,n[7]=p,n[8]=r):r=n[8],r):null},ed={insertSpaces:!1,tabSize:4,trimAutoWhitespace:!1},ef={hideCursorInOverviewRuler:!0,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:!1,scrollbar:{alwaysConsumeMouseWheel:!1},scrollBeyondLastLine:!1,wordWrap:"on"},eh="default"in G?G.default:G,ep=function(e){var t,r,a=(0,c.c)(10),s=e.className,f=e.maxHeight,h=e.minHeight,p=e.options,m=e.readOnly,y=e.recalculatedHeightAt,v=e.value,_=(0,o._)(e,["className","maxHeight","minHeight","options","readOnly","recalculatedHeightAt","value"]),b=null!=h?h:56,S=u.useRef(y),w=p||{},x=w.insertSpaces,E=w.tabSize,C=w.trimAutoWhitespace,T=(0,o._)(w,["insertSpaces","tabSize","trimAutoWhitespace"]),N=(null==p?void 0:p.padding)?(p.padding.top||0)+((null==(t=p.padding)?void 0:t.bottom)||0):0,k=(0,l._)((0,u.useState)(b),2),A=k[0],O=k[1],R=el().theme,P=(null==_?void 0:_.defaultLanguage)?"language--".concat(_.defaultLanguage):"",M=m&&"read-only";a[0]!==s||a[1]!==P||a[2]!==M?(r=["code-editor",s,P,M].filter(Boolean),a[0]=s,a[1]=P,a[2]=M,a[3]=r):r=a[3];var I,D,$=r.join(" ");return a[4]!==b||a[5]!==N||a[6]!==y||a[7]!==v?(I=function(){y&&y>S.current&&(O(v?Math.max(b,18*v.split("\n").length+2+N):b),S.current=y)},D=[v,b,N,y],a[4]=b,a[5]=N,a[6]=y,a[7]=v,a[8]=I,a[9]=D):(I=a[8],D=a[9]),u.useEffect(I,D),(0,d.jsx)(eh,(0,i._)((0,n._)({className:$,height:f?Math.min(A,f):A,loading:(0,d.jsx)(eu,{height:A}),options:(0,i._)((0,n._)({},ef,T),{readOnly:!!m,detectIndentation:!1,insertSpaces:void 0,tabSize:void 0,trimAutoWhitespace:void 0}),theme:"dark"===R?"vs-dark":"vs",value:v},_),{onChange:function(e,t){var r;null==(r=_.onChange)||r.call(_,e,t),O(e?Math.max(b,18*e.split("\n").length+2+N):b)},onMount:function(e,t){null==(r=_.onMount)||r.call(_,e,t);var r,n=e.getModel();n&&n.updateOptions({insertSpaces:null!=x?x:ed.insertSpaces,tabSize:null!=E?E:ed.tabSize,trimAutoWhitespace:null!=C?C:ed.trimAutoWhitespace}),O(Math.max(b,18*e.getValue().split("\n").length+2+N))}}))}},83575:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;let n=r(5462),i=r(19792),o=r(72792);function l(e,t){let r=e.const("err",t);e.if((0,n._)`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,(0,n._)`[${r}]`),(0,n._)`${o.default.vErrors}.push(${r})`),e.code((0,n._)`${o.default.errors}++`)}function a(e,t){let{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw((0,n._)`new ${e.ValidationError}(${t})`):(r.assign((0,n._)`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,o){let{it:s}=e,{gen:c,compositeRule:d,allErrors:f}=s,h=u(e,r,i);(null!=o?o:d||f)?l(c,h):a(s,(0,n._)`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){let{it:i}=e,{gen:s,compositeRule:c,allErrors:d}=i;l(s,u(e,r,n)),c||d||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if((0,n._)`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,n._)`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:l,it:a}){if(void 0===l)throw Error("ajv implementation error");let s=e.name("err");e.forRange("i",l,o.default.errors,l=>{e.const(s,(0,n._)`${o.default.vErrors}[${l}]`),e.if((0,n._)`${s}.instancePath === undefined`,()=>e.assign((0,n._)`${s}.instancePath`,(0,n.strConcat)(o.default.instancePath,a.errorPath))),e.assign((0,n._)`${s}.schemaPath`,(0,n.str)`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign((0,n._)`${s}.schema`,r),e.assign((0,n._)`${s}.data`,i))})};let s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function u(e,t,r){let{createErrors:l}=e.it;return!1===l?(0,n._)`{}`:function(e,t,r={}){let{gen:l,it:a}=e,u=[function({errorPath:e},{instancePath:t}){let r=t?(0,n.str)`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}(a,r),function({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let l=o?t:(0,n.str)`${t}/${e}`;return r&&(l=(0,n.str)`${l}${(0,i.getErrorPath)(r,i.Type.Str)}`),[s.schemaPath,l]}(e,r)];return function(e,{params:t,message:r},i){let{keyword:l,data:a,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:p}=c;i.push([s.keyword,l],[s.params,"function"==typeof t?t(e):t||(0,n._)`{}`]),d.messages&&i.push([s.message,"function"==typeof r?r(e):r]),d.verbose&&i.push([s.schema,u],[s.parentSchema,(0,n._)`${h}${p}`],[o.default.data,a]),f&&i.push([s.propertyName,f])}(e,t,u),l.object(...u)}(e,t,r)}},83740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;let n=r(83575),i=r(5462),o=r(72792),l={message:"boolean schema is false"};function a(e,t){let{gen:r,data:i}=e;(0,n.reportError)({gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},l,void 0,t)}t.topBoolOrEmptySchema=function(e){let{gen:t,schema:r,validateName:n}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign((0,i._)`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){let{gen:r,schema:n}=e;!1===n?(r.var(t,!1),a(e)):r.var(t,!0)}},84226:(e,t,r)=>{"use strict";function n(e,t=0){if(0===e)return"0 bytes";let r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(t<0?0:t))}${[" bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}`}r.d(t,{B:()=>n})},84924:(e,t,r)=>{"use strict";r.d(t,{ck:()=>w,eS:()=>s,Yq:()=>S,wN:()=>u,FR:()=>a,zG:()=>c}),r(94799),r(34023);var n=r(10115),i=r(69609),o=r(96893),l=({elements:e,translationString:t})=>g("span",{children:t.split(/(<[^>
27]+>.*?<\/[^>]+>)/g).map((t,r)=>{if(e&&t.startsWith("<")&&t.endsWith(">")){let n=t[1],i=e[n];if(i){let e=RegExp(`<${n}>(.*?)</${n}>`,"g");return g(i,{children:g(l,{translationString:t.replace(e,(e,t)=>t)})},r)}}return t})}),a=e=>({...e?.admin?.style||{},...e?.admin?.width?{"--field-width":e.admin.width}:{flex:"1 1 auto"},...e?.admin?.style?.flex?{flex:e.admin.style.flex}:{}});function s(e){if(e)try{e.abort()}catch{}}function u(e){let t=new AbortController;if(e.current)try{e.current.abort()}catch{}return e.current=t,t}var c={delete:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"delete"})},get:(e,t={headers:{}})=>{let r="";return t.params&&(r=n.A(t.params,{addQueryPrefix:!0})),fetch(`${e}${r}`,{credentials:"include",...t})},patch:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"PATCH"})},post:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(`${e}`,{...t,credentials:"include",headers:{...r},method:"post"})},put:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"put"})}},d={},f={};function h(e,t){try{let r=(d[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in f?f[r]:m(r,r.split(":"))}catch{if(e in f)return f[e];let t=e?.match(p);return t?m(e,t.slice(1)):NaN}}var p=/([+-]\d\d):?(\d\d)?/;function m(e,t){let r=+t[0],n=+(t[1]||0);return f[e]=r>0?60*r+n:60*r-n}var y=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(h(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),b(this,NaN),_(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new e(...r,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){return-h(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),_(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},v=/^(get|set)(?!UTC)/;function _(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function b(e){let t=h(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let n=-new Date(+e).getTimezoneOffset(),i=n- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let l=n-t;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);let a=h(e.timeZone,e),s=-new Date(+e).getTimezoneOffset()-a-l;if(a!==t&&s){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let t=a-h(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!v.test(e))return;let t=e.replace(v,"$1UTC");y.prototype[t]&&(e.startsWith("get")?y.prototype[e]=function(){return this.internal[t]()}:(y.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),b(e),+this},y.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),_(this),+this}))});var S=({date:e,i18n:t,pattern:r,timezone:n})=>{let l=new y(new Date(e));if(n){let e=y.tz(n),a=function(e,t){var r,n,o="function"==typeof(r=t)&&(null==(n=r.prototype)?void 0:n.constructor)===r?new t(0):(0,i.w)(t,0);return o.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),o.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),o}(l.withTimeZone(n),e);return t.dateFNS?(0,o.GP)(a,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`}return t.dateFNS?(0,o.GP)(l,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`},w=function(e){return e.collection="collections",e.global="globals",e}({})},85191:(e,t,r)=>{"use strict";r.d(t,{DateDiffComponent:()=>c});
27var n=r(11241),i=r(94799),o=r(50614),l=r(83390),a=r(67331),s=r(84924);r(34023);var u="date-diff",c=function(e){var t,r=(0,n.c)(7),c=e.comparisonValue,d=e.field,f=e.locale,h=e.nestingLevel,p=e.versionValue,m=(0,o.d)().i18n,y=(0,l.c)().config.admin.dateFormat,v=c?(0,s.Yq)({date:"string"==typeof c?new Date(c):c,i18n:m,pattern:y}):"",_=p?(0,s.Yq)({date:"string"==typeof p?new Date(p):p,i18n:m,pattern:y}):"",b=(0,a.escapeDiffHTML)(v),S=(0,a.escapeDiffHTML)(_),w='<div class="'.concat(u,'" data-enable-match="true" data-date="').concat(b,'"><p>')+b+"</p></div>",x='<div class="'.concat(u,'" data-enable-match="true" data-date="').concat(S,'"><p>')+S+"</p></div>";if(r[0]!==d.label||r[1]!==m||r[2]!==f||r[3]!==h||r[4]!==w||r[5]!==x){var E=(0,a.getHTMLDiffComponents)({fromHTML:w,postProcess:a.unescapeDiffHTML,toHTML:x,tokenizeByCharacter:!1}),C=E.From,T=E.To;t=(0,i.jsx)(a.FieldDiffContainer,{className:u,From:C,i18n:m,label:{label:d.label,locale:f},nestingLevel:h,To:T}),r[0]=d.label,r[1]=m,r[2]=f,r[3]=h,r[4]=w,r[5]=x,r[6]=t}else t=r[6];return t}},85379:(e,t,r)=>{"use strict";r.d(t,{d:()=>o,g:()=>l});var n=r(11825),i=r(76270);function o(e,t){let r=(0,i.mB$)(t)?t.body.childNodes:t.childNodes,n=[],o=[];for(let t of r)if(!a.has(t.nodeName)){let r=function e(t,r,n,o,l=new Map,s){let u=[];if(a.has(t.nodeName))return u;let c=null,d=function(e,t){let{nodeName:r}=e,n=t._htmlConversions.get(r.toLowerCase()),i=null;if(void 0!==n)for(let t of n){let r=t(e);null!==r&&(null===i||(i.priority||0)<=(r.priority||0))&&(i=r)}return null!==i?i.conversion:null}(t,r),f=d?d(t):null,h=null;if(null!==f){h=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of l)if(!(c=e(c,s)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&l.set(t.nodeName,f.forChild)}let p=t.childNodes,m=[],y=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||o);for(let t=0;t<p.length;t++)m.push(...e(p[t],r,n,y,new Map(l),c));return null!=h&&(m=h(m)),(0,i.a9V)(t)&&(m=function(e,t,r){let n=e.style.textAlign,o=[],l=[];for(let e=0;e<t.length;e++){let a=t[e];if((0,i.y68)(a))n&&!a.getFormat()&&a.setFormat(n),o.push(a);else if(l.push(a),e===t.length-1||e<t.length-1&&(0,i.y68)(t[e+1])){let e=r();e.setFormat(n),e.append(...l),o.push(e),l=[]}}return o}(t,m,y?()=>{let e=new i.A7V;return n.push(e),e}:i.lJ7)),null==c?m.length>0?u=u.concat(m):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...m),u}(t,e,o,!1);null!==r&&(n=n.concat(r))}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(o),n}function l(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let r=document.createElement("div"),o=(0,i.NiT)().getChildren();for(let l=0;l<o.length;l++)!function e(t,r,o,l=null){let a=null===l||r.isSelected(l),s=(0,i.ff4)(r)&&r.excludeFromCopy("html"),u=r;null!==l&&(0,i.kFe)(r)&&(u=(0,n.SD)(l,r,"clone"));let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:h}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let p=document.createDocumentFragment();for(let n=0;n<c.length;n++){let o=c[n],s=e(t,o,p,l);!a&&(0,i.ff4)(r)&&s&&r.extractWithChild(o,l,"html")&&(a=!0)}if(a&&!s){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(p),o.append(f),h){let e=h.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else o.append(p);return a}(e,o[l],r,t);return r.innerHTML}let a=new Set(["STYLE","SCRIPT"])},85586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(98347),i=r(5462),o=r(19792),l=r(42901);t.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,i.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,i._)`{i: ${e}, j: ${t}}`},code(e){let{gen:t,data:r,$data:a,schema:s,parentSchema:u,schemaCode:c,it:d}=e;if(!a&&!s)return;let f=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(f,function(){let a=t.let("i",(0,i._)`${r}.length`),s=t.let("j");e.setParams({i:a,j:s}),t.assign(f,!0),t.if((0,i._)`${a} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?function(o,l){let a=t.name("item"),s=(0,n.checkDataTypes)(h,a,d.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",(0,i._)`{}`);t.for((0,i._)`;${o}--;`,()=>{t.let(a,(0,i._)`${r}[${o}]`),t.if(s,(0,i._)`continue`),h.length>1&&t.if((0,i._)`typeof ${a} == "string"`,(0,i._)`${a} += "_"`),t.if((0,i._)`typeof ${u}[${a}] == "number"`,()=>{t.assign(l,(0,i._)`${u}[${a}]`),e.error(),t.assign(f,!1).break()}).code((0,i._)`${u}[${a}] = ${o}`)})}:function(n,a){let s=(0,o.useFunc)(t,l.default),u=t.name("outer");t.label(u).for((0,i._)`;${n}--;`,()=>t.for((0,i._)`${a} = ${n}; ${a}--;`,()=>t.if((0,i._)`${s}(${r}[${n}], ${r}[${a}])`,()=>{e.error(),t.assign(f,!1).break(u)})))})(a,s))},(0,i._)`${c} === false`),e.ok(f)}}},85672:(e,t,r)=>{"use strict";function n(e,t="and"){if(0===e.length)return{};let r=e.reduce((e,r)=>(r&&"object"==typeof r&&Object.keys(r).length>0&&(t in r?e[t]=[...e[t],...r[t]]:e[t]?.push(r)),e),{[t]:[]});return r[t]?.length===0?{}:r}r.d(t,{h:()=>n})},86151:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e))},86462:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;let n=r(5462),i=r(72792),o=r(43510),l=r(83575);function a(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,n._)`${i.parentData}[${i.parentDataProperty}]`))}function s(e,t,r){if(void 0===r)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){let{gen:r,keyword:i,schema:o,parentSchema:l,it:a}=e,u=t.macro.call(a.self,o,l,a),c=s(r,i,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);let d=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;let{gen:u,keyword:c,schema:d,parentSchema:f,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(p,t);let m=s(u,c,!h&&t.compile?t.compile.call(p.self,d,f,p):t.validate),y=u.let("valid");function v(r=t.async?(0,n._)`await `:n.nil){let l=p.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!h||!1===t.schema);u.assign(y,(0,n._)`${r}${(0,o.callValidateCode)(e,m,l,a)}`,t.modifying)}function _(e){var r;u.if((0,n.not)(null!=(r=t.valid)?r:y),e)}e.block$data(y,function(){if(!1===t.errors)v(),t.modifying&&a(e),_(()=>e.error());else{let r=t.async?function(){let e=u.let("ruleErrs",null);return u.try(()=>v((0,n._)`await `),t=>u.assign(y,!1).if((0,n._)`${t} instanceof ${p.ValidationError}`,()=>u.assign(e,(0,n._)`${t}.errors`),()=>u.throw(t))),e}():function(){let e=(0,n._)`${m}.errors`;return u.assign(e,null),v(n.nil),e}();t.modifying&&a(e),_(()=>(function(e,t){let{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,()=>{r.assign(i.default.vErrors,(0,n._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,(0,n._)`${i.default.vErrors}.length`),(0,l.extendErrors)(e)},()=>e.error())})(e,r))}}),e.ok(null!=(r=t.valid)?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw Error("ajv implementation error");let l=i.dependencies;if(null==l?void 0:l.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${o}: ${l.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"===t.validateSchema)r.logger.error(e);else throw Error(e)}}},86737:(e,t,r)=>{"use strict";r.d(t,{DefaultNavClient:()=>h});var n=r(11241),i=r(94799),o=r(52223),l=r(83390),a=r(50614),s=r(67331),u=r(84924),c=r(27357),d=r(2831),f=r(34023),h=function(e){var t=(0,n.c)(13),r=e.groups,h=e.navPreferences,p=(0,c.usePathname)(),m=(0,l.c)().config,y=m.admin,v=m.folders,_=m.routes,b=y.routes.browseByFolder,S=_.admin,w=(0,a.d)().i18n;if(t[0]!==S||t[1]!==v||t[2]!==b||t[3]!==r||t[4]!==w||t[5]!==(null==h?void 0:h.groups)||t[6]!==p){var x,E,C=(0,d.Q)({adminRoute:S,path:b}),T=p.startsWith(C);t[8]!==S||t[9]!==w||t[10]!==(null==h?void 0:h.groups)||t[11]!==p?(E=function(e,t){var r,n,l=e.entities,a=e.label;return(0,i.jsx)(s.NavGroup,{isOpen:null==h||null==(n=h.groups)||null==(r=n[a])?void 0:r.open,label:a,children:l.map(function(e,t){var r,n,l=e.slug,a=e.type,c=e.label;a===u.ck.collection&&(r=(0,d.Q)({adminRoute:S,path:"/collections/".concat(l)}),n="nav-".concat(l)),a===u.ck.global&&(r=(0,d.Q)({adminRoute:S,path:"/globals/".concat(l)}),n="nav-global-".concat(l));var f=p.startsWith(r)&&["/",void 0].includes(p[r.length]),h=(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)("div",{className:"".concat("nav","__link-indicator")}),(0,i.jsx)("span",{className:"".concat("nav","__link-label"),children:(0,o.s)(c,w)})]});return p===r?(0,i.jsx)("div",{className:"".concat("nav","__link"),id:n,children:h},t):(0,i.jsx)(s.Link,{className:"".concat("nav","__link"),href:r,id:n,prefetch:!1,children:h},t)})},t)},t[8]=S,t[9]=w,t[10]=null==h?void 0:h.groups,t[11]=p,t[12]=E):E=t[12],x=(0,i.jsxs)(f.Fragment,{children:[v&&v.browseByFolder&&(0,i.jsx)(s.BrowseByFolderButton,{active:T}),r.map(E)]}),t[0]=S,t[1]=v,t[2]=b,t[3]=r,t[4]=w,t[5]=null==h?void 0:h.groups,t[6]=p,t[7]=x}else x=t[7];return x}},88492:function(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function o(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function l(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function a(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var o=n[i];if(o[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var i,o,a=(i=t[1],o=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return o[t]||""}));return""===r?l(e[n-1],a):l(r,a)})}(t,o)}return t}function s(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?l(n,i):e.hasOwnProperty(i)?l(n,e[i]):a(i,n,r)}}function u(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&a(i,i,r)===i}}function c(e,t,r){var n=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+n}return c.plural=s(i,n,e),c.isPlural=u(i,n,e),c.singular=s(n,i,t),c.isSingular=u(n,i,t),c.addPluralRule=function(t,r){e.push([o(t),r])},c.addSingularRule=function(e,r){t.push([o(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),i[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEac
27h(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}()},88697:(e,t,r)=>{"use strict";r.d(t,{a:()=>s,b:()=>u});
27var n=r(94799),i=r(35509),o=r(67331),l=r(34023),a=(0,l.createContext)({editorConfig:null,fieldProps:null,uuid:null}),s=({children:e,editorConfig:t,editorContainerRef:r,fieldProps:s,parentContext:u})=>{let[c]=(0,i.DF)(),[d]=(0,l.useState)(()=>Math.random().toString(36).substring(2,12)+Math.random().toString(36).substring(2,12)),f=(0,l.useRef)(new Map),[h,p]=(0,l.useState)(null),m=(0,l.useRef)(new Set),[y,v]=(0,l.useState)(),_=(0,o.useEditDepth)(),b=(0,l.useMemo)(()=>({blurEditor:e=>{m.current.clear()},childrenEditors:f,createdInlineBlock:y,editDepth:_,editor:c,editorConfig:t,editorContainerRef:r,fieldProps:s,focusedEditor:h,focusEditor:e=>{let t=e.uuid;m.current.has(t)||(m.current.add(t),p(e),u?.uuid&&u.focusEditor(e),f.current.forEach(t=>{t.focusEditor(e)}),m.current.clear())},parentEditor:u,registerChild:(e,t)=>{if(!f.current.has(e)){let r=new Map(f.current);r.set(e,t),f.current=r}},setCreatedInlineBlock:v,unregisterChild:e=>{if(f.current.has(e)){let t=new Map(f.current);t.delete(e),f.current=t}},uuid:d}),[y,v,c,f,t,r,_,s,h,u,d]);return(0,n.jsx)(a,{value:b,children:e})},u=()=>{let e=(0,l.use)(a);if(void 0===e)throw Error("useEditorConfigContext must be used within an EditorConfigProvider");return e}},88892:(e,t,r)=>{var n=r(50578);t.operation=function(e){return new n(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(e,t){return e-t}),n},t.createTimeout=function(e,t){var r=Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return Math.min(r,t.maxTimeout)},t.wrap=function(e,r,n){if(r instanceof Array&&(n=r,r=null),!n)for(var i in n=[],e)"function"==typeof e[i]&&n.push(i);for(var o=0;o<n.length;o++){var l=n[o],a=e[l];e[l]=(function(n){var i=t.operation(r),o=Array.prototype.slice.call(arguments,1),l=o.pop();o.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),l.apply(this,arguments))}),i.attempt(function(){n.apply(e,o)})}).bind(e,a),e[l].options=r}}},89093:(e,t,r)=>{"use strict";r.d(t,{Cd:()=>y,I2:()=>f,MT:()=>l,Vh:()=>s,Z7:()=>h,aO:()=>u,eE:()=>o,jY:()=>m,pz:()=>p,sd:()=>i,uT:()=>d,vs:()=>a,zj:()=>c});var n=r(69538);function i(e){return"group"===e.type||"array"===e.type||"row"===e.type||"collapsible"===e.type}function o(e){return"array"===e.type}function l(e){return"blocks"===e.type}function a(e){return"object"==typeof e}function s(e){return Array.isArray(e)&&"object"==typeof e?.[0]}function u(e){return"ui"===e.type}function c(e){return"admin"in e&&"position"in e.admin&&"sidebar"===e.admin.position}function d(e){return"name"in e&&"id"===e.name}function f(e){return"hidden"in e&&e.hidden||"admin"in e&&"disabled"in e.admin&&e.admin.disabled}function h(e){return"name"in e&&!u(e)}function p(e){return"name"in e}function m(e){return"name"in e}function y({field:e,parentIsLocalized:t}){return"localized"in e&&e.localized&&(!t||"true"===n.env.NEXT_PUBLIC_PAYLOAD_COMPATIBILITY_allowLocalizedWithinLocalized)}},89704:(e,t,r)=>{"use strict";r.d(t,{a:()=>m,b:()=>y});var n=r(88697),i=r(11241),o=r(94799),l=r(67331),a=r(34023),s=r(1317),u=r(50614),c=r(84924),d=r(78920),f=r(14288),h=r(76270),p=({data:e,featureKey:t,fieldMapOverride:r,handleDrawerSubmit:i,schemaFieldsPathOverride:h,schemaPath:p,schemaPathSuffix:m})=>{let{t:y}=(0,u.d)(),{id:v,collectionSlug:_,getDocPreferences:b,globalSlug:S}=(0,l.useDocumentInfo)(),{fields:w}=(0,l.useDocumentForm)(),x=(0,s.a)(),E=(0,a.useRef)(new AbortController),[C,T]=(0,a.useState)(!1),{fieldProps:{featureClientSchemaMap:N}}=(0,n.b)(),{getFormState:k}=(0,l.useServerFunctions)(),A=h??`${p}.lexical_internal_feature.${t}${m?`.${m}`:""}`,O=r??N[t]?.[A];(0,a.useEffect)(()=>{let t=new AbortController;return(async()=>{let{state:r}=await k({id:v,collectionSlug:_,data:e??{},docPermissions:{fields:!0},docPreferences:await b(),documentFormState:(0,d.KS)(w,{excludeFiles:!0}),globalSlug:S,initialBlockData:e,operation:"update",readOnly:!x,renderAllFields:!0,schemaPath:A,signal:t.signal});T(r)})(),()=>{(0,c.eS)(t)}},[A,v,e,k,_,x,S,b,w]);let R=(0,a.useCallback)(async({formState:e})=>{(0,c.eS)(E.current);let t=new AbortController;E.current=t;let{state:r}=await k({id:v,collectionSlug:_,docPermissions:{fields:!0},docPreferences:await b(),documentFormState:(0,d.KS)(w,{excludeFiles:!0}),formState:e,globalSlug:S,initialBlockFormState:e,operation:"update",readOnly:!x,schemaPath:A,signal:t.signal});return r||e},[k,v,x,_,b,w,S,A]);return(0,a.useEffect)(()=>()=>{(0,c.eS)(E.current)},[]),!1===C?null:(0,o.jsxs)(l.Form,{beforeSubmit:[R],disableValidationOnSubmit:!0,fields:Array.isArray(O)?O:[],initialState:C,onChange:[R],onSubmit:i,uuid:(0,f.A)(),children:[(0,o.jsx)(l.RenderFields,{fields:Array.isArray(O)?O:[],forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:A,permissions:!0,readOnly:!x}),(0,o.jsx)(l.FormSubmit,{children:y("fields:saveChanges")}
27)]})},m=e=>{let t,r=(0,i.c)(15),{className:n,data:a,drawerSlug:s,drawerTitle:u,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:f,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:y}=e,{closeModal:v}=(0,l.useModal)(),_=u??"",b;return r[0]!==v||r[1]!==s||r[2]!==f?(b=(e,t)=>{v(s),setTimeout(()=>{f(e,t)},1)},r[0]=v,r[1]=s,r[2]=f,r[3]=b):b=r[3],r[4]!==n||r[5]!==a||r[6]!==s||r[7]!==c||r[8]!==d||r[9]!==h||r[10]!==m||r[11]!==y||r[12]!==_||r[13]!==b?(t=(0,o.jsx)(l.EditDepthProvider,{children:(0,o.jsx)(l.Drawer,{className:n,slug:s,title:_,children:(0,o.jsx)(p,{data:a,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:b,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:y})})}),r[4]=n,r[5]=a,r[6]=s,r[7]=c,r[8]=d,r[9]=h,r[10]=m,r[11]=y,r[12]=_,r[13]=b,r[14]=t):t=r[14],t},y=(0,h.guI)("INSERT_UPLOAD_WITH_DRAWER_COMMAND")},90051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return""===e||'""'===e}get str(){var e;return null!=(e=this._str)?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!=(e=this._names)?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){let r=[e[0]],n=0;for(;n<t.length;)s(r,t[n]),r.push(e[++n]);return new i(r)}t._Code=i,t.nil=new i(""),t._=o;let l=new i("+");function a(e,...t){let r=[u(e[0])],o=0;for(;o<t.length;)r.push(l),s(r,t[o]),r.push(l,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===l){var r,i;let o=(r=e[t-1],'""'===(i=e[t+1])?r:'""'===r?i:"string"==typeof r?i instanceof n||'"'!==r[r.length-1]?void 0:"string"!=typeof i?`${r.slice(0,-1)}${i}"`:'"'===i[0]?r.slice(0,-1)+i.slice(1):void 0:"string"!=typeof i||'"'!==i[0]||r instanceof n?void 0:`"${r}${i.slice(1)}`);if(void 0!==o){e.splice(t-1,3,o);continue}e[t++]="+"}t++}}(r),new i(r)}function s(e,t){var r;t instanceof i?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=s,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new i(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},90819:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(15423);let i=["authentication:account","authentication:accountOfCurrentUser","authentication:accountVerified","authentication:alreadyActivated","authentication:alreadyLoggedIn","authentication:apiKey","authentication:authenticated","authentication:backToLogin","authentication:beginCreateFirstUser","authentication:changePassword","authentication:checkYourEmailForPasswordReset","authentication:confirmGeneration","authentication:confirmPassword","authentication:createFirstUser","authentication:emailNotValid","authentication:usernameNotValid","authentication:emailOrUsername","authentication:emailSent","authentication:emailVerified","authentication:enableAPIKey","authentication:failedToUnlock","authentication:forceUnlock","authentication:forgotPassword","authentication:forgotPasswordEmailInstructions","authentication:forgotPasswordUsernameInstructions","authentication:forgotPasswordQuestion","authentication:generate","authentication:generateNewAPIKey","authentication:generatingNewAPIKeyWillInvalidate","authentication:logBackIn","authentication:loggedOutInactivity","authentication:loggedOutSuccessfully","authentication:loggingOut","authentication:login","authentication:logOut","authentication:loggedIn","authentication:loggedInChangePassword","authentication:logout","authentication:logoutUser","authentication:logoutSuccessful","authentication:newAPIKeyGenerated","authentication:newPassword","authentication:passed","authentication:passwordResetSuccessfully","authentication:resetPassword","authentication:stayLoggedIn","authentication:successfullyRegisteredFirstUser","authentication:successfullyUnlocked","authentication:username","authentication:unableToVerify","authentication:tokenRefreshSuccessful","authentication:verified","authentication:verifiedSuccessfully","authentication:verify","authentication:verifyUser","authentication:youAreInactive","dashboard:addWidget","dashboard:deleteWidget","dashboard:searchWidgets","dashboard:editDashboard","dashboard:editingDashboard","dashboard:resetLayout","dashboard:addButton","dashboard:discardConfirmLabel","dashboard:discardMessage","dashboard:discardTitle","dashboard:no
27Items","error:autosaving","error:correctInvalidFields","error:deletingTitle","error:documentNotFound","error:emailOrPasswordIncorrect","error:usernameOrPasswordIncorrect","error:loadingDocument","error:insufficientClipboardPermissions","error:invalidClipboardData","error:invalidRequestArgs","error:invalidFileType","error:logoutFailed","error:noMatchedField","error:notAllowedToAccessPage","error:notAllowedToPerformAction","error:previewing","error:unableToCopy","error:unableToDeleteCount","error:unableToReindexCollection","error:unableToUpdateCount","error:unauthorized","error:unauthorizedAdmin","error:unknown","error:unspecific","error:unverifiedEmail","error:userEmailAlreadyRegistered","error:usernameAlreadyRegistered","error:tokenNotProvided","error:unPublishingDocument","error:revertingDocument","error:problemUploadingFile","error:restoringTitle","error:failedToSaveLayout","error:failedToResetLayout","fields:addLabel","fields:addLink","fields:addNew","fields:addNewLabel","fields:addRelationship","fields:addUpload","fields:block","fields:blocks","fields:blockType","fields:chooseBetweenCustomTextOrDocument","fields:customURL","fields:chooseDocumentToLink","fields:openInNewTab","fields:enterURL","fields:internalLink","fields:chooseFromExisting","fields:linkType","fields:textToDisplay","fields:searchForLanguage","fields:collapseAll","fields:editLink","fields:editRelationship","fields:itemsAndMore","fields:labelRelationship","fields:latitude","fields:linkedTo","fields:longitude","fields:passwordsDoNotMatch","fields:removeRelationship","fields:removeUpload","fields:saveChanges","fields:searchForBlock","fields:selectFieldsToEdit","fields:showAll","fields:swapRelationship","fields:swapUpload","fields:toggleBlock","fields:uploadNewLabel","folder:byFolder","folder:browseByFolder","folder:deleteFolder","folder:folders","folder:folderTypeDescription","folder:folderName","folder:itemsMovedToFolder","folder:itemsMovedToRoot","folder:itemHasBeenMoved","folder:itemHasBeenMovedToRoot","folder:moveFolder","folder:movingFromFolder","folder:moveItemsToFolderConfirmation","folder:moveItemsToRootConfirmation","folder:moveItemToFolderConfirmation","folder:moveItemToRootConfirmation","folder:noFolder","folder:newFolder","folder:renameFolder","folder:searchByNameInFolder","folder:selectFolderForItem","general:all","general:aboutToDeleteCount","general:aboutToDelete","general:aboutToPermanentlyDelete","general:aboutToPermanentlyDeleteTrash","general:aboutToRestore","general:aboutToRestoreAsDraft","general:aboutToRestoreAsDraftCount","general:aboutToRestoreCount","general:aboutToTrash","general:aboutToTrashCount","general:addBelow","general:addFilter","general:adminTheme","general:allCollections","general:and","general:anotherUser","general:anotherUserTakenOver","general:applyChanges","general:ascending","general:automatic","general:backToDashboard","general:cancel","general:changesNotSaved","general:close","general:collapse","general:collections","general:confirmMove","general:yes","general:no","general:columns","general:columnToSort","general:confirm","general:confirmCopy","general:confirmDeletion","general:confirmDuplication","general:confirmReindex","general:confirmReindexAll","general:confirmReindexDescription","general:confirmReindexDescriptionAll","general:confirmRestoration","general:copied","general:clear","general:clearAll","general:copy","general:copyField","general:copyRow","general:copyWarning","general:copying","general:create","general:created","general:createdAt","general:createNew","general:createNewLabel","general:creating","general:creatingNewLabel","general:currentlyEditing","general:custom","general:dark","general:dashboard","general:delete","general:deleted","general:deletedAt","general:deletePermanently","general:deleteLabel","general:deletedSuccessfully","general:deletedCountSuccessfully","general:deleting","general:descending","general:depth","general:deselectAllRows","general:document","general:documentIsTrashed","general:documentLocked","general:documentModified","general:documentOutOfDate","general:documents","general:duplicate","general:duplicateWithoutSaving","general:edit","general:editAll","general:editing","general:editingLabel","general:editingTakenOver","general:editLabel","general:editedSince","general:email","general:emailAddress","general:emptyTrash","general:emptyTrashLabel","general:enterAValue","general:error","general:errors","general:fallbackToDefaultLocale","general:false","general:filters","general:filterWhere","general:globals","general:goBack","general:groupByLabel","general:isEditing","general:item","general:items","general:language","general:lastModified","general:layout","general:leaveAnyway","general:leaveWithoutSaving","general:light","general:livePreview","general:lock","general:exitLivePreview","general:loading","general:locale","general:locales","general:menu","general:moreOptions","general:move","general:moveConfirm","general:moveCount","general:moveDown","general:moveUp","general:moving","general:movingCount","general:name","general:next","general:newLabel","general:noDateSelected","general:noFiltersSet","general:noLabel","general:none","general:noOptions","general:noResults","general:noResultsDescription","general:noResultsFound","general:notFound","general:nothingFound","general:noTrashResults","general:noUpcomingEventsScheduled","general:noValue","general:of","general:open","general:openInNewWindow","general:only","general:or","general:order","general:overwriteExistingData","general:pageNotFound","general:password","general:pasteField","general:pasteRow","general:payloadSettings","general:permanentlyDelete","general:permanentlyDeletedCountSuccessfully","general:perPage","general:previous","general:reindex","general:reindexingAll","general:reloadDocument","general:remove","general:rename","general:reset","general:resetPreferences","general:resetPreferencesDescription","general:resettingPreferences","general:restore","general:restoreAsPublished","general:restoredCountSuccessfully","general:restoring","general:row","general:rows","general:save","general:saveChanges","general:schedulePublishFor","general:saving","general:searchBy","general:select","general:selectAll","general:selectAllRows","general:selectedCount","general:selectLabel","general:selectValue","general:showAllLabel","general:sorryNotFound","general:sort","general:sortByLabelDirection","general:stayOnThisPage","general:submissionSuccessful","general:submit","general:submitting","general:success","general:successfullyCreated","general:successfullyDuplicated","general:successfullyReindexed","general:takeOver","general:thisLanguage","general:time","general:timezone","general:titleDeleted","general:titleTrashed","general:titleRestored","general:trash","general:trashedCountSuccessfully","general:import","general:export","general:allLocales","general:true","general:upcomingEvents","general:users","general:user","general:username","general:unauthorized","general:unlock","general:unsavedChanges","general:unsavedChangesDuplicate","general:untitled","general:updatedAt","general:updatedLabelSuccessfully","general:updatedCountSuccessfully","general:updateForEveryone","general:updatedSuccessfully","general:updating","general:value","general:viewing","general:viewReadOnly","general:uploading","general:uploadingBulk","general:welcome","localization:localeToPublish","localization:copyToLocale","localization:copyFromTo","localization:selectedLocales","localization:selectLocaleToCopy","localization:selectLocaleToDuplicate","localization:cannotCopySameLocale","localization:copyFrom","localization:copyTo","operators:equals","operators:exists","operators:isNotIn","operators:isIn","operators:contains","operators:isLike","operators:isNotLike","operators:isNotEqualTo","operators:near","operators:isGreaterThan","operators:isLessThan","operators:isGreaterThanOrEqualTo","operators:isLessThanOrEqualTo","operators:within","operators:intersects","upload:addFile","upload:addFiles","upload:bulkUpload","upload:crop","upload:cropToolDescription","upload:dragAndDrop","upload:editImage","upload:fileToUpload","upload:filesToUpload","upload:focalPoint","upload:focalPointDescription","upload:height","upload:pasteURL","upload:previewSizes","upload:selectCollectionToBrowse","upload:selectFile","upload:setCropArea","upload:setFocalPoint","upload:sizesFor","upload:sizes","upload:width","upload:fileName","upload:fileSize","upload:noFile","upload:download","validation:emailAddress","validation:enterNumber","validation:fieldHasNo","validation:greaterThanMax","validation:invalidInput","validation:invalidSelection","validation:invalidSelections","validation:latitudeOutOfBounds","validation:lessThanMin","validation:limitReached","validation:longitudeOutOfBounds","validation:invalidBlock","validation:invalidBlocks","validation:longerThanMin","validation:notValidDate","validation:required","validation:requiresAtLeast","validation:requiresNoMoreThan","validation:requiresTwoNumbers","validation:shorterThanMax","validation:trueOrFalse","validation:timezoneRequired","validation:username","validation:validUploadID","version:aboutToPublishSelection","version:aboutToRestore","ver
27sion:aboutToRestoreGlobal","version:aboutToRevertToPublished","version:aboutToUnpublish","version:aboutToUnpublishIn","version:aboutToUnpublishSelection","version:autosave","version:autosavedSuccessfully","version:autosavedVersion","version:versionAgo","version:moreVersions","version:changed","version:changedFieldsCount","version:confirmRevertToSaved","version:compareVersions","version:comparingAgainst","version:currentlyViewing","version:confirmPublish","version:confirmUnpublish","version:confirmVersionRestoration","version:currentDraft","version:currentPublishedVersion","version:currentlyPublished","version:draft","version:draftHasPublishedVersion","version:draftSavedSuccessfully","version:lastSavedAgo","version:modifiedOnly","version:noFurtherVersionsFound","version:noLabelGroup","version:noRowsFound","version:noRowsSelected","version:preview","version:previouslyDraft","version:previouslyPublished","version:previousVersion","version:problemRestoringVersion","version:publish","version:publishAllLocales","version:publishChanges","version:published","version:publishIn","version:publishing","version:restoreAsDraft","version:restoredSuccessfully","version:restoreThisVersion","version:restoring","version:reverting","version:revertUnsuccessful","version:revertToPublished","version:saveDraft","version:scheduledSuccessfully","version:schedulePublish","version:selectLocales","version:selectVersionToCompare","version:showLocales","version:specificVersion","version:status","version:type","version:unpublish","version:unpublished","version:unpublishIn","version:unpublishing","version:unpublishedSuccessfully","version:versionID","version:version","version:versions","version:viewingVersion","version:viewingVersionGlobal","version:viewingVersions","version:viewingVersionsGlobal"];function o({key:e,translations:t,vars:r}){let n=(({count:e,key:t,translations:r})=>{let n=t.split(":"),i="",o=n.reduce((t,r,o)=>{if("string"==typeof t)return t;"number"==typeof e&&(0===e&&`${r}_zero`in t?i="_zero":1===e&&`${r}_one`in t?i="_one":2===e&&`${r}_two`in t?i="_two":e>5&&`${r}_many`in t?i="_many":e>2&&e<=5&&`${r}_few`in t?i="_few":`${r}_other`in t&&(i="_other"));let l=r;if(o===n.length-1&&i&&(l=`${r}${i}`),t&&l in t)return t[l]},r);return o||console.log("key not found:",t),o||t})({count:"number"==typeof r?.count?r.count:void 0,key:e,translations:t});return r&&(n=(({translationString:e,vars:t})=>e.split(/(\{\{.*?\}\})/).map(e=>{if(!(e.startsWith("{{")&&e.endsWith("}}")))return e;{let r=t[e.substring(2,e.length-2).trim()];return null!=r?r:e}}).join(""))({translationString:n,vars:r})),n||(n=e),n}!(async({config:e,context:t,language:r=e.fallbackLanguage})=>{if(!r||!e.supportedLanguages?.[r])throw Error(`Language ${r} not supported`);let l=((e,t)=>"client"===t?function e(t){let r={};return Object.keys(t).sort().forEach(n=>{"object"==typeof t[n]?r[n]=e(t[n]):r[n]=t[n]}),r}(function e(t,r="",n){let i={};for(let[o,l]of Object.entries(t)){if("$schema"===o){i[o]=l;continue}if("object"==typeof l){let t=e(l,o,n);Object.keys(t).length>0&&(i[o]=t)}else for(let e of n){let[t,n]=e.split(":");r===t&&(o===n?i[n]=l:["zero","one","two","few","many","other"].forEach(e=>{o===`${n}_${e}`&&(i[`${n}_${e}`]=l)}))}}return i}(e.translations,"",i)):e.translations)(e.supportedLanguages?.[r],t),{t:a,translations:s}=(e=>{let{config:t,language:r,translations:n}=e,i=r&&t?.translations?.[r]?function e(t,r){let n={...t};for(let i in r)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&("object"==typeof r[i]&&!Array.isArray(r[i])&&t[i]?n[i]=e(t[i],r[i]):n[i]=r[i]);return n}(n,t.translations[r]):n;return{t:(e,t)=>o({key:e,translations:i,vars:t}),translations:i}})({config:e,language:r||e.fallbackLanguage,translations:l}),u=e.supportedLanguages[r]?.dateFNSKey||"en-US";return{dateFNS:await (0,n.p)(u),dateFNSKey:u,fallbackLanguage:e.fallbackLanguage,language:r||e.fallbackLanguage,t:a,translations:s}})},90985:(e,t,r)=>{"use strict";r.d(t,{a:()=>u});var n=r(11241),i=r(94799),o=r(35509),l=r(67331),a=r(76270),s=r(34023),u=e=>
27{let t,r,u=(0,n.c)(21),[c]=(0,o.DF)(),[d,f]=(0,s.useState)(null),[h,p]=(0,s.useState)(!1),[m,y,v]=(0,l.useDocumentDrawer)(e),{closeDrawer:_,drawerSlug:b}=v,{modalState:S}=(0,l.useModal)(),w;u[0]!==c?(w=()=>{c.read(()=>{f((0,a.vJq)()??(0,a.S1w)())}),p(!0)},u[0]=c,u[1]=w):w=u[1];let x=w,E;u[2]!==c||u[3]!==d?(E=()=>{d&&c.update(()=>{(0,a.n1P)(d.clone())},{discrete:!0,skipTransforms:!0})},u[2]=c,u[3]=d,u[4]=E):E=u[4];let C=E,T;u[5]!==_?(T=()=>{_()},u[5]=_,u[6]=T):T=u[6];let N=T,k,A;return u[7]!==b||u[8]!==S||u[9]!==C||u[10]!==h?(k=()=>{if(!h)return;let e=S[b];e&&!e?.isOpen&&(p(!1),setTimeout(()=>{C()},1))},A=[S,b,C,h],u[7]=b,u[8]=S,u[9]=C,u[10]=h,u[11]=k,u[12]=A):(k=u[11],A=u[12]),(0,s.useEffect)(k,A),u[13]!==y||u[14]!==x?(t=e=>(0,i.jsx)(y,{...e,onClick:x}),u[13]=y,u[14]=x,u[15]=t):t=u[15],u[16]!==m||u[17]!==N||u[18]!==b||u[19]!==t?(r={closeDocumentDrawer:N,DocumentDrawer:m,documentDrawerSlug:b,DocumentDrawerToggler:t},u[16]=m,u[17]=N,u[18]=b,u[19]=t,u[20]=r):r=u[20],r}},91557:(e,t,r)=>{"use strict";r.d(t,{ag:()=>u,s8:()=>l,wA:()=>a,gD:()=>i,jq:()=>o,_N:()=>s});let n={autosaveInterval:2e3},i=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts),o=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.localizeStatus),l=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave),a=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.validate),s=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.schedulePublish),u=e=>{let t=n.autosaveInterval;return e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave&&"object"==typeof e.versions.drafts.autosave&&(t=e.versions.drafts.autosave.interval??n.autosaveInterval),t}},91788:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EditView:()=>l});var n=r(54947),i=r(94799),o=r(67331);r(34023);var l=function(e){return(0,i.jsx)(o.DefaultEditView,(0,n._)({},e))}},92624:(e,t,r)=>{"use strict";r.d(t,{F:()=>i,l:()=>n});let n=e=>{if(!e)return;let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(t){console.error("Error parsing columns",e,t)}if(t&&Array.isArray(t))return t.map(e=>{if("string"==typeof e){let t="-"!==e[0];return{accessor:t?e:e.slice(1),active:t}}return{accessor:e.accessor,active:e.active}})},i=e=>e?.map(e=>e.active?e.accessor:`-${e.accessor}`)},93027:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},93822:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},94046:(e,t,r)=>{"use strict";r.d(t,{Card:()=>l});var n=r(94799);r(34023);var i=r(66001);r(83264);var o="card",l=function(e){var t=e.id,r=e.actions,l=e.buttonAriaLabel,a=e.href,s=e.onClick,u=e.title,c=e.titleAs,d=[o,t,(s||a)&&"".concat(o,"--has-onclick")].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:d,id:t,children:[(0,n.jsx)(null!=c?c:"div",{className:"".concat(o,"__title"),children:u}),r&&(0,n.jsx)("div",{className:"".concat(o,"__actions"),children:r}),(s||a)&&(0,n.jsx)(i.Button,{"aria-label":l,buttonStyle:"none",className:"".concat(o,"__click"),el:"link",onClick:s,to:a})]})}},94419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[r(71202).default]},94506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(45693),i=r(43510),o=r(19792),l=r(94947);t.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:a,data:s,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&l.default.code(new n.KeywordCxt(u,l.default,"additionalProperties"));let c=(0,i.allSchemaProperties)(r);for(let e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));let d=c.filter(e=>!(0,o.alwaysValidSchema)(u,r[e]));if(0===d.length)return;let f=t.name("valid");for(let n of d){var h;(h=n,u.opts.useDefaults&&!u.compositeRule&&void 0!==r[h].default)?p(n):(t.if((0,i.propertyInData)(t,s,n,u.opts.ownProperties)),p(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f)}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}}},94514:(e,t,r)=>{"use strict";r.d(t,{VersionPillLabel:()=>f});
27var n=r(11241),i=r(94799),o=r(67331),l=r(83390),a=r(50614),s=r(84924),u=r(34023),c="version-pill-label",d=function(e,t){return(0,i.jsx)(o.Pill,{pillStyle:t,size:"small",children:e})},f=function(e){var t=(0,n.c)(14),r=e.currentlyPublishedVersion,f=e.disableDate,h=e.doc,p=e.labelFirst,m=e.labelOverride,y=e.labelStyle,v=e.labelSuffix,_=e.latestDraftVersion,b=void 0!==f&&f,S=void 0!==p&&p,w=void 0===y?"pill":y,x=(0,l.c)().config,E=x.admin,C=x.localization,T=E.dateFormat,N=(0,a.d)(),k=N.i18n,A=N.t,O=(0,o.useLocale)().code;if(t[0]!==O||t[1]!==r||t[2]!==T||t[3]!==b||t[4]!==h||t[5]!==k||t[6]!==S||t[7]!==m||t[8]!==w||t[9]!==v||t[10]!==_||t[11]!==C||t[12]!==A){var R,P,M=function({currentLocale:e,currentlyPublishedVersion:t,latestDraftVersion:r,t:n,version:i}){let o=i.version._status;if("draft"===o){if(t?.updatedAt>r?.updatedAt)return{name:"draft",label:n("version:draft"),pillStyle:"light"};let e=i.id===r?.id;return{name:e?"currentDraft":"draft",label:n(e?"version:currentDraft":"version:draft"),pillStyle:"light"}}if("published"===o&&i.publishedLocale&&e!==i.publishedLocale)return{name:"currentDraft",label:n("version:currentDraft"),pillStyle:"light"};let l=t&&i.id===t.id;return{name:l?"currentlyPublished":"previouslyPublished",label:n(l?"version:currentlyPublished":"version:previouslyPublished"),pillStyle:l?"success":"light"}}({currentLocale:O,currentlyPublishedVersion:r,latestDraftVersion:_,t:A,version:h}),I=M.label,D=M.pillStyle,$=(0,i.jsxs)("span",{children:[m||I,v]}),L=!b&&h.updatedAt,j=L?(0,s.Yq)({date:h.updatedAt,i18n:k,pattern:T}):null,F=Array.isArray(h.publishedLocale)?h.publishedLocale[0]:h.publishedLocale,B=C&&(null==C?void 0:C.locales)?C.locales.find(function(e){return e.code===F}):null,U=B?(null==B||null==(P=B.label)?void 0:P[null==k?void 0:k.language])||(null==B?void 0:B.label):null;R=(0,i.jsxs)("div",{className:c,children:[S?(0,i.jsxs)(u.Fragment,{children:["pill"===w?d($,D):(0,i.jsx)("span",{className:"".concat(c,"-text"),children:$}),L&&(0,i.jsx)("span",{className:"".concat(c,"-date"),children:j})]}):(0,i.jsxs)(u.Fragment,{children:[L&&(0,i.jsx)("span",{className:"".concat(c,"-date"),children:j}),"pill"===w?d($,D):(0,i.jsx)("span",{className:"".concat(c,"-text"),children:$})]}),U&&(0,i.jsx)(o.Pill,{size:"small",children:U})]}),t[0]=O,t[1]=r,t[2]=T,t[3]=b,t[4]=h,t[5]=k,t[6]=S,t[7]=m,t[8]=w,t[9]=v,t[10]=_,t[11]=C,t[12]=A,t[13]=R}else R=t[13];return R}},94540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(56548);
27class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},94822:(e,t,r)=>{"use strict";r.d(t,{VersionsViewClient:()=>u});var n=r(11241),i=r(94799),o=r(67331),l=r(50614),a=r(27357),s=r(34023),u=function(e){var t,r,u=(0,n.c)(13),c=e.baseClass,d=e.columns,f=e.paginationLimits,h=(0,o.useListQuery)(),p=h.data,m=h.handlePageChange,y=h.handlePerPageChange,v=(0,a.useSearchParams)();u[0]!==v?(t=v.get("limit"),u[0]=v,u[1]=t):t=u[1];var _=t,b=(0,l.d)().i18n,S=(null==p?void 0:p.totalDocs)||0,w=!p;return u[2]!==c||u[3]!==d||u[4]!==p||u[5]!==m||u[6]!==y||u[7]!==b||u[8]!==_||u[9]!==f||u[10]!==w||u[11]!==S?(r=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(o.LoadingOverlayToggle,{name:"versions",show:w}),0===S&&(0,i.jsx)("div",{className:"".concat(c,"__no-versions"),children:b.t("version:noFurtherVersionsFound")}),S>0&&(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(o.Table,{columns:d,data:null==p?void 0:p.docs}),(0,i.jsxs)("div",{className:"".concat(c,"__page-controls"),children:[(0,i.jsx)(o.Pagination,{hasNextPage:p.hasNextPage,hasPrevPage:p.hasPrevPage,limit:p.limit,nextPage:p.nextPage,numberOfNeighbors:1,onChange:m,page:p.page,prevPage:p.prevPage,totalPages:p.totalPages}),(null==p?void 0:p.totalDocs)>0&&(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)("div",{className:"".concat(c,"__page-info"),children:[p.page*p.limit-(p.limit-1),"-",p.totalPages>1&&p.totalPages!==p.page?p.limit*p.page:p.totalDocs," ",b.t("general:of")," ",p.totalDocs]}),(0,i.jsx)(o.PerPage,{handleChange:y,limit:_?Number(_):10,limits:f})]})]})]})]}),u[2]=c,u[3]=d,u[4]=p,u[5]=m,u[6]=y,u[7]=b,u[8]=_,u[9]=f,u[10]=w,u[11]=S,u[12]=r):r=u[12],r}},94947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(43510),i=r(5462),o=r(72792),l=r(19792);t.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,i._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:r,parentSchema:a,data:s,errsCount:u,it:c}=e;if(!u)throw Error("ajv implementation error");let{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&(0,l.alwaysValidSchema)(c,r))return;let h=(0,n.allSchemaProperties)(a.properties),p=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code((0,i._)`delete ${s}[${e}]`)}function y(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)return void m(n);if(!1===r){e.setParams({additionalProperty:n}),e.error(),d||t.break();return}if("object"==typeof r&&!(0,l.alwaysValidSchema)(c,r)){let r=t.name("valid");"failing"===f.removeAdditional?(v(n,r,!1),t.if((0,i.not)(r),()=>{e.reset(),m(n)})):(v(n,r),d||t.if((0,i.not)(r),()=>t.break()))}}function v(t,r,n){let i={keyword:"additionalProperties",dataProp:t,dataPropType:l.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",s,r=>{h.length||p.length?t.if(function(r){let o;if(h.length>8){let e=(0,l.schemaRefOrVal)(c,a.properties,"properties");o=(0,n.isOwnProperty)(t,e,r)}else o=h.length?(0,i.or)(...h.map(e=>(0,i._)`${r} === ${e}`)):i.nil;return p.length&&(o=(0,i.or)(o,...p.map(t=>(0,i._)`${(0,n.usePattern)(e,t)}.test(${r})`))),(0,i.not)(o)}(r),()=>y(r)):y(r)}),e.ok((0,i._)`${u} === ${o.default.errors}`)}}},96523:(e,t,r)=>{"use strict";r.d(t,{VersionDrawerCreatedAtCell:()=>u});var n=r(94799),i=r(83390),o=r(67331),l=r(50614),a=r(84924),s=r(27357),u=function(e){var t=e.rowData,r=void 0===t?{}:t,u=r.id,c=r.updatedAt,d=(0,i.c)().config.admin.dateFormat,f=(0,o.useModal)().closeAllModals,h=(0,s.useRouter)(),p=(0,s.usePathname)(),m=(0,s.useSearchParams)(),y=(0,o.useRouteTransition)().startRouteTransition,v=(0,l.d)().i18n;return(0,n.jsx)("button",{className:"created-at-cell",onClick:function(){f();var e=new URLSearchParams(Array.from(m.entries()));u&&e.set("versionFrom",String(u));var t=e.toString(),r=t?"?".concat(t):"";y(function(){return h.push("".concat(p).concat(r))})},type:"button",children:(0,a.Yq)({date:c,i18n:v,pattern:d})})}},96525:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,l=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else if(47===r)break;else r=47;if(47===r){if(o===a-1||1===l);else if(o!==a-1&&2===l){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",i=0):i=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=a,l=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,l=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,l=0}else 46===r&&-1!==l?++l:l=-1}return n}var n={resolve:function(){for(var e,n,i="",o=!1,l=arguments.length-1;l>=-1&&!o;l--)l>=0?n=arguments[l]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,o=47===n.charCodeAt(0));if(i=r(i,!o),o)if(i.length>0)return"/"+i;else return"/";return i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,l=o-i,a=1;a<r.length&&47===r.charCodeAt(a);++a);for(var s=r.length-a,u=l<s?l:s,c=-1,d=0;d<=u;++d){if(d===u){if(s>u){if(47===r.charCodeAt(a+d))return r.slice(a+d+1);else if(0===d)return r.slice(a+d)}else l>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==r.charCodeAt(a+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;
27++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(a+c):(a+=c,47===r.charCodeAt(a)&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(r=e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,l=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var a=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!l){i=n+1;break}}else -1===s&&(l=!1,s=n+1),a>=0&&(u===r.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=s))}return i===o?o=s:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!l){i=n+1;break}}else -1===o&&(l=!1,o=n+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,l=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47===s){if(!o){n=a+1;break}continue}-1===i&&(o=!1,i=a+1),46===s?-1===r?r=a:1!==l&&(l=1):-1!==r&&(l=-1)}return -1===r||-1===i||0===l||1===l&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var l=-1,a=0,s=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){a=c+1;break}continue}-1===s&&(u=!1,s=c+1),46===i?-1===l?l=c:1!==d&&(d=1):-1!==l&&(d=-1)}return -1===l||-1===s||0===d||1===d&&l===s-1&&l===a+1?-1!==s&&(0===a&&o?n.base=n.name=e.slice(1,s):n.base=n.name=e.slice(a,s)):(0===a&&o?(n.name=e.slice(1,l),n.base=e.slice(1,s)):(n.name=e.slice(a,l),n.base=e.slice(a,s)),n.ext=e.slice(l,s)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},l=!0;try{t[e](o,o.exports,n),l=!1}finally{l&&delete r[e]}return o.exports}n.ab="//",e.exports=n(114)}()},98347:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;let i=r(45367),o=r(78788),l=r(83575),a=r(5462),s=r(19792);function u(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(i.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(n||(t.DataType=n={})),t.getSchemaTypes=function(e){let t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){var r,i;let{gen:l,data:s,opts:u}=e,d=(r=t,(i=u.coerceTypes)?r.filter(e=>c.has(e)||"array"===i&&"array"===e):[]),h=t.length>0&&!(0===d.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(h){let r=f(t,s,u.strictNumbers,n.Wrong);l.if(r,()=>{d.length?function(e,t,r){let{gen:n,data:i,opts:o}=e,l=n.let("dataType",(0,a._)`typeof ${i}`),s=n.let("coerced",(0,a._)`undefined`);for(let e of("array"===o.coerceTypes&&n.if((0,a._)`${l} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,a._)`${i}[0]`).assign(l,(0,a._)`typeof ${i}`).if(f(t,i,o.strictNumbers),()=>n.assign(s,i))),n.if((0,a._)`${s} !== undefined`),r))(c.has(e)||"array"===e&&"array"===o.coerceTypes)&&function(e){switch(e){case"string":n.elseIf((0,a._)`${l} == "number" || ${l} == "boolean"`).assign(s,(0,a._)`"" + ${i}`).elseIf((0,a._)`${i} === null`).assign(s,(0,a._)`""`);return;case"number":n.elseIf((0,a._)`${l} == "boolean" || ${i} === null 28 || (${l} == "string" && ${i} && ${i} == +${i})`).assign(s,(0,a._)`+${i}`);return;case"integer":n.elseIf((0,a._)`${l} === "boolean" || ${i} === null 29 || (${l} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(s,(0,a._)`+${i}`);return;case"boolean":n.elseIf((0,a._)`${i}
29 === "false" || ${i} === 0 || ${i} === null`).assign(s,!1).elseIf((0,a._)`${i} === "true" || ${i} === 1`).assign(s,!0);return;case"null":n.elseIf((0,a._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(s,null);return;case"array":n.elseIf((0,a._)`${l} === "string" || ${l} === "number" 30 || ${l} === "boolean" || ${i} === null`).assign(s,(0,a._)`[${i}]`)}}(e);n.else(),p(e),n.endIf(),n.if((0,a._)`${s} !== undefined`,()=>{n.assign(i,s),function({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,a._)`${t} !== undefined`,()=>e.assign((0,a._)`${t}[${r}]`,n))}(e,s)})}(e,t,d):p(e)})}return h};let c=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,i=n.Correct){let o,l=i===n.Correct?a.operators.EQ:a.operators.NEQ;switch(e){case"null":return(0,a._)`${t} ${l} null`;case"array":o=(0,a._)`Array.isArray(${t})`;break;case"object":o=(0,a._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,a._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,a._)`typeof ${t} ${l} ${e}`}return i===n.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)((0,a._)`typeof ${t} == "number"`,e,r?(0,a._)`isFinite(${t})`:a.nil)}}function f(e,t,r,n){let i;if(1===e.length)return d(e[0],t,r,n);let o=(0,s.toHash)(e);if(o.array&&o.object){let e=(0,a._)`typeof ${t} != "object"`;i=o.null?e:(0,a._)`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;for(let e in o.number&&delete o.integer,o)i=(0,a.and)(i,d(e,t,r,n));return i}t.checkDataType=d,t.checkDataTypes=f;let h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,a._)`{type: ${e}}`:(0,a._)`{type: ${t}}`};function p(e){let t=function(e){let{gen:t,data:r,schema:n}=e,i=(0,s.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,l.reportError)(t,h)}t.reportTypeError=p},99177:(e,t,r)=>{"use strict";r.d(t,{SettingsMenuButton:()=>s});var n=r(11241),i=r(94799),o=r(50614),l=r(67331),a=r(34023),s=function(e){var t,r=(0,n.c)(3),a=e.settingsMenu,s=(0,o.d)().t;return a&&0!==a.length?(r[0]!==a||r[1]!==s?(t=(0,i.jsx)(l.Popup,{button:(0,i.jsx)(l.GearIcon,{ariaLabel:s("general:menu")}),className:"settings-menu-button",horizontalAlign:"left",id:"settings-menu",size:"small",verticalAlign:"bottom",children:a.map(u)}),r[0]=a,r[1]=s,r[2]=t):t=r[2],t):null};function u(e,t){return(0,i.jsx)(a.Fragment,{children:e},"settings-menu-item-".concat(t))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.