https://mumonan.jp/_next/static/chunks/9396-f4d0a2485618fbfc.js?dpl=dpl_AxzUUNESfQhTPvuFRYwaX8uDy7uo
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9396],{403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]])},444:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>a});var r=n(76908),i=n(51876),o=n(55771),s=/^\s*>\s$/,a=r.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return(0,o.Y)("blockquote",{...(0,r.KV)(this.options.HTMLAttributes,e),children:(0,o.Y)("slot",{})})},parseMarkdown:(e,t)=>{var n;let r=null!=(n=t.parseBlockChildren)?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let n=[];return e.content.forEach((e,r)=>{var i,o;let s=(null!=(o=null==(i=t.renderChild)?void 0:i.call(t,e,r))?o:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?">":`> ${e}`);n.push(s.join("\n"))}),n.join(` 2> 3`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>((e,t)=>{var n;let{state:r,view:o}=e,{selection:s}=r;if(!s.empty)return!1;let{$from:a}=s;if(0!==a.parentOffset)return!1;let l=a.depth-1;if(l<0)return!1;let c=a.node(l),u=a.index(l);if(0===u)return!1;if(c.type===t)return e.commands.lift(t.name);let d=c.child(u-1);if(d.type!==t||!(null==(n=d.lastChild)?void 0:n.isTextblock))return!1;let h=a.before(),p=h-1-1,{tr:f}=r;return f.delete(h,a.after()).insert(p,a.parent.content),f.setSelection(i.U3.create(f.doc,p)),o.dispatch(f.scrollIntoView()),!0})(this.editor,this.type)}}
3,addInputRules(){return[(0,r.tG)({find:s,type:this.type})]}})},1524:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},3538:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("align-left",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},3829:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]])},4337:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>H,hG:()=>G,er:()=>K});var r=n(12115),i=n(47650),o=n(14806),s=n(95155),a=n(76908);let{getOwnPropertyNames:l,getOwnPropertySymbols:c}=Object,{hasOwnProperty:u}=Object.prototype;function d(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function h(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);let{cache:i}=r,o=i.get(t),s=i.get(n);if(o&&s)return o===n&&s===t;i.set(t,n),i.set(n,t);let a=e(t,n,r);return i.delete(t),i.delete(n),a}}function p(e){return l(e).concat(c(e))}let f=Object.hasOwn||((e,t)=>u.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:m,keys:y}=Object;function b(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function w(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function k(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function A(e,t){return e===t}function _(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),a=e.entries(),l=0;for(;(r=a.next())&&!r.done;){let o=t.entries(),a=!1,c=0;for(;(i=o.next())&&!i.done;){if(s[c]){c++;continue}let o=r.value,u=i.value;if(n.equals(o[0],u[0],l,c,e,t,n)&&n.equals(o[1],u[1],o[0],u[0],e,t,n)){a=s[c]=!0;break}c++}if(!a)return!1;l++}return!0}function S(e,t,n){let r=y(e),i=r.length;if(y(t).length!==i)return!1;for(;i-- >0;)if(!R(e,t,n,r[i]))return!1;return!0}function M(e,t,n){let r,i,o,s=p(e),a=s.length;if(p(t).length!==a)return!1;for(;a-- >0;)if(!R(e,t,n,r=s[a])||(i=m(e,r),o=m(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function C(e,t){return g(e.valueOf(),t.valueOf())}function O(e,t){return e.source===t.source&&e.flags===t.flags}function T(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),a=e.values();for(;(r=a.next())&&!r.done;){let o=t.values(),a=!1,l=0;for(;(i=o.next())&&!i.done;){if(!s[l]&&n.equals(r.value,i.value,r.value,i.value,e,t,n)){a=s[l]=!0;break}l++}if(!a)return!1}return!0}function N(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function I(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function R(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||f(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}let L={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},D=Object.prototype.toString,z=j();function j(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:f}){return function(g,m,y){if(g===m)return!0;
3if(null==g||null==m)return!1;let b=typeof g;if(b!==typeof m)return!1;if("object"!==b)return"number"===b?a(g,m,y):"function"===b&&o(g,m,y);let v=g.constructor;if(v!==m.constructor)return!1;if(v===Object)return l(g,m,y);if(Array.isArray(g))return t(g,m,y);if(v===Date)return r(g,m,y);if(v===RegExp)return u(g,m,y);if(v===Map)return s(g,m,y);if(v===Set)return d(g,m,y);let w=D.call(g);if("[object Date]"===w)return r(g,m,y);if("[object RegExp]"===w)return u(g,m,y);if("[object Map]"===w)return s(g,m,y);if("[object Set]"===w)return d(g,m,y);if("[object Object]"===w)return"function"!=typeof g.then&&"function"!=typeof m.then&&l(g,m,y);if("[object URL]"===w)return p(g,m,y);if("[object Error]"===w)return i(g,m,y);if("[object Arguments]"===w)return l(g,m,y);if(L[w])return h(g,m,y);if("[object ArrayBuffer]"===w)return e(g,m,y);if("[object DataView]"===w)return n(g,m,y);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return c(g,m,y);if(f){let e=f[w];if(!e){let t=null!=g?g[Symbol.toStringTag]:void 0;t&&(e=f[t])}if(e)return e(g,m,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:b,areArraysEqual:n?M:v,areDataViewsEqual:w,areDatesEqual:k,areErrorsEqual:E,areFunctionsEqual:A,areMapsEqual:n?d(_,M):_,areNumbersEqual:g,areObjectsEqual:n?M:S,arePrimitiveWrappersEqual:C,areRegExpsEqual:O,areSetsEqual:n?d(T,M):T,areTypedArraysEqual:n?d(N,M):N,areUrlsEqual:I,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=h(r.areArraysEqual),t=h(r.areMapsEqual),n=h(r.areObjectsEqual),i=h(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}(e)),s=n?n(o):function(e,t,n,r,i,s,a){return o(e,t,a)};return function({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(o,s){let{cache:a=e?new WeakMap:void 0,meta:l}=n();return t(o,s,{cache:a,equals:r,meta:l,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let o={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,o)}}({circular:t,comparator:o,createState:r,equals:s,strict:i})}j({strict:!0}),j({circular:!0}),j({circular:!0,strict:!0}),j({createInternalComparator:()=>g}),j({strict:!0,createInternalComparator:()=>g}),j({circular:!0,createInternalComparator:()=>g}),j({circular:!0,createInternalComparator:()=>g,strict:!0});var B=n(8828),P=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})}},$=e=>{let{contentComponent:t}=e,n=(0,o.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getServerSnapshot);return(0,s.jsx)(s.Fragment,{children:Object.values(n)})},F=class extends r.Component{componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=function(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(e,n){t={...t,[e]:i.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch(e){}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:P(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&(0,s.jsx)($,{contentComponent:e.contentComponent})]})}constructor(e){super(e),this.editorContentRef=r.createRef()}},U=(0,r.forwardRef)((e,t)=>{let n=r.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return r.createElement(F,{key:n,innerRef:t,...e})}),H=r.memo(U),q="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,W=class{getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>
3{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}};function K(e){var t;let[n]=(0,r.useState)(()=>new W(e.editor)),i=(0,B.useSyncExternalStoreWithSelector)(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:z);return q(()=>n.watch(e.editor),[e.editor,n]),(0,r.useDebugValue)(i),i}var Y="undefined"==typeof window,V=Y||!!("undefined"!=typeof window&&window.next),J=class e{setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=null==e||e;return Y?t=!1:V&&void 0===e&&(t=!1),t?this.createEditor():null}createEditor(){var e=this;let t={...this.options.current,onBeforeCreate:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onBeforeCreate)?void 0:n.call(t,...i)},onBlur:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onBlur)?void 0:n.call(t,...i)},onCreate:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onCreate)?void 0:n.call(t,...i)},onDestroy:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onDestroy)?void 0:n.call(t,...i)},onFocus:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onFocus)?void 0:n.call(t,...i)},onSelectionUpdate:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onSelectionUpdate)?void 0:n.call(t,...i)},onTransaction:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onTransaction)?void 0:n.call(t,...i)},onUpdate:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onUpdate)?void 0:n.call(t,...i)},onContentError:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onContentError)?void 0:n.call(t,...i)},onDrop:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onDrop)?void 0:n.call(t,...i)},onPaste:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onPaste)?void 0:n.call(t,...i)},onDelete:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onDelete)?void 0:n.call(t,...i)},onMount:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onMount)?void 0:n.call(t,...i)},onUnmount:function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return null==(n=(t=e.options.current).onUnmount)?void 0:n.call(t,...i)}};return new a.KE(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var r;return e===(null==(r=t.extensions)?void 0:r[n])}):e[n]===t[n]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){
3if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}};function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);n.current=e;let[i]=(0,r.useState)(()=>new J(n)),s=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,r.useDebugValue)(s),(0,r.useEffect)(i.onRender(t)),K({editor:s,selector:t=>{let{transactionNumber:n}=t;return!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===n?0:n+1}}),s}var Z=(0,r.createContext)({editor:null});Z.Consumer,a.Db,a.Yv;var X=(0,r.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});function Q(e){let{children:t,...n}=e,i="editor"in n?n.editor:n.instance;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let o=(0,r.useMemo)(()=>({editor:i}),[i]),a=(0,r.useMemo)(()=>({editor:i}),[i]);return(0,s.jsx)(Z.Provider,{value:a,children:(0,s.jsx)(X.Provider,{value:o,children:t})})}function ee(e){let{...t}=e,{editor:n}=(0,r.useContext)(X);return(0,s.jsx)(H,{editor:n,...t})}X.displayName="TiptapContext",Q.displayName="Tiptap",ee.displayName="Tiptap.Content",Object.assign(Q,{Content:ee})},4538:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(12115);let i=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0};function o(e){let t=r.useRef(void 0);return n=>{let r=e(n);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return i(e,t);let n=e[Symbol.iterator](),r=t[Symbol.iterator](),o=n.next(),s=r.next();for(;!o.done&&!s.done;){if(!Object.is(o.value,s.value))return!1;o=n.next(),s=r.next()}return!!o.done&&!!s.done}return i({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,r)?t.current=r:t.current}}},5789:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},5937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},6132:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},6613:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
3],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]])},7125:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},7842:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]])},8198:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},8618:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var r=n(76908).bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""})},8624:(e,t,n)=>{"use strict";n.d(t,{Q1:()=>a,ay:()=>l,xJ:()=>o});var r=n(76908),i=(e,t=0)=>{let n=[];return!e.children.length||t>20||Array.from(e.children).forEach(e=>{"SPAN"===e.tagName?n.push(e):e.children.length&&n.push(...i(e,t+1))}),n},o=r.CU.create({name:"textStyle",priority:101,addOptions:()=>({HTMLAttributes:{},mergeNestedSpanStyles:!0}),parseHTML(){return[{tag:"span",consuming:!1,getAttrs:e=>!!e.hasAttribute("style")&&(this.options.mergeNestedSpanStyles&&(e=>{if(!e.children.length)return;let t=i(e);t&&t.forEach(e=>{var t,n;let r=e.getAttribute("style"),i=null==(n=null==(t=e.parentElement)?void 0:t.closest("span"))?void 0:n.getAttribute("style");e.setAttribute("style",`${i};${r}`)})})(e),{})}]},renderHTML({HTMLAttributes:e}){return["span",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleTextStyle:e=>({commands:t})=>t.toggleMark(this.name,e),removeEmptyTextStyle:()=>({tr:e})=>{let{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(t,n)=>{if(t.isTextblock)return!0;t.marks.filter(e=>e.type===this.type).some(e=>Object.values(e.attrs).some(e=>!!e))||e.removeMark(n,n+t.nodeSize,this.type)}),!0}}}}),s=r.YY.create({name:"backgroundColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:e=>{var t;let n=null!=(t=(0,r.hs)(e,"background-color"))?t:e.style.backgroundColor;return null==n?void 0:n.replace(/['"]+/g,"")},renderHTML:e=>e.backgroundColor?{style:`background-color: ${e.backgroundColor}`}:{}}}}]},addCommands:()=>({setBackgroundColor:e=>({chain:t})=>t().setMark("textStyle",{backgroundColor:e}).run(),unsetBackgroundColor:()=>({chain:e})=>e().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()})}),a=r.YY.create({name:"color",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;let n=null!=(t=(0,r.hs)(e,"color"))?t:e.style.color;return null==n?void 0:n.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands:()=>({setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()})}),l=r.YY.create({name:"fontFamily",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>{var t;return null!=(t=(0,r.hs)(e,"font-family"))?t:e.style.fontFamily},renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily}`}:{}}}}]},addCommands:()=>({setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()})}),c=r.YY.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>{var t;return null!=(t=(0,r.hs)(e,"font-size"))?t:e.style.fontSize},renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),u=r.YY.create({name:"lineHeight",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:e=>{var t;return null!=(t=(0,r.hs)(e,"line-height"))?t:e.style.lineHeight},renderHTML:e=>e.lineHeight?{style:`line-height: ${e.lineHeight}`}:{}}}}]},addCommands:()=>({setLineHeight:e=>({chain:t})=>t().setMark("textStyle",{lineHeight:e}).run(),unsetLineHeight:()=>({chain:e})=>e().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()})});r.YY.create({name:"textStyleKit",addExtensions(){let e=[];return!1!==this.options.backgroundColor&&e.push(s.configure(this.options.backgroundColor)),!1!==this.options.color&&e.push(a.configure(this.options.color)),!1!==this.options.fontFamily&&e.push(l.configure(this.options.fontFamily)),!1!==this.options.fontSize&&e.push(c.configure(this.options.fontSize)),!1!==this.options.lineHeight&&e.push(u.configure(this.options.lineHeight)),!1!==this.options.textStyle&&e.push(o.configure(this.options.textStyle)),e}})}
3,8828:(e,t,n)=>{"use strict";e.exports=n(83654)},9602:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},9817:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(91960),i=n(74844),o=n(12115);(0,i.hY)();var s={left:{label:"Left",icon:r.TU},center:{label:"Center",icon:r.xd},right:{label:"Right",icon:r.GY},justify:{label:"Justify",icon:r.mT}},a=e=>{var t;let n=[];return(null==e?void 0:e.textAlign)!==!1&&((null==(t=null==e?void 0:e.textAlign)?void 0:t.alignments)?((null==e?void 0:e.textAlign.alignments.includes("left"))&&n.push("left"),(null==e?void 0:e.textAlign.alignments.includes("center"))&&n.push("center"),(null==e?void 0:e.textAlign.alignments.includes("right"))&&n.push("right"),(null==e?void 0:e.textAlign.alignments.includes("justify"))&&n.push("justify")):n=["left","center","right","justify"]),(0,o.useMemo)(()=>n.map(e=>({value:e,label:s[e].label,icon:s[e].icon})),[n])}},10831:(e,t,n)=>{"use strict";n.d(t,{$A:()=>ts,Bp:()=>e9,cD:()=>eG,gL:()=>to,k_:()=>eX,rV:()=>eQ,sx:()=>ti,ti:()=>td,yu:()=>eZ,zY:()=>e7});var r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,b,v,w,k,E,A,_,S,M,C,O,T,N,I,R,L,D,z,j,B,P,$,F,U,H,q,W,K,Y,V,J,G,Z,X,Q,ee,et,en,er,ei,eo,es,ea,el,ec,eu,ed,eh,ep,ef,eg,em,ey,eb=n(65344),ev=n(27628),ew=n(90781),ex=Object.create,ek=Object.defineProperty,eE=Object.defineProperties,eA=Object.getOwnPropertyDescriptor,e_=Object.getOwnPropertyDescriptors,eS=Object.getOwnPropertySymbols,eM=Object.prototype.hasOwnProperty,eC=Object.prototype.propertyIsEnumerable,eO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),eT=e=>{throw TypeError(e)},eN=(e,t,n)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eI=(e,t)=>{for(var n in t||(t={}))eM.call(t,n)&&eN(e,n,t[n]);if(eS)for(var n of eS(t))eC.call(t,n)&&eN(e,n,t[n]);return e},eR=(e,t)=>eE(e,e_(t)),eL=(e,t)=>ek(e,"name",{value:t,configurable:!0}),eD=(e,t)=>{var n={};for(var r in e)eM.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eS)for(var r of eS(e))0>t.indexOf(r)&&eC.call(e,r)&&(n[r]=e[r]);return n},ez=e=>{var t;return[,,,ex(null!=(t=null==e?void 0:e[eO("metadata")])?t:null)]},ej=["class","method","getter","setter","accessor","field","value","get","set"],eB=e=>void 0!==e&&"function"!=typeof e?eT("Function expected"):e,eP=(e,t,n,r,i)=>({kind:ej[e],name:t,metadata:r,addInitializer:e=>n._?eT("Already initialized"):i.push(eB(e||null))}),e$=(e,t)=>eN(t,eO("metadata"),e[3]),eF=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},eU=(e,t,n,r,i,o)=>{var s,a,l,c,u,d=7&t,h=!!(8&t),p=!!(16&t),f=d>3?e.length+1:d?h?1:2:0,g=ej[d+5],m=d>3&&(e[f-1]=[]),y=e[f]||(e[f]=[]),b=d&&(p||h||(i=i.prototype),d<5&&(d>3||!p)&&eA(d<4?i:{get[n](){return eW(this,o)},set[n](x){return eY(this,o,x)}},n));d?p&&d<4&&eL(o,(d>2?"set ":d>1?"get ":"")+n):eL(i,n);for(var v=r.length-1;v>=0;v--)c=eP(d,n,l={},e[3],y),d&&(c.static=h,c.private=p,u=c.access={has:p?e=>eq(i,e):e=>n in e},3^d&&(u.get=p?e=>(1^d?eW:eV)(e,i,4^d?o:b.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>eY(e,i,t,4^d?o:b.set):(e,t)=>e[n]=t)),a=(0,r[v])(d?d<4?p?o:b[g]:d>4?void 0:{get:b.get,set:b.set}:i,c),l._=1,4^d||void 0===a?eB(a)&&(d>4?m.unshift(a):d?p?o=a:b[g]=a:i=a):"object"!=typeof a||null===a?eT("Object expected"):(eB(s=a.get)&&(b.get=s),eB(s=a.set)&&(b.set=s),eB(s=a.init)&&m.unshift(s));return d||e$(e,i),b&&ek(i,n,b),p?4^d?o:b:i},eH=(e,t,n)=>t.has(e)||eT("Cannot "+n),eq=(e,t)=>Object(t)!==t?eT('Cannot use the "in" operator on this value'):e.has(t),eW=(e,t,n)=>(eH(e,t,"read from private field"),n?n.call(e):t.get(e)),eK=(e,t,n)=>t.has(e)?eT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),eY=(e,t,n,r)=>(eH(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),eV=(e,t,n)=>(eH(e,t,"access private method"),n);function eJ(e,t){return{plugin:e,options:t}}function eG(e){return t=>eJ(e,t)}function eZ(e){return"function"==typeof e?{plugin:e,options:void 0}:e}r=[eb.Kh];var eX=class{constructor(e,t){this.manager=e,this.options=t,eK(this,o,eF(i,8,this,!1)),eF(i,11,this),eK(this,s,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return(0,ev.O8)(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let t=(0,ev.QZ)(e.bind(this));return eW(this,s).add(t),t}
3destroy(){eW(this,s).forEach(e=>e())}static configure(e){return eJ(this,e)}};i=ez(null),o=new WeakMap,s=new WeakMap,eU(i,4,"disabled",r,eX,o),e$(i,eX);var eQ=class extends eX{},e0=class{constructor(e){this.manager=e,this.instances=new Map,eK(this,a,[])}get values(){return Array.from(this.instances.values())}set values(e){let t=e.map(eZ).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(let e of eW(this,a))if(!n.includes(e)){if(e.prototype instanceof eQ)continue;this.unregister(e)}for(let{plugin:e,options:n}of t)this.register(e,n);eY(this,a,n)}get(e){return this.instances.get(e)}register(e,t){let n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;let r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){let t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(let e of this.instances.values())e.destroy();this.instances.clear()}};function e1(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}a=new WeakMap;var e2=[],e4=class extends eX{constructor(e){super(e),eK(this,l),eK(this,c),this.computeCollisions=this.computeCollisions.bind(this),eY(this,c,(0,ev.vP)(e2)),this.destroy=(0,eb.zb)(()=>{let e=this.computeCollisions(),t=(0,ev.O8)(()=>this.manager.dragOperation.position.current);if(e!==e2){let e=eW(this,l);if(eY(this,l,t),e&&t.x==e.x&&t.y==e.y)return}else eY(this,l,void 0);eW(this,c).value=e},()=>{let{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){(0,ev.O8)(()=>{e?eW(this,c).value=this.computeCollisions():eY(this,l,void 0)})}computeCollisions(e,t){let{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:s}=r;if(!s.initialized||!o)return e2;let a=[],l=[];for(let o of null!=e?e:n.droppables){if(o.disabled||i&&!o.accepts(i))continue;let e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;let n=(0,ev.O8)(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),a.push(n))}return 0===l.length?e2:(a.sort(e1),a)}get collisions(){return eW(this,c).value}};l=new WeakMap,c=new WeakMap;var e5=class{constructor(){this.registry=new Map}addEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){let{registry:n}=this,r=n.get(e);if(r)for(let e of r)e(...t)}},e3=class extends e5{constructor(e){super(),this.manager=e}dispatch(e,t){let n=[t,this.manager];super.dispatch(e,...n)}};function e6(e,t=!0){let n=!1;return eR(eI({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var e8=class extends eQ{constructor(e){super(e);let t=[];this.destroy=(0,eb.zb)(()=>{let{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{let n,{collisionObserver:r,monitor:i}=e,{collisions:o}=r;if(r.isDisabled())return;let s=e6({collisions:o});if(i.dispatch("collision",s),s.defaultPrevented||(n=t,o.map(({id:e})=>e).join("")===n.map(({id:e})=>e).join("")))return;t=o;let[a]=o;(0,ev.O8)(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},e7=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(e7||{}),e9=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(e9||{});m=[eb.Kh],g=[eb.un],f=[eb.un],p=[eb.un],h=[eb.un],d=[eb.un],u=[eb.un];var te=class{constructor(){eF(y,5,this),eK(this,b,eF(y,8,this,"idle")),eF(y,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){let{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};y=ez(null),b=new WeakMap,eU(y,4,"value",m,te,b),eU(y,2,"current",g,te),eU(y,2,"idle",f,te),eU(y,2,"initializing",p,te),eU(y,2,"initialized",h,te),eU(y,2,"dragging",d,te),eU(y,2,"dropped",u,te),e$(y,te);var tt=class{constructor(e){this.manager=e}setDragSource(e){let{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return(0,ev.O8)(()=>{let{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;let r=e6({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return(0,ev.O8)(()=>{let{dragOperation:t}=this.manager;if(null!=e.source&&this.setDragSource(e.source),!t.source)throw Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw Error("Cannot start a drag operation while another is active");let n=new AbortController,{event:r,coordinates:i}=e;(0,ev.vA)(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});let o=e6({operation:t.snapshot()});return(this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented)?(t.reset(),n.abort()):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>
3{if(n.signal.aborted)return;let{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))})),n})}move(e){return(0,ev.O8)(()=>{var t,n;let{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;let s=e6({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",s),queueMicrotask(()=>{var t,n,i,o,a;if(s.defaultPrevented)return;let l=null!=(a=e.to)?a:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return(0,ev.O8)(()=>{var t,n;let r,{dragOperation:i}=this.manager,{controller:o}=i;if(!o||o.signal.aborted)return;o.abort();let s=()=>{this.manager.renderer.rendering.then(()=>{i.status.set("dropped");let e=(0,ev.O8)(()=>{var e;return(null==(e=i.source)?void 0:e.status)==="dropping"}),t=()=>{i.controller===o&&(i.controller=void 0),i.reset()};if(e){let{source:e}=i,n=(0,ev.QZ)(()=>{(null==e?void 0:e.status)==="idle"&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};i.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:i.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{let e={resume:()=>{},abort:()=>{}};return r=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),r?r.then(s).catch(()=>i.reset()):s()})}};E=[eb.Kh],k=[eb.Kh],w=[eb.Kh],v=[eb.Kh];var tn=class{constructor(e,t){eK(this,_,eF(A,8,this)),eF(A,11,this),eK(this,S,eF(A,12,this)),eF(A,15,this),eK(this,M,eF(A,16,this)),eF(A,19,this),eK(this,C,eF(A,20,this)),eF(A,23,this);let{effects:n,id:r,data:i={},disabled:o=!1,register:s=!0}=e;this.manager=t,this.id=r,this.data=i,this.disabled=o,this.effects=()=>{var e;return[()=>{let{id:e,manager:t}=this;if(e!==r)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&s&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};A=ez(null),_=new WeakMap,S=new WeakMap,M=new WeakMap,C=new WeakMap,eU(A,4,"manager",E,tn,_),eU(A,4,"id",k,tn,S),eU(A,4,"data",w,tn,M),eU(A,4,"disabled",v,tn,C),e$(A,tn);var tr=class{constructor(){this.map=(0,ev.vP)(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{let n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r){let e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}let o=new Map(n);o.set(e,t),this.map.value=o;let s=(0,eb.zb)(...t.effects());return this.cleanupFunctions.set(t,s),i},this.unregister=(e,t)=>{let n=this.map.peek();if(n.get(e)!==t)return;let r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);let i=new Map(n);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(let e of this){let t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},ti=class extends(D=tn,L=[eb.Kh],R=[eb.Kh],I=[eb.Kh],N=[eb.un],T=[eb.un],O=[eb.un],D){constructor(e,t){var{modifiers:n,type:r,sensors:i}=e,o=eD(e,["modifiers","type","sensors"]);super(o,t),eF(z,5,this),eK(this,j,eF(z,8,this)),eF(z,11,this),eK(this,B,eF(z,12,this)),eF(z,15,this),eK(this,P,eF(z,16,this,this.isDragSource?"dragging":"idle")),eF(z,19,this),this.type=r,this.sensors=i,this.modifiers=n,this.alignment=o.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};z=ez(D),j=new WeakMap,B=new WeakMap,P=new WeakMap,eU(z,4,"type",L,ti,j),eU(z,4,"modifiers",R,ti,B),eU(z,4,"status",I,ti,P),eU(z,2,"isDropping",N,ti),eU(z,2,"isDragging",T,ti),eU(z,2,"isDragSource",O,ti),e$(z,ti);
3var to=class extends(K=tn,W=[eb.Kh],q=[eb.Kh],H=[eb.Kh],U=[eb.Kh],F=[eb.Kh],$=[eb.un],K){constructor(e,t){var{accept:n,collisionDetector:r,collisionPriority:i,type:o}=e;super(eD(e,["accept","collisionDetector","collisionPriority","type"]),t),eF(Y,5,this),eK(this,V,eF(Y,8,this)),eF(Y,11,this),eK(this,J,eF(Y,12,this)),eF(Y,15,this),eK(this,G,eF(Y,16,this)),eF(Y,19,this),eK(this,Z,eF(Y,20,this)),eF(Y,23,this),eK(this,X,eF(Y,24,this)),eF(Y,27,this),this.accept=n,this.collisionDetector=r,this.collisionPriority=i,this.type=o}accepts(e){let{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Y=ez(K),V=new WeakMap,J=new WeakMap,G=new WeakMap,Z=new WeakMap,X=new WeakMap,eU(Y,4,"accept",W,to,V),eU(Y,4,"type",q,to,J),eU(Y,4,"collisionDetector",H,to,G),eU(Y,4,"collisionPriority",U,to,Z),eU(Y,4,"shape",F,to,X),eU(Y,2,"isDropTarget",$,to),e$(Y,to);var ts=class extends eX{constructor(e,t){super(e,t),this.manager=e,this.options=t}},ta=class extends eX{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},tl=class{constructor(e){this.draggables=new tr,this.droppables=new tr,this.plugins=new e0(e),this.sensors=new e0(e),this.modifiers=new e0(e)}register(e,t){if(e instanceof ti)return this.draggables.register(e.id,e);if(e instanceof to)return this.droppables.register(e.id,e);if(e.prototype instanceof ta)return this.modifiers.register(e,t);if(e.prototype instanceof ts)return this.sensors.register(e,t);if(e.prototype instanceof eX)return this.plugins.register(e,t);throw Error("Invalid instance type")}unregister(e){if(e instanceof tn)return e instanceof ti?this.draggables.unregister(e.id,e):e instanceof to?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof ta)return this.modifiers.unregister(e);if(e.prototype instanceof ts)return this.sensors.unregister(e);if(e.prototype instanceof eX)return this.plugins.unregister(e);throw Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};ea=[eb.un],es=[eb.Kh],eo=[eb.Kh],ei=[eb.Kh],er=[eb.Kh],en=[eb.Kh],et=[eb.un],ee=[eb.un],Q=[eb.un];var tc=class{constructor(e){eF(ed,5,this),eK(this,el),eK(this,ec),eK(this,eu,new eb.Wf(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new te,eK(this,eh,eF(ed,8,this,!1)),eF(ed,11,this),eK(this,ep,eF(ed,12,this,null)),eF(ed,15,this),eK(this,ef,eF(ed,16,this,null)),eF(ed,19,this),eK(this,eg,eF(ed,20,this,null)),eF(ed,23,this),eK(this,em,eF(ed,24,this,[])),eF(ed,27,this),this.position=new ew.yX({x:0,y:0}),eK(this,ey,{x:0,y:0}),eY(this,el,e)}get shape(){let{current:e,initial:t,previous:n}=eW(this,eu);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?eW(this,eu).current=e:eW(this,eu).reset()}get source(){var e;let t=this.sourceIdentifier;if(null==t)return null;let n=eW(this,el).registry.draggables.get(t);return n&&eY(this,ec,n),null!=(e=null!=n?n:eW(this,ec))?e:null}get target(){var e;let t=this.targetIdentifier;return null!=t&&null!=(e=eW(this,el).registry.droppables.get(t))?e:null}get transform(){let{x:e,y:t}=this.position.delta,n={x:e,y:t};for(let e of this.modifiers)n=e.apply(eR(eI({},this.snapshot()),{transform:n}));return eY(this,ey,n),n}snapshot(){return(0,ev.O8)(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:eW(this,ey),shape:this.shape?(0,eb.P9)(this.shape):null,position:(0,eb.P9)(this.position),status:(0,eb.P9)(this.status),canceled:this.canceled}))}reset(){(0,ev.vA)(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,eW(this,eu).reset(),this.position.reset({x:0,y:0}),eY(this,ey,{x:0,y:0}),this.modifiers=[]})}};ed=ez(null),el=new WeakMap,ec=new WeakMap,eu=new WeakMap,eh=new WeakMap,ep=new WeakMap,ef=new WeakMap,eg=new WeakMap,em=new WeakMap,ey=new WeakMap,eU(ed,2,"shape",ea,tc),eU(ed,4,"canceled",es,tc,eh),eU(ed,4,"activatorEvent",eo,tc,ep),eU(ed,4,"sourceIdentifier",ei,tc,ef),eU(ed,4,"targetIdentifier",er,tc,eg),eU(ed,4,"modifiers",en,tc,em),eU(ed,2,"source",et,tc),eU(ed,2,"target",ee,tc),eU(ed,2,"transform",Q,tc),e$(ed,tc);var tu={get rendering(){return Promise.resolve()}},td=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}
3),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};let{plugins:t=[],sensors:n=[],modifiers:r=[],renderer:i=tu}=null!=e?e:{},o=new e3(this),s=new tl(this);this.registry=s,this.monitor=o,this.renderer=i,this.actions=new tt(this),this.dragOperation=new tc(this),this.collisionObserver=new e4(this),this.plugins=[e8,...t],this.modifiers=r,this.sensors=n;let{destroy:a}=this,l=(0,eb.zb)(()=>{var e,t,n;let r=(0,ev.O8)(()=>this.dragOperation.modifiers),i=this.modifiers;r!==i&&r.forEach(e=>e.destroy()),this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{let{plugin:t,options:n}=eZ(e);return new t(this,n)}))?n:i});this.destroy=()=>{l(),a()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}}},11002:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]])},11503:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]])},11988:(e,t,n)=>{"use strict";n.d(t,{V6:()=>o,y$:()=>s});var r=n(10831),i=n(90781),o=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:o}=t;return t.shape&&t.shape.containsPoint(n)?{id:o,value:1/i.bR.distance(t.shape.center,n),type:r.Bp.PointerIntersection,priority:r.zY.High}:null})(e))?t:(({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;let o=n.current.intersectionArea(t.shape);if(o){let{position:s}=e,a=i.bR.distance(t.shape.center,s.current),l=o/(n.current.area+t.shape.area-o);return{id:t.id,value:l/a,type:r.Bp.ShapeIntersection,priority:r.zY.Normal}}return null})(e)},s=e=>{let{dragOperation:t,droppable:n}=e,{shape:o,position:s}=t;if(!n.shape)return null;let a=o?i.M_.from(o.current.boundingRectangle).corners:void 0,l=i.M_.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+i.bR.distance(i.bR.from(t),null!=(r=null==a?void 0:a[n])?r:s.current)},0);return{id:n.id,value:1/(l/4),type:r.Bp.Collision,priority:r.zY.Normal}}},12108:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},12181:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},12751:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(76908),i=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,o=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,s=r.CU.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||(0,r.hs)(e,"background-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",(0,r.KV)(this.options.HTMLAttributes,e),0]},renderMarkdown:(e,t)=>`==${t.renderChildren(e)}==`,parseMarkdown:(e,t)=>t.applyMark("highlight",t.parseInline(e.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:e=>e.indexOf("=="),tokenize(e,t,n){let r=/^(==)([^=]+)(==)/.exec(e);if(r){let e=r[2].trim(),t=n.inlineTokens(e);return{type:"highlight",raw:r[0],text:e,tokens:t}}}},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}}
3,addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[(0,r.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type})]}})},14122:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},14806:(e,t,n)=>{"use strict";e.exports=n(30125)},15239:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(54652),i=n.n(r)},15376:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),s=o[0],a=o[1],c=new i((s+a)*3/4-a),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(function(e,t,r){for(var i,o=[],s=t;s<r;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(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,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(r,i),l=s(o),c=l.write(r,i);return c!==o&&(l=l.slice(0,c)),l}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(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return a.from(u,t,n);var f=function(e){if(a.isBuffer(e)){var t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,517 bytes, line 3
3if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),s(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,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,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(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 n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,o,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=N[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,o=t,s=n,0===o&&s===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){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(T(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),T(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 n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},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(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(T(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=p,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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.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="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(T(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===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n),d=0;d<l;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:+(s<o)},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}var h=r,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var f="",g=0;g<p;)f+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return f}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,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(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t*=1,n>>>=0,o||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function A(e,t,n,r,o){return t*=1,n>>>=0,o||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,c,u,d,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a,l=parseInt(t.substr(2*s,2),16);if((a=l)!=a)break;e[n+s]=l}return s}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,O(S(e,this.length-i),this,i,o);case"ascii":return s=t,a=n,O(M(e),this,s,a);case"latin1":case"binary":return function(e,t,n,r){return O(M(t),e,n,r)}(this,e,t,n);case"base64":return l=t,c=n,O(C(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=n,O(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-u),this,u,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(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||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(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||v(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||v(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,s=0;for(this[t]=255&e;++s<n&&(o*=256);)this[t+s]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||w(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,n){return e*=1,t>>>=0,n||w(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,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||w(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,n){return e*=1,t>>>=0,n||w(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,n){return E(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return A(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return A(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),l=s.length;
3if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var _=/[^+/0-9A-Za-z-_]/g;function S(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function M(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var N=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=5960464477539062e-23*(23===i),p=r?0:o-1,f=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//",e.exports=r(72)}()},16485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},17181:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},17666:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},17787:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>eB,vL:()=>s,uN:()=>es,AN:()=>ed,fp:()=>L,y$:()=>D,Sj:()=>$,Vy:()=>I,sl:()=>U,fF:()=>eU,PM:()=>eF,zM:()=>eq,MS:()=>_,FR:()=>S});var r,i,o,s,a,l,c,u,d,h,p=n(12115),f=n(47650),g=n(27587);let m={display:"none"};function y(e){let{id:t,value:n}=e;return p.createElement("div",{id:t,style:m},n)}function b(e){let{id:t,announcement:n,ariaLiveType:r="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":r,"aria-atomic":!0},n)}let v=(0,p.createContext)(null),w={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 "},k={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function E(e){let{announcements:t=k,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=w}=e,{announce:o,announcement:s}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=(0,g.YG)("DndLiveRegion"),[l,c]=(0,p.useState)(!1);(0,p.useEffect)(()=>{c(!0)},[]);var u=(0,p.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;
3o(t.onDragCancel({active:n,over:r}))}}),[o,t]);let d=(0,p.useContext)(v);if((0,p.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(u)},[u,d]),!l)return null;let h=p.createElement(p.Fragment,null,p.createElement(y,{id:r,value:i.draggable}),p.createElement(b,{id:a,announcement:s}));return n?(0,f.createPortal)(h,n):h}function A(){}function _(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function S(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];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"}(r||(r={}));let M=Object.freeze({x:0,y:0});function C(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function O(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function T(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function N(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function I(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function R(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let L=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=R(t,t.left,t.top),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=C(R(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(O)},D=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=N(t),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=N(r),s=Number((i.reduce((e,t,r)=>e+C(n[r],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(O)},z=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=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(r<i&&n<o){let s=t.width*t.height,a=e.width*e.height,l=(i-r)*(o-n);return Number((l/(s+a-l)).toFixed(4))}return 0}(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(T)};function j(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:M}let B=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1),P={ignoreTransform:!1};function $(e,t){void 0===t&&(t=P);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,g.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(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}(t);if(!r)return e;let{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}let{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function F(e){return $(e,{ignoreTransform:!0})}function U(e,t){let n=[];return e?function r(i){var o;if(null!=t&&n.length>=t||!i)return n;if((0,g.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,g.sb)(i)||(0,g.xZ)(i)||n.includes(i))return n;let s=(0,g.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,g.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,s)&&n.push(i),void 0===(o=s)&&(o=(0,g.zk)(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode)}(e):n}function H(e){let[t]=U(e,1);return null!=t?t:null}function q(e){return g.Sw&&e?(0,g.l6)(e)?e:(0,g.Ll)(e)?(0,g.wz)(e)||e===(0,g.TW)(e).scrollingElement?window:(0,g.sb)(e)?e:null:null:null}function W(e){return(0,g.l6)(e)?e.scrollX:e.scrollLeft}function K(e){return(0,g.l6)(e)?e.scrollY:e.scrollTop}function Y(e){return{x:W(e),y:K(e)}}function V(e){return!!g.Sw&&!!e&&e===document.scrollingElement}function J(e){let t={x:0,y:0},n=V(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));let G={x:.2,y:.2};function Z(e){return e.reduce((e,t)=>
3(0,g.WQ)(e,Y(t)),M)}let X=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+W(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+K(t),0)}]];class Q{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 n=U(t),r=Z(n);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,X))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),s=r[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ee{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,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function et(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function en(e){e.preventDefault()}function er(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"}(o||(o={})),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"}(s||(s={}));let ei={start:[s.Space,s.Enter],cancel:[s.Esc],end:[s.Space,s.Enter,s.Tab]},eo=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case s.Right:return{...n,x:n.x+25};case s.Left:return{...n,x:n.x-25};case s.Down:return{...n,y:n.y+25};case s.Up:return{...n,y:n.y-25}}};class es{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 ee((0,g.TW)(t)),this.windowListeners=new ee((0,g.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=$),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);H(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(M)}handleKeyDown(e){if((0,g.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ei,coordinateGetter:o=eo,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);let{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:M;this.referenceCoordinates||(this.referenceCoordinates=u);let d=o(e,{active:t,context:n.current,currentCoordinates:u});if(d){let t=(0,g.Re)(d,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:l,isLeft:c,isBottom:u,maxScroll:h,minScroll:p}=J(n),f=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:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(i===s.Right?f.right-f.width/2:f.right,Math.max(i===s.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(i===s.Down?f.bottom-f.height/2:f.bottom,Math.max(i===s.Down?f.top:f.top+f.height/2,d.y))},m=i===s.Right&&!l||i===s.Left&&!c,y=i===s.Down&&!u||i===s.Up&&!o;if(m&&g.x!==d.x){let e=n.scrollLeft+t.x,o=i===s.Right&&e<=h.x||i===s.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});o?r.x=n.scrollLeft-e:r.x=i===s.Right?n.scrollLeft-h.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(y&&g.y!==d.y){let e=n.scrollTop+t.y,o=i===s.Down&&e<=h.y||i===s.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});o?r.y=n.scrollTop-e:r.y=i===s.Down?n.scrollTop-h.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,g.WQ)((0,g.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(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 ea(e){return!!(e&&"distance"in e)}function el(e){return!!(e&&"delay"in e)}es.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ei,onActivation:i}=t,{active:o}=n,{code:s}=e.nativeEvent;
3if(r.start.includes(s)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ec{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,g.zk)(e);return e instanceof t?e:(0,g.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,g.TW)(o),this.documentListeners=new ee(this.document),this.listeners=new ee(n),this.windowListeners=new ee((0,g.zk)(o)),this.initialCoordinates=null!=(r=(0,g.e_)(i))?r:M,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:n}}}=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(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,en),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,en),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(el(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ea(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:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!r)return;let a=null!=(t=(0,g.e_)(e))?t:M,l=(0,g.Re)(r,a);
3if(!n&&s){if(ea(s)){if(null!=s.tolerance&&et(l,s.tolerance))return this.handleCancel();if(et(l,s.distance))return this.handleStart()}return el(s)&&et(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}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===s.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends ec{constructor(e){let{event:t}=e;super(e,eu,(0,g.TW)(t.target))}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let eh={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(a||(a={}));class ep extends ec{constructor(e){super(e,eh,(0,g.TW)(e.event.target))}}ep.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==a.RightClick&&(null==r||r({event:n}),!0)}}];let ef={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eg extends ec{constructor(e){super(e,ef)}static setup(){return window.addEventListener(ef.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ef.move.name,e)};function e(){}}}eg.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(l||(l={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(c||(c={}));let em={x:{[i.Backward]:!1,[i.Forward]:!1},y:{[i.Backward]:!1,[i.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(u||(u={})),(d||(d={})).Optimized="optimized";let ey=new Map;function eb(e,t){return(0,g.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ev(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),i=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ew(e){return new Q($(e),e)}function ex(e,t,n){void 0===t&&(t=ew);let[r,i]=(0,p.useState)(null);function o(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}let s=function(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),i=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),a=ev({callback:o});return(0,g.Es)(()=>{o(),e?(null==a||a.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==s||s.disconnect())},[e]),r}let ek=[];function eE(e,t){void 0===t&&(t=[]);let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n.current=null},t),(0,p.useEffect)(()=>{let t=e!==M;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,g.Re)(e,n.current):M}function eA(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let e_=[],eS=[{sensor:ed,options:{}},{sensor:es,options:{}}],eM={current:{}},eC={draggable:{measure:F},droppable:{measure:F,strategy:u.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:$}};class eO 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,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eO,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eC,measureDroppableContainers:A,windowRect:null,measuringScheduled:!1},eN={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A,draggableNodes:new Map,over:null,measureDroppableContainers:A},eI=(0,p.createContext)(eN),eR=(0,p.createContext)(eT);function eL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eO}}}function eD(e,t){switch(t.type){case r.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case r.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 r.DragEnd:case r.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case r.RegisterDroppable:{let{element:n}=t,{id:r}
3=n,i=new eO(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case r.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let s=new eO(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case r.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new eO(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function ez(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,p.useContext)(eI),o=(0,g.ZC)(r),s=(0,g.ZC)(null==n?void 0:n.id);return(0,p.useEffect)(()=>{if(!t&&!r&&o&&null!=s){if(!(0,g.kx)(o)||document.activeElement===o.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,g.ag)(e);if(t){t.focus();break}}})}},[r,t,i,s,o]),null}let ej=(0,p.createContext)({...M,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let eB=(0,p.memo)(function(e){var t,n,o,s,a,d;let{id:m,accessibility:y,autoScroll:b=!0,children:w,sensors:k=eS,collisionDetection:A=z,measuring:_,modifiers:S,...C}=e,[O,T]=(0,p.useReducer)(eD,void 0,eL),[N,R]=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:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[L,D]=(0,p.useState)(h.Uninitialized),P=L===h.Initialized,{draggable:{active:F,nodes:W,translate:K},droppable:{containers:X}}=O,ee=null!=F?W.get(F):null,et=(0,p.useRef)({initial:null,translated:null}),en=(0,p.useMemo)(()=>{var e;return null!=F?{id:F,data:null!=(e=null==ee?void 0:ee.data)?e:eM,rect:et}:null},[F,ee]),er=(0,p.useRef)(null),[ei,eo]=(0,p.useState)(null),[es,ea]=(0,p.useState)(null),el=(0,g.YN)(C,Object.values(C)),ec=(0,g.YG)("DndDescribedBy",m),eu=(0,p.useMemo)(()=>X.getEnabled(),[X]),ed=(0,p.useMemo)(()=>({draggable:{...eC.draggable,...null==_?void 0:_.draggable},droppable:{...eC.droppable,...null==_?void 0:_.droppable},dragOverlay:{...eC.dragOverlay,...null==_?void 0:_.dragOverlay}}),[null==_?void 0:_.draggable,null==_?void 0:_.droppable,null==_?void 0:_.dragOverlay]),{droppableRects:eh,measureDroppableContainers:ep,measuringScheduled:ef}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,s]=(0,p.useState)(null),{frequency:a,measure:l,strategy:c}=i,d=(0,p.useRef)(e),h=function(){switch(c){case u.Always:return!1;case u.BeforeDragging:return n;default:return!n}}(),f=(0,g.YN)(h),m=(0,p.useCallback)(function(e){void 0===e&&(e=[]),f.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),y=(0,p.useRef)(null),b=(0,g.KG)(t=>{if(h&&!n)return ey;if(!t||t===ey||d.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Q(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,h,l]);return(0,p.useEffect)(()=>{d.current=e},[e]),(0,p.useEffect)(()=>{h||m()},[n,h]),(0,p.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{h||"number"!=typeof a||null!==y.current||(y.current=setTimeout(()=>{m(),y.current=null},a))},[a,h,m,...r]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:null!=o}}(eu,{dragging:P,dependencies:[K.x,K.y],config:ed.droppable}),eg=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,g.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(W,F),ew=(0,p.useMemo)(()=>es?(0,g.e_)(es):null,[es]),eO=function(){let e=(null==ei?void 0:ei.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,n=P&&!e&&!t;return"object"==typeof b?{...b,enabled:n}:{enabled:n}}(),eT=eb(eg,ed.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,p.useRef)(!1),{x:s,y:a}="boolean"==typeof i?{x:i,y:i}:i;(0,g.Es)(()=>
3{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=j(n(e),r);if(s||(i.x=0),a||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=H(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,a,r,n])}({activeNode:null!=F?W.get(F):null,config:eO.layoutShiftCompensation,initialRect:eT,measure:ed.draggable.measure});let eN=ex(eg,ed.draggable.measure,eT),eB=ex(eg?eg.parentElement:null),eP=(0,p.useRef)({activatorEvent:null,active:null,activeNode:eg,collisionRect:null,collisions:null,droppableRects:eh,draggableNodes:W,draggingNode:null,draggingNodeRect:null,droppableContainers:X,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),e$=X.getNodeFor(null==(t=eP.current.over)?void 0:t.id),eF=function(e){let{measure:t}=e,[n,r]=(0,p.useState)(null),i=ev({callback:(0,p.useCallback)(e=>{for(let{target:n}of e)if((0,g.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),o=(0,p.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,g.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[s,a]=(0,g.lk)(o);return(0,p.useMemo)(()=>({nodeRef:s,rect:n,setRef:a}),[n,s,a])}({measure:ed.dragOverlay.measure}),eU=null!=(n=eF.nodeRef.current)?n:eg,eH=P?null!=(o=eF.rect)?o:eN:null,eq=!!(eF.nodeRef.current&&eF.rect),eW=function(e){let t=eb(e);return j(e,t)}(eq?null:eN),eK=eA(eU?(0,g.zk)(eU):null),eY=function(e){let t=(0,p.useRef)(e),n=(0,g.KG)(n=>e?n&&n!==ek&&e&&t.current&&e.parentNode===t.current.parentNode?n:U(e):ek,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),n}(P?null!=e$?e$:eg:null),eV=function(e,t){void 0===t&&(t=$);let[n]=e,r=eA(n?(0,g.zk)(n):null),[i,o]=(0,p.useState)(e_);function s(){o(()=>e.length?e.map(e=>V(e)?r:new Q(t(e),e)):e_)}let a=ev({callback:s});return(0,g.Es)(()=>{null==a||a.disconnect(),s(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),i}(eY),eJ=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(S,{transform:{x:K.x-eW.x,y:K.y-eW.y,scaleX:1,scaleY:1},activatorEvent:es,active:en,activeNodeRect:eN,containerNodeRect:eB,draggingNodeRect:eH,over:eP.current.over,overlayNodeRect:eF.rect,scrollableAncestors:eY,scrollableAncestorRects:eV,windowRect:eK}),eG=ew?(0,g.WQ)(ew,K):null,eZ=function(e){let[t,n]=(0,p.useState)(null),r=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=q(e.target);t&&n(e=>e?(e.set(t,Y(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let s=e.map(e=>{let t=q(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Y(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=q(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,g.WQ)(e,t),M):Z(e):M,[e,t])}(eY),eX=eE(eZ),eQ=eE(eZ,[eN]),e0=(0,g.WQ)(eJ,eX),e1=eH?B(eH,eJ):null,e2=en&&e1?A({active:en,collisionRect:e1,droppableRects:eh,droppableContainers:eu,pointerCoordinates:eG}):null,e4=I(e2,"id"),[e5,e3]=(0,p.useState)(null),e6=(a=eq?eJ:(0,g.WQ)(eJ,eQ),d=null!=(s=null==e5?void 0:e5.rect)?s:null,{...a,scaleX:d&&eN?d.width/eN.width:1,scaleY:d&&eN?d.height/eN.height:1}),e8=(0,p.useRef)(null),e7=(0,p.useCallback)((e,t)=>{let{sensor:n,options:i}=t;if(null==er.current)return;let o=W.get(er.current);if(!o)return;let s=e.nativeEvent,a=new n({active:er.current,activeNode:o,event:s,options:i,context:eP,onAbort(e){if(!W.get(e))return;let{onDragAbort:t}=el.current,n={id:e};null==t||t(n),N({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!W.get(e))return;let{onDragPending:i}=el.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),N({type:"onDragPending",event:o})},onStart(e){let t=er.current;if(null==t)return;let n=W.get(t);if(!n)return;let{onDragStart:i}=el.current,o={activatorEvent:s,active:{id:t,data:n.data,rect:et}};(0,f.unstable_batchedUpdates)(()=>{null==i||i(o),D(h.Initializing),T({type:r.DragStart,initialCoordinates:e,active:t}),N({type:"onDragStart",event:o}),eo(e8.current),ea(s)})},onMove(e){T({type:r.DragMove,coordinates:e})},onEnd:l(r.DragEnd),onCancel:l(r.DragCancel)});function l(e){return async function(){let{active:t,collisions:n,over:i,scrollAdjustedTranslate:o}=eP.current,a=null;if(t&&o){let{cancelDrop:l}=el.current;a={activatorEvent:s,active:t,collisions:n,delta:o,over:i},e===r.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=r.DragCancel)}er.current=null,(0,f.unstable_batchedUpdates)(()=>{T({type:e}),D(h.Uninitialized),e3(null),eo(null),ea(null),e8.current=null;let t=e===r.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=el.current[t];null==e||e(a),N({type:t,event:a})}})}}e8.current=a},[W]),e9=(0,p.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=W.get(r);null!==er.current||!o||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},er.current=r,e7(n,t))},[W,e7]),te=(0,p.useMemo)(()=>k.reduce((e,t)=>
3{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e9(e.handler,t)}))]},[]),[k,e9]);(0,p.useEffect)(()=>{if(!g.Sw)return;let e=k.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},k.map(e=>{let{sensor:t}=e;return t})),(0,g.Es)(()=>{eN&&L===h.Initializing&&D(h.Initialized)},[eN,L]),(0,p.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:n,collisions:r,over:i}=eP.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:e0.x,y:e0.y},over:i};(0,f.unstable_batchedUpdates)(()=>{null==e||e(o),N({type:"onDragMove",event:o})})},[e0.x,e0.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eP.current;if(!e||null==er.current||!t||!i)return;let{onDragOver:o}=el.current,s=r.get(e4),a=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:a};(0,f.unstable_batchedUpdates)(()=>{e3(a),null==o||o(l),N({type:"onDragOver",event:l})})},[e4]),(0,g.Es)(()=>{eP.current={activatorEvent:es,active:en,activeNode:eg,collisionRect:e1,collisions:e2,droppableRects:eh,draggableNodes:W,draggingNode:eU,draggingNodeRect:eH,droppableContainers:X,over:e5,scrollableAncestors:eY,scrollAdjustedTranslate:e0},et.current={initial:eH,translated:e1}},[en,eg,e2,e1,W,eU,eH,eh,X,e5,eY,e0]),function(e){let{acceleration:t,activator:n=l.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:a=5,order:u=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:f,delta:m,threshold:y}=e,b=function(e){let{delta:t,disabled:n}=e,r=(0,g.ZC)(t);return(0,g.KG)(e=>{if(n||!r||!e)return em;let o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[i.Backward]:e.x[i.Backward]||-1===o.x,[i.Forward]:e.x[i.Forward]||1===o.x},y:{[i.Backward]:e.y[i.Backward]||-1===o.y,[i.Forward]:e.y[i.Forward]||1===o.y}}},[n,t,r])}({delta:m,disabled:!s}),[v,w]=(0,g.$$)(),k=(0,p.useRef)({x:0,y:0}),E=(0,p.useRef)({x:0,y:0}),A=(0,p.useMemo)(()=>{switch(n){case l.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case l.DraggableRect:return o}},[n,o,d]),_=(0,p.useRef)(null),S=(0,p.useCallback)(()=>{let e=_.current;if(!e)return;let t=k.current.x*E.current.x,n=k.current.y*E.current.y;e.scrollBy(t,n)},[]),M=(0,p.useMemo)(()=>u===c.TreeOrder?[...h].reverse():h,[u,h]);(0,p.useEffect)(()=>{if(!s||!h.length||!A)return void w();for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=f[h.indexOf(e)];if(!n)continue;let{direction:o,speed:s}=function(e,t,n,r,o){let{top:s,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=G);let{isTop:u,isBottom:d,isLeft:h,isRight:p}=J(e),f={x:0,y:0},g={x:0,y:0},m={height:t.height*o.y,width:t.width*o.x};return!u&&s<=t.top+m.height?(f.y=i.Backward,g.y=r*Math.abs((t.top+m.height-s)/m.height)):!d&&c>=t.bottom-m.height&&(f.y=i.Forward,g.y=r*Math.abs((t.bottom-m.height-c)/m.height)),!p&&l>=t.right-m.width?(f.x=i.Forward,g.x=r*Math.abs((t.right-m.width-l)/m.width)):!h&&a<=t.left+m.width&&(f.x=i.Backward,g.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:f,speed:g}}(e,n,A,t,y);for(let e of["x","y"])b[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0){w(),_.current=e,v(S,a),k.current=s,E.current=o;return}}k.current={x:0,y:0},E.current={x:0,y:0},w()},[t,S,r,w,s,a,JSON.stringify(A),JSON.stringify(b),v,h,M,f,JSON.stringify(y)])}({...eO,delta:K,draggingRect:e1,pointerCoordinates:eG,scrollableAncestors:eY,scrollableAncestorRects:eV});let tt=(0,p.useMemo)(()=>({active:en,activeNode:eg,activeNodeRect:eN,activatorEvent:es,collisions:e2,containerNodeRect:eB,dragOverlay:eF,draggableNodes:W,droppableContainers:X,droppableRects:eh,over:e5,measureDroppableContainers:ep,scrollableAncestors:eY,scrollableAncestorRects:eV,measuringConfiguration:ed,measuringScheduled:ef,windowRect:eK}),[en,eg,eN,es,e2,eB,eF,W,X,eh,e5,ep,eY,eV,ed,ef,eK]),tn=(0,p.useMemo)(()=>({activatorEvent:es,activators:te,active:en,activeNodeRect:eN,ariaDescribedById:{draggable:ec},dispatch:T,draggableNodes:W,over:e5,measureDroppableContainers:ep}),[es,te,en,eN,T,ec,W,e5,ep]);return p.createElement(v.Provider,{value:R},p.createElement(eI.Provider,{value:tn},p.createElement(eR.Provider,{value:tt},p.createElement(ej.Provider,{value:e6},w)),p.createElement(ez,{disabled:(null==y?void 0:y.restoreFocus)===!1})),p.createElement(E,{...y,hiddenTextDescribedById:ec}))}),eP=(0,p.createContext)(null),e$="button";function eF(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=(0,g.YG)("Draggable"),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:h}=(0,p.useContext)(eI),{role:f=e$,roleDescription:m="draggable",tabIndex:y=0}=null!=i?i:{},b=(null==l?void 0:l.id)===t,v=(0,p.useContext)(b?ej:eP),[w,k]=(0,g.lk)(),[E,A]=(0,g.lk)(),_=(0,p.useMemo)(()=>s.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[s,t]),S=(0,g.YN)(n);return(0,g.Es)(()=>(d.set(t,{id:t,key:o,node:w,activatorNode:E,data:S}
3),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:a,activeNodeRect:c,attributes:(0,p.useMemo)(()=>({role:f,tabIndex:y,"aria-disabled":r,"aria-pressed":!!b&&f===e$||void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,f,y,b,m,u.draggable]),isDragging:b,listeners:r?void 0:_,node:w,over:h,setNodeRef:k,setActivatorNodeRef:A,transform:v}}function eU(){return(0,p.useContext)(eR)}let eH={timeout:25};function eq(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e,s=(0,g.YG)("Droppable"),{active:a,dispatch:l,over:c,measureDroppableContainers:u}=(0,p.useContext)(eI),d=(0,p.useRef)({disabled:n}),h=(0,p.useRef)(!1),f=(0,p.useRef)(null),m=(0,p.useRef)(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...eH,...o},w=(0,g.YN)(null!=b?b:i),k=ev({callback:(0,p.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(w.current)?w.current:[w.current]),m.current=null},v)},[v]),disabled:y||!a}),E=(0,p.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),h.current=!1),e&&k.observe(e))},[k]),[A,_]=(0,g.lk)(E),S=(0,g.YN)(t);return(0,p.useEffect)(()=>{k&&A.current&&(k.disconnect(),h.current=!1,k.observe(A.current))},[A,k]),(0,p.useEffect)(()=>(l({type:r.RegisterDroppable,element:{id:i,key:s,disabled:n,node:A,rect:f,data:S}}),()=>l({type:r.UnregisterDroppable,key:s,id:i})),[i]),(0,p.useEffect)(()=>{n!==d.current.disabled&&(l({type:r.SetDroppableDisabled,id:i,key:s,disabled:n}),d.current.disabled=n)},[i,s,n,l]),{active:a,rect:f,isOver:(null==c?void 0:c.id)===i,node:A,over:c,setNodeRef:_}}},17910:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},18085:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])}
3,18514:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},19148:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(76908).YY.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).some(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).some(e=>e),toggleTextAlign:e=>({editor:t,commands:n})=>!!this.options.alignments.includes(e)&&(t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},19204:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]])},19408:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},20064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},20508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},20639:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},21190:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},21670:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(8624).Q1},21873:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},22904:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var r=n(76908).bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""})},22984:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(75699).nA},23327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])}
3,23664:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},24033:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},24325:(e,t,n)=>{"use strict";n.d(t,{$B:()=>a,Sd:()=>o,T2:()=>s});var r=n(62463),i=n(92322);function o(e,t=null){return function(n,o){let{$from:s,$to:a}=n.selection,l=s.blockRange(a);if(!l)return!1;let c=o?n.tr:null;return!!function(e,t,n,o=null){let s=!1,a=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);a=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let c=(0,r.oM)(a,n,o,t);return!!c&&(e&&function(e,t,n,o,s){let a=i.FK.empty;for(let e=n.length-1;e>=0;e--)a=i.FK.from(n[e].type.create(n[e].attrs,a));e.step(new r.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(a,0,0),n.length,!0));let l=0;for(let e=0;e<n.length;e++)n[e].type==s&&(l=e+1);let c=n.length-l,u=t.start+n.length-2*!!o,d=t.parent;for(let n=t.startIndex,i=t.endIndex,o=!0;n<i;n++,o=!1)!o&&(0,r.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(n).nodeSize}(e,t,c,s,n),!0)}(c,l,e,t)&&(o&&o(c.scrollIntoView()),!0)}}function s(e){return function(t,n){let{$from:o,$to:s}=t.selection,a=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(o.node(a.depth-1).type==e?function(e,t,n,o){let s=e.tr,a=o.end,l=o.$to.end(o.depth);a<l&&(s.step(new r.Wg(a-1,l,a,l,new i.Ji(i.FK.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(s.doc.resolve(o.$from.pos),s.doc.resolve(l),o.depth));let c=(0,r.jP)(o);if(null==c)return!1;s.lift(o,c);let u=s.doc.resolve(s.mapping.map(a,-1)-1);return(0,r.n9)(s.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&s.join(u.pos),t(s.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){let o=e.tr,s=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=s.child(t).nodeSize,o.delete(e-1,e+1);let a=o.doc.resolve(n.start),l=a.nodeAfter;if(o.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,u=n.endIndex==s.childCount,d=a.node(-1),h=a.index(-1);if(!d.canReplace(h+ +!c,h+1,l.content.append(u?i.FK.empty:i.FK.from(s))))return!1;let p=a.pos,f=p+l.nodeSize;return o.step(new r.Wg(p-!!c,f+ +!!u,p+1,f-1,new i.Ji((c?i.FK.empty:i.FK.from(s.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(s.copy(i.FK.empty))),+!c,+!u),+!c)),t(o.scrollIntoView()),!0}(t,n,a)))}}function a(e){return function(t,n){let{$from:o,$to:s}=t.selection,a=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let l=a.startIndex;if(0==l)return!1;let c=a.parent,u=c.child(l-1);if(u.type!=e)return!1;if(n){let o=u.lastChild&&u.lastChild.type==c.type,s=i.FK.from(o?e.create():null),l=new i.Ji(i.FK.from(e.create(null,i.FK.from(c.type.create(null,s)))),o?3:1,0),d=a.start,h=a.end;n(t.tr.step(new r.Wg(d-(o?3:1),h,d,h,l,1,!0)).scrollIntoView())}return!0}}},24945:(e,t,n)=>{"use strict";n.d(t,{K:()=>f,w:()=>p});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);var c=n(51876);let u="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="undefined"!=typeof navigator&&/Win/.test(navigator.platform);
3function h(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function p(e){return new c.k_({props:{handleKeyDown:f(e)}})}function f(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))u?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),i&&(s="Meta-"+s),r&&(s="Shift-"+s),s}(n)]=e[n];return t}(e);return function(e,n){var a;let l=("Esc"==(a=!(o&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||s&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?i:r)[n.keyCode]||n.key||"Unidentified")&&(a="Escape"),"Del"==a&&(a="Delete"),"Left"==a&&(a="ArrowLeft"),"Up"==a&&(a="ArrowUp"),"Right"==a&&(a="ArrowRight"),"Down"==a&&(a="ArrowDown"),a),c,u=t[h(l,n)];if(u&&u(e.state,e.dispatch,e))return!0;if(1==l.length&&" "!=l){if(n.shiftKey){let r=t[h(l,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(d&&n.ctrlKey&&n.altKey)&&(c=r[n.keyCode])&&c!=l){let r=t[h(c,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},25070:e=>{e.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let o=Date.now(),s=t-(o-r);s<=0?(r=o,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},s)}}},25276:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]])},26983:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},27269:(e,t,n)=>{"use strict";n.d(t,{$v:()=>ex,A$:()=>ek,AI:()=>eR,Dh:()=>ey,EE:()=>eI,Fk:()=>ew,Fm:()=>function e(t,{x:n,y:r}){var i;let o=t.elementFromPoint(n,r);if((null==(i=o)?void 0:i.tagName)==="IFRAME"){let{contentDocument:t}=o;if(t){let{left:i,top:s}=o.getBoundingClientRect();return e(t,{x:n-i,y:r-s})}}return o},Ij:()=>eD,Ob:()=>$,Ot:()=>ee,P_:()=>eO,UX:()=>Q,We:()=>eE,XZ:()=>C,YE:()=>j,_m:()=>W,a_:()=>ei,ck:()=>es,dO:()=>et,g:()=>eg,hZ:()=>H,k$:()=>B,kx:()=>eN,nr:()=>P,o8:()=>eC,qR:()=>q,qt:()=>eu,sb:()=>D,sl:()=>ep,vq:()=>eT,y4:()=>ef,yS:()=>eM,zk:()=>R});var r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,b,v=n(90781),w=e=>{throw TypeError(e)},k=(e,t,n)=>t.has(e)||w("Cannot "+n),E=(e,t,n)=>(k(e,t,"read from private field"),t.get(e)),A=(e,t,n)=>t.has(e)?w("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(k(e,t,"write to private field"),t.set(e,n),n),S=(e,t,n)=>(k(e,t,"access private method"),n);function M(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function C(e,t){let n=e.getAnimations();if(n.length>0)for(let e of n){if("running"!==e.playState)continue;let{effect:n}=e,r=(M(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function O(e){let{width:t,height:n,top:r,left:i,bottom:o,right:s}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:s}}var T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function N(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function I(e){return"nodeType"in e}function R(e){var t,n,r;return e?N(e)?e:I(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function L(e){let{Document:t}=R(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function D(e){return!(!e||N(e))&&(e instanceof R(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function z(e){return e instanceof R(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function j(e){return e?N(e)?e.document:I(e)?L(e)?e:D(e)||z(e)?e.ownerDocument:document:document:document}function B(e,t=e.getBoundingClientRect(),n=0){var r;let i=t,{ownerDocument:o}=e,s=null!=(r=o.defaultView)?r:window,a=e.parentElement;for(;a&&a!==o.documentElement;){if(!function(e,t){if("DETAILS"===e.tagName&&!1===e.open)return!1;let{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}(a)){let e=a.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),s=n*(e.right-e.left);(i={top:Math.max(i.top,e.top-t),right:Math.min(i.right,e.right+r),bottom:Math.min(i.bottom,e.bottom+o),left
3:Math.max(i.left,e.left-s),width:0,height:0}).width=i.right-i.left,i.height=i.bottom-i.top}a=a.parentElement}let l=s.innerWidth,c=s.innerHeight,u=n*c,d=n*l;return(i={top:Math.max(i.top,0-u),right:Math.min(i.right,l+d),bottom:Math.min(i.bottom,c+u),left:Math.max(i.left,0-d),width:0,height:0}).width=i.right-i.left,i.height=i.bottom-i.top,i.width<0&&(i.width=0),i.height<0&&(i.height=0),i}function P(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function $(e){let t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{let n=r[t];if(F(e)&&F(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),U(e)&&U(n)&&n.width>0&&n.height>0){let t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}function F(e){return"value"in e}function U(e){return"CANVAS"===e.tagName}var H=new WeakMap,q=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){let n=Array.isArray(t)?t:[t],r=[];for(let t of n){let{type:n,listener:i,options:o}=t,s=[e,t];e.addEventListener(n,i,o),this.entries.add(s),r.push(s)}return function(){for(let[e,{type:t,listener:n,options:i}]of r)e.removeEventListener(t,n,i)}}};function W(e){let t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function K(e,t){let n,r,i=()=>performance.now();return function(...o){let s=this;r?(null==n||n(),n=function(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(s,o),r=i()},t-(i()-r))):(e.apply(s,o),r=i())}}var Y=T?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},V=class extends Y{constructor(e){super(t=>{if(!E(this,r))return void _(this,r,!0);e(t,this)}),A(this,r,!1)}};r=new WeakMap;var J=Array.from({length:100},(e,t)=>t/100),G=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,A(this,h),this.disconnect=()=>{var e,t,n;_(this,u,!0),null==(e=E(this,s))||e.disconnect(),null==(t=E(this,a))||t.disconnect(),E(this,l).disconnect(),null==(n=E(this,c))||n.remove()},A(this,i,!0),A(this,o),A(this,s),A(this,a),A(this,l),A(this,c),A(this,u,!1),A(this,d,K(()=>{var e,t,n;let{element:r}=this;if(null==(e=E(this,a))||e.disconnect(),E(this,u)||!E(this,i)||!r.isConnected)return;let o=null!=(t=r.ownerDocument)?t:document,{innerHeight:s,innerWidth:l}=null!=(n=o.defaultView)?n:window,c=r.getBoundingClientRect(),{top:f,left:g,bottom:m,right:y}=B(r,c),b=-Math.floor(f),w=-Math.floor(g),k=-Math.floor(l-y),A=-Math.floor(s-m),M=`${b}px ${k}px ${A}px ${w}px`;this.boundingClientRect=c,_(this,a,new IntersectionObserver(e=>{let[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:v.M_.intersectionRatio(n,B(r)))&&E(this,d).call(this)},{threshold:J,rootMargin:M,root:o})),E(this,a).observe(r),S(this,h,p).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),_(this,i,function(e,t=e.getBoundingClientRect()){let{width:n,height:r}=B(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};let f=e.ownerDocument;(null==n?void 0:n.debug)&&(_(this,c,document.createElement("div")),E(this,c).style.background="rgba(0,0,0,0.15)",E(this,c).style.position="fixed",E(this,c).style.pointerEvents="none",f.body.appendChild(E(this,c))),_(this,l,new IntersectionObserver(t=>{var n,r;let{boundingClientRect:o,isIntersecting:l}=t[t.length-1],{width:u,height:h}=o,p=E(this,i);_(this,i,l),(u||h)&&(p&&!l?(null==(n=E(this,a))||n.disconnect(),this.callback(null),null==(r=E(this,s))||r.disconnect(),_(this,s,void 0),E(this,c)&&(E(this,c).style.visibility="hidden")):E(this,d).call(this),l&&!E(this,s)&&(_(this,s,new V(E(this,d))),E(this,s).observe(e)))},{threshold:J,root:f})),E(this,i)&&!n.skipInitial&&this.callback(this.boundingClientRect),E(this,l).observe(e)}};i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet,p=function(){var e,t;!E(this,u)&&(S(this,h,f).call(this),(e=this.boundingClientRect)===(t=E(this,o))||e&&t&&e.top==t.to
3p&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom||(this.callback(this.boundingClientRect),_(this,o,this.boundingClientRect)))},f=function(){if(E(this,c)){let{top:e,left:t,width:n,height:r}=B(this.element);E(this,c).style.overflow="hidden",E(this,c).style.visibility="visible",E(this,c).style.top=`${Math.floor(e)}px`,E(this,c).style.left=`${Math.floor(t)}px`,E(this,c).style.width=`${Math.floor(n)}px`,E(this,c).style.height=`${Math.floor(r)}px`}};var Z=new WeakMap,X=new WeakMap,Q=class{constructor(e,t,n){this.callback=t,A(this,g),A(this,m,!1),A(this,y),A(this,b,K(e=>{if(!E(this,m)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains){for(let t of E(this,y))if(e.target.contains(t)){this.callback(E(this,g).boundingClientRect);break}}},75));let r=function(e){let t=new Set,n=W(e);for(;n;)t.add(n),n=W(n);return t}(e),i=function(e,t){let n=new Set;for(let r of e){let e=function(e,t){let n=Z.get(e);return n||(n={disconnect:new G(e,t=>{let n=Z.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0}).disconnect,callbacks:new Set}),n.callbacks.add(t),Z.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(Z.delete(e),n.disconnect())}}(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;let r=e.ownerDocument;if(!X.has(r)){let e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),X.set(r,{disconnect:()=>e.abort(),listeners:t})}let{listeners:i,disconnect:o}=null!=(n=X.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),X.delete(r))}):()=>{}}(e,E(this,b));_(this,y,r),_(this,g,new G(e,t,n)),this.disconnect=()=>{E(this,m)||(_(this,m,!0),i(),o(),E(this,g).disconnect())}}};function ee(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function et(e){try{ee(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function en(e){return!!T&&!!e&&e===j(e).scrollingElement}function er(e){let t=R(e),n=en(e)?function(e){let{documentElement:t}=j(e),n=t.clientWidth,r=t.clientHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}(e):O(e),r=en(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-r.width,y:e.scrollHeight-r.height}},o=i.current.y<=0,s=i.current.x<=0,a=i.current.y>=i.max.y,l=i.current.x>=i.max.x;return{rect:n,position:i,isTop:o,isLeft:s,isBottom:a,isRight:l}}function ei(e,t){let{isTop:n,isBottom:r,isLeft:i,isRight:o,position:s}=er(e),{x:a,y:l}=null!=t?t:{x:0,y:0},c=!n&&s.current.y+l>0,u=!r&&s.current.y+l<s.max.y,d=!i&&s.current.x+a>0,h=!o&&s.current.x+a<s.max.x;return{top:c,bottom:u,left:d,right:h,x:d||h,y:c||u}}g=new WeakMap,m=new WeakMap,y=new WeakMap,b=new WeakMap;var eo=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;for(let t of(this.pending=!1,this.tasks=new Set,this.resolvers=new Set,e))t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},es=new eo(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),ea=new eo(e=>setTimeout(e,50)),el=new Map,ec=el.clear.bind(el);function eu(e,t=!1){if(!t)return ed(e);let n=el.get(e);return n||(n=ed(e),el.set(e,n),ea.schedule(ec)),n}function ed(e){return R(e).getComputedStyle(e)}var eh={excludeElement:!0};function ep(e,t=eh){let{limit:n,excludeElement:r}=t,i=new Set;return e?function t(o){if(null!=n&&i.size>=n||!o)return i;if(L(o)&&null!=o.scrollingElement&&!i.has(o.scrollingElement))return i.add(o.scrollingElement),i;
3if(!D(o))return z(o)?t(o.parentElement):i;if(i.has(o))return i;let s=eu(o,!0);if(r&&o===e||function(e,t=eu(e,!0)){let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(o,s)&&i.add(o),function(e,t=eu(e,!0)){return"fixed"===t.position||"sticky"===t.position}(o,s)){let{scrollingElement:e}=o.ownerDocument;return e&&i.add(e),i}return t(o.parentNode)}(e):i}function ef(e,t=window.frameElement){let n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=W(e);for(;r&&r!==t;){let e=O(r),{x:t,y:i}=function(e,t=O(e)){let n=Math.round(t.width),r=Math.round(t.height);if(D(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};let i=eu(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*t,n.scaleY=n.scaleY*i,r=W(r)}return n}function eg(e){if("none"===e)return null;let[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function em(e){var t,n,r,i,o,s,a,l,c;let{scale:u,transform:d,translate:h}=e,p=function(e){if("none"===e)return null;let t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),f=eg(h),g=function(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}(d);if(!g&&!p&&!f)return null;let m={x:null!=(t=null==p?void 0:p.x)?t:1,y:null!=(n=null==p?void 0:p.y)?n:1},y={x:null!=(r=null==f?void 0:f.x)?r:0,y:null!=(i=null==f?void 0:f.y)?i:0},b={x:null!=(o=null==g?void 0:g.x)?o:0,y:null!=(s=null==g?void 0:g.y)?s:0,scaleX:null!=(a=null==g?void 0:g.scaleX)?a:1,scaleY:null!=(l=null==g?void 0:g.scaleY)?l:1};return{x:y.x+b.x,y:y.y+b.y,z:null!=(c=null==f?void 0:f.z)?c:0,scaleX:m.x*b.scaleX,scaleY:m.y*b.scaleY}}var ey=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(ey||{}),eb={x:.2,y:.2},ev={x:10,y:10};function ew(e,t,n,r=25,i=eb,o=ev){let{x:s,y:a}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:h}=er(e),p=ef(e),f=em(eu(e,!0)),g=null!==f&&(null==f?void 0:f.scaleX)<0,m=null!==f&&(null==f?void 0:f.scaleY)<0,y=new v.M_(l.left*p.scaleX+p.x,l.top*p.scaleY+p.y,l.width*p.scaleX,l.height*p.scaleY),b={x:0,y:0},w={x:0,y:0},k={height:y.height*i.y,width:y.width*i.x};return(!c||m&&!u)&&a<=y.top+k.height&&(null==n?void 0:n.y)!==1&&s>=y.left-o.x&&s<=y.right+o.x?(b.y=m?1:-1,w.y=r*Math.abs((y.top+k.height-a)/k.height)):(!u||m&&!c)&&a>=y.bottom-k.height&&(null==n?void 0:n.y)!==-1&&s>=y.left-o.x&&s<=y.right+o.x&&(b.y=m?-1:1,w.y=r*Math.abs((y.bottom-k.height-a)/k.height)),(!h||g&&!d)&&s>=y.right-k.width&&(null==n?void 0:n.x)!==-1&&a>=y.top-o.y&&a<=y.bottom+o.y?(b.x=g?-1:1,w.x=r*Math.abs((y.right-k.width-s)/k.width)):(!d||g&&!h)&&s<=y.left+k.width&&(null==n?void 0:n.x)!==1&&a>=y.top-o.y&&a<=y.bottom+o.y&&(b.x=g?1:-1,w.x=r*Math.abs((y.left+k.width-s)/k.width)),{direction:b,speed:w}}function ex(e,t=!1){if("scrollIntoViewIfNeeded"in e&&"function"==typeof e.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);if(!D(e))return e.scrollIntoView();var n=function(e){let[t]=ep(e,{limit:1});return null!=t?t:null}(e);if(!D(n))return;let r=eu(n,!0),i=parseInt(r.getPropertyValue("border-top-width")),o=parseInt(r.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,a=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,l=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-o>n.scrollLeft+n.clientWidth;(s||a)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(l||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-o+e.clientWidth/2),(s||a||l||c)&&!t&&e.scrollIntoView(s&&!a)}function ek({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function eE(e,t=eu(e).translate,n=!0){if(n){let t=C(e,e=>"translate"in e);if(t){let{translate:e=""}=t[0];if("string"==typeof e){let t=eg(e);if(t)return t}}}if(t){let e=eg(t);if(e)return e}return{x:0,y:0,z:0}}var eA=new eo(e=>setTimeout(e,0)),e_=new Map,eS=e_.clear.bind(e_),eM=class extends v.M_{constructor(e,t={}){var n,r,i,o;let s,{frameTransform:a=ef(e),ignoreTransforms:l,getBoundingClientRect:c=O}=t,u=function(e,t){let n=(function(e){let t=e.ownerDocument,n=e_.get(t);if(n)return n;n=t.getAnimations(),e_.set(t,n),eA.schedule(eS);let r=n.filter(t=>
3M(t.effect)&&t.effect.target===e);return e_.set(e,r),n})(e).filter(e=>{var n,r;if(M(e.effect)){let{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(let n of t.properties)if(e[n])return!0})}}).map(e=>{let{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState&&"number"==typeof r&&"number"==typeof n&&n<r)return e.currentTime=r,()=>{e.currentTime=n}});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||P())&&t.contains(e)}),d=c(e),{top:h,left:p,width:f,height:g}=d,m=eu(e),y=em(m),b={x:null!=(n=null==y?void 0:y.scaleX)?n:1,y:null!=(r=null==y?void 0:y.scaleY)?r:1},v=function(e,t){var n;let r=e.getAnimations(),i=null;if(!r.length)return null;for(let e of r){if("running"!==e.playState)continue;let r=M(e.effect)?e.effect.getKeyframes():[],o=r[r.length-1];if(!o)continue;let{transform:s,translate:a,scale:l}=o;if(s||a||l){let e=em({transform:"string"==typeof s&&s?s:t.transform,translate:"string"==typeof a&&a?a:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(n=i.z)?n:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,m);null==u||u(),y&&(s=function(e,t,n){let{scaleX:r,scaleY:i,x:o,y:s}=t,a=e.left-o-(1-r)*parseFloat(n),l=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}(d,y,m.transformOrigin),(l||v)&&(h=s.top,p=s.left,f=s.width,g=s.height));let w={width:null!=(i=null==s?void 0:s.width)?i:f,height:null!=(o=null==s?void 0:s.height)?o:g};if(v&&!l&&s){let e=function(e,t,n){let{scaleX:r,scaleY:i,x:o,y:s}=t,a=e.left+o+(1-r)*parseFloat(n),l=e.top+s+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}(s,v,m.transformOrigin);h=e.top,p=e.left,f=e.width,g=e.height,b.x=v.scaleX,b.y=v.scaleY}a&&(l||(p*=a.scaleX,f*=a.scaleX,h*=a.scaleY,g*=a.scaleY),p+=a.x,h+=a.y),super(p,h,f,g),this.scale=b,this.intrinsicWidth=w.width,this.intrinsicHeight=w.height}};function eC(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var eO=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){let{element:n}=this;if(eC(n))for(let[r,i]of Object.entries(e)){let e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){let{element:n}=this;if(eC(n))for(let r of e){let e=`${t}${r}`;n.style.removeProperty(e)}}reset(){let{element:e}=this;if(eC(e)){for(let[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function eT(e){return!!e&&(e instanceof R(e).Element||I(e)&&e.nodeType===Node.ELEMENT_NODE)}function eN(e){if(!e)return!1;let{KeyboardEvent:t}=R(e.target);return e instanceof t}function eI(e){if(!e)return!1;let{PointerEvent:t}=R(e.target);return e instanceof t}function eR(e){var t;if(!eT(e))return!1;let{tagName:n}=e;return"INPUT"===n||"TEXTAREA"===n||(t=e).hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable")}var eL={};function eD(e){let t=null==eL[e]?0:eL[e]+1;return eL[e]=t,`${e}-${t}`}},27587:(e,t,n)=>{"use strict";n.d(t,{$$:()=>g,Es:()=>p,KG:()=>y,Ks:()=>C,Ll:()=>a,Re:()=>_,Sw:()=>o,TW:()=>h,WQ:()=>A,YG:()=>k,YN:()=>m,ZC:()=>v,_q:()=>f,ag:()=>T,e_:()=>M,jn:()=>i,kx:()=>S,l6:()=>s,lk:()=>b,sb:()=>u,wz:()=>c,xZ:()=>d,zk:()=>l});var r=n(12115);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function l(e){var t,n;return e?s(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){let{Document:t}=l(e);return e instanceof t}function u(e){return!s(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function h(e){return e?s(e)?e.document:a(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}let p=o?r.useLayoutEffect:r.useEffect;function f(e){let t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function g(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=f(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function v(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function k(e,t){return(0,r.useMemo)(()=>
3{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let A=E(1),_=E(-1);function S(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function M(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let C=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[C.Translate.toString(e),C.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),O="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(O)?e:e.querySelector(O)}},27628:(e,t,n)=>{"use strict";n.d(t,{EW:()=>A,O8:()=>a,QZ:()=>O,vA:()=>o,vP:()=>b});var r=Symbol.for("preact-signals");function i(){if(u>1)u--;else{var e,t=!1,n=f;for(f=void 0;void 0!==n;)n.S.v===n.v&&(n.S.i=n.i),n=n.o;for(;void 0!==c;){var r=c;for(c=void 0,d++;void 0!==r;){var i=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&v(r))try{r.c()}catch(n){t||(e=n,t=!0)}r=i}}if(d=0,u--,t)throw e}}function o(e){if(u>0)return e();p=++h,u++;try{return e()}finally{i()}}var s=void 0;function a(e){var t=s;s=void 0;try{return e()}finally{s=t}}var l,c=void 0,u=0,d=0,h=0,p=0,f=void 0,g=0;function m(e){if(void 0!==s){var t=e.n;if(void 0===t||t.t!==s)return t={i:0,S:e,p:s.s,n:void 0,t:s,e:void 0,x:void 0,r:t},void 0!==s.s&&(s.s.n=t),s.s=t,e.n=t,32&s.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=s.s,t.n=void 0,s.s.n=t,s.s=t),t}}function y(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=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 b(e,t){return new y(e,t)}function v(e){for(var 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 w(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function k(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function E(e,t){y.call(this,void 0),this.x=e,this.s=void 0,this.g=g-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 A(e,t){return new E(e,t)}function _(e){var t=e.m;if(e.m=void 0,"function"==typeof t){u++;var n=s;s=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,S(e),t}finally{s=n,i()}}}function S(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_(e)}function M(e){if(s!==this)throw Error("Out-of-order effect");k(this),s=e,this.f&=-2,8&this.f&&S(this),i()}function C(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,l&&l.push(this)}function O(e,t){var n=new C(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}y.prototype.brand=r,y.prototype.h=function(){return!0},y.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:a(function(){var e;null==(e=t.W)||e.call(t)}))},y.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&a(function(){var e;null==(e=t.Z)||e.call(t)}))}},y.prototype.subscribe=function(e){var t=this;return O(function(){var n=t.value,r=s;s=void 0;try{e(n)}finally{s=r}},{name:"sub"})},y.prototype.valueOf=function(){return this.value},y.prototype.toString=function(){return this.value+""},y.prototype.toJSON=function(){return this.value},y.prototype.peek=function(){var e=this;return a(function(){return e.value})},Object.defineProperty(y.prototype,"value",{get:function(){var e=m(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(d>100)throw Error("Cycle detected");0!==u&&0===d&&this.l!==p&&(this.l=p,f={S:this,v:this.v,i:this.i,o:f}),this.v=e,this.i++,g++,u++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{i()}}}}),E.prototype=new y,E.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===g))return!0;
3if(this.g=g,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;var e=s;try{w(this),s=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return s=e,k(this),this.f&=-2,!0},E.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}y.prototype.S.call(this,e)},E.prototype.U=function(e){if(void 0!==this.t&&(y.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},E.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(E.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=m(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),C.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},C.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,_(this),w(this),u++;var e=s;return s=this,M.bind(this,e)},C.prototype.N=function(){2&this.f||(this.f|=2,this.u=c,c=this)},C.prototype.d=function(){this.f|=8,1&this.f||S(this)},C.prototype.dispose=function(){this.d()}},27937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},29790:(e,t,n)=>{"use strict";function r(e){var t;if(null!=e)return null!=e&&"object"==typeof e&&"current"in e?null!=(t=e.current)?t:void 0:e}n.d(t,{b:()=>r})},30125:(e,t,n)=>{"use strict";var r=n(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),s(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},30171:(e,t,n)=>{"use strict";n.d(t,{n4:()=>z,QO:()=>j,vR:()=>B,JU:()=>J,lb:()=>G});var r=n(76908),i=n(51876),o=n(62463);class s{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),a=s.width/o.offsetWidth,l=s.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*l;i={left:r.left,right:r.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let n=c.getBoundingClientRect(),r=n.width/c.offsetWidth,i=n.height/c.offsetHeight;e=n.left-c.scrollLeft*r,t=n.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/a+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,o.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=n(32806),l=n(24945),c=n(92322);class u extends i.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return u.valid(n)?new u(n):i.LN.near(n)}content(){return c.Ji.empty}eq(e){return e instanceof u&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new u(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||h(e.type))return!0;
3if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||h(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&u.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(u.valid(s))return s}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=s,r+=t;let a=e.doc.resolve(r);if(u.valid(a))return a}return null}}}u.prototype.visible=!1,u.findFrom=u.findGapCursorFrom,i.LN.jsonID("gapcursor",u);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return u.valid(t)?new u(t):i.LN.near(t)}}function h(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}let p=(0,l.K)({ArrowLeft:f("horiz",-1),ArrowRight:f("horiz",1),ArrowUp:f("vert",-1),ArrowDown:f("vert",1)});function f(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let s=e.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof i.U3){if(!o.endOfTextblock(n)||0==a.depth)return!1;l=!1,a=e.doc.resolve(t>0?a.after():a.before())}let c=u.findGapCursorFrom(a,t,l);return!!c&&(r&&r(e.tr.setSelection(new u(c))),!0)}}function g(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!u.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new u(r))),!0)}function m(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof u))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=c.FK.empty;for(let e=r.length-1;e>=0;e--)o=c.FK.from(r[e].createAndFill(null,o));let s=e.state.tr.replace(n.pos,n.pos,new c.Ji(o,0,0));return s.setSelection(i.U3.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function y(e){if(!(e.selection instanceof u))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var b=function(){};b.prototype.append=function(e){return e.length?(e=b.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},b.prototype.prepend=function(e){return e.length?b.from(e).append(this):this},b.prototype.appendInner=function(e){return new w(this,e)},b.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?b.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},b.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},b.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},b.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},b.from=function(e){return e instanceof b?e:e&&e.length?new v(e):b.empty};var v=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(b);b.empty=new v([]);var w=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(b);class k{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(r=(n=this.remapping(s,this.items.length)).maps.length);let a=e.tr,l=[],c=[];
3return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(s,t+1)).maps.length),r--,c.push(e);return}if(n){c.push(new E(e.map));let t=e.step.map(n.slice(r)),i;t&&a.maybeStep(t).doc&&(i=a.mapping.maps[a.mapping.maps.length-1],l.push(new E(i,void 0,void 0,l.length+c.length))),r--,i&&n.appendMap(i,r)}else a.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new k(this.items.slice(0,s).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:a,selection:i}}addTransform(e,t,n,r){var i,o;let s,a=[],l=this.eventCount,c=this.items,u=!r&&c.length?c.get(c.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new E(e.mapping.maps[n],i,t),s;(s=u&&u.merge(o))&&(o=s,n?a.pop():c=c.slice(0,c.length-1)),a.push(o),t&&(l++,t=void 0),r||(u=o)}let d=l-n.depth;return d>_&&(i=c,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),c=i.slice(s),l-=d),new k(c.append(a),l)}remapping(e,t){let n=new o.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new k(this.items.append(e.map(e=>new E(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=i.getMirror(--a);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(i.slice(a+1,r));c&&s++,n.push(new E(l,o,c))}else n.push(new E(l))},r);let l=[];for(let e=t;e<o;e++)l.push(new E(i.maps[e]));let c=new k(this.items.slice(0,r).append(l).append(n),s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)r.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=o.selection&&o.selection.map(t.slice(n));a&&i++;let l=new E(s.invert(),e,a),c,u=r.length-1;(c=r.length&&r[u].merge(l))?r[u]=c:r.push(l)}}else o.map&&n--},this.items.length,0),new k(b.from(r.reverse()),i)}}k.empty=new k(b.empty,0);class E{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new E(t.getMap().invert(),t,this.selection)}}}class A{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let _=20;function S(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function M(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let C=!1,O=null;function T(e){let t=e.plugins;if(O!=t){C=!1,O=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){C=!0;break}}return C}let N=new i.hs("history"),I=new i.hs("closeHistory");function R(e,t){return(n,r)=>{let i=N.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=T(t),i=N.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new A(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(N,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let L=R(!1,!0),D=R(!0,!0);R(!1,!1),R(!0,!1);var z=r.YY.create({name:"characterCount",addOptions:()=>({limit:null,autoTrim:!0,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,o=this.options.autoTrim;if(null==i||0===i||!1===o){e=!0;return}let s=this.storage.characters({node:r.doc});if(s>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let t=r.tr.deleteRange(0,s-i);return e=!0,t}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;
3if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos;return e.deleteRange(o-(i-n),o),!(this.storage.characters({node:e.doc})>n)}})]}}),j=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new i.k_({view:t=>new s(t,e)})}(this.options)]}});r.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,o=[];if(!n||!r)return a.zF.create(e,[]);let s=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;s+=1}});let l=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&s-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void o.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,o)}}})]}});var B=r.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new i.k_({props:{decorations:y,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&u.valid(n)?new u(n):null,handleClick:g,handleKeyDown:p,handleDOMEvents:{beforeinput
3:m}}})],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,r.gk)((0,r.iI)(e,"allowGapCursor",n)))?t:null}}}),P="placeholder",$=new i.hs("tiptap__placeholder");function F(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:o,isEmptyDoc:s,hasAnchor:l,classes:{emptyNode:c,emptyEditor:u}}=e,d=[c];return s&&d.push(u),a.NZ.node(i,i+o.nodeSize,{class:d.join(" "),[r]:"function"==typeof n?n({editor:t,node:o,pos:i,hasAnchor:l}):n})}function U(e,t){return"function"==typeof e?e(t):e}function H({editor:e,options:t,dataAttribute:n,doc:i,selection:o,from:s,to:a}){let{anchor:l}=o,c=[],u=e.isEmpty;return i.nodesBetween(s,a,(i,o)=>{let s=l>=o&&l<=o+i.nodeSize,a=!i.isLeaf&&(0,r.Op)(i);return i.type.isTextblock&&(s||!t.showOnlyCurrent)&&a&&c.push(F({editor:e,isEmptyDoc:u,dataAttribute:n,hasAnchor:s,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:U(t.emptyNodeClass,{editor:e,node:i,pos:o,hasAnchor:s})},node:i,pos:o})),t.includeChildren}),c}function q({editor:e,options:t,dataAttribute:n,doc:i,selection:o}){if(!(e.isEditable||!t.showOnlyWhenEditable))return null;let{anchor:s}=o,l=[],c=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let o=i.resolve(s),a=o.depth>0?o.node(1):o.nodeAfter,u=o.depth>0?o.before(1):s;if(a&&a.type.isTextblock&&(0,r.Op)(a)){let r=s>=u&&s<=u+a.nodeSize;l.push(F({editor:e,isEmptyDoc:c,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:U(t.emptyNodeClass,{editor:e,node:a,pos:u,hasAnchor:r})},node:a,pos:u}))}}else l.push(...H({editor:e,options:t,dataAttribute:n,doc:i,selection:o,from:0,to:i.content.size}));return a.zF.create(i,l)}function W(e,t){var n;let r=e.resolve(t);if(0===r.depth){let e=null!=(n=r.nodeAfter)?n:r.nodeBefore;if(!e)return{from:t,to:t};let i=r.nodeAfter?t:t-e.nodeSize;return{from:i,to:i+e.nodeSize}}let i=r.before(1);return{from:i,to:i+r.node(1).nodeSize}}function K(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function Y(e,t){return!e.selection.empty&&!(0,r.BQ)(e.selection)&&t.isEditable}function V({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}r.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:P,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[function({editor:e,options:t}){let n=t.dataAttribute?`data-${t.dataAttribute.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}`:`data-${P}`,o=t.showOnlyCurrent&&!t.includeChildren;return new i.k_({key:$,...o?{}:{state:function({editor:e,options:t,dataAttribute:n}){return{init(r,i){let o=q({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection});return null!=o?o:a.zF.empty},apply:(i,o,s,a)=>i.docChanged||i.selectionSet?function({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:o,selection:s}){let a=e;for(let e of t){let{from:t,to:l}=function(e,t,n){let r=Math.max(0,Math.min(e,n.content.size)),i=Math.max(r,Math.min(t,n.content.size));return{from:r,to:i}}(e.from,e.to,o),c=a.find(t,l).filter(e=>e.from>=t&&e.to<=l);c.length&&(a=a.remove(c));let u=H({editor:n,options:r,dataAttribute:i,doc:o,selection:s,from:t,to:l});u.length&&(a=a.add(o,u))}return a}({decorations:o.map(i.mapping,i.doc),ranges:function(e,t,n){let i=[];if(e.docChanged)for(let t of(0,r.FF)(e))i.push(...function(e,t){let n=function(e,t,n){let r=[];return e.forEach((e,i)=>{let o=i+e.nodeSize,s=o+1;i+1<n&&s>t&&r.push({from:i,to:o})}),r}(e,t.from,t.to);return n.push(K(e,W(e,t.from))),t.to>t.from?n.push(K(e,W(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(K(e,W(e,Math.min(t.from+1,e.content.size)))),n}(n.doc,t.newRange));return e.selectionSet&&(i.push(K(n.doc,W(n.doc,e.mapping.map(t.selection.anchor)))),i.push(K(n.doc,W(n.doc,n.selection.anchor)))),function(e){if(0===e.length)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}(i)}(i,s,a),editor:e,options:t,dataAttribute:n,doc:a.doc,selection:a.selection}):o}}({editor:e,options:t,dataAttribute:n})},props:{decorations:o?({doc:r,selection:i})=>q({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>{var r;return t.showOnlyWhenEditable&&!e.isEditable?a.zF.empty:null!=(r=$.getState(n))?r:a.zF.empty}}})}({editor:this.editor,options:this.options})]}}),r.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:n=>!Y(n,e)||e.isFocused||e.view.dragging?null:a.zF.create(n.doc,[a.NZ.inline(n.selection.from,n.selection.to,{class:t.className})]),handleDOMEvents:{blur(t){var n;
3return!!Y(t.state,e)&&(null==(n=window.getSelection())||n.removeAllRanges(),!1)},focus:t=>!!Y(t.state,e)&&(requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&t.focus()}),!1)}}})]}});var J=r.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,r,i)=>{let{doc:o,tr:s,schema:a}=i,l=t.getState(i),c=o.content.size,u=a.nodes[n];if(!e.some(e=>e.getMeta("skipTrailingNode"))&&l)return s.insert(c,u.create())},state:{init:(e,t)=>!V({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!V({node:e.doc.lastChild,types:r})}})]}}),G=r.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>L(e,t),redo:()=>({state:e,dispatch:t})=>D(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:N,state:{init:()=>new A(k.empty,k.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(N),o;if(i)return i.historyState;n.getMeta(I)&&(e=new A(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(N))if(s.getMeta(N).redo)return new A(e.done.addTransform(n,void 0,r,T(t)),e.undone,S(n.mapping.maps),e.prevTime,e.prevComposition);else return new A(e.done,e.undone.addTransform(n,void 0,r,T(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new A(e.done.rebased(n,o),e.undone.rebased(n,o),M(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new A(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),M(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),a=s?M(e.prevRanges,n.mapping):S(n.mapping.maps);return new A(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,T(t)),k.empty,a,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?L:"historyRedo"==n?D:null;return!!r&&!!e.editable&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}})},30232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(30171).n4},30814:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},31363:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(76908),i=r.CU.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:e=>"super"===e&&null}],renderHTML({HTMLAttributes:e}){return["sup",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setSuperscript:()=>({commands:e})=>e.setMark(this.name),toggleSuperscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSuperscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}})},32069:e=>{class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}class i{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!e.scope)return;let t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){e.scope&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}let o=(e={})=>{let t={children:[]};return Object.assign(t,e),t};class s{constructor(){this.rootNode=o(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=o({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEac
3h(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{s._collapse(e)}))}}class a extends s{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new i(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(e){return e?"string"==typeof e?e:e.source:null}function c(e){return h("(?=",e,")")}function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}function h(...e){return e.map(e=>l(e)).join("")}function p(...e){return"("+(function(e){let t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e).capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function f(e){return RegExp(e.toString()+"|").exec("").length-1}let g=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function m(e,{joinWith:t}){let n=0;return e.map(e=>{let t=n+=1,r=l(e),i="";for(;r.length>0;){let e=g.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}let y="[a-zA-Z]\\w*",b="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",E={begin:"\\\\[\\s\\S]",relevance:0},A=function(e,t,n={}){let i=r({scope:"comment",begin:e,end:t,contains:[]},n);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});
3let o=p("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:h(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},_=A("//","$"),S=A("/\\*","\\*/"),M=A("#","$");var C=Object.freeze({__proto__:null,APOS_STRING_MODE:{scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[E]},BACKSLASH_ESCAPE:E,BINARY_NUMBER_MODE:{scope:"number",begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:A,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:_,C_NUMBER_MODE:{scope:"number",begin:w,relevance:0},C_NUMBER_RE:w,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:M,IDENT_RE:y,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+b,relevance:0},NUMBER_MODE:{scope:"number",begin:v,relevance:0},NUMBER_RE:v,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:{scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[E]},REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[E,{begin:/\[/,end:/\]/,relevance:0,contains:[E]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:y,relevance:0},UNDERSCORE_IDENT_RE:b,UNDERSCORE_TITLE_MODE:{scope:"title",begin:b,relevance:0}});function O(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function T(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function N(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=O,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function I(e,t){Array.isArray(e.illegal)&&(e.illegal=p(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function L(e,t){void 0===e.relevance&&(e.relevance=1)}let D=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=h(n.beforeMatch,c(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},z=["of","and","for","in","not","or","if","then","parent","list","value"],j={},B=e=>{console.error(e)},P=(e,...t)=>{console.log(`WARN: ${e}`,...t)},$=(e,t)=>{j[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),j[`${e}/${t}`]=!0)},F=Error();function U(e,t,{key:n}){let r=0,i=e[n],o={},s={};for(let e=1;e<=t.length;e++)s[e+r]=i[e],o[e+r]=!0,r+=f(t[e-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function H(e){if(e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw B("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),F;if("object"!=typeof e.beginScope||null===e.beginScope)throw B("beginScope must be object"),F;U(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw B("skip, excludeEnd, returnEnd not compatible with endScope: {}"),F;if("object"!=typeof e.endScope||null===e.endScope)throw B("endScope must be object"),F;U(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}}class q extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}let W=Symbol("nomatch"),K=function(e){let i=Object.create(null),o=Object.create(null),s=[],g=!0,y="Could not find the language '{}', did you forget to load/include a language module?",b={disableAutodetect:!0,name:"Plain text",contains:[]},v={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:a};function w(e){return v.noHighlightRe.test(e)}
3function k(e,t,n){let r="",i="";"object"==typeof t?(r=e,n=t.ignoreIllegals,i=t.language):($("10.7.0","highlight(lang, code, ...args) has been deprecated."),$("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);let o={code:r,language:i};U("before:highlight",o);let s=o.result?o.result:E(o.language,o.code,n);return s.code=o.code,U("after:highlight",s),s}function E(e,o,s,a){let c=Object.create(null);function u(){if(!C.keywords)return void P.addText(F);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(F),n="";for(;t;){n+=F.substring(e,t.index);let r=_.case_insensitive?t[0].toLowerCase():t[0],i=C.keywords[r];if(i){let[e,o]=i;if(P.addText(n),n="",c[r]=(c[r]||0)+1,c[r]<=7&&(U+=o),e.startsWith("_"))n+=t[0];else{let n=_.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(F)}n+=F.substring(e),P.addText(n)}function d(){null!=C.subLanguage?function(){if(""===F)return;let e=null;if("string"==typeof C.subLanguage){if(!i[C.subLanguage])return P.addText(F);e=E(C.subLanguage,F,!0,j[C.subLanguage]),j[C.subLanguage]=e._top}else e=A(F,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(U+=e.relevance),P.__addSublanguage(e._emitter,e.language)}():u(),F=""}function h(e,t){""!==e&&(P.startScope(t),P.addText(e),P.endScope())}function p(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=_.classNameAliases[e[n]]||e[n],i=t[n];r?h(i,r):(F=i,u(),F=""),n++}}function b(e,t){return e.scope&&"string"==typeof e.scope&&P.openNode(_.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(F,_.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),F=""):e.beginScope._multi&&(p(e.beginScope,t),F="")),C=Object.create(e,{parent:{value:C}})}let w={};function k(n,r){let i=r&&r[0];if(F+=n,null==i)return d(),0;if("begin"===w.type&&"end"===r.type&&w.index===r.index&&""===i){if(F+=o.slice(r.index,r.index+1),!g){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=w.rule,t}return 1}if(w=r,"begin"===r.type){let e=r[0],n=r.rule,i=new t(n);for(let t of[n.__beforeBegin,n["on:begin"]])if(t&&(t(r,i),i.isMatchIgnored))return 0===C.matcher.regexIndex?(F+=e[0],1):(Y=!0,0);return n.skip?F+=e:(n.excludeBegin&&(F+=e),d(),n.returnBegin||n.excludeBegin||(F=e)),b(n,r),n.returnBegin?0:e.length}if("illegal"!==r.type||s){if("end"===r.type){let e=function(e){let n=e[0],r=o.substring(e.index),i=function e(n,r,i){let o=function(e,t){let n=e&&e.exec(t);return n&&0===n.index}(n.endRe,i);if(o){if(n["on:end"]){let e=new t(n);n["on:end"](r,e),e.isMatchIgnored&&(o=!1)}if(o){for(;n.endsParent&&n.parent;)n=n.parent;return n}}if(n.endsWithParent)return e(n.parent,r,i)}(C,e,r);if(!i)return W;let s=C;C.endScope&&C.endScope._wrap?(d(),h(n,C.endScope._wrap)):C.endScope&&C.endScope._multi?(d(),p(C.endScope,e)):s.skip?F+=n:(s.returnEnd||s.excludeEnd||(F+=n),d(),s.excludeEnd&&(F=n));do C.scope&&P.closeNode(),C.skip||C.subLanguage||(U+=C.relevance),C=C.parent;while(C!==i.parent);return i.starts&&b(i.starts,e),s.returnEnd?0:n.length}(r);if(e!==W)return e}}else{let e=Error('Illegal lexeme "'+i+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("illegal"===r.type&&""===i)return F+="\n",1;if(K>1e5&&K>3*r.index)throw Error("potential infinite loop, way more iterations than matches");return F+=i,i.length}let _=O(e);if(!_)throw B(y.replace("{}",e)),Error('Unknown language: "'+e+'"');let S=function(e){function t(t,n){return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=f(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(m(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=r(e.classNameAliases||{}),function n(o,s){if(o.isCompiled)return o;
3[T,R,H,D].forEach(e=>e(o,s)),e.compilerExtensions.forEach(e=>e(o,s)),o.__beforeBegin=null,[N,I,L].forEach(e=>e(o,s)),o.isCompiled=!0;let a=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),a=o.keywords.$pattern,delete o.keywords.$pattern),a=a||/\w+/,o.keywords&&(o.keywords=function e(t,n,r="keyword"){let i=Object.create(null);return"string"==typeof t?o(r,t.split(" ")):Array.isArray(t)?o(r,t):Object.keys(t).forEach(function(r){Object.assign(i,e(t[r],n,r))}),i;function o(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach(function(t){var n,r,o;let s=t.split("|");i[s[0]]=[e,(n=s[0],(r=s[1])?Number(r):+(o=n,!z.includes(o.toLowerCase())))]})}}(o.keywords,e.case_insensitive)),o.keywordPatternRe=t(a,!0),s&&(o.begin||(o.begin=/\B|\b/),o.beginRe=t(o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(o.endRe=t(o.end)),o.terminatorEnd=l(o.end)||"",o.endsWithParent&&s.terminatorEnd&&(o.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(o.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(e){var t;return((t="self"===e?o:e).variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return r(t,{variants:null},e)})),t.cachedVariants)?t.cachedVariants:!function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(t)?Object.isFrozen(t)?r(t):t:r(t,{starts:t.starts?r(t.starts):null})})),o.contains.forEach(function(e){n(e,o)}),o.starts&&n(o.starts,s),o.matcher=function(e){let t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}(_),M="",C=a||S,j={},P=new v.__emitter(v),$=[];for(let e=C;e!==_;e=e.parent)e.scope&&$.unshift(e.scope);$.forEach(e=>P.openNode(e));let F="",U=0,q=0,K=0,Y=!1;try{if(_.__emitTokens)_.__emitTokens(o,P);else{for(C.matcher.considerAll();;){K++,Y?Y=!1:C.matcher.considerAll(),C.matcher.lastIndex=q;let e=C.matcher.exec(o);if(!e)break;let t=o.substring(q,e.index),n=k(t,e);q=e.index+n}k(o.substring(q))}return P.finalize(),M=P.toHTML(),{language:e,value:M,relevance:U,illegal:!1,_emitter:P,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:n(o),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:q,context:o.slice(q-100,q+100),mode:t.mode,resultSoFar:M},_emitter:P};if(g)return{language:e,value:n(o),illegal:!1,relevance:0,errorRaised:t,_emitter:P,_top:C};throw t}}function A(e,t){t=t||v.languages||Object.keys(i);let r=function(e){let t={value:n(e),illegal:!1,relevance:0,_top:b,_emitter:new v.__emitter(v)};return t._emitter.addText(e),t}(e),o=t.filter(O).filter(F).map(t=>E(t,e,!1));o.unshift(r);let[s,a]=o.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1;else if(O(t.language).supersetOf===e.language)return -1}return 0});return s.secondBest=a,s}function _(e){let t=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";let n=v.languageDetectRe.exec(t);if(n){let t=O(n[1]);return t||(P(y.replace("{}",n[1])),P("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>w(e)||O(e))}(e);if(w(t))return;if(U("before:highlightElement",{el:e,language:t}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>
30&&(v.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),v.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML);let n=e.textContent,r=t?k(n,{language:t,ignoreIllegals:!0}):A(n);e.innerHTML=r.value,e.dataset.highlighted="yes";var i=r.language;let s=t&&o[t]||i;e.classList.add("hljs"),e.classList.add(`language-${s}`),e.result={language:r.language,re:r.relevance,relevance:r.relevance},r.secondBest&&(e.secondBest={language:r.secondBest.language,relevance:r.secondBest.relevance}),U("after:highlightElement",{el:e,result:r,text:n})}let S=!1;function M(){if("loading"===document.readyState){S||window.addEventListener("DOMContentLoaded",function(){M()},!1),S=!0;return}document.querySelectorAll(v.cssSelector).forEach(_)}function O(e){return i[e=(e||"").toLowerCase()]||i[o[e]]}function j(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{o[e.toLowerCase()]=t})}function F(e){let t=O(e);return t&&!t.disableAutodetect}function U(e,t){s.forEach(function(n){n[e]&&n[e](t)})}for(let t in Object.assign(e,{highlight:k,highlightAuto:A,highlightAll:M,highlightElement:_,highlightBlock:function(e){return $("10.7.0","highlightBlock will be removed entirely in v12.0"),$("10.7.0","Please use highlightElement now."),_(e)},configure:function(e){v=r(v,e)},initHighlighting:()=>{M(),$("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){M(),$("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,n){let r=null;try{r=n(e)}catch(e){if(B("Language definition for '{}' could not be registered.".replace("{}",t)),g)B(e);else throw e;r=b}r.name||(r.name=t),i[t]=r,r.rawDefinition=n.bind(null,e),r.aliases&&j(r.aliases,{languageName:t})},unregisterLanguage:function(e){for(let t of(delete i[e],Object.keys(o)))o[t]===e&&delete o[t]},listLanguages:function(){return Object.keys(i)},getLanguage:O,registerAliases:j,autoDetection:F,inherit:r,addPlugin:function(e){var t;(t=e)["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))}),s.push(e)},removePlugin:function(e){let t=s.indexOf(e);-1!==t&&s.splice(t,1)}}),e.debugMode=function(){g=!1},e.safeMode=function(){g=!0},e.versionString="11.11.1",e.regex={concat:h,lookahead:c,either:p,optional:d,anyNumberOfTimes:u},C)"object"==typeof C[t]&&function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{let r=t[n],i=typeof r;"object"!==i&&"function"!==i||Object.isFrozen(r)||e(r)}),t}(C[t]);return Object.assign(e,C),e},Y=K({});Y.newInstance=()=>K({}),e.exports=Y,Y.HighlightJS=Y,Y.default=Y},34036:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u});var r=n(76908),i=/^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,o=/^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/g,s=e=>e.match(i),a=(e,t)=>t?"https://www.youtube-nocookie.com/embed/videoseries?list=":e?"https://www.youtube-nocookie.com/embed/":"https://www.youtube.com/embed/",l=e=>{if(!e)return null;let t=e.trim();if(""===t)return null;let n=Number(t);return Number.isNaN(n)?t:n},c=e=>{let t=e.getAttribute("src");if(!t)return null;let n=(e=>{let t;try{t=new URL(e)}catch{return null}let n=t.hostname.replace(/^www\./,"");if("youtube.com"!==n&&"youtube-nocookie.com"!==n)return null;let r=null;if("/embed/videoseries"===t.pathname){let e=t.searchParams.get("list");if(!e)return null;r=`https://www.youtube.com/playlist?list=${e}`}else{let e=t.pathname.match(/^\/embed\/([\w-]+)$/);if(!(null==e?void 0:e[1]))return null;r=`https://www.youtube.com/watch?v=${e[1]}`}if(!s(r))return null;let i={src:r},o=t.searchParams.get("start");if(o){let e=Number.parseInt(o,10);Number.isNaN(e)||(i.start=e)}return i})(t);return n||{src:t}},u=r.bP.create({name:"youtube",addOptions:()=>({addPasteHandler:!0,allowFullscreen:!0,autoplay:!1,ccLanguage:void 0,ccLoadPolicy:void 0,controls:!0,disableKBcontrol
3s:!1,enableIFrameApi:!1,endTime:0,height:480,interfaceLanguage:void 0,ivLoadPolicy:0,loop:!1,modestBranding:!1,HTMLAttributes:{},inline:!1,nocookie:!1,origin:"",playlist:"",progressBarColor:void 0,width:640,rel:1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null,parseHTML:e=>{var t;return null==(t=c(e))?void 0:t.src}},start:{default:0,parseHTML:e=>{var t;return null==(t=c(e))?void 0:t.start}},width:{default:this.options.width,parseHTML:e=>l(e.getAttribute("width"))},height:{default:this.options.height,parseHTML:e=>l(e.getAttribute("height"))}}},parseHTML:()=>[{tag:"div[data-youtube-video] iframe"}],addCommands(){return{setYoutubeVideo:e=>({commands:t})=>!!s(e.src)&&t.insertContent({type:this.name,attrs:e})}},addPasteRules(){return this.options.addPasteHandler?[(0,r.gg)({find:o,type:this.type,getAttributes:e=>({src:e.input})})]:[]},renderHTML({HTMLAttributes:e}){let t=(e=>{let{url:t,allowFullscreen:n,autoplay:r,ccLanguage:i,ccLoadPolicy:o,controls:l,disableKBcontrols:c,enableIFrameApi:u,endTime:d,interfaceLanguage:h,ivLoadPolicy:p,loop:f,modestBranding:g,nocookie:m,origin:y,playlist:b,progressBarColor:v,startAt:w,rel:k}=e;if(!s(t))return null;if(t.includes("/embed/"))return t;if(t.includes("youtu.be")){let e=t.split("/").pop();return e?`${a(m)}${e}`:null}let E=/(?:(v|list)=|shorts\/)([-\w]+)/gm.exec(t);if(!E||!E[2])return null;let A=`${a(m,"list"===E[1])}${E[2]}`,_=[];return!1===n&&_.push("fs=0"),r&&_.push("autoplay=1"),i&&_.push(`cc_lang_pref=${i}`),o&&_.push("cc_load_policy=1"),l||_.push("controls=0"),c&&_.push("disablekb=1"),u&&_.push("enablejsapi=1"),d&&_.push(`end=${d}`),h&&_.push(`hl=${h}`),p&&_.push(`iv_load_policy=${p}`),f&&_.push("loop=1"),g&&_.push("modestbranding=1"),y&&_.push(`origin=${y}`),b&&_.push(`playlist=${b}`),w&&_.push(`start=${w}`),v&&_.push(`color=${v}`),void 0!==k&&_.push(`rel=${k}`),_.length&&(A+=`${"list"===E[1]?"&":"?"}${_.join("&")}`),A})({url:e.src,allowFullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,controls:this.options.controls,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,nocookie:this.options.nocookie,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,startAt:e.start||0,rel:this.options.rel});return e.src=t,["div",{"data-youtube-video":""},["iframe",(0,r.KV)(this.options.HTMLAttributes,{width:this.options.width,height:this.options.height,allowfullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,rel:this.options.rel},e)]]},...(0,r.t9)({nodeName:"youtube",allowedAttributes:["src","width","height","start"]})})},34357:(e,t,n)=>{"use strict";n.d(t,{YQ:()=>i,d7:()=>a});var r=n(12115);function i(e,t,n){var i=this,o=(0,r.useRef)(null),s=(0,r.useRef)(0),a=(0,r.useRef)(null),l=(0,r.useRef)([]),c=(0,r.useRef)(),u=(0,r.useRef)(),d=(0,r.useRef)(e),h=(0,r.useRef)(!0);(0,r.useEffect)(function(){d.current=e},[e]);var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,m="maxWait"in n,y=m?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,s.current=e,u.current=d.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||m&&e-s.current>=y},b=function(t){return a.current=null,g&&l.current?e(t):(l.current=c.current=null,u.current)},v=function e(){var i=Date.now();if(r(i))return b(i);if(h.current){var a=t-(i-o.current);n(e,m?Math.min(a,y-(i-s.current)):a)}},w=function(){var d=Date.now(),p=r(d);if(l.current=[].slice.call(arguments),c.current=i,o.current=d,p){if(!a.current&&h.current)return s.current=o.current,n(v,t),f?e(o.current):u.current;if(m)return n(v,t),e(o.current)}return a.current||n(v,t),u.current};return w.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),s.current=0,l.current=o.current=c.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?b(Date.now()):u.current},w},[f,m,t,y,g,p])}function o(e,t){return e===t}function s(e){return"function"==typeof e?function(){return e}:e}function a(e,t,n){var a,l,c=n&&n.equalityFn||o,u=(l=(a=(0,r.useState)(s(e)))[1],[a[0],(0,r.useCallback)(function(e){return l(s(e))},[])]),d=u[0],h=u[1],p=i((0,r.useCallback)(function(e){return h(e)},[h]),t,n),f=(0,r.useRef)(e);return c(f.current,e)||(p(e),f.current=e),[d,p]}}
3,35299:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35597:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]])},36458:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]])},37445:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(76908),i=" ",o=r.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(1===n.length&&"image"===n[0].type)return t.parseChildren([n[0]]);let r=t.parseInline(n);return 1===n.length&&"text"===n[0].type&&(n[0].raw===i||n[0].text===i||"\xa0"===n[0].raw||"\xa0"===n[0].text)&&1===r.length&&"text"===r[0].type&&(r[0].text===i||"\xa0"===r[0].text)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{var r,o;if(!e)return"";let s=Array.isArray(e.content)?e.content:[];if(0===s.length){let e=Array.isArray(null==(r=null==n?void 0:n.previousNode)?void 0:r.content)?n.previousNode.content:[];return(null==(o=null==n?void 0:n.previousNode)?void 0:o.type)==="paragraph"&&0===e.length?i:""}return t.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},37964:(e,t,n)=>{var r=n(67777);e.exports=function(e,t){return new Promise(function(n,i){var o,s=t||{};function a(e){i(e||Error("Aborted"))}function l(e,t){if(e.bail)return void a(e);o.retry(e)?s.onRetry&&s.onRetry(e,t):i(o.mainError())}"randomize"in s||(s.randomize=!0),(o=r.operation(s)).attempt(function(t){var r;try{r=e(a,t)}catch(e){l(e,t);return}Promise.resolve(r).then(n).catch(function(e){l(e,t)})})})}},38488:(e,t,n)=>{"use strict";n.d(t,{Gq:()=>c,Qk:()=>l,Vg:()=>p,Yr:()=>o,fq:()=>a,vy:()=>f});var r=n(51890),i=n(74844);(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)();var o=(e,t,n)=>{let r=Array.from(e||[]);return r.splice(t,0,n),r};(0,i.hY)();var s=(e,t)=>{let[n]=e.split(":"),r=t.indexes.nodes[n];return((null==r?void 0:r.path)||[]).map(e=>e.split(":")[0])};(0,i.hY)();var a=(e,t,n=!1)=>{let o=(0,r.$C)(e.type);return(0,r.Ir)((0,i.ko)((0,i.IA)({},e),{props:n?(0,i.ko)((0,i.IA)({},e.props),{id:o}):(0,i.IA)({},e.props)}),t,e=>e.map(e=>{let t=(0,r.$C)(e.type);return(0,i.ko)((0,i.IA)({},e),{props:n?(0,i.ko)((0,i.IA)({},e.props),{id:t}):(0,i.IA)({id:t},e.props)})}))};function l(e,t,n){let l=t.id||(0,r.$C)(t.componentType),c=a({type:t.componentType,props:(0,i.ko)((0,i.IA)({},n.config.components[t.componentType].defaultProps||{}),{id:l})},n.config),[u]=t.destinationZone.split(":"),d=s(t.destinationZone,e);return(0,r.CS)(e,n.config,(e,n)=>n===t.destinationZone?o(e||[],t.destinationIndex,c):e,(e,n)=>e.props.id===l||e.props.id===u||d.includes(e.props.id)||n.includes(t.destinationZone)?e:null)}function c(e,t){var n,i;let o=null==(n=t.indexes.zones)?void 0:n[e.zone||r.Ln];return o?null==(i=t.indexes.nodes[o.contentIds[e.index]])?void 0:i.data:void 0}(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)();var u=(e,t)=>{let n=Array.from(e);return n.splice(t,1),n},d=(e,t,n)=>{if(t.sourceZone===t.destinationZone&&t.sourceIndex===t.destinationIndex)return e;let i=c({zone:t.sourceZone,index:t.sourceIndex},e);if(!i)return e;let a=s(t.sourceZone,e),l=s(t.destinationZone,e);return(0,r.CS)(e,n.config,(e,n)=>n===t.sourceZone&&n===t.destinationZone?o(u(e,t.sourceIndex),t.destinationIndex,i):n===t.sourceZone?u(e,t.sourceIndex):n===t.destinationZone?o(e,t.destinationIndex,i):e,(e,n)=>{let[r]=t.sourceZone.split(":"),[o]=t.destinationZone.split(":"),s=e.props.id;return r===s||o===s||i.props.id===s||a.indexOf(s)>-1||l.indexOf(s)>-1||n.includes(t.destinationZone)?e:null})};(0,i.hY)(),(0,i.hY)();var h={};(0,i.hY)(),(0,i.hY)(),(0,i.hY)();var p=e=>{let{data:t,ui:n}=e;return{data:t,ui:n}};function f({record:e,onAction:t,appStore:n}){var a;return a=(e,t)=>{if("set"===t.type){if("object"==typeof t.state){let o=(0,i.IA)((0,i.IA)({},e),t.state);return t.state.indexes?o:(console.warn("`set` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."),(0,r.CS)(o,n.config))}return(0,i.IA)((0,i.IA)({},e),t.state(e))}if("insert"===t.type)return l(e,t,n);if("replace"===t.type)return((e,t,n)=>{let[o]=t.destinationZone.split(":"),a=s(t.destinationZone,e),l=e.indexes.zones[t.destinationZone].contentIds[t.destinationIndex];if(l!==t.data.props.id)throw Error('Can\'t change the id during a replace action. Please us "remove" and "insert" to define a new node.');let c=[],u=(0,r.Ir)(t.data,n.config,(e,t)=>(c.push(`${t.parentId}:${t.propName}`),e.map(e=>{let t=(0,r.$C)(e.type);return(0,i.ko)((0,i.IA)({},e),{props:(0,i.IA)({id:t},e.props)})}))),d=(0,i.ko)((0,i.IA)({},e),{ui:(0,i.IA)((0,i.IA)({},e.ui),t.ui)});
3return Object.keys(e.indexes.zones).forEach(e=>{e.split(":")[0]!==l||c.includes(e)||delete d.indexes.zones[e]}),(0,r.CS)(d,n.config,(e,n)=>{let r=[...e];return n===t.destinationZone&&(r[t.destinationIndex]=u),r},(e,t)=>{let n=t.map(e=>e.split(":")[0]);return e.props.id===u.props.id?u:e.props.id===o?e:a.indexOf(e.props.id)>-1?e:n.indexOf(u.props.id)>-1?e:null})})(e,t,n);if("replaceRoot"===t.type)return(0,r.CS)(e,n.config,e=>e,e=>"root"===e.props.id?(0,i.ko)((0,i.IA)({},e),{props:(0,i.IA)((0,i.IA)({},e.props),t.root.props),readOnly:t.root.readOnly}):e);if("duplicate"===t.type){let a=c({index:t.sourceIndex,zone:t.sourceZone},e),l=s(t.sourceZone,e),u=(0,i.ko)((0,i.IA)({},a),{props:(0,i.ko)((0,i.IA)({},a.props),{id:(0,r.$C)(a.type)})}),d=(0,r.CS)(e,n.config,(e,n)=>n===t.sourceZone?o(e,t.sourceIndex+1,a):e,(e,n,o)=>{let s=n[n.length-1];if(n.map(e=>e.split(":")[0]).indexOf(u.props.id)>-1)return(0,i.ko)((0,i.IA)({},e),{props:(0,i.ko)((0,i.IA)({},e.props),{id:(0,r.$C)(e.type)})});if(s===t.sourceZone&&o===t.sourceIndex+1)return u;let[a]=t.sourceZone.split(":");return a===e.props.id||l.indexOf(e.props.id)>-1?e:null});return(0,i.ko)((0,i.IA)({},d),{ui:(0,i.ko)((0,i.IA)({},d.ui),{itemSelector:{index:t.sourceIndex+1,zone:t.sourceZone}})})}if("reorder"===t.type)return d(e,{type:"move",sourceIndex:t.sourceIndex,sourceZone:t.destinationZone,destinationIndex:t.destinationIndex,destinationZone:t.destinationZone},n);if("move"===t.type)return d(e,t,n);if("remove"===t.type){let i=c({index:t.index,zone:t.zone},e),o=Object.entries(e.indexes.nodes).reduce((e,[t,n])=>n.path.map(e=>e.split(":")[0]).includes(i.props.id)?[...e,t]:e,[i.props.id]),s=(0,r.CS)(e,n.config,(e,n)=>n===t.zone?u(e,t.index):e);return Object.keys(s.data.zones||{}).forEach(e=>{let t=e.split(":")[0];o.includes(t)&&s.data.zones&&delete s.data.zones[e]}),Object.keys(s.indexes.zones).forEach(e=>{let t=e.split(":")[0];o.includes(t)&&delete s.indexes.zones[e]}),o.forEach(e=>{delete s.indexes.nodes[e]}),s}if("registerZone"===t.type)return h[t.zone]?(0,i.ko)((0,i.IA)({},e),{data:(0,i.ko)((0,i.IA)({},e.data),{zones:(0,i.ko)((0,i.IA)({},e.data.zones),{[t.zone]:h[t.zone]})}),indexes:(0,i.ko)((0,i.IA)({},e.indexes),{zones:(0,i.ko)((0,i.IA)({},e.indexes.zones),{[t.zone]:(0,i.ko)((0,i.IA)({},e.indexes.zones[t.zone]),{contentIds:h[t.zone].map(e=>e.props.id),type:"dropzone"})})})}):(0,i.ko)((0,i.IA)({},e),{data:(0,r.W8)(e.data,t.zone)});if("unregisterZone"===t.type){let n=(0,i.IA)({},e.data.zones||{}),r=(0,i.IA)({},e.indexes.zones||{});return n[t.zone]&&(h[t.zone]=n[t.zone],delete n[t.zone]),delete r[t.zone],(0,i.ko)((0,i.IA)({},e),{data:(0,i.ko)((0,i.IA)({},e.data),{zones:n}),indexes:(0,i.ko)((0,i.IA)({},e.indexes),{zones:r})})}return"setData"===t.type?"object"==typeof t.data?(console.warn("`setData` is expensive and may cause unnecessary re-renders. Consider using a more atomic action instead."),(0,r.CS)((0,i.ko)((0,i.IA)({},e),{data:(0,i.IA)((0,i.IA)({},e.data),t.data)}),n.config)):(0,r.CS)((0,i.ko)((0,i.IA)({},e),{data:(0,i.IA)((0,i.IA)({},e.data),t.data(e.data))}),n.config):"setUi"===t.type?"object"==typeof t.ui?(0,i.ko)((0,i.IA)({},e),{ui:(0,i.IA)((0,i.IA)({},e.ui),t.ui)}):(0,i.ko)((0,i.IA)({},e),{ui:(0,i.IA)((0,i.IA)({},e.ui),t.ui(e.ui))}):e},(n,r)=>{let i=a(n,r),o=!["registerZone","unregisterZone","setData","setUi","set"].includes(r.type);return(void 0!==r.recordHistory?r.recordHistory:o)&&e&&e(i),null==t||t(r,p(i),p(n)),i}}(0,i.hY)()},38707:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])},39068:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},39347:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},39926:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},42196:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])}
3,42529:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},43023:(e,t,n)=>{"use strict";n.d(t,{Kn:()=>u,kW:()=>c,lu:()=>s,rv:()=>a});var r=n(51890),i=n(74844),o=n(87149);(0,i.hY)();var s=[{width:360,height:"auto",icon:"Smartphone",label:"Small"},{width:768,height:"auto",icon:"Tablet",label:"Medium"},{width:1280,height:"auto",icon:"Monitor",label:"Large"},{width:"100%",height:"auto",icon:"FullWidth",label:"Full-width"}];(0,i.hY)(),(0,i.hY)();var a=(e,t)=>e?Object.keys(e.props||{}).reduce((n,r)=>{let s=(null==e?void 0:e.props)||{},a=(null==t?void 0:t.props)||{};return(0,i.ko)((0,i.IA)({},n),{[r]:!(0,o.bD)(a[r],s[r])})},{}):{},l={lastChange:{}},c=(e,t,...n)=>(0,i.BU)(null,[e,t,...n],function*(e,t,n={},s,u,d="replace",h=null){let p="type"in e&&"root"!==e.type?t.components[e.type]:t.root,f=(0,i.IA)({},e),g=(null==p?void 0:p.resolveData)&&e.props,m="id"in e.props?e.props.id:"root";if(g){let{item:t=null,resolved:r={},parentId:c=null}=l.lastChange[m]||{},u=null!==c&&(null==h?void 0:h.props.id)!==c,g=e&&!(0,o.bD)(e,t);if("move"===d&&!u||"move"!==d&&"force"!==d&&!g)return{node:r,didChange:!1};let y=a(e,t);s&&s(e);let{props:b,readOnly:v={}}=yield p.resolveData(e,{changed:y,lastData:t,metadata:(0,i.IA)((0,i.IA)({},n),p.metadata),trigger:d,parent:h});f.props=(0,i.IA)((0,i.IA)({},e.props),b),Object.keys(v).length&&(f.readOnly=v)}let y=(0,r.Rn)(f),b=yield(0,r.YP)(f,{slot:e=>(0,i.BU)(null,[e],function*({value:e}){return yield Promise.all(e.map(e=>(0,i.BU)(null,null,function*(){return(yield c(e,t,n,s,u,d,y)).node})))})},t);return g&&u&&u(f),l.lastChange[m]={item:e,resolved:b,parentId:null==h?void 0:h.props.id},{node:b,didChange:!(0,o.bD)(e,b)}});(0,i.hY)();var u={data:{content:[],root:{},zones:{}},ui:{leftSideBarVisible:!0,rightSideBarVisible:!0,arrayState:{},itemSelector:null,componentList:{},isDragging:!1,previewMode:"edit",viewports:{current:{width:s[0].width,height:s[0].height||"auto"},options:[],controlsVisible:!0},field:{focus:null},plugin:{current:null}},indexes:{nodes:{},zones:{}}}},43419:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,z:()=>i});var r=n(76908),i=r.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:"underline",raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),o=i},43586:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},44274:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});
3let r=(0,n(71847).A)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]])},44615:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])},44918:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>s});var r=n(76908),i=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&"`"===e[t.index-1]?null:{index:t.index,text:t[0],replaceWith:t[1]}},o=e=>{let t,n=/`([^`]+)`(?!`)/g,r=[];for(;null!==(t=n.exec(e));)t.index>0&&"`"===e[t.index-1]||r.push({index:t.index,text:t[0],replaceWith:t[1]});return r},s=r.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}}
3,addInputRules(){return[(0,r.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type})]}})},45221:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},46033:(e,t,n)=>{"use strict";n.d(t,{AN:()=>e9,FS:()=>tr,HO:()=>eG,gL:()=>ts,sx:()=>to,ti:()=>ti,ys:()=>eQ});var r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,b,v,w,k,E,A,_,S,M,C,O,T,N,I,R,L,D,z,j,B,P,$,F,U,H,q,W,K=n(10831),Y=n(27269),V=n(65344),J=n(27628),G=n(90781),Z=n(11988),X=Object.create,Q=Object.defineProperty,ee=Object.defineProperties,et=Object.getOwnPropertyDescriptor,en=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,es=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ea=e=>{throw TypeError(e)},el=(e,t,n)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ec=(e,t)=>{for(var n in t||(t={}))ei.call(t,n)&&el(e,n,t[n]);if(er)for(var n of er(t))eo.call(t,n)&&el(e,n,t[n]);return e},eu=(e,t)=>ee(e,en(t)),ed=(e,t)=>Q(e,"name",{value:t,configurable:!0}),eh=(e,t)=>{var n={};for(var r in e)ei.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&er)for(var r of er(e))0>t.indexOf(r)&&eo.call(e,r)&&(n[r]=e[r]);return n},ep=e=>{var t;return[,,,X(null!=(t=null==e?void 0:e[es("metadata")])?t:null)]},ef=["class","method","getter","setter","accessor","field","value","get","set"],eg=e=>void 0!==e&&"function"!=typeof e?ea("Function expected"):e,em=(e,t,n,r,i)=>({kind:ef[e],name:t,metadata:r,addInitializer:e=>n._?ea("Already initialized"):i.push(eg(e||null))}),ey=(e,t)=>el(t,es("metadata"),e[3]),eb=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},ev=(e,t,n,r,i,o)=>{var s,a,l,c,u,d=7&t,h=!!(8&t),p=!!(16&t),f=d>3?e.length+1:d?h?1:2:0,g=ef[d+5],m=d>3&&(e[f-1]=[]),y=e[f]||(e[f]=[]),b=d&&(p||h||(i=i.prototype),d<5&&(d>3||!p)&&et(d<4?i:{get[n](){return ek(this,o)},set[n](x){return eA(this,o,x)}},n));d?p&&d<4&&ed(o,(d>2?"set ":d>1?"get ":"")+n):ed(i,n);for(var v=r.length-1;v>=0;v--)c=em(d,n,l={},e[3],y),d&&(c.static=h,c.private=p,u=c.access={has:p?e=>ex(i,e):e=>n in e},3^d&&(u.get=p?e=>(1^d?ek:e_)(e,i,4^d?o:b.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>eA(e,i,t,4^d?o:b.set):(e,t)=>e[n]=t)),a=(0,r[v])(d?d<4?p?o:b[g]:d>4?void 0:{get:b.get,set:b.set}:i,c),l._=1,4^d||void 0===a?eg(a)&&(d>4?m.unshift(a):d?p?o=a:b[g]=a:i=a):"object"!=typeof a||null===a?ea("Object expected"):(eg(s=a.get)&&(b.get=s),eg(s=a.set)&&(b.set=s),eg(s=a.init)&&m.unshift(s));return d||ey(e,i),b&&Q(i,n,b),p?4^d?o:b:i},ew=(e,t,n)=>t.has(e)||ea("Cannot "+n),ex=(e,t)=>Object(t)!==t?ea('Cannot use the "in" operator on this value'):e.has(t),ek=(e,t,n)=>(ew(e,t,"read from private field"),n?n.call(e):t.get(e)),eE=(e,t,n)=>t.has(e)?ea("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),eA=(e,t,n,r)=>(ew(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),e_=(e,t,n)=>(ew(e,t,"access private method"),n),eS={role:"button",roleDescription:"draggable"},eM={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},eC={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}},eO=["dragover","dragmove"],eT=class extends K.k_{constructor(e,t){let n,r,i,o;super(e);let{id:s,idPrefix:{description:a="dnd-kit-description",announcement:l="dnd-kit-announcement"}={},announcements:c=eC,screenReaderInstructions:u=eM,debounce:d=500}=null!=t?t:{},h=s?`${a}-${s}`:(0,Y.Ij)(a),p=s?`${l}-${s}`:(0,Y.Ij)(l),f=(e=o)=>{i&&e&&(null==i?void 0:i.nodeValue)!==e&&(i.nodeValue=e)},g=()=>Y.ck.schedule(f),m=function(e,t){let n,r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(g,d),y=Object.entries(c).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{let s=i;if(!s)return;let a=null==t?void 0:t(n,r);a&&s.nodeValue!==a&&(o=a,eO.includes(e)?m():(g(),m.cancel()))})),b=()=>{let e=[];(null==n?void 0:n.isConnected)||(n=function(e,t){let n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(h,u.draggable),e.push(n)),(null==r?void 0:r.isConnected)||(r=function(e){let t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(p),i=document.createTextNode(""),r.appendChild(i),e.push(r)),e.length>0&&document.body.append(...e)},v=new Set;function w(){for(let e of v)e()}this.registerEffect(()=>{var e;
3for(let t of(v.clear(),this.manager.registry.draggables.value)){let i=null!=(e=t.handle)?e:t.element;if(i){for(let e of(n&&r||v.add(b),(!["input","select","textarea","a","button"].includes(i.tagName.toLowerCase())||(0,Y.nr)())&&!i.hasAttribute("tabindex")&&v.add(()=>i.setAttribute("tabindex","0")),i.hasAttribute("role")||"button"===i.tagName.toLowerCase()||v.add(()=>i.setAttribute("role",eS.role)),i.hasAttribute("aria-roledescription")||v.add(()=>i.setAttribute("aria-roledescription",eS.roleDescription)),i.hasAttribute("aria-describedby")||v.add(()=>i.setAttribute("aria-describedby",h)),["aria-pressed","aria-grabbed"])){let n=String(t.isDragging);i.getAttribute(e)!==n&&v.add(()=>i.setAttribute(e,n))}let e=String(t.disabled);i.getAttribute("aria-disabled")!==e&&v.add(()=>i.setAttribute("aria-disabled",e))}}v.size>0&&Y.ck.schedule(w)}),this.destroy=()=>{super.destroy(),null==n||n.remove(),null==r||r.remove(),y.forEach(e=>e())}}},eN=class extends K.k_{constructor(e,t){super(e,t),this.manager=e;let n=(0,V.EW)(()=>{var e;return(0,Y.YE)(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=(0,J.QZ)(()=>{var e;let{dragOperation:t}=this.manager,{cursor:r="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){let e=n.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${r} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},eI="data-dnd-",eR=`${eI}dropping`,eL="--dnd-",eD=`${eI}dragging`,ez=`${eI}placeholder`,ej=[eD,ez,"popover","aria-pressed","aria-grabbing"],eB=["view-transition-name"],eP=` 4 :root [${eD}] { 5 position: fixed !important; 6 pointer-events: none !important; 7 touch-action: none; 8 z-index: calc(infinity); 9 will-change: translate; 10 top: var(${eL}top, 0px) !important; 11 left: var(${eL}left, 0px) !important; 12 right: unset !important; 13 bottom: unset !important; 14 width: var(${eL}width, auto); 15 max-width: var(${eL}width, auto); 16 height: var(${eL}height, auto); 17 max-height: var(${eL}height, auto); 18 transition: var(${eL}transition) !important; 19 } 20 21 :root [${ez}] { 22 transition: none; 23 } 24 25 :root [${ez}='hidden'] { 26 visibility: hidden; 27 } 28 29 [${eD}] * { 30 pointer-events: none !important; 31 } 32 33 [${eD}]:not([${eR}]) { 34 translate: var(${eL}translate) !important; 35 } 36 37 [${eD}][style*='${eL}scale'] { 38 scale: var(${eL}scale) !important; 39 transform-origin: var(${eL}transform-origin) !important; 40 } 41 42 @layer { 43 :where([${eD}][popover]) { 44 overflow: visible; 45 background: unset; 46 border: unset; 47 margin: unset; 48 padding: unset; 49 color: inherit; 50 51 &:is(input, button) { 52 border: revert; 53 background: revert; 54 } 55 } 56 } 57 [${eD}]::backdrop, [${eI}overlay]:not([${eD}]) { 58 display: none; 59 visibility: hidden; 60 } 61`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function e$(e,t){return e===t||(0,Y._m)(e)===(0,Y._m)(t)}function eF(e){let{target:t}=e;"newState"in e&&"closed"===e.newState&&(0,Y.vq)(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>(0,Y.dO)(t))}function eU(e){return"TR"===e.tagName}var eH=new Map,eq=class extends(i=K.k_,r=[V.Kh],i){constructor(e,t){super(e,t),eE(this,a),eE(this,s,eb(o,8,this)),eb(o,11,this),this.state={initial:{},current:{}},this.registerEffect(e_(this,a,c)),this.registerEffect(e_(this,a,l))}destroy(){for(let[e,t]of(super.destroy(),eH.entries()))t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),eH.delete(e)))}};o=ep(i),s=new WeakMap,a=new WeakSet,l=function(){var e,t,n;let r,i,{state:o,manager:s,options:a}=this,{dragOperation:l}=s,{position:c,source:u,status:d}=l;if(d.idle){o.current={},o.initial={};return}if(!u)return;let{element:h,feedback:p}=u;if(!h||"none"===p||!d.initialized||d.initializing)return;let{initial:f}=o,g=null!=(e=this.overlay)?e:h,m=(0,Y.y4)(g),y=(0,Y.y4)(h),b=!e$(h,g),v=new Y.yS(h,{frameTransform:b?y:null,ignoreTransforms:!b}),w={x:y.scaleX/m.scaleX,y:y.scaleY/m.scaleY},{width:k,height:E,top:A,left:_}=v;b&&(k/=w.x,E/=w.y);let S=new Y.P_(g),{transition:M,translate:C,boxSizing:O,paddingBlockStart:T,paddingBlockEnd:N,paddingInlineStart:I,paddingInlineEnd:R,borderInlineStartWidth:L,borderInlineEndWidth:D,borderBlockStartWidth:z,borderBlockEndWidth:j}=(0,Y.qt)(h),B="clone"===p,P="content-box"===O,$=P?parseInt(I)+parseInt(R)+parseInt(L)+parseInt(D):0,F=P?parseInt(T)+parseInt(N)+parseInt(z)+parseInt(j):0,U="move"===p||this.overlay?null:function(e,t="hidden"){return(0,J.O8)(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=function(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${eI}
61${(0,Y.Ij)("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),o=[],s=(0,Y.Ob)(n),{remove:a}=s;return function(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!o)continue;let s=r.element;r.proxy=o,o.removeAttribute(i),Y.hZ.set(s,o),n.push(()=>{Y.hZ.delete(s),r.proxy=void 0})}}(i,s,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(ez,t)}(s,t),s.remove=()=>{o.forEach(e=>e()),a.call(s)},s})}(u,B?"clone":"hidden"),H=(0,J.O8)(()=>(0,Y.kx)(s.dragOperation.activatorEvent));if("none"!==C){let e=(0,Y.g)(C);e&&!f.translate&&(f.translate=e)}if(!f.transformOrigin){let e=(0,J.O8)(()=>c.current);f.transformOrigin={x:(e.x-_*m.scaleX-m.x)/(k*m.scaleX),y:(e.y-A*m.scaleY-m.y)/(E*m.scaleY)}}let{transformOrigin:q}=f,W=A*m.scaleY+m.y,K=_*m.scaleX+m.x;if(!f.coordinates&&(f.coordinates={x:K,y:W},1!==w.x||1!==w.y)){let{scaleX:e,scaleY:t}=y,{x:n,y:r}=q;f.coordinates.x+=(k*e-k)*n,f.coordinates.y+=(E*t-E)*r}f.dimensions||(f.dimensions={width:k,height:E}),f.frameTransform||(f.frameTransform=m);let Z={x:f.coordinates.x-K,y:f.coordinates.y-W},X={width:(f.dimensions.width*f.frameTransform.scaleX-k*m.scaleX)*q.x,height:(f.dimensions.height*f.frameTransform.scaleY-E*m.scaleY)*q.y},Q={x:Z.x/m.scaleX+X.width,y:Z.y/m.scaleY+X.height},ee={left:_+Q.x,top:A+Q.y};g.setAttribute(eD,"true");let et=(0,J.O8)(()=>l.transform),en=null!=(t=f.translate)?t:{x:0,y:0},er=et.x*m.scaleX+en.x,ei=et.y*m.scaleY+en.y,eo=`${er}px ${ei}px 0`,es=M?`${M}, translate 0ms linear`:"";S.set({width:k-$,height:E-F,top:ee.top,left:ee.left,translate:eo,transition:es,scale:b?`${w.x} ${w.y}`:"","transform-origin":`${100*q.x}% ${100*q.y}%`},eL),U&&(h.insertAdjacentElement("afterend",U),(null==a?void 0:a.rootElement)&&("function"==typeof a.rootElement?a.rootElement(u):a.rootElement).appendChild(h)),(0,Y.Ot)(g)&&(g.hasAttribute("popover")||g.setAttribute("popover","manual"),(0,Y.dO)(g),g.addEventListener("beforetoggle",eF));let ea=new ResizeObserver(()=>{if(!U)return;let e=new Y.yS(U,{frameTransform:m,ignoreTransforms:!0}),t=null!=q?q:{x:1,y:1},n=(k-e.width)*t.x+Q.x,i=(E-e.height)*t.y+Q.y;if(S.set({width:e.width-$,height:e.height-F,top:A+i,left:_+n},eL),null==r||r.takeRecords(),eU(h)&&eU(U)){let e=Array.from(h.cells),t=Array.from(U.cells);for(let[n,r]of e.entries()){let e=t[n];r.style.width=`${e.offsetWidth}px`}}l.shape=new Y.yS(g)}),el=new Y.yS(g);(0,J.O8)(()=>l.shape=el);let ed=(0,Y.zk)(g),eh=e=>{this.manager.actions.stop({event:e})};H&&ed.addEventListener("resize",eh),"idle"===(0,J.O8)(()=>u.status)&&requestAnimationFrame(()=>u.status="dragging"),U&&(ea.observe(U),(r=new MutationObserver(e=>{let t=!1;for(let n of e){if(n.target!==h){t=!0;continue}if("attributes"!==n.type)continue;let e=n.attributeName;if(e.startsWith("aria-")||ej.includes(e))continue;let r=h.getAttribute(e);if("style"===e){if((0,Y.o8)(h)&&(0,Y.o8)(U)){let e=h.style;for(let t of Array.from(U.style))""===e.getPropertyValue(t)&&U.style.removeProperty(t);for(let t of Array.from(e)){if(eB.includes(t)||t.startsWith(eL))continue;let n=e.getPropertyValue(t);U.style.setProperty(t,n)}}}else null!==r?U.setAttribute(e,r):U.removeAttribute(e)}t&&B&&(U.innerHTML=h.innerHTML)})).observe(h,{attributes:!0,subtree:!0,childList:!0}),(i=new MutationObserver(e=>{for(let t of e)if(0!==t.addedNodes.length)for(let e of Array.from(t.addedNodes)){if(e.contains(h)&&h.nextElementSibling!==U){h.insertAdjacentElement("afterend",U),(0,Y.dO)(g);return}if(e.contains(U)&&U.previousElementSibling!==h){U.insertAdjacentElement("beforebegin",h),(0,Y.dO)(g);return}}})).observe(h.ownerDocument.body,{childList:!0,subtree:!0}));let ep=null==(n=s.dragOperation.source)?void 0:n.id,ef=()=>{var e;if(!H||null==ep)return;let t=s.registry.draggables.get(ep),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;(0,Y.sb)(n)&&n.focus()},eg=()=>{null==r||r.disconnect(),null==i||i.disconnect(),ea.disconnect(),ed.removeEventListener("resize",eh),(0,Y.Ot)(g)&&(g.removeEventListener("beforetoggle",eF),g.removeAttribute("popover")),g.removeAttribute(eD),S.reset(),u.status="idle";let e=null!=o.current.translate;U&&(e||U.parentElement!==g.parentElement)&&g.isConnected&&U.replaceWith(g),null==U||U.remove()},em=(0,V.zb)(()=>{var e;let{transform:t,status:n}=l;if((t.x||t.y||o.current.translate)&&n.dragging){let n=null!=(e=f.translate)?e:{x:0,y:0},i={x:t.x/m.scaleX+n.x,y:t.y/m.scaleY+n.y},s=o.current.translate,a=(0,J.O8)(()=>l.modifiers),c=(0,J.O8)(()=>{var e;return null==(e=l.shape)?void 0:e.current});if(S.set({transition:`${M}, translate ${H?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear"}`,translate:`${i.x}px ${i.y}px 0`},eL),null==r||r.takeRecords(),c&&c!==el&&s&&!a.length){let e=G.bR.delta(i,s);l.shape=G.M_.from(c.boundingRectangle).translate(e.x*m.scaleX,e.y*m.scaleY)}else l.shape=new Y.yS(g);o.current.translate=i}},function(){if(l.status.dropped){this.dispose(),u.status="dropping";let e=o.current.translate,t=null!=e;if(e||h===g||(e={x:0,y:0}),!e)return void eg();s.renderer.rendering.then(()=>{var n,i;{(0,Y.dO)(g);let[,o]=null!=(n=(0,Y.XZ)(g,e=>"translate"in e))?n:[];null==o||o.pause();let s=null!=U?U:h,a={frameTransform:e$(g,s)?null:void 0},l=new Y.yS(g,a),c=null!=(i=(0,Y.g)((0,Y.qt)(g).translate))?i:e,d=new Y.yS(s,a),p=G.M_.delta(l,d,u.alignment),f={x:c.x-p.x,y:c.y-p.y},m=Math.round(l.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${l.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${l.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},y=Math.round(l.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${l.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${l.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};S.set({transition:M},eL),g.setAttribute(eR,""),null==r||r.takeRecords(),(0,Y.A$)({element:g,keyframes:eu(ec(ec({},m),y),{translate:[`${c.x}px ${c.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:t||g!==h?250:0,easing:"ease"}}).then(()=>{g.removeAttribute(eR),null==o||o.finish(),eg(),requestAnimationFrame(ef)})}})}});return()=>
61{eg(),em()}},c=function(){var e,t,n;let{status:r,source:i,target:o}=this.manager.dragOperation,{nonce:s}=null!=(e=this.options)?e:{};if(r.initializing)for(let e of new Set([(0,Y.YE)(null!=(t=null==i?void 0:i.element)?t:null),(0,Y.YE)(null!=(n=null==o?void 0:o.element)?n:null)])){let t=eH.get(e);if(!t){let n=document.createElement("style");n.textContent=eP,s&&n.setAttribute("nonce",s),e.head.prepend(n);let r=new MutationObserver(t=>{for(let r of t)if("childList"===r.type){let t=Array.from(r.removedNodes);t.length>0&&t.includes(n)&&e.head.prepend(n)}});r.observe(e.head,{childList:!0}),t={cleanup:()=>{r.disconnect(),n.remove()},instances:new Set},eH.set(e,t)}t.instances.add(this)}},ev(o,4,"overlay",r,eq,s),ey(o,eq),eq.configure=(0,K.cD)(eq),h=[V.Kh],p=Y.Dh.Forward,u=[V.Kh],d=Y.Dh.Reverse;var eW=class{constructor(){eE(this,g,eb(f,8,this,!0)),eb(f,11,this),eE(this,m,eb(f,12,this,!0)),eb(f,15,this)}isLocked(e){return e!==Y.Dh.Idle&&(null==e?!0===this[Y.Dh.Forward]&&!0===this[Y.Dh.Reverse]:!0===this[e])}unlock(e){e!==Y.Dh.Idle&&(this[e]=!1)}};f=ep(null),g=new WeakMap,m=new WeakMap,ev(f,4,p,h,eW,g),ev(f,4,d,u,eW,m),ey(f,eW);var eK=[Y.Dh.Forward,Y.Dh.Reverse],eY=class{constructor(){this.x=new eW,this.y=new eW}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},eV=class extends K.k_{constructor(e){super(e);let t=(0,J.vP)(new eY),n=null;this.signal=t,(0,J.QZ)(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new eY;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:eJ(i.x,n.x),y:eJ(i.y,n.y)},r=t.peek();(0,J.vA)(()=>{for(let t of G.Y5)for(let n of eK)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function eJ(e,t){return Math.sign(e-t)}var eG=class extends(b=K.rV,y=[V.Kh],b){constructor(e){super(e),eE(this,w,eb(v,8,this,!1)),eb(v,11,this),eE(this,k),eE(this,E,()=>{if(!ek(this,k))return;let{element:e,by:t}=ek(this,k);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return eA(this,k,void 0),!1;let{position:r}=this.manager.dragOperation,i=null==r?void 0:r.current;if(i){let{by:r}=null!=e?e:{},o=r?{x:eZ(r.x),y:eZ(r.y)}:void 0,s=o?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(let e of n){let n=(0,Y.a_)(e,r);if(n.x||n.y){let{speed:n,direction:a}=(0,Y.Fk)(e,i,o);if(s)for(let e of G.Y5)s[e].isLocked(a[e])&&(n[e]=0,a[e]=0);if(a.x||a.y){let{x:i,y:o}=null!=r?r:a,s=i*n.x,l=o*n.y;if(s||l){let n=null==(t=ek(this,k))?void 0:t.by;if(this.autoScrolling&&n&&(n.x&&!s||n.y&&!l))continue;return eA(this,k,{element:e,by:{x:s,y:l}}),Y.ck.schedule(ek(this,E)),!0}}}}}return eA(this,k,void 0),!1};let t=null,n=null,r=(0,V.EW)(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=(0,Y.Fm)((0,Y.YE)(null==r?void 0:r.element),n.current);return i&&(t=i),null!=i?i:t}),i=(0,V.EW)(()=>{let t=r.value,{documentElement:i}=(0,Y.YE)(t);if(!t||t===i){let{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){let e=(0,Y.sl)(r,{excludeElement:!1});return n=e,e}}if(t){let e=(0,Y.sl)(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},V.bD);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new eV(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&(0,Y.kx)(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function eZ(e){return e>0?Y.Dh.Forward:e<0?Y.Dh.Reverse:Y.Dh.Idle}v=ep(b),w=new WeakMap,k=new WeakMap,E=new WeakMap,ev(v,4,"autoScrolling",y,eG,w),ey(v,eG);var eX=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;for(let t of(this.pending=!1,this.tasks=new Set,this.resolvers=new Set,e))t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),eQ=class extends K.k_{constructor(e,t){super(e);let n=e.registry.plugins.get(eG);if(!n)throw Error("AutoScroller plugin depends on Scroller plugin");this.destroy=(0,J.QZ)(()=>
61{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){if(n.scroll()){n.autoScrolling=!0;let e=setInterval(()=>eX.schedule(n.scroll),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}},e0={capture:!0,passive:!0},e1=class extends K.rV{constructor(e){super(e),eE(this,A),this.handleScroll=()=>{null==ek(this,A)&&eA(this,A,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),eA(this,A,void 0)},50))};let{dragOperation:t}=this.manager;this.destroy=(0,J.QZ)(()=>{var e,n,r;if(t.status.dragging){let i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,e0),()=>{i.removeEventListener("scroll",this.handleScroll,e0)}}})}};A=new WeakMap;var e2=class extends K.k_{constructor(e,t){super(e,t),this.manager=e,this.destroy=(0,J.QZ)(()=>{var e;let{dragOperation:t}=this.manager,{nonce:n}=null!=(e=this.options)?e:{};if(t.status.initialized){let e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),e4(),document.addEventListener("selectionchange",e4,{capture:!0}),()=>{document.removeEventListener("selectionchange",e4,{capture:!0}),e.remove()}}})}};function e4(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var e5=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;let{event:n,source:r}=e,i=null!=(t=r.handle)?t:r.element;return n.target===i}}),e3=class extends K.$A{constructor(e,t){super(e),this.manager=e,this.options=t,eE(this,_,[]),this.listeners=new Y.qR,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!(0,Y.vq)(e.target)||t.disabled)return;let{keyboardCodes:r=e5.keyboardCodes,shouldActivate:i=e5.shouldActivate}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&i({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,n)}}bind(e,t=this.options){return(0,J.QZ)(()=>{var n;let r=null!=(n=e.handle)?n:e.element,i=n=>{(0,Y.kx)(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),(0,Y.$v)(r);let{center:i}=new Y.yS(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let o=(0,Y.YE)(r),s=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];ek(this,_).push(...s)}handleKeyDown(e,t,n){let{keyboardCodes:r=e5.keyboardCodes}=null!=n?n:{};if(e6(e,[...r.end,...r.cancel])){e.preventDefault();let t=e6(e,r.cancel);this.handleEnd(e,t);return}e6(e,r.up)?this.handleMove("up",e):e6(e,r.down)&&this.handleMove("down",e),e6(e,r.left)?this.handleMove("left",e):e6(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;let{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1,s={x:0,y:0},a=null!=(r=null==(n=this.options)?void 0:n.offset)?r:e5.offset;if("number"==typeof a&&(a={x:a,y:a}),i){switch(e){case"up":s={x:0,y:-a.y*o};break;case"down":s={x:0,y:a.y*o};break;case"left":s={x:-a.x*o,y:0};break;case"right":s={x:a.x*o,y:0}}(s.x||s.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:s}))}}sideEffects(){let e=this.manager.registry.plugins.get(eQ);(null==e?void 0:e.disabled)===!1&&(e.disable(),ek(this,_).push(()=>{e.enable()}))}cleanup(){ek(this,_).forEach(e=>e()),eA(this,_,[])}destroy(){this.cleanup(),this.listeners.clear()}};function e6(e,t){return t.includes(e.code)}_=new WeakMap,e3.configure=(0,K.cD)(e3),e3.defaults=e5;var e8=Object.freeze({activationConstraints(e,t){var n;let{pointerType:r,target:i}=e;if(!("mouse"===r&&(0,Y.vq)(i)&&(t.handle===i||(null==(n=t.handle)?void 0:n.contains(i)))))return"touch"===r?{delay:{value:250,tolerance:5}}:(0,Y.AI)(i)&&!e.defaultPrevented?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),e7=class extends K.$A{constructor(e,t){super(e),this.manager=e,this.options=t,eE(this,S,new Set),eE(this,M),this.listeners=new Y.qR,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t){var n;let{activationConstraints:r=e8.activationConstraints}=null!=(n=this.options)?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){return(0,J.QZ)(()=>{var n,r;let i=new AbortController,{signal:o}=i,s=n=>{(0,Y.EE)(n)&&this.handlePointerDown(n,e,t)},a=[null!=(n=e.handle)?n:e.element];for(let n of((null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e)),a)){n&&(!(r=n.ownerDocument.defaultView)||tn.has(r)||(r.addEventListener("touchmove",tt,{capture:!1,passive:!1}),tn.add(r)),n.addEventListener("pointerdown",s,{signal:o}))}return()=>i.abort()})}handlePointerDown(e,t,n={}){if(this.disabled||!e.isPrimary||0!==e.button||!(0,Y.vq)(e.target)||t.disabled||"sensor"in e||!this.manager.dragOperation.status.idle)return;let{target:r}=e,i=(0,Y.sb)(r)&&r.draggable&&"true"===r.getAttribute("draggable"),o=(0,Y.y4)(t.element);this.initialCoordinates={x:e.clientX*o.scaleX+o.x,y:e.clientY*o.scaleY+o.y};let s=this.activationConstraints(e,t);if(e.sensor=this,(null==s?void 0:s.delay)||(null==s?void 0:s.distance)){let{delay:n}=s;if(n){let r=setTimeout(()=>this.handleStart(t,e),n.value);eA(this,M,()=>{clearTimeout(r),eA(this,M,void 0)})}}else this.handleStart(t,e);let a=(0,Y.YE)(e.target),l=this.listeners.bind(a,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:te,options:{capture:!0}}]),c=()=>{var e;l(),null==(e=ek(this,M))||e.call(this),this.initialCoordinates=void 0};ek(this,S).add(c)}handlePointerMove(e,t){let n={x:e.clientX,y:e.clientY},r=(0,Y.y4)(t.element);if(n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,this.manager.dragOperation.status.dragging){e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,Y.ck.schedule(this.handleMove);return}if(!this.initialCoordinates)return;let i={x:n.x-this.initialCoordinates.x,y:n.y-this.initialCoordinates.y},o=this.activationConstraints(e,t),{distance:s,delay:a}=null!=o?o:{};if(s){if(null!=s.tolerance&&(0,G.dq)(i,s.tolerance))return this.handleCancel(e);
61if((0,G.dq)(i,s.value))return this.handleStart(t,e)}if(a&&(0,G.dq)(i,a.tolerance))return this.handleCancel(e)}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){var n;let{manager:r,initialCoordinates:i}=this;if(null==(n=ek(this,M))||n.call(this),!i||!r.dragOperation.status.idle||t.defaultPrevented)return;if(r.actions.start({coordinates:i,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();let o=(0,Y.YE)(t.target),s=o.body;s.setPointerCapture(t.pointerId);let a=this.listeners.bind(o,[{type:"touchmove",listener:te,options:{passive:!1}},{type:"click",listener:te},{type:"contextmenu",listener:te},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===s&&this.handlePointerUp(e)}}]);ek(this,S).add(a)}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},ek(this,S).forEach(e=>e()),ek(this,S).clear()}destroy(){this.cleanup(),this.listeners.clear()}};S=new WeakMap,M=new WeakMap,e7.configure=(0,K.cD)(e7),e7.defaults=e8;var e9=e7;function te(e){e.preventDefault()}function tt(){}var tn=new WeakSet,tr={modifiers:[],plugins:[eT,eQ,eN,eq,e2],sensors:[e9,e3]},ti=class extends K.ti{constructor(e={}){let{plugins:t=tr.plugins,sensors:n=tr.sensors,modifiers:r=[]}=e;super(eu(ec({},e),{plugins:[e1,eG,...t],sensors:n,modifiers:r}))}},to=class extends(N=K.sx,T=[V.Kh],O=[V.Kh],C=[V.Kh],N){constructor(e,t){var{element:n,effects:r=()=>[],handle:i,feedback:o="default"}=e;super(ec({effects:()=>[...r(),()=>{var e,t;let{manager:n}=this;if(!n)return;let r=(null!=(t=null==(e=this.sensors)?void 0:e.map(K.yu))?t:[...n.sensors]).map(e=>{let t=e instanceof K.$A?e:n.registry.register(e.plugin),r=e instanceof K.$A?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},eh(e,["element","effects","handle","feedback"])),t),eE(this,R,eb(I,8,this)),eb(I,11,this),eE(this,L,eb(I,12,this)),eb(I,15,this),eE(this,D,eb(I,16,this)),eb(I,19,this),this.element=n,this.handle=i,this.feedback=o}};I=ep(N),R=new WeakMap,L=new WeakMap,D=new WeakMap,ev(I,4,"handle",T,to,R),ev(I,4,"element",O,to,L),ev(I,4,"feedback",C,to,D),ey(I,to);var ts=class extends(B=K.gL,j=[V.Kh],z=[V.Kh],B){constructor(e,t){var{element:n,effects:r=()=>[]}=e,i=eh(e,["element","effects"]);let{collisionDetector:o=Z.V6}=i,s=e=>{let{manager:t,element:n}=this;if(!n||null===e){this.shape=void 0;return}if(!t)return;let r=new Y.yS(n),i=(0,J.O8)(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},a=(0,J.vP)(!1);super(eu(ec({},i),{collisionDetector:o,effects:()=>[...r(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;a.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(a.value&&e){let t=new Y.UX(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),eE(this,q),eE(this,$,eb(P,8,this)),eb(P,11,this),eE(this,W,eb(P,12,this)),eb(P,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){eA(this,q,e,H)}get element(){var e;return null!=(e=this.proxy)?e:ek(this,q,U)}};P=ep(B),$=new WeakMap,q=new WeakSet,W=new WeakMap,U=(F=ev(P,20,"#element",j,q,$)).get,H=F.set,ev(P,4,"proxy",z,ts,W),ey(P,ts)},46347:(e,t,n)=>{"use strict";let r;n.d(t,{g:()=>ev});var i,o,s,a,l,c,u,d,h=n(12115),p=n(27628),f=n(65344),g=n(11988),m=n(46033),y=n(27269),b=n(10831),v=n(90781),w=Object.create,k=Object.defineProperty,E=Object.defineProperties,A=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,O=e=>{throw TypeError(e)},T=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=["class","method","getter","setter","accessor","field","value","get","set"],I=e=>void 0!==e&&"function"!=typeof e?O("Function expected"):e,R=(e,t,n,r,i)=>({kind:N[e],name:t,metadata:r,addInitializer:e=>n._?O("Already initialized"):i.push(I(e||null))}),L=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},D=(e,t,n,r,i,o)=>{for(var s,a,l,c,u,d=7&t,h=e.length+1,p=N[d+5],f=e[h-1]=[],g=e[h]||
61(e[h]=[]),m=(i=i.prototype,A({get[n](){return j(this,o)},set[n](x){return P(this,o,x)}},n)),y=r.length-1;y>=0;y--)(c=R(d,n,l={},e[3],g)).static=!1,c.private=!1,(u=c.access={has:e=>n in e}).get=e=>e[n],u.set=(e,t)=>e[n]=t,a=(0,r[y])({get:m.get,set:m.set},c),l._=1,void 0===a?I(a)&&(m[p]=a):"object"!=typeof a||null===a?O("Object expected"):(I(s=a.get)&&(m.get=s),I(s=a.set)&&(m.set=s),I(s=a.init)&&f.unshift(s));return m&&k(i,n,m),i},z=(e,t,n)=>t.has(e)||O("Cannot "+n),j=(e,t,n)=>(z(e,t,"read from private field"),t.get(e)),B=(e,t,n)=>t.has(e)?O("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),P=(e,t,n,r)=>(z(e,t,"write to private field"),t.set(e,n),n);function $(e){return e instanceof ea||e instanceof es}var F=class extends b.k_{constructor(e){super(e);let t=(0,p.QZ)(()=>{let{dragOperation:t}=e;if((0,y.kx)(t.activatorEvent)&&$(t.source)&&t.status.initialized){let t=e.registry.plugins.get(m.HO);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;let{dragOperation:n}=t;if(!(0,y.kx)(e.nativeEvent)||!$(n.source)||!n.shape)return;let{actions:r,collisionObserver:i,registry:o}=t,{by:s}=e;if(!s)return;let a=function(e){let{x:t,y:n}=e;return t>0?"right":t<0?"left":n>0?"down":n<0?"up":void 0}(s),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],h=[];(0,p.vA)(()=>{for(let e of o.droppables){let{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&$(e)||!e.element)continue;let n=e.shape,r=new y.yS(e.element,{getBoundingClientRect:e=>(0,y.k$)(e,void 0,.2)});r.height&&r.width&&("down"==a&&u.y+10<r.center.y||"up"==a&&u.y-10>r.center.y||"left"==a&&u.x-10>r.center.x||"right"==a&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,h.push(()=>e.shape=n))}}),e.preventDefault(),i.disable();let f=i.computeCollisions(d,g.y$);(0,p.vA)(()=>h.forEach(e=>e()));let[m]=f;if(!m)return;let{id:b}=m,{index:w,group:k}=l.sortable;r.setDropTarget(b).then(()=>{let{source:e,target:t,shape:o}=n;if(!e||!$(e)||!o)return;let{index:s,group:a,target:l}=e.sortable,c=w!==s||k!==a,u=c?l:null==t?void 0:t.element;if(!u)return;(0,y.$v)(u);let d=new y.yS(u);if(!d)return;let h=v.M_.delta(d,v.M_.from(o.current.boundingRectangle),e.alignment);r.move({by:h}),c?r.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),t()}}},U=Object.defineProperty,H=Object.defineProperties,q=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,V=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&V(e,n,t[n]);if(W)for(var n of W(t))Y.call(t,n)&&V(e,n,t[n]);return e},G=(e,t)=>H(e,q(t));function Z(e,t,n){if(t===n)return e;let r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}var X="__default__";function Q(e,t,n,r){n.insertAdjacentElement(r<t?"afterend":"beforebegin",e)}function ee(e,t){return e.index-t.index}function et(e){return Array.from(e).sort(ee)}var en=[F,class extends b.k_{constructor(e){super(e);let t=()=>{let t=new Map;for(let n of e.registry.droppables)if(n instanceof ea){let{sortable:e}=n,{group:r}=e,i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}for(let[e,n]of t)t.set(e,new Set(et(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;let{dragOperation:r}=n,{source:i,target:o}=r;if(!$(i)||!$(o)||i.sortable===o.sortable)return;let s=t(),a=i.sortable.group===o.sortable.group,l=s.get(i.sortable.group),c=a?l:s.get(o.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,u,d;let h=t();for(let[e,t]of s.entries())for(let[n,i]of Array.from(t).entries())if(i.index!==n||i.group!==e||!(null==(r=h.get(e))?void 0:r.has(i)))return;let f=i.sortable.element,g=o.sortable.element;if(!g||!f||!a&&o.id===i.sortable.group)return;let m=et(l),y=a?m:et(c),b=null!=(u=i.sortable.group)?u:X,v=null!=(d=o.sortable.group)?d:X,w={[b]:m,[v]:y},k=function(e,t,n){var r,i;let o,s,{source:a,target:l,canceled:c}=t.operation;if(!a||!l||c)return"preventDefault"in t&&t.preventDefault(),e;let u=(e,t)=>
61e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){let t=e.findIndex(e=>u(e,a.id)),r=e.findIndex(e=>u(e,l.id));if(-1===t||-1===r)return e;if(!c&&"index"in a&&"number"==typeof a.index){let r=a.index;if(r!==t)return n(e,t,r)}return n(e,t,r)}let d=Object.entries(e),h=-1,p=-1;for(let[e,t]of d)if(-1===h&&-1!==(h=t.findIndex(e=>u(e,a.id)))&&(o=e),-1===p&&-1!==(p=t.findIndex(e=>u(e,l.id)))&&(s=e),-1!==h&&-1!==p)break;if(!a.manager)return e;let{dragOperation:f}=a.manager,g=null!=(i=null==(r=f.shape)?void 0:r.current.center)?i:f.position.current;if(null==s&&l.id in e){let t=l.shape&&g.y>l.shape.center.y?e[l.id].length:0;s=l.id,p=t}if(null==o||null==s||o===s&&h===p)return"preventDefault"in t&&t.preventDefault(),e;if(o===s)return G(J({},e),{[o]:n(e[o],h,p)});let m=+!!(l.shape&&Math.round(g.y)>Math.round(l.shape.center.y)),y=e[o][h];return G(J({},e),{[o]:[...e[o].slice(0,h),...e[o].slice(h+1)],[s]:[...e[s].slice(0,p+m),y,...e[s].slice(p+m)]})}(w,e,Z);if(w===k)return;let E=k[v].indexOf(i.sortable),A=k[v].indexOf(o.sortable);n.collisionObserver.disable(),Q(f,E,g,A),(0,p.vA)(()=>{for(let[e,t]of k[b].entries())t.index=e;if(!a)for(let[e,t]of k[v].entries())t.group=o.sortable.group,t.index=e}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;let{dragOperation:r}=n,{source:i}=r;$(i)&&(i.sortable.initialIndex!==i.sortable.index||i.sortable.initialGroup!==i.sortable.group)&&queueMicrotask(()=>{let e=t(),r=e.get(i.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(let[t,n]of e.entries())for(let[e,r]of Array.from(n).entries())if(r.index!==e||r.group!==t)return;let t=et(r),n=i.sortable.element,o=t[i.sortable.initialIndex],s=null==o?void 0:o.element;o&&s&&n&&(Q(n,o.index,s,i.index),(0,p.vA)(()=>{for(let[t,n]of e.entries())for(let e of Array.from(n).values())e.index=e.initialIndex,e.group=e.initialGroup}))})})})];this.destroy=()=>{for(let e of n)e()}}}],er={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},ei=new f._Z;o=[f.Kh],i=[f.Kh];var eo=class{constructor(e,t){let n,r;B(this,a,L(s,8,this)),L(s,11,this),B(this,l),B(this,c),B(this,u,L(s,12,this)),L(s,15,this),B(this,d),this.register=()=>((0,p.vA)(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{(0,p.vA)(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{(0,p.vA)(()=>{this.droppable.destroy(),this.draggable.destroy()})};var{effects:i=()=>[],group:o,index:h,sensors:f,type:g,transition:m=er,plugins:y=en}=e,b=((e,t)=>{var n={};for(var r in e)M.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&S)for(var r of S(e))0>t.indexOf(r)&&C.call(e,r)&&(n[r]=e[r]);return n})(e,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new ea(b,t,this),this.draggable=new es((n=((e,t)=>{for(var n in t||(t={}))M.call(t,n)&&T(e,n,t[n]);if(S)for(var n of S(t))C.call(t,n)&&T(e,n,t[n]);return e})({},b),r={effects:()=>[()=>{var e,t,n;let r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&ei.clear(this.manager),(null==r?void 0:r.dragging)&&ei.set(this.manager,this.id,(0,p.O8)(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{let{index:e,group:t,manager:n}=this,r=j(this,c),i=j(this,l);(e!==r||t!==i)&&(P(this,c,e),P(this,l,t),this.animate())},()=>{let{target:e}=this,{feedback:t,isDragSource:n}=this.draggable;"move"==t&&n&&(this.droppable.disabled=!e)},()=>{let{manager:e}=this;for(let t of y)null==e||e.registry.register(t)},...i()],type:g,sensors:f},E(n,_(r))),t,this),P(this,d,b.element),this.manager=t,this.index=h,P(this,c,h),this.group=o,P(this,l,o),this.type=g,this.transition=m}get initialIndex(){var e,t;return null!=(t=null==(e=ei.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=ei.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){(0,p.O8)(()=>{let{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;let{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{let{element:r}=this;if(!r)return;let i=this.refreshShape();if(!i)return;let o={x:n.boundingRectangle.left-i.boundingRectangle.left,y:n.boundingRectangle.top-i.boundingRectangle.top},{translate:s}=(0,y.qt)(r),a=(0,y.We)(r,s,!1),l=(0,y.We)(r,s);(o.x||o.y)&&(0,y.A$)({element:r,keyframes:{translate:[`${a.x+o.x}px ${a.y+o.y}px ${a.z}`,`${l.x}px ${l.y}px ${l.z}`]},options:t}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})})})}get manager(){return this.draggable.manager}set manager(e){(0,p.vA)(()=>{this.draggable.manager=e,this.droppable.manager=e})}
61set element(e){(0,p.vA)(()=>{let t=j(this,d),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),P(this,d,e)})}get element(){var e,t;let n=j(this,d);if(n)return null!=(t=null!=(e=y.hZ.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){(0,p.vA)(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){(0,p.vA)(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){(0,p.vA)(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:g.V6}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){(0,p.vA)(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};s=[,,,w(null)],a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,D(s,4,"index",o,eo,a),D(s,4,"group",i,eo,u),r=s,T(eo,((e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e))("metadata"),r[3]);var es=class extends m.sx{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}},ea=class extends m.gL{constructor(e,t,n){super(e,t),this.sortable=n}},el=n(97150),ec=n(85582),eu=n(29790),ed=Object.defineProperty,eh=Object.defineProperties,ep=Object.getOwnPropertyDescriptors,ef=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,ey=(e,t,n)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eb=(e,t)=>{for(var n in t||(t={}))eg.call(t,n)&&ey(e,n,t[n]);if(ef)for(var n of ef(t))em.call(t,n)&&ey(e,n,t[n]);return e};function ev(e){let{accept:t,collisionDetector:n,collisionPriority:r,id:i,data:o,element:s,handle:a,index:l,group:c,disabled:u,feedback:d,modifiers:g,sensors:m,target:y,type:b}=e,v=eb(eb({},er),e.transition),w=(0,el.Nj)(t=>new eo(eh(eb({},e),ep({transition:v,register:!1,handle:(0,eu.b)(a),element:(0,eu.b)(s),target:(0,eu.b)(y),feedback:d})),t)),k=(0,ec.MS)(w,ew);return(0,ec.CH)(i,()=>w.id=i),(0,ec.Es)(()=>{(0,p.vA)(()=>{w.group=c,w.index=l})},[w,c,l]),(0,ec.CH)(b,()=>w.type=b),(0,ec.CH)(t,()=>w.accept=t,void 0,f.bD),(0,ec.CH)(o,()=>o&&(w.data=o)),(0,ec.CH)(l,()=>{var e;(null==(e=w.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&w.refreshShape()},ec.QL),(0,ec.T_)(a,e=>w.handle=e),(0,ec.T_)(s,e=>w.element=e),(0,ec.T_)(y,e=>w.target=e),(0,ec.CH)(u,()=>w.disabled=!0===u),(0,ec.CH)(m,()=>w.sensors=m),(0,ec.CH)(n,()=>w.collisionDetector=n),(0,ec.CH)(r,()=>w.collisionPriority=r),(0,ec.CH)(d,()=>w.feedback=null!=d?d:"default"),(0,ec.CH)(v,()=>w.transition=v,void 0,f.bD),(0,ec.CH)(g,()=>w.modifiers=g,void 0,f.bD),(0,ec.CH)(e.alignment,()=>w.alignment=e.alignment),{sortable:k,get isDragging(){return k.isDragging},get isDropping(){return k.isDropping},get isDragSource(){return k.isDragSource},get isDropTarget(){return k.isDropTarget},handleRef:(0,h.useCallback)(e=>{w.handle=null!=e?e:void 0},[w]),ref:(0,h.useCallback)(e=>{var t,n;(e||null==(t=w.element)||!t.isConnected||(null==(n=w.manager)?void 0:n.dragOperation.status.idle))&&(w.element=null!=e?e:void 0)},[w]),sourceRef:(0,h.useCallback)(e=>{var t,n;(e||null==(t=w.source)||!t.isConnected||(null==(n=w.manager)?void 0:n.dragOperation.status.idle))&&(w.source=null!=e?e:void 0)}
61,[w]),targetRef:(0,h.useCallback)(e=>{var t,n;(e||null==(t=w.target)||!t.isConnected||(null==(n=w.manager)?void 0:n.dragOperation.status.idle))&&(w.target=null!=e?e:void 0)},[w])}}function ew(e,t,n){return"isDragSource"===e&&!n&&!!t}},47937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},48055:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},48835:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>r.Ci,Df:()=>r.Df,_s:()=>r._s,wC:()=>r.wC});var r=n(45093);n(64756),n(50738),n(87475),n(52596),n(9817),n(93145),n(89354),n(91960),n(38488),n(43023),n(57094),n(51890),(0,n(74844).hY)()},49027:(e,t,n)=>{"use strict";n.d(t,{JR:()=>A,_G:()=>u,be:()=>s,gB:()=>p,gl:()=>w});var r=n(12115),i=n(17787),o=n(27587);function s(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function a(e){return null!==e&&e>=0}let l=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,o=s(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},c={scaleX:1,scaleY:1},u=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e,a=null!=(t=o[n])?t:r;if(!a)return null;if(i===n){let e=o[s];return e?{x:0,y:n<s?e.top+e.height-(a.top+a.height):e.top-a.top,...c}:null}let l=function(e,t,n){let r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...c}:i<n&&i>=s?{x:0,y:a.height+l,...c}:{x:0,y:0,...c}},d="Sortable",h=r.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:s,strategy:a=l,disabled:c=!1}=e,{active:u,dragOverlay:p,droppableRects:f,over:g,measureDroppableContainers:m}=(0,i.fF)(),y=(0,o.YG)(d,n),b=null!==p.rect,v=(0,r.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),w=null!=u,k=u?v.indexOf(u.id):-1,E=g?v.indexOf(g.id):-1,A=(0,r.useRef)(v),_=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(v,A.current),S=-1!==E&&-1===k||_,M="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,o.Es)(()=>{_&&w&&m(v)},[_,v,w,m]),(0,r.useEffect)(()=>{A.current=v},[v]);let C=(0,r.useMemo)(()=>({activeIndex:k,containerId:y,disabled:M,disableTransforms:S,items:v,overIndex:E,useDragOverlay:b,sortedRects:v.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(v.length)),strategy:a}),[k,y,M.draggable,M.droppable,S,v,E,f,b,a]);return r.createElement(h.Provider,{value:C},t)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!!c&&!!r&&(a===o||i!==s)&&(!!n||s!==i&&t===l)},m={duration:200,easing:"ease"},y="transform",b=o.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),v={roleDescription:"sortable"};function w(e){var t,n,s,l;let{animateLayoutChanges:c=g,attributes:u,disabled:d,data:p,getNewIndex:w=f,id:k,strategy:E,resizeObserverConfig:A,transition:_=m}=e,{items:S,containerId:M,activeIndex:C,disabled:O,disableTransforms:T,sortedRects:N,overIndex:I,useDragOverlay:R,strategy:L}=(0,r.useContext)(h),D=(t=d,n=O,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),z=S.indexOf(k),j=(0,r.useMemo)(()=>({sortable:{containerId:M,index:z,items:S},...p}),[M,p,z,S]),B=(0,r.useMemo)(()=>S.slice(S.indexOf(k)),[S,k]),{rect:P,node:$,isOver:F,setNodeRef:U}=(0,i.zM)({id:k,data:j,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...A}}),{active:H,activatorEvent:q,activeNodeRect:W,attributes:K,setNodeRef:Y,listeners:V,isDragging:J,over:G,setActivatorNodeRef:Z,transform:X}=(0,i.PM)({id:k,data:j,attributes:{...v,...u},disabled:D.draggable}),Q=(0,o.jn)(U,Y),ee=!!H,et=ee&&!T&&a(C)&&a(I),en=!R&&J,er=en&&et?X:null,ei=et?null!=er?er:(null!=E?E:L)({rects:N,activeNodeRect:W,activeIndex:C,overIndex:I,index:z}):null,eo=a(C)&&a(I)?w({id:k,items:S,activeIndex:C,overIndex:I}):z,es=null==H?void 0:H.id,ea=(0,r.useRef)({activeId:es,items:S,newIndex:eo,containerId:M}),el=S!==ea.current.items,ec=c({active:H,containerId:M,isDragging:J,isSorting:ee,id:k,index:z,items:S,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:_,wasDragging:null!=ea.current.activeId}),eu=function(e){let{disabled:t,index:n,node:s,rect:a}=e,[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,o.Es)(()=>
61{if(!t&&n!==u.current&&s.current){let e=a.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,s,a]),(0,r.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!ec,index:z,node:$,rect:P});return(0,r.useEffect)(()=>{ee&&ea.current.newIndex!==eo&&(ea.current.newIndex=eo),M!==ea.current.containerId&&(ea.current.containerId=M),S!==ea.current.items&&(ea.current.items=S)},[ee,eo,M,S]),(0,r.useEffect)(()=>{if(es===ea.current.activeId)return;if(null!=es&&null==ea.current.activeId){ea.current.activeId=es;return}let e=setTimeout(()=>{ea.current.activeId=es},50);return()=>clearTimeout(e)},[es]),{active:H,activeIndex:C,attributes:K,data:j,rect:P,index:z,newIndex:eo,items:S,isOver:F,isSorting:ee,isDragging:J,listeners:V,node:$,overIndex:I,over:G,setNodeRef:Q,setActivatorNodeRef:Z,setDroppableNodeRef:U,setDraggableNodeRef:Y,transform:null!=eu?eu:ei,transition:eu||el&&ea.current.newIndex===z?b:(!en||(0,o.kx)(q))&&_&&(ee||ec)?o.Ks.Transition.toString({..._,property:y}):void 0}}function k(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let E=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],A=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:a,over:l,scrollableAncestors:c}}=t;if(E.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=s.get(n.id);
61if(o)switch(e.code){case i.vL.Down:r.top<o.top&&t.push(n);break;case i.vL.Up:r.top>o.top&&t.push(n);break;case i.vL.Left:r.left>o.left&&t.push(n);break;case i.vL.Right:r.left<o.left&&t.push(n)}});let u=(0,i.y$)({active:n,collisionRect:r,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),d=(0,i.Vy)(u,"id");if(d===(null==l?void 0:l.id)&&u.length>1&&(d=u[1].id),null!=d){let e=a.get(n.id),t=a.get(d),l=t?s.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&l&&e&&t){let n=(0,i.sl)(u).some((e,t)=>c[t]!==e),s=_(e,t),a=function(e,t){return!!k(e)&&!!k(t)&&!!_(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!s?{x:0,y:0}:{x:a?r.width-l.width:0,y:a?r.height-l.height:0},h={x:l.left,y:l.top};return d.x&&d.y?h:(0,o.Re)(h,d)}}}};function _(e,t){return!!k(e)&&!!k(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},49143:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(76908),i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,s=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}}
61,addInputRules(){return[(0,r.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type})]}})},49418:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(32069)},50738:(e,t,n)=>{"use strict";n.d(t,{BQ:()=>c,Ht:()=>d,P7:()=>b,Sj:()=>p,hB:()=>u,tw:()=>g,vO:()=>m});var r=n(87475);n(43023);var i=n(57094),o=n(51890),s=n(74844),a=n(12115),l=n(95155);(0,s.hY)(),(0,s.hY)(),(0,s.hY)(),(0,s.hY)(),(0,s.hY)(),(0,s.hY)();var c=(e,t=e)=>({slot:({value:n,propName:r,field:i,isReadOnly:o})=>{let a=o?t:e;return e=>a((0,s.ko)((0,s.IA)({allow:(null==i?void 0:i.type)==="slot"?i.allow:[],disallow:(null==i?void 0:i.type)==="slot"?i.disallow:[]},e),{zone:r,content:n}))}});function u(e,t,n){return Object.keys(e).reduce((r,i)=>(0,s.ko)((0,s.IA)({},r),{[i]:r=>{var{parentId:o}=r,a=(0,s.YG)(r,["parentId"]);let l=a.propPath.replace(/\[\d+\]/g,"[*]"),c=(null==t?void 0:t[a.propPath])||(null==t?void 0:t[l])||n||!1,u=e[i];return null==u?void 0:u((0,s.ko)((0,s.IA)({},a),{isReadOnly:c,componentId:o}))}}),{})}function d(e,t,n,r=n,i,l){var h=c(n,r);let p=(0,a.useMemo)(()=>u(h,i,l),[h,i,l]),f=(0,a.useMemo)(()=>(0,o.YP)(t,p,e).props,[e,t,p]);return(0,a.useMemo)(()=>(0,s.IA)((0,s.IA)({},t.props),f),[t.props,f])}(0,s.hY)(),(0,s.hY)(),(0,s.hY)(),(0,s.hY)(),(0,s.hY)();var h=(0,i.d)("RichTextEditor",r.o);function p({content:e}){return(0,l.jsx)("div",{className:h(),children:(0,l.jsx)("div",{className:"rich-text",dangerouslySetInnerHTML:{__html:e}})})}(0,s.hY)();var f=(e,t,n)=>{if(!e)return null;if(0===t.length)return n(e);let[r,...i]=t;return Array.isArray(e)?e.map(e=>f(e,t,n)):(0,s.ko)((0,s.IA)({},e),{[r]:f(e[r],i,n)})};function g(e,t){let r=(e,t=[])=>{if(!e)return[];let n=[];for(let[i,o]of Object.entries(e)){let e=[...t,i];"richtext"===o.type&&n.push({path:e,field:o}),"array"===o.type&&"arrayFields"in o&&n.push(...r(o.arrayFields,e)),"object"===o.type&&"objectFields"in o&&n.push(...r(o.objectFields,e))}return n},i=(0,a.useMemo)(()=>r(e),[e]);return(0,a.useMemo)(()=>{if(!(null==i?void 0:i.length))return{};let e=(0,a.lazy)(()=>n.e(5992).then(n.bind(n,25992)).then(e=>({default:e.RichTextRender}))),r=(0,s.IA)({},t);for(let{path:t,field:n}of i)r=f(r,t,t=>(0,l.jsx)(a.Suspense,{fallback:(0,l.jsx)(p,{content:t}),children:(0,l.jsx)(e,{content:t,field:n})},(0,o.$C)()));return r},[i,t,e])}(0,s.hY)();var m=e=>(0,l.jsx)(b,(0,s.IA)({},e)),y=({config:e,item:t,metadata:n})=>{let r=e.components[t.type],i=d(e,t,t=>(0,l.jsx)(m,(0,s.ko)((0,s.IA)({},t),{config:e,metadata:n}))),o=g(r.fields,i);return(0,l.jsx)(r.render,(0,s.ko)((0,s.IA)((0,s.IA)({},i),o),{puck:(0,s.ko)((0,s.IA)({},i.puck),{metadata:n||{}})}))},b=(0,a.forwardRef)(function({className:e,style:t,content:n,config:r,metadata:i,as:o},s){return(0,l.jsx)(null!=o?o:"div",{className:e,style:t,ref:s,children:n.map(e=>r.components[e.type]?(0,l.jsx)(y,{config:r,item:e,metadata:i},e.props.id):null)})})},50859:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},51798:(e,t,n)=>{"use strict";n.d(t,{NG:()=>a});var r=n(76908),i=n(51876),o=/^```([a-z]+)?[\s\n]$/,s=/^~~~([a-z]+)?[\s\n]$/,a=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;if(!n)return null;let r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return(null==(n=e.raw)?void 0:n.startsWith("```"))===!1&&(null==(r=e.raw)?void 0:r.startsWith("~~~"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.language)||"";return e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${r} 62 63\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;
63if(o.parent.type!==this.type)return!1;let a=" ".repeat(n);return s?e.commands.insertContent(a):e.commands.command(({tr:e})=>{let{from:t,to:n}=i,o=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>a+e).join("\n");return e.replaceWith(t,n,r.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:o}=r,{$from:s,empty:a}=o;return s.parent.type===this.type&&(a?e.commands.command(({tr:e})=>{var t;let{pos:o}=s,a=s.start(),l=s.end(),c=r.doc.textBetween(a,l,"\n","\n").split("\n"),u=0,d=0,h=o-a;for(let e=0;e<c.length;e+=1){if(d+c[e].length>=h){u=e;break}d+=c[e].length+1}let p=Math.min(((null==(t=c[u].match(/^ */))?void 0:t[0])||"").length,n);if(0===p)return!0;let f=a;for(let e=0;e<u;e+=1)f+=c[e].length+1;return e.delete(f,f+p),o-f<=p&&e.setSelection(i.U3.create(e.doc,f)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:i}=o,s=r.doc.textBetween(t,i,"\n","\n").split("\n").map(e=>{var t;let r=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,n);return e.slice(r)}).join("\n");return e.replaceWith(t,i,r.schema.text(s)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;let a=o.after();return void 0!==a&&(r.nodeAt(a)?e.commands.command(({tr:e})=>(e.setSelection(i.LN.near(r.resolve(a))),!0)):e.commands.exitCode())}}}
63,addInputRules(){return[(0,r.JJ)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:s,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=null==o?void 0:o.mode;if(!n||!s)return!1;let{tr:a,schema:l}=e.state,c=l.text(n.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:s},c)),a.selection.$from.parent.type!==this.type&&a.setSelection(i.U3.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}})},51860:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("smile-plus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]])},51876:(e,t,n)=>{"use strict";n.d(t,{$t:()=>A,LN:()=>s,U3:()=>u,hs:()=>C,i5:()=>f,k_:()=>_,nh:()=>h,yn:()=>a});var r=n(92322),i=n(62463);let o=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.Ji.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),a?r.Ji.empty:t),0==a&&y(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n),l=a.map(o.pos),c=a.map(s.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),y(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):m(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?m(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):m(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
63static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return m(e,e,0,0,1)||new f(e)}static atEnd(e){return m(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r.Ji.empty){if(super.replace(e,t),t==r.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new u(e,t)}}s.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class h extends s{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?s.near(i):new h(i)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(e){return e instanceof h&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new h(e.resolve(t.anchor))}static create(e,t){return new h(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}h.prototype.visible=!1,s.jsonID("node",h);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new p(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&h.isSelectable(n)?new h(t):s.near(t)}}class f extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.Ji.empty){if(t==r.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return g}}s.jsonID("all",f);let g={map(){return this},resolve:e=>new f(e)};function m(e,t,n,r,i,o=!1){if(t.inlineContent)return u.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&h.isSelectable(r))return h.create(e,n-(i<0?r.nodeSize:0))}else{let t=m(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function y(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let a=e.steps[o];(a instanceof i.Ln||a instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(s.near(e.doc.resolve(r),n)))}class b extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(e,t){return t&&e?e.bind(t):e}
63class w{constructor(e,t,n){this.name=e,this.init=v(t.init,n),this.apply=v(t.apply,n)}}let k=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class E{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=k.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class A{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=r?r[o].n:0,l=r?r[o].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new A(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new b(this)}static create(e){let t=new E(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new A(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new E(this.schema,e.plugins),n=t.fields,r=new A(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new E(e.schema,e.plugins),o=new A(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r)){o[i.name]=a.fromJSON.call(s,e,t[r],o);return}}o[i.name]=i.init(e,o)}}),o}}class _{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}let S=Object.create(null);function M(e){return e in S?e+"$"+ ++S[e]:(S[e]=0,e+"$")}class C{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},51890:(e,t,n)=>{"use strict";let r;n.d(t,{lH:()=>u,hE:()=>M,$C:()=>T,YP:()=>m,ho:()=>b,Ln:()=>w,bo:()=>v,W8:()=>N,Rn:()=>C,CS:()=>O,Ur:()=>f,Ir:()=>y});var i=n(74844),o=n(84780);let s={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},a=new Uint8Array(16),l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));let c=function(e,t,n){if(s.randomUUID&&!t&&!e)return s.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(a)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[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]]}(i)};(0,i.hY)(),(0,i.hY)(),(0,i.hY)();var u=(e,t)=>
63Object.keys(t).reduce((e,n)=>"slot"===t[n].type?(0,i.IA)({[n]:[]},e):e,e),d=e=>!!e&&"function"==typeof e.then,h=e=>e.reduce((e,t)=>(0,i.IA)((0,i.IA)({},e),t),{}),p=e=>e.some(d),f=({value:e,fields:t,mappers:n,propKey:r="",propPath:o="",id:s="",config:a,recurseSlots:l=!1})=>{var c,d,h;let m=null==(c=t[r])?void 0:c.type,y=n[m];if(y&&"slot"===m){let c=e||[],d=l?c.map(e=>{var t;let r=a.components[e.type];if(!r)throw Error(`Could not find component config for ${e.type}`);let o=null!=(t=r.fields)?t:{};return f({value:(0,i.ko)((0,i.IA)({},e),{props:u(e.props,o)}),fields:o,mappers:n,id:e.props.id,config:a,recurseSlots:l})}):c;return p(d)?Promise.all(d):y({value:d,parentId:s,propName:o,field:t[r],propPath:o})}if(y&&t[r])return y({value:e,parentId:s,propName:r,field:t[r],propPath:o});if(e&&"object"==typeof e)if(!Array.isArray(e))return"$$typeof"in e?e:g({value:e,fields:(null==(h=t[r])?void 0:h.type)==="object"?t[r].objectFields:t,mappers:n,id:s,getPropPath:e=>`${o}.${e}`,config:a,recurseSlots:l});else{let i=(null==(d=t[r])?void 0:d.type)==="array"?t[r].arrayFields:null;if(!i)return e;let c=e.map((e,t)=>f({value:e,fields:i,mappers:n,propKey:r,propPath:`${o}[${t}]`,id:s,config:a,recurseSlots:l}));return p(c)?Promise.all(c):c}return e},g=({value:e,fields:t,mappers:n,id:r,getPropPath:i,config:o,recurseSlots:s})=>{let a=Object.entries(e).map(([e,a])=>{let l=f({value:a,fields:t,mappers:n,propKey:e,propPath:i(e),id:r,config:o,recurseSlots:s});return d(l)?l.then(t=>({[e]:t})):{[e]:l}},{});return p(a)?Promise.all(a).then(h):h(a)};function m(e,t,n,r=!1,o=!0){var s,a,l,c,h;let p="type"in e?e.type:"root",f="root"===p?n.root:null==(s=n.components)?void 0:s[p],y=g({value:o?u(null!=(a=e.props)?a:{},null!=(l=null==f?void 0:f.fields)?l:{}):e.props,fields:null!=(c=null==f?void 0:f.fields)?c:{},mappers:t,id:e.props&&null!=(h=e.props.id)?h:"root",getPropPath:e=>e,config:n,recurseSlots:r});return d(y)?y.then(t=>(0,i.ko)((0,i.IA)({},e),{props:t})):(0,i.ko)((0,i.IA)({},e),{props:y})}function y(e,t,n){var r,o;let s=e=>m(e,{slot:({value:e,parentId:t,propName:r})=>{var i;return null!=(i=n(e,{parentId:t,propName:r}))?i:e}},t,!0);if("props"in e)return s(e);let a=null!=(r=e.zones)?r:{},l=e.content.map(s);return{root:s(e.root),content:null!=(o=n(l,{parentId:"root",propName:"default-zone"}))?o:l,zones:Object.keys(a).reduce((e,t)=>(0,i.ko)((0,i.IA)({},e),{[t]:a[t].map(s)}),{})}}(0,i.hY)();var b="root",v="default-zone",w=`${b}:${v}`;(0,i.hY)(),(0,i.hY)();var{flatten:k,unflatten:E}=o,A=e=>null!=e&&"[object Object]"===Object.prototype.toString.call(e),_="__puck_[]",S="__puck_{}",M=e=>{let t=E(function(e={}){let t={};for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];r===_?t[n]=[]:r===S?t[n]={}:t[n]=r}return t}(e.props));return(0,i.ko)((0,i.IA)({},e),{props:t})};(0,i.hY)();var C=e=>"type"in e?e:(0,i.ko)((0,i.IA)({},e),{props:(0,i.ko)((0,i.IA)({},e.props),{id:"root"}),type:"root"});function O(e,t,n=e=>e,r=e=>e){var o;let s={},a={},l={},c=(e,t,r,i,o)=>{var s;let[l]=t.split(":"),c=(null!=(s=n(r,t,i))?s:r)||[],[d,h]=t.split(":"),p=`${o||l}:${h}`,f=c.map((t,n)=>u(t,[...e,p],n));return a[p]={contentIds:f.map(e=>e.props.id),type:i},[p,f]},u=(n,o,a)=>{let u,d,h=r(n,o,a);if(!h)return n;let p=h.props.id,f=(0,i.ko)((0,i.IA)({},m(h,{slot:({value:e,parentId:t,propPath:n})=>{let[r,i]=c(o,`${t}:${n}`,e,"slot",t);return i}},t).props),{id:p});(function(e,t,n,r=[]){Object.entries(t.zones||{}).forEach(([t,i])=>{let[o]=t?t&&t.indexOf(":")>-1?t.split(":"):[w,t]:[];o===e.props.id&&n(r,t,i)})})(n,e.data,(e,t,n)=>{let[r,i]=c(e,t,n,"dropzone",p);s[r]=i},o);let g=(0,i.ko)((0,i.IA)({},h),{props:f}),y=o[o.length-1],[b,v]=y?y.split(":"):[null,""];l[p]={data:g,flatData:(u=g,d=t,(0,i.ko)((0,i.IA)({},u),{props:function(e={}){let t={};for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];Array.isArray(r)&&0===r.length?t[n]=_:A(r)&&0===Object.keys(r).length?t[n]=S:t[n]=r}return t}(k(m(u,{slot:()=>null},d).props))})),path:o,parentId:b,zone:v};let E=(0,i.ko)((0,i.IA)({},g),{props:(0,i.IA)({},g.props)});return"root"===f.id&&(delete E.type,delete E.props.id),E},d=e.data.zones||{},[h,p]=c([],w,e.data.content,"root"),f=Object.keys(s);Object.keys(d||{}
63).forEach(e=>{let[t]=e.split(":");if(f.includes(e))return;let[n,r]=c([w],e,d[e],"dropzone",t);s[e]=r},s);let g=C({props:(0,i.IA)({},null!=(o=e.data.root.props)?o:e.data.root)});e.data.root.readOnly&&(g.readOnly=e.data.root.readOnly);let y=u(g,[],-1),b=(0,i.IA)((0,i.IA)({},e.data.root),y);return(0,i.ko)((0,i.IA)({},e),{data:{root:b,content:p,zones:(0,i.IA)((0,i.IA)({},e.data.zones),s)},indexes:{nodes:(0,i.IA)((0,i.IA)({},e.indexes.nodes),l),zones:(0,i.IA)((0,i.IA)({},e.indexes.zones),a)}})}(0,i.hY)(),(0,i.hY)(),(0,i.hY)(),(0,i.hY)();var T=e=>e?`${e}-${c()}`:c();(0,i.hY)();var N=(e,t)=>{if(t===w)return e;let n=(0,i.ko)((0,i.IA)({},e),{zones:e.zones?(0,i.IA)({},e.zones):{}});return n.zones[t]=n.zones[t]||[],n}},52056:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},52472:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},52596:(e,t,n)=>{"use strict";n.d(t,{E7:()=>f,K0:()=>v,aH:()=>y,sc:()=>P});var r=n(9817),i=n(93145),o=n(89354),s=n(91960),a=n(57094),l=n(74844),c=n(95155),u=n(12115);(0,l.hY)(),(0,l.hY)();var d={ActionBar:"_ActionBar_1nmyk_1","ActionBar-label":"_ActionBar-label_1nmyk_18",ActionBarAction:"_ActionBarAction_1nmyk_30","ActionBar-group":"_ActionBar-group_1nmyk_38","ActionBarAction--disabled":"_ActionBarAction--disabled_1nmyk_71","ActionBarAction--active":"_ActionBarAction--active_1nmyk_93","ActionBar-separator":"_ActionBar-separator_1nmyk_102"},h=(0,a.d)("ActionBar",d),p=(0,a.d)("ActionBarAction",d),f=({label:e,children:t})=>(0,c.jsxs)("div",{className:h(),onClick:e=>{e.stopPropagation()},children:[e&&(0,c.jsx)(f.Group,{children:(0,c.jsx)("div",{className:h("label"),children:e})}),t]}),g=({children:e,label:t,onClick:n,active:r=!1,disabled:i})=>(0,c.jsx)("button",{type:"button",className:p({active:r,disabled:i}),onClick:n,title:t,tabIndex:0,disabled:i,children:e});f.Action=g,f.Label=({label:e})=>(0,c.jsx)("div",{className:h("label"),children:e}),f.Group=({children:e})=>(0,c.jsx)("div",{className:h("group"),children:e}),f.Separator=()=>(0,c.jsx)("div",{className:h("separator")}),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)();var m=(0,a.d)("Loader",{Loader:"_Loader_nacdm_13","loader-animation":"_loader-animation_nacdm_1"}),y=e=>{var{color:t,size:n=16}=e,r=(0,l.YG)(e,["color","size"]);return(0,c.jsx)("span",(0,l.IA)({className:m(),style:{width:n,height:n,color:t},"aria-label":"loading"},r))},b=(0,a.d)("IconButton",{IconButton:"_IconButton_ffob9_1","IconButton--active":"_IconButton--active_ffob9_14","IconButton--disabled":"_IconButton--disabled_ffob9_24","IconButton-title":"_IconButton-title_ffob9_37"}),v=({active:e=!1,children:t,href:n,onClick:r,type:i,disabled:o,tabIndex:s,newTab:a,fullWidth:l,title:d,suppressHydrationWarning:h})=>{let[p,f]=(0,u.useState)(!1);return(0,c.jsxs)(n?"a":"button",{className:b({active:e,disabled:o,fullWidth:l}),onClick:e=>{r&&(f(!0),Promise.resolve(r(e)).then(()=>{f(!1)}))},type:i,disabled:o||p,tabIndex:s,target:a?"_blank":void 0,rel:a?"noreferrer":void 0,href:n,title:d,suppressHydrationWarning:h,children:[(0,c.jsx)("span",{className:b("title"),children:d}),t,p&&(0,c.jsxs)(c.Fragment,{children:["\xa0\xa0",(0,c.jsx)(y,{size:14})]})]})};(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)();var w=(0,a.d)("Control",{Control:"_Control_1aveu_1","Control--inline":"_Control--inline_1aveu_6"});function k({icon:e,disabled:t,active:n,onClick:r,title:i}){let{inline:o}=(0,s.ym)();return o?(0,c.jsx)("span",{className:w({inline:!0}),children:(0,c.jsx)(g,{onClick:r,disabled:t,active:n,label:i,children:e})}):(0,c.jsx)("span",{className:w(),children:(0,c.jsx)(v,{onClick:r,disabled:t,active:n,title:i,children:e})})}function E(){let e=(0,s.ym)(),t=(0,r.p)(e.options);return(0,c.jsx)(s.Yq,{options:t,onChange:()=>{},value:"left",defaultValue:"left",renderDefaultIcon:s.TU})}(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)();var A=(0,u.lazy)(()=>n.e(8192).then(n.bind(n,58192)).then(e=>({default:e.AlignSelectLoaded}))),_=()=>(0,c.jsx)(u.Suspense,{fallback:(0,c.jsx)(E,{}),children:(0,c.jsx)(A,{})});function S(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.yN,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleBold().run()},disabled:!(null==t?void 0:t.canBold),active:null==t?void 0:t.isBold,title:"Bold"})}function M(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.J2,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleItalic().run()},disabled:!(null==t?void 0:t.canItalic),active:null==t?void 0:t.isItalic,title:"Italic"})}function C(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.z2,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleUnderline().run()},disabled:!(null==t?void 0:t.canUnderline),active:null==t?void 0:t.isUnderline,title:"Underline"})}function O(){let e=(0,s.ym)(),t=(0,i.O)(e.options);return(0,c.jsx)(s.Yq,{options:t,onChange:()=>{},value:"p",defaultValue:"p",renderDefaultIcon:s.DZ})}(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)(),(0,l.hY)();var T=(0,u.lazy)(()=>n.e(2408).then(n.bind(n,42408)).then(e=>({default:e.HeadingSelectLoaded}))),N=()=>(0,c.jsx)(u.Suspense,{fallback:(0,c.jsx)(O,{}),children:(0,c.jsx)(T,{})});function I(){let e=(0,s.ym)(),t=(0,o.k)(e.options);return(0,c.jsx)(s.Yq,{options:t,onChange:()=>{},value:"p",defaultValue:"p",renderDefaultIcon:s.B8})}(0,l.hY)(),(0,l.hY)();var R=(0,u.lazy)(()=>n.e(8626).then(n.bind(n,88626)).then(e=>({default:e.ListSelectLoaded}))),L=()=>(0,c.jsx)(u.Suspense,{fallback:(0,c.jsx)(I,{}),children:(0,c.jsx)(R,{})}),D=(0,a.d)("RichTextMenu",{RichTextMenu:"_RichTextMenu_k97eh_1","RichTextMenu--form":"_RichTextMenu--form_k97eh_7","RichTextMenu-group":"_RichTextMenu-group_k97eh_17","RichTextMenu--inline":"_RichTextMenu--inline_k97eh_35"}),z=({children:e})=>(0,c.jsx)(j,{children:e}),j=({children:e})=>{let{inline:t}=(0,s.ym)();return(0,c.jsx)("div",{className:D({inline:t,form:!t}),"data-puck-rte-menu":!0,children:e})},B=({children:e})=>(0,c.jsx)("div",{className:D("group"),children:e});j.Group=B,j.Control=k,j.AlignCenter=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.xd,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().setTextAlign("center").run()},disabled:!(null==t?void 0:t.canAlignCenter),active:null==t?void 0:t.isAlignCenter,title:"Align center"})},j.AlignJustify=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.mT,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().setTextAlign("justify").run()},disabled:!(null==t?void 0:t.canAlignJustify),active:null==t?void 0:t.isAlignJustify,title:"Justify"})},j.AlignLeft=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.TU,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().setTextAlign("left").run()},disabled:!(null==t?void 0:t.canAlignLeft),active:null==t?void 0:t.isAlignLeft,title:"Align left"})},j.AlignRight=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.GY,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().setTextAlign("right").run()},disabled:!(null==t?void 0:t.canAlignRight),active:null==t?void 0:t.isAlignRight,title:"Align right"})},j.AlignSelect=_,j.Blockquote=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.Pk,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleBlockquote().run()},disabled:!(null==t?void 0:t.canBlockquote),active:null==t?void 0:t.isBlockquote,title:"Blockquote"})},j.Bold=S,j.BulletList=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.B8,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleBulletList().run()},disabled:!(null==t?void 0:t.canBulletList),active:null==t?void 0:t.isBulletList,title:"Bullet list"})},j.CodeBlock=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.pJ,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleCodeBlock().run()},disabled:!(null==t?void 0:t.canCodeBlock),active:null==t?void 0:t.isCodeBlock,title:"Code block"})},j.HeadingSelect=N,j.HorizontalRule=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.Hs,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().setHorizontalRule().run()},disabled:!(null==t?void 0:t.canHorizontalRule),title:"Horizontal rule"})},j.InlineCode=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.Cy,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleCode().run()},disabled:!(null==t?void 0:t.canInlineCode),active:null==t?void 0:t.isInlineCode,title:"Inline code"})},j.Italic=M,j.ListSelect=L,j.OrderedList=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.cM,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleOrderedList().run()},disabled:!(null==t?void 0:t.canOrderedList),active:null==t?void 0:t.isOrderedList,title:"Ordered list"})},j.Strikethrough=function(){let{editor:e,editorState:t}=(0,s.ym)();return(0,c.jsx)(k,{icon:(0,c.jsx)(s.Gk,{}),onClick:t=>{t.stopPropagation(),null==e||e.chain().focus().toggleStrike().run()},disabled:!(null==t?void 0:t.canStrike),active:null==t?void 0:t.isStrike,title:"Str
63ikethrough"})},j.Underline=C;var P=({editor:e=null,editorState:t=null,field:n,readOnly:r,inline:i})=>{let{renderMenu:o,renderInlineMenu:a}=n,l=(0,u.useMemo)(()=>a||z,[a]),d=(0,u.useMemo)(()=>o||z,[o]);return(0,c.jsx)(s.Bq.Provider,{value:{editor:e,editorState:t,inline:i,options:n.options,readOnly:r},children:i?(0,c.jsx)(l,{editor:e,editorState:t,readOnly:r,children:(0,c.jsxs)(B,{children:[(0,c.jsx)(S,{}),(0,c.jsx)(M,{}),(0,c.jsx)(C,{})]})}):(0,c.jsxs)(d,{editor:e,editorState:t,readOnly:r,children:[(0,c.jsxs)(B,{children:[(0,c.jsx)(N,{}),(0,c.jsx)(L,{})]}),(0,c.jsxs)(B,{children:[(0,c.jsx)(S,{}),(0,c.jsx)(M,{}),(0,c.jsx)(C,{})]}),(0,c.jsx)(B,{children:(0,c.jsx)(_,{})})]})})}},52987:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},53409:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]])},53881:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("remove-formatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]])},54652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return a}});let r=n(28140),i=n(75040),o=n(81356),s=r._(n(71124));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=o.Image},54765:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(76908),i=n(444),o=n(54888),s=n(44918),a=n(51798),l=n(8618),c=n(75368),u=n(76341),d=n(55792),h=n(76925),p=n(56135),f=n(54857),g=n(37445),m=n(49143),y=n(22904),b=n(43419),v=n(30171),w=r.YY.create({name:"starterKit",addExtensions(){var e,t,n,r;let w=[];return!1!==this.options.bold&&w.push(o.yN.configure(this.options.bold)),!1!==this.options.blockquote&&w.push(i.Cv.configure(this.options.blockquote)),!1!==this.options.bulletList&&w.push(f.Rg.configure(this.options.bulletList)),!1!==this.options.code&&w.push(s.Cy.configure(this.options.code)),!1!==this.options.codeBlock&&w.push(a.NG.configure(this.options.codeBlock)),!1!==this.options.document&&w.push(l.y.configure(this.options.document)),!1!==this.options.dropcursor&&w.push(v.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&w.push(v.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&w.push(c.B.configure(this.options.hardBreak)),!1!==this.options.heading&&w.push(u.D.configure(this.options.heading)),!1!==this.options.undoRedo&&w.push(v.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&w.push(d.d.configure(this.options.horizontalRule)),!1!==this.options.italic&&w.push(h.J2.configure(this.options.italic)),!1!==this.options.listItem&&w.push(f.ck.configure(this.options.listItem)),!1!==this.options.listKeymap&&w.push(f.it.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&w.push(p.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&w.push(f._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&w.push(g.f.configure(this.options.paragraph)),!1!==this.options.strike&&w.push(m.n.configure(this.options.strike)),!1!==this.options.text&&w.push(y.E.configure(this.options.text)),!1!==this.options.underline&&w.push(b.z.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&w.push(v.JU.configure(null==(r=this.options)?void 0:r.trailingNode)),w}})},54857:(e,t,n)=>{"use strict";n.d(t,{L2:()=>U,Rg:()=>c,_0:()=>H,_J:()=>$,ck:()=>w,it:()=>I});var r=n(76908),i=n(92322),o=n(51876),s=Object.defineProperty,a="textStyle",l=/^\s*([-+*])\s$/,c=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(a)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}
63,addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.tG)({find:l,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:l,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(a),editor:this.editor})),[e]}}),u=(e,t)=>r.YY.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>{let n;return n=this.editor,((e,t,n,r)=>{let o=((e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let o=-1;for(let e=i.depth;e>0;e-=1)if(i.node(e).type.name===t){o=e;break}if(o<0)return null;let s=i.node(o),a=i.index(o);if(a+1>=s.childCount)return null;let l=s.child(a+1);if(!n.includes(l.type.name))return null;let c=e.schema.nodes[t],u=!1;if(l.forEach(e=>{e.type===c&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let h=[];
63return(d.forEach(e=>{h.push(e)}),0===h.length)?null:{listItemDepth:o,nestedList:d,nestedListPos:i.after(),insertPos:i.after(o),items:h}})(e,n,r);if(!o)return!1;let{selection:s}=e,{nestedList:a,nestedListPos:l,insertPos:c,items:u}=o,d=e.tr;d.delete(l,l+a.nodeSize);let h=d.mapping.map(c);return d.insert(h,i.FK.from(u)),d.setSelection(s.map(d.doc,d.mapping)),t&&t(d),!0})(n.state,n.view.dispatch,e,t)};return{Delete:n,"Mod-Delete":n}}}),d=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],h="abcdefghijklmnopqrstuvwxyz",p=String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;function f(e){let t=e,n="";for(let[e,r]of d)for(;t>=e;)n+=r,t-=e;return n}function g(e){return f(e).toUpperCase()}function m(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,o]of d)if(t.startsWith(o,n)){r+=i,n+=o.length,e=!0;break}if(!e)return 0}return r}function y(e){if(e<=26)return h[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?h[n]:h[t]+h[n]}function b(e){if(!(!e||/^\d+$/.test(e))){if(function(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=m(e);return!(t<=0)&&(e===e.toLowerCase()?f(t):g(t))===e}(e))return e===e.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(e))return"a";if(/^[A-Z]{1,2}$/.test(e))return"A"}}function v(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=b(e);if("i"===t||"I"===t)return m(e);if("a"===t||"A"===t){let t=function(e){let t=e.toLowerCase();return 1===t.length?t.charCodeAt(0)-97+1:2===t.length?(t.charCodeAt(0)-97+1)*26+(t.charCodeAt(1)-97)+1:0}(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}var w=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if("list_item"!==e.type)return[];let r=null!=(n=t.parseBlockChildren)?n:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0){if(function(e){var t,n;let r=null==(t=e.tokens)?void 0:t[0];return!!(e.text&&(null==(n=e.tokens)?void 0:n.length)===1&&(null==r?void 0:r.type)==="list"&&r.ordered&&r.raw===e.text)}(e))return{type:"listItem",content:[{type:"paragraph",content:function(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:"text",raw:e,text:e}])}(e.text||"",t)}]};if(e.tokens.some(e=>"paragraph"===e.type))i=r(e.tokens);else{let n=e.tokens[0];if(n&&"text"===n.type&&n.tokens&&n.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(n.tokens)}],e.tokens.length>1){let t=r(e.tokens.slice(1));i.push(...t)}}else i=r(e.tokens)}}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,n)=>(0,r.kj)(e,t,e=>{var t,n,r,i;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let o=(null==(n=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:n.start)||1;return function(e,t,n=". "){let r=t+1;if(!e||"1"===e)return`${r}${n}`;switch(e){case"a":return`${y(r)}${n}`;case"A":return`${y(r).toUpperCase()}${n}`;case"i":return`${f(r)}${n}`;case"I":return`${g(r)}${n}`;default:return`${r}${n}`}}(null==(i=null==(r=e.meta)?void 0:r.parentAttrs)?void 0:i.type,o-1+(e.index||0),". ")}return"- "},n),addExtensions(){return[u(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>k,getNextListDepth:()=>E,handleBackspace:()=>_,handleDelete:()=>C,hasListBefore:()=>A,hasListItemAfter:()=>O,hasListItemBefore:()=>T,listItemHasSubList:()=>N,nextListIsDeeper:()=>S,nextListIsHigher:()=>M});var k=(e,t)=>{let{$from:n}=t.selection,i=(0,r.Pg)(e,t.schema),o=n.depth,s=n.pos,a=null;for(;o>0&&null===a;)n.node(o).type===i?a=o:(o-=1,s-=1);return null===a?null:{$pos:t.doc.resolve(s),depth:a}},E=(e,t)=>{let n=k(e,t);if(!n)return!1;let[,i]=(0,r.fl)(t,e,n.$pos.pos+4);return i}
63,A=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!!o&&!!n.includes(o.type.name)},_=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,r.rU)(e.state,t)&&A(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let o=i.at(-1);if(!o)return!1;let s=e.state.doc.resolve(r.start()+o.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}return!!(0,r.rU)(e.state,t)&&!!(0,r.J_)(e.state)&&e.chain().liftListItem(t).run()},S=(e,t)=>{let n=E(e,t),r=k(e,t);return!!r&&!!n&&n>r.depth},M=(e,t)=>{let n=E(e,t),r=k(e,t);return!!r&&!!n&&n<r.depth},C=(e,t)=>{if(!(0,r.rU)(e.state,t)||!(0,r.QN)(e.state,t))return!1;let{selection:n}=e.state,{$from:i,$to:o}=n;return!(!n.empty&&i.sameParent(o))&&(S(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():M(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},O=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(n=i.nodeAfter)?void 0:n.type.name)===e},T=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},N=(e,t,n)=>{if(!n)return!1;let i=(0,r.Pg)(e,t.schema),o=!1;return n.descendants(e=>{e.type===i&&(o=!0)}),o},I=r.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&C(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&C(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&_(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&_(e,n,r)&&(t=!0)}),t}}}}),R=RegExp(`^(\\s*)(${p})([.)])\\s+(.*)$`),L=/^\s/,D={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/},z=RegExp(`^(${p})([.)])\\s+(.+)$`),j="textStyle",B=/^(\d+)\.\s$/;function P(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}var $=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute("type");if(t)return t;let n=e.getAttribute("style");if(n){let e=P(n);if(e)return e}let r=e.querySelector("li");if(r){let e=r.getAttribute("style");if(e){let t=P(e);if(t)return t}}return null}}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,type:n,...i}=e,o=(0,r.KV)(this.options.HTMLAttributes,i);return 1!==t&&(o.start=t),n&&"1"!==n&&(o.type=n),["ol",o,0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[],o={};return(1!==n&&(o.start=n),r&&(o.type=r),Object.keys(o).length>0)?{type:"orderedList",attrs:o,content:i}:{type:"orderedList",content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>
63-1,tokenize:(e,t,n)=>{var r,i;let o=e.split("\n"),[s,a]=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],o=i.match(R);if(!o)break;let[,s,a,l,c]=o,u=s.length,d=parseInt(a,10),h=isNaN(d)?b(a):void 0,p=isNaN(d)?v(a):d,f=[c],g=n+1,m=[i],y=!1;for(;g<e.length;){let t=e[g];if(t.match(R))break;if(""===t.trim())m.push(t),f.push(""),y=!0,g+=1;else if(t.match(L)){let e=t.length-t.trimStart().length,n=u+a.length+1;m.push(t),f.push(t.slice(Math.min(e,n))),g+=1}else{if(y||function(e){return Object.values(D).some(t=>t.test(e))}(t))break;m.push(t),f.push(t),g+=1}}t.push({indent:u,number:p,type:h,content:f.join("\n").trim(),contentLines:f,raw:m.join("\n")}),r=g,n=g}return[t,r]}(o);if(0===s.length)return;let l=function e(t,n,r){let i=[],o=0;for(;o<t.length;){let s=t[o];if(s.indent===n){let{paragraphLines:a,blockLines:l}=function(e){let t=[],n=[],r=!1;return e.forEach(e=>{if(r)return void n.push(e);if(""===e.trim()||t.length>0&&function(e){let t=e.trimStart();return D.bulletItem.test(t)||R.test(t.trimStart())||D.heading.test(t)||D.thematicBreak.test(t)&&!t.startsWith("-")||/^>\s?/.test(t)||D.codeFence.test(t)}(e)){r=!0,n.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:n}}(s.contentLines),c=a.join("\n").trim(),u=[];c&&u.push({type:"paragraph",raw:c,tokens:r.inlineTokens(c)});let d=l.join("\n").trim();if(d){let e=r.blockTokens(d);u.push(...e)}let h=o+1,p=[];for(;h<t.length&&t[h].indent>n;)p.push(t[h]),h+=1;if(p.length>0){let t=Math.min(...p.map(e=>e.indent)),n=e(p,t,r);u.push({type:"list",ordered:!0,start:p[0].number,typeMarker:p[0].type,items:n,raw:p.map(e=>e.raw).join("\n")})}i.push({type:"list_item",raw:s.raw,tokens:u}),o=h}else o+=1}return i}(s,s[0].indent,n);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(r=s[0])?void 0:r.number)||1,typeMarker:null==(i=s[0])?void 0:i.type,items:l,raw:o.slice(0,a).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(j)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins:()=>[new o.k_({props:{handlePaste:(e,t)=>
63{var n,r;let i=null==(n=t.clipboardData)?void 0:n.getData("text/html");if(null==i?void 0:i.trim())return!1;let o=null==(r=t.clipboardData)?void 0:r.getData("text/plain");if(!o)return!1;let s=function(e){let t=e.split("\n").filter(e=>e.trim().length>0);if(0===t.length)return null;let n=[];for(let e of t){let t=e.trim().match(z);if(!t)return null;n.push({marker:t[1],content:t[3]})}return!function(e){var t;if(0===e.length)return!1;let n=null!=(t=b(e[0]))?t:"numeric",r=v(e[0]);if(r<1)return!1;for(let t=0;t<e.length;t++){let i=function(e,t){if("numeric"===e)return String(t);switch(e){case"a":return y(t);case"A":return y(t).toUpperCase();case"i":return f(t);case"I":return g(t);default:return String(t)}}(n,r+t);if(e[t]!==i)return!1}return!0}(n.map(e=>e.marker))?null:{type:"orderedList",attrs:function(e){let{type:t,start:n}={type:b(e),start:v(e)},r={};return t&&(r.type=t),1!==n&&(r.start=n),r}(n[0].marker),content:n.map(e=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:e.content}]}]}))}}(o);if(!s)return!1;try{let t=e.state.schema.nodeFromJSON(s),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})],addInputRules(){let e=(e,t)=>(!t.attrs.type||"1"===t.attrs.type)&&t.childCount+t.attrs.start===+e[1],t=(0,r.tG)({find:B,type:this.t
63ype,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,r.tG)({find:B,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(j)}),joinPredicate:e,editor:this.editor})),[t]}}),F=/^\s*(\[([( |x])?\])\s$/,U=r.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;let i=(null==(n=e.attrs)?void 0:n.checked)?"x":" ",o=`- [${i}] `;return(0,r.kj)(e,t,o)},addExtensions(){return this.options.nested?[u(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:i})=>{let o=document.createElement("li"),s=document.createElement("label"),a=document.createElement("span"),l=document.createElement("input"),c=document.createElement("div"),u=e=>{var t,n;l.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,l.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};u(e),s.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",e=>e.preventDefault()),l.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:r}=t.target;i.isEditable&&"function"==typeof n&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:r}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,r)||(l.checked=!l.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{o.setAttribute(e,t)}),o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,s.append(l,a),o.append(s,c),Object.entries(t).forEach(([e,t])=>{o.setAttribute(e,t)});let d=new Set(Object.keys(t));return{dom:o,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,u(e);let t=i.extensionManager.attributes,n=(0,r.zU)(e,t),s=new Set(Object.keys(n)),a=this.options.HTMLAttributes;return d.forEach(e=>{s.has(e)||(e in a?o.setAttribute(e,a[e]):o.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{null==t?e in a?o.setAttribute(e,a[e]):o.removeAttribute(e):o.setAttribute(e,t)}),d=s,!0}}}}
63,addInputRules(){return[(0,r.tG)({find:F,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),H=r.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){let i=e=>{let t=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);if(t){let r={type:"taskList",raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},o=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});r.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(c.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(w.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(I.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push($.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(U.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(H.configure(this.options.taskList)),e}})},54888:(e,t,n)=>{"use strict";n.d(t,{yN:()=>c});var r=n(76908),i=n(55771),o=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,l=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,c=r.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return(0,i.Y)("strong",{...(0,r.KV)(this.options.HTMLAttributes,e),children:(0,i.Y)("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
63,addInputRules(){return[(0,r.OX)({find:o,type:this.type}),(0,r.OX)({find:a,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:s,type:this.type}),(0,r.Zc)({find:l,type:this.type})]}})},55404:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(76908),i=r.CU.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:e=>"sub"===e&&null}],renderHTML({HTMLAttributes:e}){return["sub",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setSubscript:()=>({commands:e})=>e.setMark(this.name),toggleSubscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSubscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}})},55771:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var r=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]}},55792:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(76908),i=n(51876),o=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,r.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:o}=n,s=e();return(0,r.BQ)(n)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(i.U3.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(i.nh.create(t.doc,n.pos)):t.setSelection(i.U3.create(t.doc,n.pos));else{let o=e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType,s=null==o?void 0:o.create();s&&(t.insert(r,s),t.setSelection(i.U3.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.Ce)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
63ype})]}})},55874:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("gallery-horizontal-end",[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]])},56135:(e,t,n)=>{"use strict";n.d(t,{N_:()=>eK,Ay:()=>eY});var r=n(76908);let i="numeric",o="ascii",s="alpha",a="asciinumeric",l="alphanumeric",c="domain",u="emoji",d="whitespace";function h(e,t,n){for(let r in t[i]&&(t[a]=!0,t[l]=!0),t[o]&&(t[a]=!0,t[s]=!0),t[a]&&(t[l]=!0),t[s]&&(t[l]=!0),t[l]&&(t[c]=!0),t[u]&&(t[c]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function p(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}p.groups={},p.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){let i;return r=r||p.groups,t&&t.j?i=t:(i=new p(t),n&&r&&h(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||p.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new p).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new p,t&&(r&&(i.t&&"string"==typeof i.t?h(t,Object.assign(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(i.t,r),n),r):n&&h(t,n,r)),i.t=t),this.j[e]=i,i}};let f=(e,t,n,r,i)=>e.ta(t,n,r,i),g=(e,t,n,r,i)=>e.tr(t,n,r,i),m=(e,t,n,r,i)=>e.ts(t,n,r,i),y=(e,t,n,r,i)=>e.tt(t,n,r,i),b="WORD",v="UWORD",w="ASCIINUMERICAL",k="ALPHANUMERICAL",E="LOCALHOST",A="UTLD",_="SCHEME",S="SLASH_SCHEME",M="OPENBRACE",C="CLOSEBRACE",O="OPENBRACKET",T="CLOSEBRACKET",N="OPENPAREN",I="CLOSEPAREN",R="OPENANGLEBRACKET",L="CLOSEANGLEBRACKET",D="FULLWIDTHLEFTPAREN",z="FULLWIDTHRIGHTPAREN",j="LEFTCORNERBRACKET",B="RIGHTCORNERBRACKET",P="LEFTWHITECORNERBRACKET",$="RIGHTWHITECORNERBRACKET",F="FULLWIDTHLESSTHAN",U="FULLWIDTHGREATERTHAN",H="AMPERSAND",q="APOSTROPHE",W="ASTERISK",K="BACKSLASH",Y="BACKTICK",V="CARET",J="COLON",G="COMMA",Z="DOLLAR",X="EQUALS",Q="EXCLAMATION",ee="HYPHEN",et="PERCENT",en="PIPE",er="PLUS",ei="POUND",eo="QUERY",es="QUOTE",ea="FULLWIDTHMIDDLEDOT",el="SEMI",ec="SLASH",eu="TILDE",ed="UNDERSCORE",eh="EMOJI";var ep=Object.freeze({__proto__:null,ALPHANUMERICAL:k,AMPERSAND:H,APOSTROPHE:q,ASCIINUMERICAL:w,ASTERISK:W,AT:"AT",BACKSLASH:K,BACKTICK:Y,CARET:V,CLOSEANGLEBRACKET:L,CLOSEBRACE:C,CLOSEBRACKET:T,CLOSEPAREN:I,COLON:J,COMMA:G,DOLLAR:Z,DOT:"DOT",EMOJI:eh,EQUALS:X,EXCLAMATION:Q,FULLWIDTHGREATERTHAN:U,FULLWIDTHLEFTPAREN:D,FULLWIDTHLESSTHAN:F,FULLWIDTHMIDDLEDOT:ea,FULLWIDTHRIGHTPAREN:z,HYPHEN:ee,LEFTCORNERBRACKET:j,LEFTWHITECORNERBRACKET:P,LOCALHOST:E,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:R,OPENBRACE:M,OPENBRACKET:O,OPENPAREN:N,PERCENT:et,PIPE:en,PLUS:er,POUND:ei,QUERY:eo,QUOTE:es,RIGHTCORNERBRACKET:B,RIGHTWHITECORNERBRACKET:$,SCHEME:_,SEMI:el,SLASH:ec,SLASH_SCHEME:S,SYM:"SYM",TILDE:eu,TLD:"TLD",UNDERSCORE:ed,UTLD:A,UWORD:v,WORD:b,WS:"WS"});let ef=/[a-z]/,eg=/\p{L}/u,em=/\p{Emoji}/u,ey=/\d/,eb=/\s/,ev=null,ew=null;function ex(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let i,o=e.charCodeAt(r),s=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let a=e,l=null,c=0,u=null,d=-1,h=-1;for(;s<r&&(l=a.go(n[s]));)(a=l).accepts()?(d=0,h=0,u=a):d>=0&&(d+=n[s].length,h++),c+=n[s].length,o+=n[s].length,s++;o-=d,s-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function ek(e,t,n,r,i){let o,s=t.length;for(let n=0;n<s-1;n++){let s=t[n];e.j[s]?o=e.j[s]:((o=new p(r)).jr=i.slice(),e.j[s]=o),e=o}return(o=new p(n)).jr=i.slice(),e.j[t[s-1]]=o,o}function eE(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let eA={defaultProtocol:"http",events:null,format:eS,formatHref:eS,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function e_(e,t=null){let n=Object.assign({},eA);e&&(n=Object.assign(n,e instanceof e_?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}function eS(e){return e}function eM(e,t){this.t="token",this.v=e,this.tk=t}
63function eC(e,t){class n extends eM{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}e_.prototype={o:eA,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:eA[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eM.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eA.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),i=this.toFormattedString(e),o={},s=e.get("className",t,this),a=e.get("target",t,this),l=e.get("rel",t,this),c=e.getObj("attributes",t,this),u=e.getObj("events",t,this);return o.href=n,s&&(o.class=s),a&&(o.target=a),l&&(o.rel=l),c&&Object.assign(o,c),{tagName:r,attributes:o,content:i,eventListeners:u}}};let eO=eC("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eT=eC("text"),eN=eC("nl"),eI=eC("url",{isLink:!0,toHref(e=eA.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==E&&e[1].t===J}}),eR=e=>new p(e);
63function eL(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let eD="undefined"!=typeof console&&console&&console.warn||(()=>{}),ez={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function ej(e,t=!1){if(ez.initialized&&eD(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 641. Must only contain digits, lowercase ASCII letters or "-" 652. Cannot start or end with "-" 663. "-" cannot repeat`);ez.customSchemes.push([e,t])}function eB(e){return ez.initialized||function(){ez.scanner=function(e=[]){let t={};p.groups=t;let n=new p;null==ev&&(ev=eE("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
66ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ew&&(ew=eE("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
66ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),y(n,"'",q),y(n,"{",M),y(n,"}",C),y(n,"[",O),y(n,"]",T),y(n,"(",N),y(n,")",I),y(n,"<",R),y(n,">",L),y(n,"ï¼",D),y(n,"ï¼",z),y(n,"ã",j),y(n,"ã",B),y(n,"ã",P),y(n,"ã",$),y(n,"ï¼",F),y(n,"ï¼",U),y(n,"&",H),y(n,"*",W),y(n,"@","AT"),y(n,"`",Y),y(n,"^",V),y(n,":",J),y(n,",",G),y(n,"$",Z),y(n,".","DOT"),y(n,"=",X),y(n,"!",Q),y(n,"-",ee),y(n,"%",et),y(n,"|",en),y(n,"+",er),y(n,"#",ei),y(n,"?",eo),y(n,'"',es),y(n,"/",ec),y(n,";",el),y(n,"~",eu),y(n,"_",ed),y(n,"\\",K),y(n,"ã»",ea);let r=g(n,ey,"NUM",{[i]:!0});g(r,ey,r);let f=g(r,ef,w,{[a]:!0}),ex=g(r,eg,k,{[l]:!0}),eA=g(n,ef,b,{[o]:!0});g(eA,ey,f),g(eA,ef,eA),g(f,ey,f),g(f,ef,f);let e_=g(n,eg,v,{[s]:!0});g(e_,ef),g(e_,ey,ex),g(e_,eg,e_),g(ex,ey,ex),g(ex,ef),g(ex,eg,ex);let eS=y(n,"\n","NL",{[d]:!0}),eM=y(n,"\r","WS",{[d]:!0}),eC=g(n,eb,"WS",{[d]:!0});y(n,"",eC),y(eM,"\n",eS),y(eM,"",eC),g(eM,eb,eC),y(eC,"\r"),y(eC,"\n"),g(eC,eb,eC),y(eC,"",eC);let eO=g(n,em,eh,{[u]:!0});y(eO,"#"),g(eO,em,eO),y(eO,"ï¸",eO);let eT=y(eO,"â");y(eT,"#"),g(eT,em,eO);let eN=[[ef,eA],[ey,f]],eI=[[ef,null],[eg,e_],[ey,ex]];for(let e=0;e<ev.length;e++)ek(n,ev[e],"TLD",b,eN);for(let e=0;e<ew.length;e++)ek(n,ew[e],A,v,eI);h("TLD",{tld:!0,ascii:!0},t),h(A,{utld:!0,alpha:!0},t),ek(n,"file",_,b,eN),ek(n,"mailto",_,b,eN),ek(n,"http",S,b,eN),ek(n,"https",S,b,eN),ek(n,"ftp",S,b,eN),ek(n,"ftps",S,b,eN),h(_,{scheme:!0,ascii:!0},t),h(S,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],s=e[t][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?s[c]=!0:ef.test(r)?ey.test(r)?s[a]=!0:s[o]=!0:s[i]=!0,m(n,r,r,s)}return m(n,"localhost",E,{ascii:!0}),n.jd=new p("SYM"),{start:n,tokens:Object.assign({groups:t},ep)}}(ez.customSchemes);for(let e=0;e<ez.tokenQueue.length;e++)ez.tokenQueue[e][1]({scanner:ez.scanner});ez.parser=function({groups:e}){let t=e.domain.concat([H,W,"AT",K,Y,V,Z,X,ee,"NUM",et,en,er,ei,ec,"SYM",eu,ed]),n=[q,J,G,"DOT",Q,et,eo,es,el,R,L,M,C,T,O,N,I,D,z,j,B,P,$,F,U],r=[H,q,W,K,Y,V,Z,X,ee,M,C,et,en,er,ei,eo,ec,"SYM",eu,ed],i=eR(),o=y(i,eu);f(o,r,o),f(o,e.domain,o);let s=eR(),a=eR(),l=eR();f(i,e.domain,s),f(i,e.scheme,a),f(i,e.slashscheme,l),f(s,r,o),f(s,e.domain,s);let c=y(s,"AT");y(o,"AT",c),y(a,"AT",c),y(l,"AT",c);let u=y(o,"DOT");f(u,r,o),f(u,e.domain,o);let d=eR();f(c,e.domain,d),f(d,e.domain,d);let h=y(d,"DOT");f(h,e.domain,d);let p=eR(eO);f(h,e.tld,p),f(h,e.utld,p),y(c,E,p);let g=y(d,ee);y(g,ee,g),f(g,e.domain,d),f(p,e.domain,d),y(p,"DOT",h),y(p,ee,g);let m=y(s,ee),b=y(s,"DOT");y(m,ee,m),f(m,e.domain,s),f(b,r,o),f(b,e.domain,s);let v=eR(eI);f(b,e.tld,v),f(b,e.utld,v),f(v,e.domain,s),f(v,r,o),y(v,"DOT",b),y(v,ee,m),y(v,"AT",c);let w=y(v,J),k=eR(eI);f(w,e.numeric,k);let A=eR(eI),_=eR();f(A,t,A),f(A,n,_),f(_,t,A),f(_,n,_),y(v,ec,A),y(k,ec,A);let S=y(a,J),ea=y(l,J),eh=y(ea,ec),ef=y(eh,ec);f(a,e.domain,s),y(a,"DOT",b),y(a,ee,m),f(l,e.domain,s),y(l,"DOT",b),y(l,ee,m),f(S,e.domain,A),y(S,ec,A),y(S,eo,A),f(ef,e.domain,A),f(ef,t,A),y(ef,ec,A);let eg=[[M,C],[O,T],[N,I],[R,L],[D,z],[j,B],[P,$],[F,U]];for(let e=0;e<eg.length;e++){let[r,i]=eg[e],o=y(A,r);y(_,r,o);let s=eR(eI);f(o,t,s);let a=eR();f(o,n,a),y(o,i,A),f(s,t,s),f(s,n,a),f(a,t,s),f(a,n,a),y(s,i,A),y(a,i,A)}return y(i,E,v),y(i,"NL",eN),{start:i,tokens:ep}}(ez.scanner.tokens);for(let e=0;e<ez.pluginQueue.length;e++)ez.pluginQueue[e][1]({scanner:ez.scanner,parser:ez.parser});ez.initialized=!0}(),function(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,c=null,u=0,d=null,h=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(c=l||a.go(n[i].t));)l=null,(a=c).accepts()?(h=0,d=a):h>=0&&h++,i++,u++;if(h<0)(i-=u)<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(eL(eT,t,s)),s=[]),i-=h,u-=h;let e=d.t,r=n.slice(i-u,i);o.push(eL(e,t,r))}}return s.length>0&&o.push(eL(eT,t,s)),o}(ez.parser.start,e,ex(ez.scanner.start,e))}function eP(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new e_(n),i=eB(e),o=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}eB.scan=ex;var e$=n(51876),eF="[\0- \xa0áá â-\u2029âã]",eU=new RegExp(eF),eH=RegExp(`${eF}$`),eq=RegExp(eF,"g");function eW(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];
66return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(eq,"").match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}var eK=r.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e)return void ej(e);ej(e.scheme,e.optionalSlashes)})},onDestroy(){p.groups={},ez.scanner=null,ez.parser=null,ez.tokenQueue=[],ez.pluginQueue=[],ez.customSchemes=[],ez.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!eW(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;let r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(r)&&!!/\./.test(r)}}),addAttributes(){var e,t,n;return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:null!=(e=this.options.HTMLAttributes.target)?e:null},rel:{default:null!=(t=this.options.HTMLAttributes.rel)?t:null},class:{default:null!=(n=this.options.HTMLAttributes.class)?n:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.KV)(this.options.HTMLAttributes,e),0]:["a",(0,r.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,i,o;let s=null!=(r=null==(n=e.attrs)?void 0:n.href)?r:"",a=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",l=t.renderChildren(e);return a?`[${l}](${s} "${a}")`:`[${l}](${s})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return(!n||!!this.options.isAllowedUri(n,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.Zc)({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=eP(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!eW(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
66,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let i=[],{protocols:o,defaultProtocol:s}=this.options;return this.options.autolink&&i.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!eW(e,o),protocols:o,defaultProtocol:s}),shouldAutoLink:this.options.shouldAutoLink},new e$.k_({key:new e$.hs("autolink"),appendTransaction:(t,n,i)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(i.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!o||s)return;let{tr:a}=i,l=(0,r.T7)(n.doc,[...t]);if((0,r.FF)(l).forEach(({newRange:t})=>{let n,o,s=(0,r.Nx)(i.doc,t,e=>e.isTextblock);if(s.length>1)n=s[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ");else if(s.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!eH.test(e))return;n=s[0],o=i.doc.textBetween(n.pos,t.to,void 0," ")}if(n&&o){let t=o.split(eU).filter(Boolean);if(t.length<=0)return!1;let s=t[t.length-1],l=n.pos+o.lastIndexOf(s);if(!s)return!1;let c=eB(s).map(t=>t.toObject(e.defaultProtocol));if(!(1===c.length?c[0].isLink:3===c.length&&!!c[1].isLink&&["()","[]"].includes(c[0].value+c[2].value)))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,r.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||a.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),a.steps.length)return a}}))),i.push((t={type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection},new e$.k_({key:new e$.hs("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,s;if(0!==i.button||!e.editable)return!1;let a=null;if(i.target instanceof HTMLAnchorElement)a=i.target;else{let e=i.target;if(!e)return!1;let n=t.editor.view.dom;(a=e.closest("a"))&&!n.contains(a)&&(a=null)}if(!a)return!1;let l=!1;if(t.enableClickSelection&&(l=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){let n=(0,r.gu)(e.state,t.type.name),i=null!=(o=a.href)?o:n.href,c=null!=(s=a.target)?s:n.target;i&&(window.open(i,c),l=!0)}return l}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new e$.k_({key:new e$.hs("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{shouldAutoLink:i}=n,{state:o}=e,{selection:s}=o,{empty:a}=s;if(a)return!1;let l="";r.content.forEach(e=>{l+=e.textContent});let c=eP(l,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!!l&&!!c&&(void 0===i||!!i(c.value))&&n.editor.commands.setMark(n.type,{href:c.href})}}}))),i}}),eY=eK},56154:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},57094:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(74844),i=(0,r.P$)({"../../node_modules/classnames/index.js"(e,t){(0,r.hY)();var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}void 0!==t&&t.exports?(i.default=i,t.exports=i):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return i}):window.classNames=i}});(0,r.hY)();var o=(0,r.f1)(i()),s=(e,t,n={baseClass:""})=>(i={})=>
66{if("string"==typeof i)return t[`${e}-${i}`]&&n.baseClass+t[`${e}-${i}`]||"";if("object"!=typeof i)return n.baseClass+t[e]||"";{let s={};for(let n in i)s[t[`${e}--${n}`]]=i[n];let a=t[e];return n.baseClass+(0,o.default)((0,r.IA)({[a]:!!a},s))}}},57828:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},59410:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},60053:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("superscript",[["path",{d:"m4 19 8-8",key:"hr47gm"}],["path",{d:"m12 19-8-8",key:"1dhhmo"}],["path",{d:"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",key:"1dfcux"}]])},60709:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},60890:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},61283:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("align-right",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])}
66,61362:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},62463:(e,t,n)=>{"use strict";n.d(t,{$L:()=>T,Ln:()=>g,N0:()=>C,Um:()=>O,Wg:()=>m,X9:()=>s,Ys:()=>h,dL:()=>F,jP:()=>v,n9:()=>S,oM:()=>w,zy:()=>_});var r=n(92322);class i{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(e<=d){let o=c?e==l?-1:e==d?1:t:t,s=l+r+(o<0?0:u);if(n)return s;let h=e==(t<0?l:d)?null:a/3+(e-l)*65536,p=e==l?2:e==d?1:4;return(t<0?e!=l:e!=d)&&(p|=8),new i(s,p,h)}r+=u-c}return n?e+r:new i(e+r,0,null)}touches(e,t){let n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+i];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+o]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),a=o+(this.inverted?0:i),l=this.ranges[r+t],c=this.ranges[r+n];e(s,s+l,a,a+c),i+=c-l}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class s{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new s(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new i(e,r,null)}}let a=Object.create(null);class l{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=a[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of step JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}}class c{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new c(e,null)}static fail(e){return new c(null,e)}static fromReplace(e,t,n,i){try{return c.ok(e.replace(t,n,i))}catch(e){if(e instanceof r.vI)return c.fail(e.message);throw e}}}function u(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);
vendor: 7,088 bytes, line 66
66o.content.size&&(o=o.copy(u(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return r.FK.fromArray(i)}class d extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.Ji(u(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,o)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("addMark",d);class h extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.Ji(u(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,n)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("removeMark",h);class p extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new p(this.pos,t.marks[n]);return new p(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}l.jsonID("addNodeMark",p);class f extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new p(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}l.jsonID("removeNodeMark",f);class g extends l{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&y(e,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new g(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),n=this.from==this.to&&g.MAP_BIAS<0?t:e.mapResult(this.from,1);return n.deletedAcross&&t.deletedAcross?null:new g(n.pos,Math.max(n.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof g)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new g(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new g(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new g(t.from,t.to,r.Ji.fromJSON(e,t.slice),!!t.structure)}}g.MAP_BIAS=1,l.jsonID("replace",g);class m extends l{constructor(e,t,n,r,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(y(e,this.from,this.gapFrom)||y(e,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return c.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?c.fromReplace(e,this.from,this.to,n):c.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new m(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new m(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new m(t.from,t.to,t.gapFrom,t.gapTo,r.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function y(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>
660&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function b(e,t,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),a=[],l=t+1;for(let t=0;t<s.childCount;t++){let c=s.child(t),u=l+c.nodeSize,d=i.matchType(c.type);if(d){i=d;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new h(l,u,c.marks[t]));if(o&&c.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(c.text);)i||(i=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new g(l+e.index,l+e.index+e[0].length,i))}}else a.push(new g(l,u,r.Ji.empty));l=u}if(!i.validEnd){let t=i.fillBefore(r.FK.empty,!0);e.replace(l,l,new r.Ji(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function v(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let o=e.$from.node(n),s=e.$from.index(n)+r,a=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(s,a,t))return n;if(0==n||o.type.spec.isolating||!((0==s||o.canReplace(s,o.childCount))&&(a==o.childCount||o.canReplace(0,a))))break;s&&(r=1),a<o.childCount&&(i=1)}return null}function w(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<i;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return o?i.map(k).concat({type:t,attrs:n}).concat(o.map(k)):null}function k(e){return{type:e,attrs:null}}function E(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function A(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function _(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>o;e--,t--){let n=i.node(e),o=i.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(o+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function S(e,t){let n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(s))||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function C(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,o,s=r.index(e);if(e==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(e+1),s++,o=r.node(e).maybeChild(s)):(i=r.node(e).maybeChild(s-1),o=r.node(e+1)),i&&!i.isTextblock&&M(i,o)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function O(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+ +(n>0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(o,o,i);else{let e=s.contentMatchAt(o).findWrapping(i.firstChild.type);a=e&&s.canReplaceWith(o,o,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}
66function T(e,t,n=t,i=r.Ji.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return N(o,s,i)?new g(t,n,i):new I(o,s,i).fit()}function N(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}l.jsonID("replaceAround",m);class I{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new r.Ji(o,s,a);return e>-1?new m(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new g(n.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,i=(n?(e=D(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:s,match:a}=this.frontier[o],l,c=null;if(1==t&&(i?a.matchType(i.type)||(c=a.fillBefore(r.FK.from(i),!1)):e&&s.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:o,parent:e,inject:c};if(2==t&&i&&(l=a.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:e,wrap:l};if(e&&a.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=D(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.Ji(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=D(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r.Ji(R(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r.Ji(R(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let s=this.unplaced,a=n?n.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:h}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));d=d.matchFragment(i)}let p=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let e=a.child(c),t=d.matchType(e.type);if(!t)break;(++c>1||0==l||e.content.size)&&(d=t,u.push(function e(t,n,i){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),t.copy(o)}(e.mark(h.allowedMarks(e.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=L(this.placed,t,r.FK.from(u)),this.frontier[t].match=d,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?r.Ji.empty:new r.Ji(R(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new r.Ji(R(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!z(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=z(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=z(e,n,r,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=L(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=L(this.placed,this.depth,r.FK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.FK.empty,!0);e.childCount&&(this.placed=L(this.placed,this.frontier.length,e))}}function R(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(R(e.firstChild.content,t-1,n)))}function L(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(L(e.lastChild.content,t-1,n)))}function D(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function z(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,s)?a:null}function j(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class B extends l{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(i),0,+!t.isLeaf))}getMap(){return o.empty}invert(e){return new B(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new B(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new B(t.pos,t.attr,t.value)}}l.jsonID("attr",B);class P extends l{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return c.ok(n)}getMap(){return o.empty}invert(e){return new P(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new P(t.attr,t.value)}}l.jsonID("docAttr",P);
66let $=class extends Error{};($=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),$.prototype.constructor=$,$.prototype.name="TransformError";class F{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new $(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.Ji.empty){let i=T(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r.Ji(r.FK.from(n),0,0))}delete(e,t){return this.replace(e,t,r.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),s=e.doc.resolve(n);if(N(o,s,i))return e.step(new g(t,n,i));let a=j(o,s);0==a[a.length-1]&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?l=e:o.before(e)==t&&a.splice(1,0,-e)}let c=a.indexOf(l),u=[],d=i.openStart;for(let e=i.content,t=0;;t++){let n=e.firstChild;if(u.push(n),t==i.openStart)break;e=n.content}for(let e=d-1;e>=0;e--){var h;let t=u[e],n=(h=t.type).spec.defining||h.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(l)-1)))d=e;else if(n||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let l=(t+d+1)%(i.openStart+1),h=u[l];if(h)for(let t=0;t<a.length;t++){let u=a[(t+c)%a.length],d=!0;u<0&&(d=!1,u=-u);let p=o.node(u-1),f=o.index(u-1);if(p.canReplaceWith(f,f,h.type,h.marks))return e.replace(o.before(u),d?s.after(u):n,new r.Ji(function e(t,n,i,o,s){if(n<i){let r=t.firstChild;t=t.replaceChild(0,r.copy(e(r.content,n+1,i,o,r)))}if(n>o){let e=s.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}(i.content,0,i.openStart,l),l,i.openEnd))}}let p=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,i),!(e.steps.length>p));r--){let e=a[r];e<0||(t=o.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){var i=e,o=t;if(!n.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let e=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(this.doc,i,n.type);null!=e&&(i=o=e)}return this.replaceRange(i,o,new r.Ji(r.FK.from(n),0,0)),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&0==r.parentOffset&&0==i.parentOffset){let o=r.sharedDepth(n),s=!1;for(let e=r.depth;e>o;e--)r.node(e).type.spec.isolating&&(s=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(s=!0);if(!s){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let o=j(r,i);for(let t=0;t<o.length;t++){let n=o[t],s=t==o.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:i,$to:o,depth:s}=t,a=i.before(s+1),l=o.after(s+1),c=a,u=l,d=r.FK.empty,h=0;for(let e=s,t=!1;e>n;e--)t||i.index(e)>
660?(t=!0,d=r.FK.from(i.node(e).copy(d)),h++):c--;let p=r.FK.empty,f=0;for(let e=s,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,p=r.FK.from(o.node(e).copy(p)),f++):u++;e.step(new m(c,u,a,l,new r.Ji(d.append(p),h,f),d.size-h,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(t-n),a=s.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let r=e.doc.resolve(t+n);A(e,r.node(),r.before(),l)}a.inlineContent&&b(e,t+n-1,a,s.node().contentMatchAt(s.index()),null==i);let c=e.mapping.slice(l),u=c.map(t-n);if(e.step(new g(u,c.map(t+n,-1),r.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);E(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let i=r.FK.empty;for(let e=n.length-1;e>=0;e--){if(i.size){let t=n[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.FK.from(n[e].type.create(n[e].attrs,i))}let o=t.start,s=t.end;e.step(new m(o,s,o,s,new r.Ji(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){var o=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=o.steps.length;return o.doc.nodesBetween(e,t,(e,t)=>{var a,l,c;let u,d,h="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(n,h)&&(a=o.doc,l=o.mapping.slice(s).map(t),c=n,d=(u=a.resolve(l)).index(),u.parent.canReplaceWith(d,d+1,c))){let i=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&A(o,e,t,s),b(o,o.mapping.slice(s).map(t,1),n,void 0,null===i);let a=o.mapping.slice(s),l=a.map(t,1),c=a.map(t+e.nodeSize,1);return o.step(new m(l,c,l+1,c-1,new r.Ji(r.FK.from(n.create(h,null,e.marks)),0,0),1,!0)),!0===i&&E(o,e,t,s),!1}}),this}setNodeMarkup(e,t,n=null,i){return!function(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw RangeError("Invalid content for node type "+n.name);e.step(new m(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.Ji(r.FK.from(a),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new B(e,t,n)),this}setDocAttribute(e,t){return this.step(new P(e,t)),this}addNodeMark(e,t){return this.step(new p(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof r.CU)t.isInSet(n.marks)&&this.step(new f(e,t));else{let r=n.marks,i,o=[];for(;i=t.isInSet(r);)o.push(new f(e,i)),r=i.removeFromSet(r);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return!function(e,t,n=1,i){let o=e.doc.resolve(t),s=r.FK.empty,a=r.FK.empty;for(let e=o.depth,t=o.depth-n,l=n-1;e>t;e--,l--){s=r.FK.from(o.node(e).copy(s));let t=i&&i[l];a=r.FK.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new g(t,t,new r.Ji(s.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let i,o,s,a;return r=this,s=[],a=[],r.doc.nodesBetween(e,t,(r,l,c)=>{if(!r.isInline)return;let u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,e),p=Math.min(l+r.nodeSize,t),f=n.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=p:s.push(i=new h(c,p,u[e])));o&&o.to==c?o.to=p:a.push(o=new d(c,p,n))}}),s.forEach(e=>r.step(e)),a.forEach(e=>r.step(e)),this}removeMark(e,t,n){var i;let o,s;return i=this,o=[],s=0,i.doc.nodesBetween(e,t,(i,a)=>{if(!i.isInline)return;s++;let l=null;if(n instanceof r.sX){let e=i.marks,t;for(;t=n.isInSet(e);)(l||(l=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(i.marks)&&(l=[n]):l=i.marks;if(l&&l.length){let n=Math.min(a+i.nodeSize,t);for(let t=0;t<l.length;t++){let r=l[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&r.eq(o[e].style)&&(i=t)}i?(i.to=n,i.step=s):o.push({style:r,from:Math.max(a,e),to:n,step:s})}}}
66),o.forEach(e=>i.step(new h(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return b(this,e,t,n),this}}},62790:(e,t,n)=>{"use strict";let r;function i(e,t,n){let r,i=n.initialDeps??[],o=!0;function s(){let s=e();return s.length!==i.length||s.some((e,t)=>i[t]!==e)?(i=s,r=t(...s),(null==n?void 0:n.onChange)&&!(o&&n.skipInitialOnChange)&&n.onChange(r),o=!1,r):r}return s.updateDeps=e=>{i=e},s}function o(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}n.d(t,{YV:()=>k,vp:()=>c,Ox:()=>w,AO:()=>g,T6:()=>u,MH:()=>m,TH:()=>h,e8:()=>v});let s=()=>{if(void 0!==r)return r;if("undefined"==typeof navigator)return r=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return r=!0;let e=navigator.maxTouchPoints;return r="MacIntel"===navigator.platform&&void 0!==e&&e>0},a=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},l=e=>e,c=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},u=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(a(n)),!r.ResizeObserver)return()=>{};let o=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(a(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},d={passive:!0},h=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=()=>{t({width:n.innerWidth,height:n.innerHeight})};return r(),n.addEventListener("resize",r,d),()=>{n.removeEventListener("resize",r)}},p="undefined"==typeof window||"onscrollend"in window,f=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let o=e.options.useScrollendEvent&&p,s=0,a=o?null:((e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}})(i,()=>t(s,!1),e.options.isScrollingResetDelay),l=e=>()=>{s=n(r),null==a||a(),t(s,e)},c=l(!0),u=l(!1);return r.addEventListener("scroll",c,d),o&&r.addEventListener("scrollend",u,d),()=>{r.removeEventListener("scroll",c),o&&r.removeEventListener("scrollend",u)}},g=(e,t)=>f(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),m=(e,t)=>f(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),y=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(void 0!==i)return i}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},b=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})},v=b,w=b;class k{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,n;let r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:l,rangeExtractor:c,onChange:()=>{},measureElement:y,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let n=e[t];void 0!==n&&(r[t]=n)}let i=this.options,o=null,s=null,a=!1;if(void 0!==i&&i.enabled&&r.enabled&&"end"===r.anchorTo&&null!==this.scrollElement){let e=i.count,l=r.count,c=this.getMeasurements(),u=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,d=e>0?(null==(n=c[e-1])?void 0:n.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(r.getItemKey(0)!==u||r.getItemKey(l-1)!==d)){a=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;
66t&&(o=[t.key,this.getScrollOffset()-t.start]);let n=!0===r.followOnAppend?"auto":r.followOnAppend||null;n&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||r.getItemKey(l-1)!==d)&&(s=n)}}this.options=r,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let u=!1,d=0;if(o&&null!==this.scrollOffset){let[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:i}=this.options,s=0;for(;s<r&&i(s)!==e;)s++;if(s<r){let e=n[s];if(e){let n=e.start+t;n!==this.scrollOffset&&(d=n-this.scrollOffset,this.scrollOffset=n,u=!0)}}}(u||s)&&(this.pendingScrollAnchor=[u?o[0]:null,u?o[1]:0,s,d])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=i(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,s()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,d),e.addEventListener("touchend",n,d),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){let[e,t,r,i]=n;null===e||r||(s()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.get
66ScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=i(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,i,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o,laneAssignmentMode:s}),{key:!1}),this.getMeasurements=i(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o,laneAssignmentMode:s},a)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===o){let i,o=this.options.gap,s=2*e,a=this._flatMeasurements;if(!a||a.length<s){let e=new Float64Array(s);a&&c>0&&e.set(a.subarray(0,2*c)),a=e,this._flatMeasurements=a}if(0===c)i=t+n;else{let e=c-1;i=a[2*e]+a[2*e+1]+o}for(let t=c;t<e;t++){let e=r(t),n=l.get(e),s="number"==typeof n?n:this.options.estimateSize(t);a[2*t]=i,a[2*t+1]=s,i+=s+o}let u=function(e,t,n){return new Proxy(Array(e),{get(r,i,o){if("string"==typeof i){let o=i.charCodeAt(0);if(o>=48&&o<=57){let o=+i;if(Number.isInteger(o)&&o>=0&&o<e){let e=r[o];if(!e){let i=t[2*o];e=r[o]={index:o,key:n(o),start:i,size:t[2*o+1],end:i+t[2*o+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(r,i,o)}})}(e,a,r);return this.measurementsCache=u,u}let u=this.measurementsCache.slice(0,c),d=Array(o).fill(void 0);for(let e=0;e<c;e++){let t=u[e];t&&(d[t.lane]=e)}for(let i=c;i<e;i++){let e,o,a=r(i),c=this.laneAssignments.get(i),h="estimate"===s||l.has(a);if(void 0!==c&&this.options.lanes>1){let r=d[e=c],i=void 0!==r?u[r]:void 0;o=i?i.end+this.options.gap:t+n}else{let r=1===this.options.lanes?u[i-1]:this.getFurthestMeasurement(u,i);o=r?r.end+this.options.gap:t+n,e=r?r.lane:i%this.options.lanes,this.options.lanes>1&&h&&this.laneAssignments.set(i,e)}let p=l.get(a),f="number"==typeof p?p:this.options.estimateSize(i),g=o+f;u[i]={index:i,start:o,size:f,end:g,key:a,lane:e},d[e]=i}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=i(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:i}){let o=e.length-1,s=i?e=>i[2*e]:t=>e[t].start,a=i?e=>i[2*e]+i[2*e+1]:t=>e[t].end;if(e.length<=r)return{startIndex:0,endIndex:o};let l=E(0,o,s,n),c=l;if(1===r)for(;c<o&&a(c)<n+t;)c++;else if(r>1){let i=Array(r).fill(0);for(;c<o&&i.some(e=>e<n+t);){let t=e[c];i[t.lane]=t.end,c++}let s=Array(r).fill(n+t);for(;l>=0&&s.some(e=>e>=n);){let t=e[l];s[t.lane]=t.start,l--}l=Math.max(0,l-l%r),c=Math.min(o,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:1===r&&null!=this._flatMeasurements?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}
66),this.getVirtualIndexes=i(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),i=Math.min(this.options.count-1,n+t);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r;let i,o,s;if(e<0||e>=this.options.count)return;let a=this._flatMeasurements;if(1===this.options.lanes&&null!==a)s=this.options.getItemKey(e),o=a[2*e],i=a[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;s=t.key,o=t.start,i=t.size}let l=t-(this.itemSizeCache.get(s)??i);if(0!==l){let a="end"===this.options.anchorTo&&(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,u=(null==(r=this.scrollState)?void 0:r.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:s,start:o,size:i,end:o+i,lane:0},l,this):o<this.getScrollOffset()+this.scrollAdjustments&&"backward"!==this.scrollDirection);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(s,t),this.itemSizeCacheVersion++,a?this.applyScrollAdjustment(this.getTotalSize()-c):u&&this.applyScrollAdjustment(l),this.notify(!1)}},this.getVirtualItems=i(()=>
66[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let n=this._flatMeasurements,r=1===this.options.lanes&&null!=n,i=E(0,t.length-1,r?e=>n[2*e]:e=>o(t[e]).start,e);return o(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>
66{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let o="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,o]=r,s=this.now();this.scrollState={index:e,align:o,behavior:n,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0)return void this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes){let r=n.length-1,i=this._flatMeasurements;t=null!=i?i[2*r]+i[2*r+1]:(null==(e=n[r])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),r=n.length-1;for(;r>=0&&e.some(e=>null===e);){let t=n[r];null===e[t.lane]&&(e[t.lane]=t.end),r--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
66if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(s()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}let E=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0}},63660:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(76908),i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.bP.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.KV)(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,n,r,i,o,s;let a=null!=(n=null==(t=e.attrs)?void 0:t.src)?n:"",l=null!=(i=null==(r=e.attrs)?void 0:r.alt)?i:"",c=null!=(s=null==(o=e.attrs)?void 0:o.title)?s:"";return c?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"undefined"==typeof document)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:i}=this.options.resize;return({node:o,getPos:s,HTMLAttributes:a,editor:l})=>{let c=document.createElement("img");c.draggable=!1;let u=(0,r.KV)(this.options.HTMLAttributes,a);Object.entries(u).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:c.setAttribute(e,t)}}),null!==u.src&&(c.src=u.src);let d=new r.Nz({element:c,editor:l,node:o,getPos:s,onResize:(e,t)=>
66{c.style.width=`${e}px`,c.style.height=`${t}px`},onCommit:(e,t)=>{let n=s();void 0!==n&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===o.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:!0===i}}),h=d.dom;return h.style.visibility="hidden",h.style.pointerEvents="none",c.onload=()=>{h.style.visibility="",h.style.pointerEvents=""},d}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.Ce)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},63827:(e,t,n)=>{"use strict";n.d(t,{l:()=>eh});let r=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
66area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();var l="[0-9](_*[0-9])*",c=`\\.(${l})`,u="[0-9a-fA-F](_*[0-9a-fA-F])*",d={className:"number",variants:[{begin:`(\\b(${l})((${c})|\\.)?|(${c}
66))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${c})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${c})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${u})\\.?|(${u})?\\.(${u}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${u})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};let h="[A-Za-z$_][0-9A-Za-z$_]*",p=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],f=["true","false","null","undefined","NaN","Infinity"],g=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],m=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],y=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],b=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],v=[].concat(y,g,m);var w="[0-9](_*[0-9])*",k=`\\.(${w})`,E="[0-9a-fA-F](_*[0-9a-fA-F])*",A={className:"number",variants:[{begin:`(\\b(${w})((${k})|\\.)?|(${k}))[eE][+-]?(${w})[fFdD]?\\b`},{begin:`\\b(${w})((${k})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${k})[fFdD]?\\b`},{begin:`\\b(${w})[fFdD]\\b`},{begin:`\\b0[xX]((${E})\\.?|(${E})?\\.(${E}))[pP][+-]?(${w})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${E})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};let _=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],S=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),M=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),C=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),O=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
66area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),T=M.concat(C).sort().reverse(),N=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],I=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),R=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invali
66d","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),L=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),D=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
66area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function z(e){return e?"string"==typeof e?e:e.source:null}function j(e){return B("(?=",e,")")}function B(...e){return e.map(e=>z(e)).join("")}function P(...e){return"("+(function(e){let t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e).capture?"":"?:")+e.map(e=>z(e)).join("|")+")"}let $=e=>B(/\b/,e,/\w$/.test(e)?/\b/:/\B/),F=["Protocol","Type"].map($),U=["init","self"].map($),H=["Any","Self"],q=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],W=["false","nil","true"],K=["assignment","associativity","higherThan","left","lowerThan","none","right"],Y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],V=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","
66withoutActuallyEscaping","zip"],J=P(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),G=P(J,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Z=B(J,G,"*"),X=P(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Q=P(X,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),ee=B(X,Q,"*"),et=B(/[A-Z]/,Q,"*"),en=["attached","autoclosure",B(/convention\(/,P("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",B(/objc\(/,ee,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],er=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"],ei="[A-Za-z$_][0-9A-Za-z$_]*",eo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],es=["true","false","null","undefined","NaN","Infinity"],ea=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],el=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ec=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],eu=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ed=[].concat(ec,ea,el),eh={arduino:function(e){let t=function(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
66noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},p={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[p,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:f.concat([{begin:/\(/,end:/\)/,keywords:h,contains:f.concat(["self"]),relevance:0}]),relevance:0},m={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:h,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(g,m,p,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:h,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(e),n=t.keywords;return n.type=[...n.type,"boolean","byte","word","String"],n.literal=[...n.literal,"DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"],n.built_in=[...n.built_in,"KeyboardController","MouseController","SoftwareSerial","
66EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],n._hints=["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],t.name="Arduino",t.aliases=["ino"],t.supersetOf="cpp",t},bash:function(e){let t=e.regex,n={};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},{begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]}]});let r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(s);let a={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[l,e.SHEBANG(),c,a,i,o,{match:/(\/[a-z._-]+)+/},s,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}},c:function(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}
vendor: 5,675 bytes, line 66
66),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},p=[c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:p.concat([{begin:/\(/,end:/\)/,keywords:h,contains:p.concat(["self"]),relevance:0}]),relevance:0},g={begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:h,disableAutodetect:!0,illegal:"</",contains:[].concat(f,g,p,[c,{begin:e.IDENT_RE+"::",keywords:h},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:a,keywords:h}}},cpp:function(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
66noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},p={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[p,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:f.concat([{begin:/\(/,end:/\)/,keywords:h,contains:f.concat(["self"]),relevance:0}]),relevance:0},m={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:h,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(g,m,p,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:h,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}},csharp:function(e){let t={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","
66sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},n=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),r={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},i={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},o=e.inherit(i,{illegal:/\n/}),s={className:"subst",begin:/\{/,end:/\}/,keywords:t},a=e.inherit(s,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,a]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]},u=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]});s.contains=[c,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE],a.contains=[u,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let d={variants:[{className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]},p=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},d,r,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+p+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial",relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[d,r,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}},css:function(e){let t=e.regex,n={IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}},l=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0}
vendor: 4,177 bytes, line 66
66,{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}},diff:function(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}},go:function(e){let t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}},graphql:function(e){let t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}},ini:function(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,c
vendor: 5,845 bytes, line 66
66ontains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:t.concat(a,"(\\s*\\.\\s*",a,")*",t.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[r,{begin:/\[/,end:/\]/,contains:[r,o,i,s,n,"self"],relevance:0},o,i,s,n]}}]}},java:function(e){let t=e.regex,n="[\xc0-ʸa-zA-Z_$][\xc0-ʸa-zA-Z_$0-9]*",r=n+function e(t,n,r){return -1===r?"":t.replace(n,i=>e(t,n,r-1))}("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),i={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},s={className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},d,o]}},javascript:function(e){var t;let n=e.regex,r=/<[A-Za-z0-9\\._:-]+/,i=/\/[A-Za-z0-9\\._:-]+>|\/>/,o={$pattern:h,keyword:p,literal:f,built_in:v,"variable.language":b},s="[0-9](_?[0-9])*",a=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},A={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},_=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,w,k,E,{match:/\$\d+/},c];u.contains=_.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(_)});let S=[].concat(A,u.contains),M=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(S)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:M},O={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,n.concat(h,"(",n.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},T={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...g,...m]}},N={match:n.concat(/\b/,(t=[...y,"super","import"].map(e=>`${e}\\s*\\(`),n.concat("(?!",t.join("|"),")")),h,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:n.concat(/\./,n.lookahead(n.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",L={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:T},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,w,k,E,A,{match:/\$\d+/},c,T,{scope:"attr",match:h+n.lookahead(":"),relevance:0},L,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,e.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0}
66,{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:r,"on:begin":(e,t)=>{let n,r=e[0].length+e.index,i=e.input[r];if("<"===i||","===i)return void t.ignoreMatch();">"!==i||((e,{after:t})=>{let n="</"+e[0].slice(1);return -1!==e.input.indexOf(n,t)})(e,{after:r})||t.ignoreMatch();let o=e.input.substring(r);if((n=o.match(/^\s*=/))||(n=o.match(/^\s+extends\s+/))&&0===n.index)return void t.ignoreMatch()},end:i}],subLanguage:"xml",contains:[{begin:r,end:i,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,e.inherit(e.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},N,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},O,{match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},{match:/\$[(.]/}]}},json:function(e){let t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}},kotlin:function(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,r]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,r]}]};r.contains.push(o);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},a={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),c={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]};return c.variants[1].contains=[c],c.variants[1].contains=[c],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,l,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,s,a,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[c,e.C_LINE_COMMENT_MODE,l],relevance:0},e.C_LINE_COMMENT_MODE,l,s,a,o,e.C_NUMBER_MODE]},l]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0}
66,{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,a]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},A]}},less:function(e){let t={IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}},n="[\\w-]+",r="("+n+"|@\\{"+n+"\\})",i=[],o=[],s=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},a=function(e,t,n){return{className:e,begin:t,relevance:n}},l={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:S.join(" ")};o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,{begin:"\\(",end:"\\)",contains:o,keywords:l,relevance:0},a("variable","@@?"+n,10),a("variable","@\\{"+n+"\\}"),a("built_in","~?`[^`]*?`"),{className:"attribute",begin:n+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let c=o.concat({begin:/\{/,end:/\}/,contains:i}),u={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},d={begin:r+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+O.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:r,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,a("keyword","all\\b"),a("variable","@\\{"+n+"\\}"),{begin:"\\b("+_.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,a("selector-tag",r,0),a("selector-id","#"+r),a("selector-class","\\."+r,0),a("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+M.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+C.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:c},{begin:"!important"},t.FUNCTION_DISPATCH]},p={begin:n+":(:)?"+`(${T.join("|")})`,returnBegin:!0,contains:[h]};return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:l,returnEnd:!0,contains:o,relevance:0}},{className:"variable",variants:[{begin:"@"+n+"\\s*:",relevance:15},{begin:"@"+n}],starts:{end:"[;}]",returnEnd:!0,contains:c}},p,d,h,u,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}},lua:function(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}},makefile:function(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,{className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},{className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]}]}},markdown:function(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},o={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/}
66,{begin:/_(?![_\s])/,end:/_/,relevance:0}]},s=e.inherit(i,{contains:[]}),a=e.inherit(o,{contains:[]});i.contains.push(a),o.contains.push(s);let l=[n,r];[i,o,s,a].forEach(e=>{e.contains=e.contains.concat(l)});let c={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:l=l.concat(i,o)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:l}]}]};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[c,n,{className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,o,{className:"quote",begin:"^>\\s+",contains:l,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},r,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}},objectivec:function(e){let t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}},perl:function(e){let t=e.regex,n=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot class close closedir c
66onnect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl field fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map method mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0"},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},a={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[e.BACKSLASH_ESCAPE,i,a],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],d=(e,r,i="\\1")=>{let o="\\1"===i?i:t.concat(i,r);return t.concat(t.concat("(?:",e,")"),r,/(?:\\.|[^\\\/])*?/,o,/(?:\\.|[^\\\/])*?/,i,n)},h=(e,r,i)=>t.concat(t.concat("(?:",e,")"),r,/(?:\\.|[^\\\/])*?/,i,n),p=[a,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:d("s|tr|y",t.either(...u,{capture:!0}))},{begin:d("s|tr|y","\\(","\\)")},{begin:d("s|tr|y","\\[","\\]")},{begin:d("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,o.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:p}},php:function(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+r},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(e,t)=>
vendor: 13,295 bytes, line 66
66{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h="[ \n]",p={scope:"string",variants:[c,l,u,d]},f={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],m=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],b={keyword:m,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:y},v=e=>e.map(e=>e.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(h,"+"),t.concat("(?!",v(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},k=t.concat(r,"\\b(?!\\()"),E={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},A={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},_={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[A,s,E,e.C_BLOCK_COMMENT_MODE,p,f,w]},S={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",v(m).join("\\b|"),"|",v(y).join("\\b|"),"\\b)"),r,t.concat(h,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[_]};_.contains.push(S);let M=[A,E,e.C_BLOCK_COMMENT_MODE,p,f,w],C={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...M]},...M,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:b,contains:[C,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},s,S,E,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",C,s,E,e.C_BLOCK_COMMENT_MODE,p,f]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,f]}},"php-template":function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}},plaintext:function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}},python:function(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},a={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})`}]},p={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",o,h,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,h,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[o,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,f,l]}]}},"python-repl":function(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}},r:function(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}},ruby:function(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepe
66nd","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},p={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},f=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[p]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,l),relevance:0}].concat(a,l);c.contains=f,p.contains=f;let g=[{begin:/^\s*=>/,starts:{end:"$",contains:f}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:o,contains:f}}];return l.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(g).concat(l).concat(f)}},rust:function(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,ke
vendor: 3,642 bytes, line 66
66yword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:l}},{className:"punctuation",begin:"->"},o]}},scss:function(e){let t={IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}},n="@[a-z-]+",r={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+N.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+R.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+L.join("|")+")"},r,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+D.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inl
66ine-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,r,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:n,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:I.join(" ")},contains:[{begin:n,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},r,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}},shell:function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}},sql:function(e){let t=e.regex,n=e.COMMENT("--","$"),r=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],i=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","ver
66sioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!r.includes(e)),o={match:t.concat(/\b/,t.either(...r),/\s*\(/),relevance:0,keywords:{built_in:r}};function s(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}let a={scope:"keyword",match:s(["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:n(e)?`${e}|0`:e)}(i,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{scope:"type",match:s(["double precision","large object","with timezone","without timezone"])},a,o,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}},swift:function(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,P(...F,...U)],className:{2:"keyword"}},o={match:B(/\./,P(...q)),relevance:0},s=q.filter(e=>"string"==typeof e).concat(["_|0"]),a={variants:[{className:"keyword",match:P(...q.filter(e=>"string"!=typeof e).concat(H).map($),...U)}]},l={$pattern:P(/\b\w+/,/#\w+/),keyword:s.concat(Y),literal:W},c=[i,o,a],u=[{match:B(/\./,P(...V)),relevance:0},{className:"built_in",match:B(/\b/,P(...V),/(?=\()/)}],d={match:/->/,relevance:0},h=[d,{className:"operator",relevance:0,variants:[{match:Z},{match:`\\.(\\.|${G})+`}]}],p="([0-9]_*)+",f="([0-9a-fA-F]_*)+",g={className:"number",relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${f})(\\.(${f}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},m=(e="")=>({className:"subst",variants:[{match:B(/\\/,e,/[0\\tnr"']/)},{match:B(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),y=(e="")=>({className:"subst",label:"interpol",begin:B(/\\/,e,/\(/),end:/\)/}),b=(e="")=>({begin:B(e,/"""/),end:B(/"""/,e),contains:[m(e),((e="")=>({className:"subst",match:B(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}))(e),y(e)]}),v=(e="")=>({begin:B(e,/"/),end:B(/"/,e),contains:[m(e),y(e)]}),w={className:"string",variants:[b(),b("#"),b("##"),b("###"),v(),v("#"),v("##"),v("###")]},k=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],E=e=>{let t=B(e,/\//),n=B(/\//,e);return{begin:t,end:n,contains:[...k,{scope:"comment",begin:`#(?!.*${n})`,end:/$/}]}},A={scope:"regexp",variants:[E("###"),E("##"),E("#"),{begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:k}]},_={match:B(/`/,ee,/`/)},S=[_,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${Q}+`}],M=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:er,contains:[...h,g,w]}]}},{scope:"keyword",match:B(/@/,P(...en),j(P(/\(/,/\s+/)))},{scope:"meta",match:B(/@/,ee)}],C={match:j(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:B(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Q,"+")},{className:"type",match:et,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:B(/\s+&\s+/,j(et)),relevance:0}]},O={begin:/</,end:/>/,keywords:l,contains:[...r,...c,...M,d,C]};C.contains.push(O);let T={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{match:B(ee,/\s*:/),keywords:"_|0",relevance:0},...r,A,...c,...u,...h,g,w,...S,...M,C]},N={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,C]},I={begin:/\(/,end:/\)/,keywords:l,contains:[{begin:P(j(B(ee,/\s*:/)),j(B(ee,/\s+/,ee,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:ee}]},...r,...c,...h,g,w,...M,C,T],endsParent:!0,illegal:/["']/},R={match:[/(func|macro)/,/\s+/,P(_.match,ee,Z)],className:{1:"keyword",3:"title.function"},contains:[N,I,t],illegal:[/\[/,/%/]},L={begin:[/precedencegroup/,/\s+/,et],className:{1:"keyword",3:"title"},contains:[C],keywords:[...K,...W],end:/}/},D={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,ee,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[N,...c,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:et},...c],relevance:0}]};for(let e of w.variants){let t=e.contains.find(e=>"interpol"===e.label);t.keywords=l;let n=[...c,...u,...h,g,w,...S];t.contains=[...n,{begin:/\(/,end:/\)/,contains:["self",...n]}]}return{name:"Swift",keywords:l,contains:[...r,R,{match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[N,I,t],illegal:/\[|%/},{match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/
66],scope:{1:"keyword",3:"keyword",5:"title.function"}},{match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},D,{match:[/operator/,/\s+/,Z],className:{1:"keyword",3:"title"}},L,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},A,...c,...u,...h,g,w,...S,...M,C,T]}},typescript:function(e){let t=e.regex,n=function(e){var t;let n=e.regex,r=/<[A-Za-z0-9\\._:-]+/,i=/\/[A-Za-z0-9\\._:-]+>|\/>/,o={$pattern:ei,keyword:eo,literal:es,built_in:ed,"variable.language":eu},s="[0-9](_?[0-9])*",a=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},g={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:ei+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},m=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,p,f,{match:/\$\d+/},c];u.contains=m.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(m)});let y=[].concat(g,u.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(y)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b},w={variants:[{match:[/class/,/\s+/,ei,/\s+/,/extends/,/\s+/,n.concat(ei,"(",n.concat(/\./,ei),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,ei],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ea,...el]}},E={match:n.concat(/\b/,(t=[...ec,"super","import"].map(e=>`${e}\\s*\\(`),n.concat("(?!",t.join("|"),")")),ei,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},A={begin:n.concat(/\./,n.lookahead(n.concat(ei,/(?![0-9A-Za-z$_(])/))),end:ei,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},_="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",S={match:[/const|var|let/,/\s+/,ei,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(_)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,p,f,g,{match:/\$\d+/},c,k,{scope:"attr",match:ei+n.lookahead(":"),relevance:0},S,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:_,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:r,"on:begin":(e,t)=>
66{let n,r=e[0].length+e.index,i=e.input[r];if("<"===i||","===i)return void t.ignoreMatch();">"!==i||((e,{after:t})=>{let n="</"+e[0].slice(1);return -1!==e.input.indexOf(n,t)})(e,{after:r})||t.ignoreMatch();let o=e.input.substring(r);if((n=o.match(/^\s*=/))||(n=o.match(/^\s+extends\s+/))&&0===n.index)return void t.ignoreMatch()},end:i}],subLanguage:"xml",contains:[{begin:r,end:i,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,ei,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:ei,className:"title.function"})]},{match:/\.\.\./,relevance:0},A,{match:"\\$"+ei,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},E,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},w,{match:[/get|set/,/\s+/,ei,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},{match:/\$[(.]/}]}}(e),r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},s={$pattern:ei,keyword:eo.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:es,built_in:ed.concat(r),"variable.language":eu},a={className:"meta",begin:"@"+ei},l=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(-1===r)throw Error("can not find mode to replace");e.contains.splice(r,1,n)};Object.assign(n.keywords,s),n.exports.PARAMS_CONTAINS.push(a);let c=n.contains.find(e=>"attr"===e.scope),u=Object.assign({},c,{match:t.concat(ei,t.lookahead(/\s*\?:/))});return n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,c,u]),n.contains=n.contains.concat([a,i,o,u]),l(n,"shebang",e.SHEBANG()),l(n,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),n.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n},vbnet:function(e){let t=e.regex,n=/\d{1,2}\/\d{1,2}\/\d{4}/,r=/\d{4}-\d{1,2}-\d{1,2}/,i=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,o=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:t.concat(/# */,t.either(r,n),/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,i,/ *#/)},{begin:t.concat(/# */,t.either(r,n),/ +/,t.either(i,o),/ *#/)}]},a=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single str
66ing uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},a,l,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[l]}]}},wasm:function(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}},xml:function(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(i,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,a,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,a,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}},yaml:function(e){let t="true false yes no null",n="[\\w#;
66/?:@&=+$,.~*'()[\\]]+",r={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(r,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},{begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},{begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},r],a=[...s];return a.pop(),a.push(i),o.contains=a,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:s}}}},63997:(e,t,n)=>{"use strict";n.d(t,{Te:()=>a});var r=n(12115),i=n(47650),o=n(62790);let s="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function a(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...a}){let l=r.useReducer(e=>e+1,0)[1],c=r.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});c.current.enabled=t,c.current.mode=n;let u=e=>{let t=c.current;if(!t.enabled)return;let n=e.getTotalSize();if(t.container&&n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}let r=!!e.options.horizontal,i="transform"===t.mode,o=r?"left":"top",s=e.options.scrollMargin;for(let n of e.getVirtualItems()){let a=n.start-s,l=e.elementsCache.get(n.key);l&&t.lastPositions.get(l)!==a&&(t.lastPositions.set(l,a),i?l.style.transform=r?`translate3d(${a}px, 0, 0)`:`translate3d(0, ${a}px, 0)`:l.style[o]=`${a}px`)}},d={...a,onChange:(t,n)=>{var r;let o=c.current,s=!0;if(o.enabled){u(t);let e=t.range,n=o.prevRange;(s=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(o.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}s&&(e&&n?(0,i.flushSync)(l):l()),null==(r=a.onChange)||r.call(a,t,n)}},[h]=r.useState(()=>{let e=new o.YV(d);return Object.assign(e,{containerRef:t=>{let n=c.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?"width":"height";t.style[i]=`${r}px`}}})});return h.setOptions(d),s(()=>h._didMount(),[]),s(()=>h._willUpdate()),s(()=>{u(h)}),h}({observeElementRect:o.T6,observeElementOffset:o.AO,scrollToFn:o.Ox,...e})}},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("align-justify",[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]])},64756:(e,t,n)=>{"use strict";n.d(t,{I:()=>d,e:()=>p});var r=n(87475),i=n(52596),o=n(91960),s=n(57094),a=n(74844),l=n(12115),c=n(95155);(0,a.hY)();var u=(0,s.d)("RichTextEditor",r.o),d=(0,l.memo)(({children:e,menu:t,readOnly:n=!1,field:r,inline:i=!1,editor:s,id:a})=>{let{initialHeight:d}=r,h=(0,o.CU)(e=>{var t;return(null==(t=e.currentRichText)?void 0:t.id)===a&&i===e.currentRichText.inline}),p=(0,o.sL)(),f=(0,l.useCallback)(e=>{var t,n;(e.metaKey||e.ctrlKey)&&"i"===e.key.toLowerCase()&&(e.stopPropagation(),e.preventDefault(),null==(n=null==s?void 0:(t=s.commands).toggleItalic)||n.call(t)),"backspace"===e.key.toLowerCase()&&e.stopPropagation()},[s]),g=(0,l.useCallback)(e=>{var t,n;let r=!!(null==(n=null==(t=e.relatedTarget)?void 0:t.closest)?void 0:n.call(t,"[data-puck-rte-menu]"));e.relatedTarget&&!r?p.setState({currentRichText:null}):e.stopPropagation()},[p]);return(0,c.jsxs)("div",{className:u({editor:!i,inline:i,isActive:h,disabled:n}),style:i?{}:{height:null!=d?d:192,overflowY:"auto"},onKeyDownCapture:f,onBlur:g,children:[!i&&(0,c.jsx)("div",{className:u("menu"),children:t}),e]})});d.displayName="EditorInner",(0,a.hY)();var h=(0,l.lazy)(()=>n.e(1857).then(n.bind(n,81857)).then(e=>({default:e.LoadedRichTextMenuFull}))),p=e=>(0,c.jsx)(l.Suspense,{fallback:(0,c.jsx)(i.sc,(0,a.IA)({},e)),children:(0,c.jsx)(h,(0,a.IA)({},e))})}
66,65229:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},65344:(e,t,n)=>{"use strict";n.d(t,{EW:()=>G,Kh:()=>Z,P9:()=>en,Wf:()=>et,_Z:()=>er,bD:()=>function e(t,n){if(Object.is(t,n))return!0;if(null===t||null===n)return!1;if("function"==typeof t&&"function"==typeof n)return t===n;if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0}if(Array.isArray(t))return!!Array.isArray(n)&&t.length===n.length&&!t.some((t,r)=>!e(t,n[r]));if("object"==typeof t&&"object"==typeof n){let r=Object.keys(t),i=Object.keys(n);return r.length===i.length&&!r.some(r=>!e(t[r],n[r]))}return!1},un:()=>X,zb:()=>ee});var r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,b,v,w,k,E,A,_=n(27628),S=Object.create,M=Object.defineProperty,C=Object.defineProperties,O=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,L=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),D=e=>{throw TypeError(e)},z=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>M(e,"name",{value:t,configurable:!0}),B=["class","method","getter","setter","accessor","field","value","get","set"],P=e=>void 0!==e&&"function"!=typeof e?D("Function expected"):e,$=(e,t,n,r,i)=>({kind:B[e],name:t,metadata:r,addInitializer:e=>n._?D("Already initialized"):i.push(P(e||null))}),F=(e,t)=>z(t,L("metadata"),e[3]),U=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},H=(e,t,n,r,i,o)=>{var s,a,l,c,u,d=7&t,h=!!(8&t),p=!!(16&t),f=d>3?e.length+1:d?h?1:2:0,g=B[d+5],m=d>3&&(e[f-1]=[]),y=e[f]||(e[f]=[]),b=d&&(p||h||(i=i.prototype),d<5&&(d>3||!p)&&O(d<4?i:{get[n](){return K(this,o)},set[n](x){return V(this,o,x)}},n));d?p&&d<4&&j(o,(d>2?"set ":d>1?"get ":"")+n):j(i,n);for(var v=r.length-1;v>=0;v--)c=$(d,n,l={},e[3],y),d&&(c.static=h,c.private=p,u=c.access={has:p?e=>W(i,e):e=>n in e},3^d&&(u.get=p?e=>(1^d?K:J)(e,i,4^d?o:b.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>V(e,i,t,4^d?o:b.set):(e,t)=>e[n]=t)),a=(0,r[v])(d?d<4?p?o:b[g]:d>4?void 0:{get:b.get,set:b.set}:i,c),l._=1,4^d||void 0===a?P(a)&&(d>4?m.unshift(a):d?p?o=a:b[g]=a:i=a):"object"!=typeof a||null===a?D("Object expected"):(P(s=a.get)&&(b.get=s),P(s=a.set)&&(b.set=s),P(s=a.init)&&m.unshift(s));return d||F(e,i),b&&M(i,n,b),p?4^d?o:b:i},q=(e,t,n)=>t.has(e)||D("Cannot "+n),W=(e,t)=>Object(t)!==t?D('Cannot use the "in" operator on this value'):e.has(t),K=(e,t,n)=>(q(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n
66)=>t.has(e)?D("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(q(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(q(e,t,"access private method"),n);function G(e,t){if(t){let n;return(0,_.EW)(()=>{let r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return(0,_.EW)(e)}function Z({get:e},t){return{init:e=>(0,_.vP)(e),get(){return e.call(this).value},set(t){let n=e.call(this);n.peek()!==t&&(n.value=t)}}}function X(e,t){let n=new WeakMap;return function(){let t=n.get(this);return t||(t=G(e.bind(this)),n.set(this,t)),t.value}}function Q(e=!0){return function(t,n){n.addInitializer(function(){let t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,C(((e,t)=>{for(var n in t||(t={}))I.call(t,n)&&z(e,n,t[n]);if(N)for(var n of N(t))R.call(t,n)&&z(e,n,t[n]);return e})({},r),T({enumerable:e})))})}}function ee(...e){let t=e.map(_.QZ);return()=>t.forEach(e=>e())}l=[Z],a=[Z],s=[Z],o=[Q()],i=[Q()],r=[Q()];var et=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,U(c,5,this),Y(this,f),Y(this,u,U(c,8,this)),U(c,11,this),Y(this,g,U(c,12,this)),U(c,15,this),Y(this,v,U(c,16,this)),U(c,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return K(this,f,k)}get initial(){return K(this,f,h)}get previous(){return K(this,f,y)}set current(e){let t=(0,_.O8)(()=>K(this,f,k));e&&t&&this.equals(t,e)||(0,_.vA)(()=>{K(this,f,h)||V(this,f,e,p),V(this,f,t,b),V(this,f,e,E)})}reset(e=this.defaultValue){(0,_.vA)(()=>{V(this,f,void 0,b),V(this,f,e,p),V(this,f,e,E)})}};function en(e){return(0,_.O8)(()=>{let t={};for(let n in e)t[n]=e[n];return t})}c=(e=>{var t;return[,,,S(null!=(t=null==e?void 0:e[L("metadata")])?t:null)]})(null),u=new WeakMap,f=new WeakSet,g=new WeakMap,v=new WeakMap,h=(d=H(c,20,"#initial",l,f,u)).get,p=d.set,y=(m=H(c,20,"#previous",a,f,g)).get,b=m.set,k=(w=H(c,20,"#current",s,f,v)).get,E=w.set,H(c,2,"current",o,et),H(c,2,"initial",i,et),H(c,2,"previous",r,et),F(c,et);var er=class{constructor(){Y(this,A,new WeakMap)}get(e,t){var n;return e?null==(n=K(this,A).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return K(this,A).has(e)||K(this,A).set(e,new Map),null==(r=K(this,A).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=K(this,A).get(e))?void 0:t.clear():void 0}};A=new WeakMap},65993:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},67048:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},67161:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},67327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(54857)._0},67333:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},67777:(e,t,n)=>{e.exports=n(74951)},69074:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("badge-percent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]])},69141:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])}
66,69602:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]])},71138:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,v:()=>l});var r=n(12115),i=n(90490);let o=e=>e;function s(e,t=o){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n}let a=e=>{let t=(0,i.y)(e),n=e=>s(t,e);return Object.assign(n,t),n},l=e=>e?a(e):a},71613:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},72107:(e,t,n)=>{"use strict";n.d(t,{$f:()=>N,G2:()=>v,I$:()=>_,Im:()=>R,Qv:()=>l,Sd:()=>y,Z1:()=>S,_G:()=>u,_e:()=>p,bh:()=>w,eB:()=>c,eT:()=>m,ec:()=>I,hy:()=>C,iz:()=>M,pC:()=>E,yY:()=>k,y_:()=>L});var r=n(62463),i=n(92322),o=n(51876);let s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}let l=(e,t,n)=>{let s=a(e,n);if(!s)return!1;let l=f(s);if(!l){let n=s.blockRange(),i=n&&(0,r.jP)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let c=l.nodeBefore;if(O(e,l,t,-1))return!0;if(0==s.parent.content.size&&(h(c,"end")||o.nh.isSelectable(c)))for(let n=s.depth;;n--){let a=(0,r.$L)(e.doc,s.before(n),s.after(n),i.Ji.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(h(c,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos,-1)),-1):o.nh.create(n.doc,l.pos-c.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!!c.isAtom&&l.depth==s.depth-1&&(t&&t(e.tr.delete(l.pos-c.nodeSize,l.pos).scrollIntoView()),!0)},c=(e,t,n)=>{let r=a(e,n);if(!r)return!1;let i=f(r);return!!i&&d(e,i,t)},u=(e,t,n)=>{let r=g(e,n);if(!r)return!1;let i=b(r);return!!i&&d(e,i,t)};function d(e,t,n){let s=t.nodeBefore,a=t.pos-1;for(;!s.isTextblock;a--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let l=t.nodeAfter,c=t.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let e=l.firstChild;if(!e)return!1;l=e}let u=(0,r.$L)(e.doc,a,c,i.Ji.empty);if(!u||u.from!=a||u instanceof r.Ln&&u.slice.size>=c-a)return!1;if(n){let t=e.tr.step(u);t.setSelection(o.U3.create(t.doc,a)),n(t.scrollIntoView())}return!0}function h(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let p=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=f(r)}let a=s&&s.nodeBefore;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function g(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}let m=(e,t,n)=>{let s=g(e,n);if(!s)return!1;let a=b(s);if(!a)return!1;let l=a.nodeAfter;if(O(e,a,t,1))return!0;if(0==s.parent.content.size&&(h(l,"start")||o.nh.isSelectable(l))){let n=(0,r.$L)(e.doc,s.before(),s.after(),i.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(h(l,"start")?o.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos)),1):o.nh.create(r.doc,r.mapping.map(a.pos))),t(r.scrollIntoView())}return!0}}return!!l.isAtom&&a.depth==s.depth-1&&(t&&t(e.tr.delete(a.pos,a.pos+l.nodeSize).scrollIntoView()),!0)},y=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=b(r)}let a=s&&s.nodeAfter;return!!a&&!!o.nh.isSelectable(a)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos)).scrollIntoView()),!0)};function b(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let v=(e,t)=>
66{let n=e.selection,i=n instanceof o.nh,s;if(i){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.from))return!1;s=n.from}else if(null==(s=(0,r.N0)(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(s);i&&n.setSelection(o.nh.create(n.doc,s-e.doc.resolve(s).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},w=(e,t)=>{let n=e.selection,i;if(n instanceof o.nh){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.to))return!1;i=n.to}else if(null==(i=(0,r.N0)(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},k=(e,t)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),s=o&&(0,r.jP)(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)},E=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function A(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let _=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),a=A(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},S=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.i5||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=A(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,s.createAndFill());a.setSelection(o.U3.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},M=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},C=(e,t)=>{let{$from:n,to:r}=e.selection,i,s=n.sharedDepth(r);return 0!=s&&(i=n.before(s),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)};function O(e,t,n,s){let a,l,c,u=t.nodeBefore,d=t.nodeAfter,p,f,g=u.type.spec.isolating||d.type.spec.isolating;if(!g&&(a=t.nodeBefore,l=t.nodeAfter,c=t.index(),a&&l&&a.type.compatibleContent(l.type)&&(!a.content.size&&t.parent.canReplace(c-1,c)?(n&&n(e.tr.delete(t.pos-a.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(c,c+1)&&!!(l.isTextblock||(0,r.n9)(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let m=!g&&t.parent.canReplace(t.index(),t.index()+1);if(m&&(p=(f=u.contentMatchAt(u.childCount)).findWrapping(d.type))&&f.matchType(p[0]||d.type).validEnd){if(n){let o=t.pos+d.nodeSize,s=i.FK.empty;for(let e=p.length-1;e>=0;e--)s=i.FK.from(p[e].create(null,s));s=i.FK.from(u.copy(s));let a=e.tr.step(new r.Wg(t.pos-1,o,t.pos,o,new i.Ji(s,1,0),p.length,!0)),l=a.doc.resolve(o+2*p.length);l.nodeAfter&&l.nodeAfter.type==u.type&&(0,r.n9)(a.doc,l.pos)&&a.join(l.pos),n(a.scrollIntoView())}return!0}let y=d.type.spec.isolating||s>0&&g?null:o.LN.findFrom(t,1),b=y&&y.$from.blockRange(y.$to),v=b&&(0,r.jP)(b);if(null!=v&&v>=t.depth)return n&&n(e.tr.lift(b,v).scrollIntoView()),!0;if(m&&h(d,"start",!0)&&h(u,"end")){let o=u,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let a=d,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(n){let o=i.FK.empty;for(let e=s.length-1;e>=0;e--)o=i.FK.from(s[e].copy(o));n(e.tr.step(new r.Wg(t.pos-s.length,t.pos+d.nodeSize,t.pos+l,t.pos+d.nodeSize-l,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function T(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}let N=T(-1),I=T(1);function R(e,t=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=a&&(0,r.oM)(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function L(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function D(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let z=D(s,l,p),j=D(s,m,y),B={Enter:D(E,S,M,(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!n.parentOffset&&!!(0,r.zy)(e.doc,n.pos)&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],a,l,c=!1,u=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;c=n.end(e)==n.pos+(n.depth-e),u=n.start(e)==n.pos-(n.depth-e),l=A(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));s.unshift(t||(c&&l?{type:l}:null)),a=e;break}if(1==e)return!1;s.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let h=d.mapping.map(n.pos),p=(0,r.zy)(d.doc,h,s.length,s);if(p||(s[0]=l?{type:l}:null,p=(0,r.zy)(d.doc,h,s.length,s)),!p)return!1;if(d.split(h,s.length,s),!c&&u&&n.node(a).type!=l){let e=d.mapping.map(n.before(a)),t=d.doc.resolve(e);l&&n.node(a-1).canReplaceWith(t.index(),t.index()+1,l)&&d.setNodeMarkup(d.mapping.map(n.before(a)),l)}return t&&t(d.scrollIntoView()),!0}),"Mod-Enter":_,Backspace:z,"Mod-Backspace":z,"Shift-Backspace":z,Delete:j,"Mod-Delete":j,"Mod-a":(e,t)=>
66(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},P={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":N,"Ctrl-e":I};for(let e in B)P[e]=B[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},74474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("piggy-bank",[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]])},74844:(e,t,n)=>{"use strict";n.d(t,{BU:()=>v,IA:()=>f,P$:()=>y,YG:()=>m,f1:()=>b,hY:()=>w,ko:()=>g}),n(12115);var r=Object.create,i=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))h.call(t,n)&&p(e,n,t[n]);return e},g=(e,t)=>o(e,a(t)),m=(e,t)=>{var n={};for(var r in e)d.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))0>t.indexOf(r)&&h.call(e,r)&&(n[r]=e[r]);return n},y=(e,t)=>function(){return t||(0,e[l(e)[0]])((t={exports:{}}).exports,t),t.exports},b=(e,t,n)=>(n=null!=e?r(u(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))d.call(e,o)||o===n||i(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),v=(e,t,n)=>new Promise((r,i)=>{var o=e=>{try{a(n.next(e))}catch(e){i(e)}},s=e=>{try{a(n.throw(e))}catch(e){i(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())}),w=((e,t)=>function(){return e&&(t=(0,e[l(e)[0]])(e=0)),t})({"../tsup-config/react-import.js"(){}})},74951:(e,t,n)=>{var r=n(94905);t.operation=function(e){return new r(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 n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},t.createTimeout=function(e,t){var n=Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return Math.min(n,t.maxTimeout)},t.wrap=function(e,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],e)"function"==typeof e[i]&&r.push(i);for(var o=0;o<r.length;o++){var s=r[o],a=e[s];e[s]=(function(r){var i=t.operation(n),o=Array.prototype.slice.call(arguments,1),s=o.pop();o.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),s.apply(this,arguments))}),i.attempt(function(){r.apply(e,o)})}).bind(e,a),e[s].options=n}}},75159:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("list-checks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]])},75368:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(76908),i=r.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>` 67`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>
67e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,a=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&o){let t=a.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}})},75426:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},75699:(e,t,n)=>{"use strict";let r,i;n.d(t,{XI:()=>ev,nA:()=>eu,A0:()=>ed,Hj:()=>eh});var o=n(76908),s=n(51876),a=n(92322),l=n(32806),c=n(24945),u=n(62463);if("undefined"!=typeof WeakMap){let e=new WeakMap;r=t=>e.get(t),i=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;r=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},i=(n,r)=>(10==t&&(t=0),e[t++]=n,e[t++]=r)}var d=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return{left:r,top:i,right:o,bottom:s}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,s=this.map[o];!n[s]&&(n[s]=!0,i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s||t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return r(e)||i(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,s=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,l=0;a<n;a++){let c=e.child(a);l++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==c.childCount)break;let u=c.child(e),{colspan:d,rowspan:h,colwidth:p}=u.attrs;for(let e=0;e<h;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:l,n:h-e});break}let c=i+e*t;for(let e=0;e<d;e++){0==r[c+e]?r[c+e]=l:(o||(o=[])).push({type:"collision",row:a,pos:l,n:d-e});let n=p&&p[e];if(n){let r=(c+e)%t*2,i=s[r];null==i||i!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):i==n&&s[r+1]++}}}i+=d,l+=u.nodeSize}let u=(a+1)*t,d=0;for(;i<u;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),l++}(0===t||0===n)&&(o||(o=[])).push({type:"zero_sized"});let a=new d(t,n,r,o),l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let i=0;i<e.map.length;i++){let o=e.map[i];if(r[o])continue;r[o]=!0;let s=n.nodeAt(o);if(!s)throw RangeError(`No cell with offset ${o} found`);let a=null,l=s.attrs;for(let n=0;n<l.colspan;n++){let r=t[(i+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((a||(a=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}(l)))[n]=r)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,s,e),a}(e))}};function h(e){let t=e.cached.tableNodeTypes;
67if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}return t}let p=new s.hs("selectingCells");function f(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function g(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function m(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let n=f(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function y(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function b(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function v(e,t,n){let r=e.node(-1),i=d.get(r),o=e.start(-1),s=i.nextCell(e.pos-o,t,n);return null==s?null:e.node(0).resolve(o+s)}function w(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function k(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var E=class e extends s.LN{constructor(e,t=e){let n=e.node(-1),r=d.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),a=e.node(0),l=r.cellsInRect(o).filter(e=>e!=t.pos-i);l.unshift(t.pos-i);let c=l.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new s.yn(a.resolve(r),a.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(y(r)&&y(i)&&b(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return s.U3.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let s=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(i[n])continue;i[n]=!0;let a=t.findCell(n),l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);let c=r.left-a.left,u=a.right-r.right;if(c>0||u>0){let e=l.attrs;if(c>0&&(e=w(e,0,c)),u>0&&(e=w(e,e.colspan-u,u)),a.left<r.left){if(!(l=l.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(a.top<r.top||a.bottom>r.bottom){let e={...l.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};l=a.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}s.push(l)}o.push(e.child(n).copy(a.FK.from(s)))}let s=this.isColSelection()&&this.isRowSelection()?e:o;return new a.Ji(a.FK.from(s),1,1)}replace(e,t=a.Ji.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],l=e.mapping.slice(n);e.replace(l.map(o.pos),l.map(s.pos),i?a.Ji.empty:t)}let i=s.LN.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new a.Ji(a.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=d.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);return!(Math.min(r,i)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(t=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new A(this.$anchorCell.pos,this.$headCell.pos)}};E.prototype.visible=!1,s.LN.jsonID("cell",E);var A=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&b(t,n)?new E(t,n):s.LN.near(n,1)}};function _(e){if(!(e.selection instanceof E))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(l.NZ.node(n,n+e.nodeSize,{class:"selectedCell"}))}),l.zF.create(e.doc,t)}let S=new s.hs("fix-tables");function M(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i,o,s=d.get(t);if(!s.problems)return r;r||(r=e.tr);let a=[];for(let e=0;e<s.height;e++)a.push(0);for(let e=0;e<s.problems.length;e++){let i=s.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let o=e.attrs;for(let e=0;e<o.rowspan;e++)a[i.row+e]+=i.n;
67r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,w(o,o.colspan-i.n,i.n))}else if("missing"==i.type)a[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}for(let e=0;e<a.length;e++)a[e]&&(null==i&&(i=e),o=e);for(let l=0,c=n+1;l<s.height;l++){let n=t.child(l),s=c+n.nodeSize,u=a[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<u;n++){let n=h(e.schema)[t].createAndFill();n&&a.push(n)}let d=(0==l||i==l-1)&&o==l?c+1:s-1;r.insert(r.mapping.map(d),a)}c=s}return r.setMeta(S,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,i){let o=t.childCount,s=n.childCount;n:for(let a=0,l=0;a<s;a++){let s=n.child(a);for(let e=l,n=Math.min(o,a+3);e<n;e++)if(t.child(e)==s){l=e+1,r+=s.nodeSize;continue n}i(s,r),l<o&&t.child(l).sameMarkup(s)?e(t.child(l),s,r+1,i):s.nodesBetween(0,s.content.size,i,r+1),r+=s.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function C(e){let t=e.selection,n=m(e),r=n.node(-1),i=n.start(-1),o=d.get(r);return{...t instanceof E?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function O(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=h(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,k(l.attrs,i-t.colCount(o))),s+=l.attrs.rowspan-1}else{let l=null==o?h(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,c=t.positionAt(s,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function T(e,{map:t,tableStart:n,table:r},i){let o=n;for(let e=0;e<i;e++)o+=r.child(e).nodeSize;let s=[],a=i>0?-1:0;(function(e,t,n){var r;let i=h(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if((null==(r=t.nodeAt(e.map[o+n*e.width]))?void 0:r.type)!=i)return!1;return!0})(t,r,i+a)&&(a=0==i||i==t.height?null:0);for(let o=0,c=t.width*i;o<t.width;o++,c++)if(i>0&&i<t.height&&t.map[c]==t.map[c-t.width]){let i=t.map[c],s=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,{...s,rowspan:s.rowspan+1}),o+=s.colspan-1}else{var l;let e=null==a?h(r.type.schema).cell:null==(l=r.nodeAt(t.map[c+a*t.width]))?void 0:l.type,n=null==e?void 0:e.createAndFill();n&&s.push(n)}return e.insert(o,h(r.type.schema).row.create(null,s)),e}function N(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function I(e,t){let n=e.selection;if(!(n instanceof E)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=C(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}(i,r))return!1;if(t){let n,o,s=e.tr,l={},c=a.FK.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let a=i.map[e*i.width+t],u=r.table.nodeAt(a);if(!l[a]&&u)if(l[a]=!0,null==n)n=a,o=u;else{N(u)||(c=c.append(u.content));let e=s.mapping.map(a+r.tableStart);s.delete(e,e+u.nodeSize)}}if(null==n||null==o)return!0;if(s.setNodeMarkup(n+r.tableStart,null,{...k(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),rowspan:r.bottom-r.top}),c.size>0){let e=n+1+o.content.size,t=N(o)?n+1:e;s.replaceWith(t+r.tableStart,e+r.tableStart,c)}s.setSelection(new E(s.doc.resolve(n+r.tableStart))),t(s)}return!0}function R(e,t){var n;let r=h(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{let r,i,o=e.selection;if(o instanceof E){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{var s;if(!(r=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;
67if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;i=null==(s=f(o.$from))?void 0:s.pos}if(null==r||null==i||1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(t){let s,a=r.attrs,l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});let u=C(e),d=e.tr;for(let e=0;e<u.right-u.left;e++)l.push(c?{...a,colwidth:c&&c[e]?[c[e]]:null}:a);for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=r.nodeSize);for(let i=u.left,o=0;i<u.right;i++,o++)(i!=u.left||e!=u.top)&&d.insert(s=d.mapping.map(t+u.tableStart,1),n({node:r,row:e,col:i}).createAndFill(l[o]))}d.setNodeMarkup(i,n({node:r,row:u.top,col:u.left}),l[0]),o instanceof E&&d.setSelection(new E(d.doc.resolve(o.$anchorCell.pos),s?d.doc.resolve(s):void 0)),t(d)}return!0})(e,t)}function L(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function D(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic)return function(t,n){if(!g(t))return!1;if(n){let r=h(t.schema),i=C(t),o=t.tr,s=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(e=>i.table.nodeAt(e));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[e],r.cell,a[e].attrs);if(0===o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],r.header_cell,a[e].attrs);n(o)}return!0};return function(t,n){if(!g(t))return!1;if(n){let r=h(t.schema),i=C(t),o=t.tr,s=L("row",i,r),a=L("column",i,r),l=+("column"===e?!!s:"row"===e&&!!a),c="column"==e?{left:0,top:l,right:1,bottom:i.map.height}:"row"==e?{left:l,top:0,right:i.map.width,bottom:1}:i,u="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach(e=>{let t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,u,n.attrs)}),n(o)}return!0}}D("row",{useDeprecatedLogic:!0}),D("column",{useDeprecatedLogic:!0});let z=D("cell",{useDeprecatedLogic:!0});function j(e){return function(t,n){if(!g(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),i=r.lastChild;if(i)return n-1-i.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(m(t),e);if(null==r)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(s.U3.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function B(e,t){let n=e.selection;if(!(n instanceof E))return!1;if(t){let r=e.tr,i=h(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new a.Ji(i,0,0))}),r.docChanged&&t(r)}return!0}function P(e,t){let n=e.createAndFill();return new u.dL(n).replace(0,n.content.size,t).doc}function $(e,t,n,r,i,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=i;c<o;c++){let i=s*t.width+c,o=t.map[i];if(t.map[i-t.width]==o){l=!0;let i=n.nodeAt(o),{top:u,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,{...i.attrs,rowspan:s-u}),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),i.type.createAndFill({...i.attrs,rowspan:u+i.attrs.rowspan-s})),c+=i.attrs.colspan-1}}return l}function F(e,t,n,r,i,o,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let c=i;c<o;c++){let i=c*t.width+s,o=t.map[i];if(t.map[i-1]==o){l=!0;let i=n.nodeAt(o),u=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,w(i.attrs,s-u,i.attrs.colspan-(s-u))),e.insert(d+i.nodeSize,i.type.createAndFill(w(i.attrs,0,s-u))),c+=i.attrs.rowspan-1}}return l}function U(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw Error("No table found");let s=d.get(o),{top:l,left:c}=r,u=c+i.width,p=l+i.height,f=e.tr,g=0;function m(){if(!(o=n?f.doc.nodeAt(n-1):f.doc))throw Error("No table found");s=d.get(o),g=f.mapping.maps.length}(function(e,t,n,r,i,o,s){let l,c,u=h(e.doc.type.schema);if(i>t.width)for(let o=0,s=0;o<t.height;o++){let a,d=n.child(o);s+=d.nodeSize;let h=[];a=null==d.lastChild||d.lastChild.type==u.cell?l||(l=u.cell.createAndFill()):c||(c=u.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(a);e.insert(e.mapping.slice(0).map(s-1+r),h)}if(o>t.height){let d=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==u.header_cell;d.push(i?c||(c=u.header_cell.createAndFill()):l||(l=u.cell.createAndFill()))}let h=u.row.create(null,a.FK.from(d)),p=[];for(let e=t.height;e<o;e++)p.push(h);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),p)}return!!(l||c)})(f,s,o,n,u,p,0)&&m(),$(f,s,o,n,c,u,l,g)&&m(),$(f,s,o,n,c,u,p,g)&&m(),F(f,s,o,n,l,p,c,g)&&m(),F(f,s,o,n,l,p,u,g)&&m();for(let e=l;e<p;e++){let t=s.positionAt(e,c,o),r=s.positionAt(e,u,o);f.replace(f.mapping.slice(g).map(t+n),f.mapping.slice(g).map(r+n),new a.Ji(i.rows[e-l],0,0))}m(),f.setSelection(new E(f.doc.resolve(n+s.positionAt(l,c,o)),f.doc.resolve(n+s.positionAt(p-1,u-1,o)))),t(f)}let H=(0,c.K)({ArrowLeft:W("horiz",-1),ArrowRight:W("horiz",1),ArrowUp:W("vert",
67-1),ArrowDown:W("vert",1),"Shift-ArrowLeft":K("horiz",-1),"Shift-ArrowRight":K("horiz",1),"Shift-ArrowUp":K("vert",-1),"Shift-ArrowDown":K("vert",1),Backspace:B,"Mod-Backspace":B,Delete:B,"Mod-Delete":B});function q(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function W(e,t){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof E)return q(n,r,s.LN.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let a=G(i,e,t);if(null==a)return!1;if("horiz"==e)return q(n,r,s.LN.near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(a),l=v(o,e,t);return i=l?s.LN.near(l,1):t<0?s.LN.near(n.doc.resolve(o.before(-1)),-1):s.LN.near(n.doc.resolve(o.after(-1)),1),q(n,r,i)}}}function K(e,t){return(n,r,i)=>{let o;if(!i)return!1;let s=n.selection;if(s instanceof E)o=s;else{let r=G(i,e,t);if(null==r)return!1;o=new E(n.doc.resolve(r))}let a=v(o.$headCell,e,t);return!!a&&q(n,r,new E(o.$anchorCell,a))}}function Y(e,t){let n=f(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new E(n))),!0)}function V(e,t,n){if(!g(e.state))return!1;let r=function(e){if(0===e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let i=t.child(0),o=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),c=e<t.childCount-1?0:Math.max(0,r-1);(o||c)&&(i=P(h(s).row,new a.Ji(i,o,c)).content),l.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;l.push(n||r?P(h(s).row,new a.Ji(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(a.FK.empty),n[i]<r){let o=h(e).cell.createAndFill(),s=[];for(let e=n[i];e<r;e++)s.push(o);t[i]=t[i].append(a.FK.from(s))}return{height:t.length,width:r,rows:t}}(s,l)}(n),i=e.state.selection;if(i instanceof E){r||(r={width:1,height:1,rows:[a.FK.from(P(h(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=d.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],s=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.createChecked(w(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(a.FK.from(s))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let s=[],l=n[o%t];for(let e=0;e<l.childCount;e++){let t=l.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),s.push(t)}e.push(a.FK.from(s))}n=e,t=i}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),U(e.state,e.dispatch,o,s,r),!0}if(!r)return!1;{let t=m(e.state),n=t.start(-1);return U(e.state,e.dispatch,n,d.get(t.node(-1)).findCell(t.pos-n),r),!0}}function J(e,t){var n;let r;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=Z(e,t.target);if(t.shiftKey&&e.state.selection instanceof E)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(r=f(e.state.selection.$anchor))&&(null==(n=X(e,t))?void 0:n.pos)!=r.pos)o(r,t),t.preventDefault();else if(!i)return;function o(t,n){let r=X(e,n),i=null==p.getState(e.state);if(!r||!b(t,r))if(!i)return;else r=t;let o=new E(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(p,t.pos),e.dispatch(n)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",a),null!=p.getState(e.state)&&e.dispatch(e.state.tr.setMeta(p,-1))}function a(n){let r,a=p.getState(e.state);if(null!=a)r=e.state.doc.resolve(a);else if(Z(e,n.target)!=i&&!(r=X(e,t)))return s();r&&o(r,n)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",a)}function G(e,t,n){if(!(e.state.selection instanceof s.U3))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))break;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function Z(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function X(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&f(e.state.doc.resolve(r))||f(e.state.doc.resolve(i))}var Q=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ee(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,ee(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function ee(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild,c=e.firstChild;if(c){for(let e=0,n=0;e<c.childCount;e++){let{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e++,n++){let c=i==n?o:d&&d[e],u=c?c+"px":"";if(s+=c||r,c||(a=!1),l)l.style.width!=u&&(l.style.width=u),l=l.nextSibling;else{let e=document.createElement("col");e.style.width=u,t.appendChild(e)}}}for(;l;){var u;let e=l.nextSibling;null==(u=l.parentNode)||u.removeChild(l),l=e}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}let et=new s.hs("tableColumnResizing");var en=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=t.getMeta(et);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(this.activeHandle,n.setDragging);if(this.activeHandle>-1&&t.docChanged){let n=t.mapping.map(this.activeHandle,-1);return y(t.doc.resolve(n))||(n=-1),new e(n,this.dragging)}return this}};function er(e,t,n,r){let i=e.posAtCoords({left:t.clientX+("right"==n?-r:r),top:t.clientY});if(!i)return -1;let{pos:o}=i,s=f(e.state.doc.resolve(o));if(!s)return -1;if("right"==n)return s.pos;let a=d.get(s.node(-1)),l=s.start(-1),c=a.map.indexOf(s.pos-l);return c%a.width==0?-1:l+a.map[c-1]}
67function ei(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function eo(e,t){e.dispatch(e.state.tr.setMeta(et,{setHandle:t}))}function es(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=d.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.domAtPos(i.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&ee(o,l.firstChild,l,r,a,n)}function ea(e){return"left"===e||"right"===e||"center"===e?e:null}function el(){return{default:null,parseHTML:e=>(function(e){let t=(e.style.textAlign||"").trim().toLowerCase(),n=(e.getAttribute("align")||"").trim().toLowerCase();return ea(t||n)})(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}function ec(e){let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):function(e){var t;let n=e.parentElement,r=e.closest("table");if(!n||!r)return null;let i=Array.from(n.children).indexOf(e),o=null==(t=r.querySelectorAll("colgroup > col")[i])?void 0:t.getAttribute("width");return o?[parseInt(o,10)]:null}(e)}var eu=o.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:ec},align:el()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,o.KV)(this.options.HTMLAttributes,e),0]}}),ed=o.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:ec},align:el()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,o.KV)(this.options.HTMLAttributes,e),0]}}),eh=o.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,o.KV)(this.options.HTMLAttributes,e),0]}});function ep(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function ef(e,t,n,r,i,o){var s;let a=0,l=!0,c=t.firstChild,u=e.firstChild;if(null!==u)for(let e=0,n=0;e<u.childCount;e+=1){let{colspan:s,colwidth:d}=u.child(e).attrs;for(let e=0;e<s;e+=1,n+=1){let s=i===n?o:d&&d[e],u=s?`${s}px`:"";if(a+=s||r,s||(l=!1),c){if(c.style.width!==u){let[e,t]=ep(r,s);c.style.setProperty(e,t)}c=c.nextSibling}else{let e=document.createElement("col"),[n,i]=ep(r,s);e.style.setProperty(n,i),t.appendChild(e)}}}for(;c;){let e=c.nextSibling;null==(s=c.parentNode)||s.removeChild(c),c=e}let d=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);l&&!d?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}var eg=class{constructor(e,t,n,r={}){for(let[n,i]of(this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),Object.entries(r)))null!=i&&("style"===n?this.table.style.cssText=String(i):this.table.setAttribute(n,String(i)));e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ef(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,ef(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,n=this.dom.contains(t),r=this.contentDOM.contains(t);return!!n&&!r&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function em(e,t){return t?e.createChecked(null,t):e.createAndFill()}var ey=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof E))return!1;let n=0,r=(0,o.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},eb=function(e,t,n={}){var r;let i=null!=(r=n.cellLineSeparator)?r:"\x1f";if(!e||!e.content||0===e.content.length)return"";let o=[];
67e.content.forEach(e=>{let n=[];e.content&&e.content.forEach(e=>{var r;let o=((e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):"")||"").replace(/\s+/g," ").trim(),s="tableHeader"===e.type,a=ea(null==(r=e.attrs)?void 0:r.align);n.push({text:o,isHeader:s,align:a})}),o.push(n)});let s=o.reduce((e,t)=>Math.max(e,t.length),0);if(0===s)return"";let a=Array.from({length:s}).fill(0);o.forEach(e=>{var t;for(let n=0;n<s;n+=1){let r=((null==(t=e[n])?void 0:t.text)||"").length;r>a[n]&&(a[n]=r),a[n]<3&&(a[n]=3)}});let l=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),c=o[0],u=c.some(e=>e.isHeader),d=Array.from({length:s}).fill(null);o.forEach(e=>{var t;for(let n=0;n<s;n+=1)!d[n]&&(null==(t=e[n])?void 0:t.align)&&(d[n]=e[n].align)});let h="\n",p=Array.from({length:s}).map((e,t)=>u&&c[t]&&c[t].text||"");return h+=`| ${p.map((e,t)=>l(e,a[t])).join(" | ")} | 68| ${a.map((e,t)=>{let n=Math.max(3,e),r=d[t];return"left"===r?`:${"-".repeat(n)}`:"right"===r?`${"-".repeat(n)}:`:"center"===r?`:${"-".repeat(n)}:`:"-".repeat(n)}).join(" | ")} | 69`,(u?o.slice(1):o).forEach(e=>{h+=`| ${Array.from({length:s}).fill(0).map((t,n)=>l(e[n]&&e[n].text||"",a[n])).join(" | ")} | 70`}),h},ev=o.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:eg,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:r,tableMinWidth:i}=function(e,t,n,r){let i=0,o=!0,s=[],a=e.firstChild;if(!a)return{};for(let e=0,n=0;e<a.childCount;e+=1){let{colspan:r,colwidth:l}=a.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:l&&l[e];i+=r||t,r||(o=!1);let[a,c]=ep(t,r);s.push(["col",{style:`${a}: ${c}`}])}}return{colgroup:["colgroup",{},...s],tableWidth:o?`${i}px`:"",tableMinWidth:o?"":`${i}px`}}(e,this.options.cellMinWidth),s=t.style,a=["table",(0,o.KV)(this.options.HTMLAttributes,t,{style:s||(r?`width: ${r}`:`min-width: ${i}`)}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let n=[],r=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,n)=>{var o;let s=ea(null!=(o=r[n])?o:e.align);i.push(t.createNode("tableHeader",s?{align:s}:{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,n)=>{var o;let s=ea(null!=(o=r[n])?o:e.align);i.push(t.createNode("tableCell",s?{align:s}:{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,n)},renderMarkdown:(e,t)=>eb(e,t),markdownTokenizer:{name:"table",level:"block",start:e=>{let t=e.split("\n");if(t.length<2)return -1;let n=t[1];return/^[ \t|:]*-[ \t|:-]*$/.test(n)&&n.includes("|")&&t[0].includes("|")?0:-1},tokenize(e,t,n){let r=e.indexOf("\n\n"),i=r>=0?e.slice(0,r):e,o=i.split("\n");if(o.length<2)return;let s=o[1];if(!/^[ \t|:]*-[ \t|:-]*$/.test(s)||!s.includes("|"))return;let a=i.split("\n").map(e=>e.includes("|")&&e.includes("`")?function(e){let t="",n=0;for(;n<e.length;){if("\\"===e[n]&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}if("`"!==e[n]){t+=e[n++];continue}let r=0;for(;n+r<e.length&&"`"===e[n+r];)r+=1;let i=n+r,o=!1;for(;i<e.length;){if("`"!==e[i]){i+=1;continue}let s=0;for(;i+s<e.length&&"`"===e[i+s];)s+=1;if(s===r){let s=e.slice(n+r,i);t+=e.slice(n,n+r)+s.replace(/(?<!\\)\|/g,"\\|")+e.slice(i,i+r),n=i+r,o=!0;break}i+=s}o||(t+=e.slice(n,n+r),n+=r)}return t}(e):e).join("\n");if(a===i)return;let l=n.blockTokens(a)[0];if((null==l?void 0:l.type)!=="table"||!l.raw)return;let c=l.raw.split("\n").length,u=e.split("\n").slice(0,c).join("\n");return{...l,raw:u}}},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{let a=function(e,t,n,r,i){let o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};
70return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){let e=em(o.cell,void 0);if(e&&a.push(e),r){let e=em(o.header_cell,void 0);e&&s.push(e)}}let l=[];for(let e=0;e<t;e+=1)l.push(o.row.createChecked(null,r&&0===e?s:a));return o.table.createChecked(null,l)}(o.schema,e,t,n);if(i){let e=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(s.U3.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e);t(O(e.tr,n,n.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e);t(O(e.tr,n,n.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;!function(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let a=s*t.width+i,l=t.map[a],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,w(u,i-t.colCount(l)));else{let t=e.mapping.slice(o).map(r+l);e.delete(t,t+c.nodeSize)}s+=u.rowspan}}(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(e)}t(r)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e);t(T(e.tr,n,n.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e);t(T(e.tr,n,n.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!g(e))return!1;if(t){let n=C(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;!function(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);let l=new Set;for(let o=0,s=i*t.width;o<t.width;o++,s++){let c=t.map[s];if(!l.has(c)){if(l.add(c),i>0&&c==t.map[s-t.width]){let t=n.nodeAt(c).attrs;e.setNodeMarkup(e.mapping.slice(a).map(c+r),null,{...t,rowspan:t.rowspan-1}),o+=t.colspan-1}else if(i<t.height&&c==t.map[s+t.width]){let s=n.nodeAt(c),l=s.attrs,u=s.type.create({...l,rowspan:s.attrs.rowspan-1},s.content),d=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+d),u),o+=l.colspan-1}}}}(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(n.table)}t(r)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>I(e,t),splitCell:()=>({state:e,dispatch:t})=>R(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>D("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>D("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>z(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!I(e,t)||R(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(function(e,t){return function(n,r){if(!g(n))return!1;let i=m(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof E?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0}})(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>j(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>j(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&M(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=E.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ey,"Mod-Backspace":ey,Delete:ey,"Mod-Delete":ey}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=Q,lastColumnResizable:i=!0}={}){let o=new s.k_({key:et,state:{init(e,t){var i;let s=null==(i=o.spec)||null==(i=i.props)?void 0:i.nodeViews,a=h(t.schema).table.name;return r&&s&&(s[a]=(e,t)=>new r(e,n,t)),new en(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=et.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;let i=et.getState(e.state);if(i&&!i.dragging){let o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;
70if(o){let{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?s=er(e,t,"left",n):i-t.clientX<=n&&(s=er(e,t,"right",n))}if(s!=i.activeHandle){if(!r&&-1!==s){let t=e.state.doc.resolve(s),n=t.node(-1),r=d.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}eo(e,s)}}}(t,n,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=et.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&eo(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var i;if(!e.editable)return;let o=null!=(i=e.dom.ownerDocument.defaultView)?i:window,s=et.getState(e.state);if(!s||-1==s.activeHandle||s.dragging)return;let a=e.state.doc.nodeAt(s.activeHandle),l=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(s-=r[e],a--);return s/a}(e,s.activeHandle,a.attrs);function c(t){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);let r=et.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=d.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],c=i.nodeAt(r).attrs,u=1==c.colspan?0:a-o.colCount(r);if(c.colwidth&&c.colwidth[u]==n)continue;let d=c.colwidth?c.colwidth.slice():Array(c.colspan).fill(0);d[u]=n,l.setNodeMarkup(s+r,null,{...c,colwidth:d})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,ei(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(et,{setDragging:null})))}function u(t){if(!t.which)return c(t);let i=et.getState(e.state);if(i&&i.dragging){let o=ei(i.dragging,t,n);es(e,i.activeHandle,o,r)}}e.dispatch(e.state.tr.setMeta(et,{setDragging:{startX:t.clientX,startWidth:l}})),es(e,s.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault()}(e,r,t,n)}},decorations:e=>{let t=et.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return l.zF.empty;let o=d.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1;for(let t=0;t<o.height;t++){let r=a+t*o.width;if((a==o.width-1||o.map[r]!=o.map[r+1])&&(0==t||o.map[r]!=o.map[r-o.width])){var c;let t=o.map[r],a=s+t+i.nodeAt(t).nodeSize-1,u=document.createElement("div");u.className="column-resize-handle",(null==(c=et.getState(e))?void 0:c.dragging)&&n.push(l.NZ.node(s+t,s+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),n.push(l.NZ.widget(a,u))}}return l.zF.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new s.k_({key:p,state:{init:()=>null,apply(e,t){let n=e.getMeta(p);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:_,handleDOMEvents:{mousedown:J},createSelectionBetween:e=>null!=p.getState(e.state)?e.state.selection:null,handleTripleClick:Y,handleKeyDown:H,handlePaste:V},appendTransaction:(t,n,r)=>(function(e,t,n){let r,i,o=(t||e).selection,a=(t||e).doc;if(o instanceof s.nh&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=E.create(a,o.from);else if("row"==i){let e=a.resolve(o.from+1);r=E.rowSelection(e,e)}else if(!n){let e=d.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=E.create(a,t+1,n)}}else o instanceof s.U3&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=s.U3.create(a,o.from):o instanceof s.U3&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=s.U3.create(a,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t})(r,M(r,n),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},addNodeView(){let e=this.options.resizable&&this.editor.isEditable,t=this.options.View;return e||!t?null:({node:e,view:n,HTMLAttributes:r})=>{let i=(0,o.KV)(this.options.HTMLAttributes,r);return new t(e,this.options.cellMinWidth,n,i)}},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,o.gk)((0,o.iI)(e,"tableRole",t))}}});o.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(ev.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eu.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(ed.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(eh.configure(this.options.tableRow)),e}})},75882:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},76105:()=>{},76341:(e,t,n)=>{"use strict";n.d(t,{A:()=>
70o,D:()=>i});var r=n(76908),i=r.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
70)\\s$`),type:this.type,getAttributes:{level:e}}))}}),o=i},76925:(e,t,n)=>{"use strict";n.d(t,{J2:()=>l});var r=n(76908),i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,o=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,s=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,a=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,l=r.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
70,addInputRules(){return[(0,r.OX)({find:i,type:this.type}),(0,r.OX)({find:s,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type}),(0,r.Zc)({find:a,type:this.type})]}})},77676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("file-down",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]])},78336:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(75699).Hj},78519:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},78874:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},79371:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=n(75699).A0},79452:e=>{e.exports=(function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}a=n[s]={exports:{}},t[s][0].call(a.exports,function(e){return i(t[s][1][e]||e)},a,a.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i})({1:[function(e,t,n){(function(r,i,o,s,a,l,c,u,d){"use strict";var h=e("crypto");function p(e,t){var n;return void 0===(n="passthrough"!==(t=m(e,t)).algorithm?h.createHash(t.algorithm):new v).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var f=h.getHashes?h.getHashes().slice():["sha1","md5"],g=(f.push("passthrough"),["buffer","hex","binary","base64"]);function m(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var r=0;r<f.length;++r)f[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=f[r]);if(-1===f.indexOf(n.algorithm))throw Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+f.join(", "));if(-1===g.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw Error('Encoding "'+n.encoding+'" not supported. supported values: '+g.join(", "));return n}function y(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)},_object:function(t){var i,s=Object.prototype.toString.call(t),a=/\[object (.*)\]/i.exec(s);if(a=(a=a?a[1]:"unknown:["+s+"]").toLowerCase(),0<=(s=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+s+"]");if(n.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return r("buffer:"),r(t);if("object"===a||"function"===a||"asyncfunction"===a)return s=Object.keys(t),e.unorderedObjects&&(s=s.sort()),!1===e.respectType||y(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter(function(t){return!e.excludeKeys(t)})),r("object:"+s.length+":"),i=this,s.forEach(function(n){i.dispatch(n),r(":"),e.excludeValues||i.dispatch(t[n]),r(",")});if(!this["_"+a]){if(e.ignoreUnknown)return r("["+a+"]");throw Error('Unknown object type "'+a+'"')}this["_"+a](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(r("array:"+t.length+":"),!i||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var s=[],i=t.map(function(t){var r=new v,i=n.slice();return b(e,r,i).dispatch(t),s=s.concat(i.slice(n.length)),r.read().toString()});return n=n.concat(s),i.sort(),this._array(i,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())}
70,_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),y(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){return r("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function v(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=m(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,r,i,o,s,a,l,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array;function n(e){return 43===(e=e.charCodeAt(0))||45===e?62:47===e||95===e?63:e<48?-1:e<58?e-48+26+26:e<91?e-65:e<123?e-97+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var r,i,o=e.length,o="="===e.charAt(o-2)?2:+("="===e.charAt(o-1)),s=new t(3*e.length/4-o),a=0<o?e.length-4:e.length,l=0;function c(e){s[l++]=e}for(r=0;r<a;r+=4)c((0xff0000&(i=n(e.charAt(r))<<18|n(e.charAt(r+1))<<12|n(e.charAt(r+2))<<6|n(e.charAt(r+3))))>>16),c((65280&i)>>8),c(255&i);return 2==o?c(255&(i=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4)):1==o&&(c((i=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2)>>8&255),c(255&i)),s},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,s="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
70+/".charAt(e)}for(t=0,r=e.length-o;t<r;t+=3)s+=a((i=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+a(i>>12&63)+a(i>>6&63)+a(63&i);switch(o){case 1:s=(s+=a((n=e[e.length-1])>>2))+a(n<<4&63)+"==";break;case 2:s=(s=(s+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+a(n>>4&63))+a(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,o,s,a,l,c,u){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,s,a,l=typeof e;if("base64"===t&&"string"==l)for(e=(a=e).trim?a.trim():a.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==l)r=C(e);else if("string"==l)r=i.byteLength(e,t);else{if("object"!=l)throw Error("First argument needs to be a number, array or string.");r=C(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(O(a=e)||i.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(s=0;s<r;s++)i.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==l)o.write(e,0,t);else if("number"==l&&!i._useTypedArrays&&!n)for(s=0;s<r;s++)o[s]=0;return o}function p(e,t,n,r){r||(B("boolean"==typeof n,"missing or invalid endian"),B(null!=t,"missing offset"),B(t+1<e.length,"Trying to read beyond buffer length"));var i,r=e.length;if(!(r<=t))return n?(i=e[t],t+1<r&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<r&&(i|=e[t+1])),i}function f(e,t,n,r){r||(B("boolean"==typeof n,"missing or invalid endian"),B(null!=t,"missing offset"),B(t+3<e.length,"Trying to read beyond buffer length"));var i,r=e.length;if(!(r<=t))return n?(t+2<r&&(i=e[t+2]<<16),t+1<r&&(i|=e[t+1]<<8),i|=e[t],t+3<r&&(i+=e[t+3]<<24>>>0)):(t+1<r&&(i=e[t+1]<<16),t+2<r&&(i|=e[t+2]<<8),t+3<r&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function g(e,t,n,r){if(r||(B("boolean"==typeof n,"missing or invalid endian"),B(null!=t,"missing offset"),B(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(r=p(e,t,n,!0))?-1*(65535-r+1):r}function m(e,t,n,r){if(r||(B("boolean"==typeof n,"missing or invalid endian"),B(null!=t,"missing offset"),B(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 0x80000000&(r=f(e,t,n,!0))?-1*(0xffffffff-r+1):r}function y(e,t,n,r){return r||(B("boolean"==typeof n,"missing or invalid endian"),B(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,23,4)}function b(e,t,n,r){return r||(B("boolean"==typeof n,"missing or invalid endian"),B(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,52,8)}function v(e,t,n,r,i){if(i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+1<e.length,"trying to write beyond buffer length"),D(t,65535)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,2);o<s;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function w(e,t,n,r,i){if(i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+3<e.length,"trying to write beyond buffer length"),D(t,0xffffffff)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,4);o<s;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function k(e,t,n,r,i){i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+1<e.length,"Trying to write beyond buffer length"),z(t,32767,-32768)),e.length<=n||v(e,0<=t?t:65535+t+1,n,r,i)}function E(e,t,n,r,i){i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+3<e.length,"Trying to write beyond buffer length"),z(t,0x7fffffff,-0x80000000)),e.length<=n||w(e,0<=t?t:0xffffffff+t+1,n,r,i)}function A(e,t,n,r,i){i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+3<e.length,"Trying to write beyond buffer length"),j(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||h.write(e,t,n,r,23,4)}function _(e,t,n,r,i){i||(B(null!=t,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+7<e.length,"Trying to write beyond buffer length"),j(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||h.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=N(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw Error("Unknown encoding")}return n},i.concat=function(e,t){if(B(O(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new i(t),r=0,o=0;o<e.length;o++){var s=e[o];s.copy(n,r),r+=s.length}return n},i.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(p=r,r=t,t=n,n=p),t=Number(t)||0;var o,s,a,l,c,u,d,h,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":c=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),B((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var s=0;s<r;s++){var a=parseInt(t.substr(2*s,2),16);B(!isNaN(a),"Invalid hex string"),e[n+s]=a}return i._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":u=this,d=t,h=n,c=i._charsWritten=R(N(e),u,d,h);break;case"ascii":case"binary":o=t,s=n,c=i._charsWritten=R(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(e),this,o,s);break;case"base64":u=this,d=t,h=n,c=i._charsWritten=R(I(e),u,d,h);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=t,l=n,c=i._charsWritten=R(function(e){for(var t,n,r=[],i=0;i<e.length;i++)t=(n=e.charCodeAt(i))>>8,r.push(n%=256),r.push(t);return r}(e),this,a,l);break;default:throw Error("Unknown encoding")}return c},i.prototype.toString=function(e,t,n){var r,i,o;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):this.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=T(e[o]);return i}(this,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=L(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+L(i)}(this,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}(this,t,n);break;case"base64":o=n,r=0===(i=t)&&o===this.length?d.fromByteArray(this):d.fromByteArray(this.slice(i,o));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);break;default:throw Error("Unknown encoding")}return r},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){B(n<=r,"sourceEnd < sourceStart"),B(0<=t&&t<e.length,"targetStart out of bounds"),B(0<=n&&n<this.length,"sourceStart out of bounds"),B(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!i._useTypedArrays)for(var s=0;s<o;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+o),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=M(e,n,0),t=M(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;s<r;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(B(null!=e,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return f(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return f(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(B(null!=e,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return m(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return y(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return y(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(B(null!=e,"missing value"),B(null!=t,"missing offset"),B(t<this.length,"trying to write beyond buffer length"),D(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){v(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){v(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(B(null!=e,"missing value"),B(null!=t,"missing offset"),B(t<this.length,"Trying to write beyond buffer length"),z(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){A(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){A(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,B("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),B(t<=n,"end < start"),n!==t&&0!==this.length){B(0<=t&&t<this.length,"start out of bounds"),B(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=T(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var S=i.prototype;function M(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function C(e){return(e=~~Math.ceil(+e))<0?0:e}function O(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function T(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var i=n,o=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(i,n+1)).substr(1).split("%")),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}return t}function I(e){return d.toByteArray(e)}function R(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function L(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function D(e,t){B("number"==typeof e,"cannot write a non-number as a number"),B(0<=e,"specified a negative value for writing an unsigned value"),B(e<=t,"value is larger than maximum value for type"),B(Math.floor(e)===e,"value has a fractional component")}function z(e,t,n){B("number"==typeof e,"cannot write a non-number as a number"),B(e<=t,"value larger than maximum allowed value"),B(n<=e,"value smaller than minimum allowed value"),B(Math.floor(e)===e,"value has a fractional component")}function j(e,t,n){B("number"==typeof e,"cannot write a non-number as a number"),B(e<=t,"value larger than maximum allowed value"),B(n<=e,"value smaller than minimum allowed value")}function B(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleStr
70ing=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,o,s,a,l,c,u){var i=e("buffer").Buffer,d=new i(4);d.fill(0),t.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,d],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,s=0;s<e.length;s+=4)r.push(o.call(e,s));return r}(e=i.isBuffer(e)?e:new i(e),r),8*e.length),t=r,s=new i(n),a=t?s.writeInt32BE:s.writeInt32LE,l=0;l<o.length;l++)a.call(s,o[l],4*l,!0);return s}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,r,i,o,s,a,l,c,u){var i=e("buffer").Buffer,d=e("./sha"),h=e("./sha256"),p=e("./rng"),f={sha1:d,sha256:h,md5:e("./md5")},g=new i(64);function m(e,t){var n=f[e=e||"sha1"],r=[];return n||y("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var o=i.concat(r),o=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>64?t=e(t):t.length<64&&(t=i.concat([t,g],64));for(var r=new i(64),o=new i(64),s=0;s<64;s++)r[s]=54^t[s],o[s]=92^t[s];return n=e(i.concat([r,n])),e(i.concat([o,n]))}(n,t,o):n(o);return r=null,e?o.toString(e):o}}}function y(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests\nhttp://github.com/dominictarr/crypto-browserify"].join("\n"))}g.fill(0),n.createHash=function(e){return m(e)},n.createHmac=m,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var b,v=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],w=function(e){n[e]=function(){y("sorry,",e,"is not implemented yet")}};for(b in v)w(v[b],b)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,o,s,a,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=0x67452301,r=-0x10325477,i=-0x67452302,o=0x10325476,s=0;s<e.length;s+=16){var a=n,l=r,c=i,u=o,n=f(n,r,i,o,e[s+0],7,-0x28955b88),o=f(o,n,r,i,e[s+1],12,-0x173848aa),i=f(i,o,n,r,e[s+2],17,0x242070db),r=f(r,i,o,n,e[s+3],22,-0x3e423112);n=f(n,r,i,o,e[s+4],7,-0xa83f051),o=f(o,n,r,i,e[s+5],12,0x4787c62a),i=f(i,o,n,r,e[s+6],17,-0x57cfb9ed),r=f(r,i,o,n,e[s+7],22,-0x2b96aff),n=f(n,r,i,o,e[s+8],7,0x698098d8),o=f(o,n,r,i,e[s+9],12,-0x74bb0851),i=f(i,o,n,r,e[s+10],17,-42063),r=f
vendor: 4,833 bytes, line 70
70(r,i,o,n,e[s+11],22,-0x76a32842),n=f(n,r,i,o,e[s+12],7,0x6b901122),o=f(o,n,r,i,e[s+13],12,-0x2678e6d),i=f(i,o,n,r,e[s+14],17,-0x5986bc72),n=g(n,r=f(r,i,o,n,e[s+15],22,0x49b40821),i,o,e[s+1],5,-0x9e1da9e),o=g(o,n,r,i,e[s+6],9,-0x3fbf4cc0),i=g(i,o,n,r,e[s+11],14,0x265e5a51),r=g(r,i,o,n,e[s+0],20,-0x16493856),n=g(n,r,i,o,e[s+5],5,-0x29d0efa3),o=g(o,n,r,i,e[s+10],9,0x2441453),i=g(i,o,n,r,e[s+15],14,-0x275e197f),r=g(r,i,o,n,e[s+4],20,-0x182c0438),n=g(n,r,i,o,e[s+9],5,0x21e1cde6),o=g(o,n,r,i,e[s+14],9,-0x3cc8f82a),i=g(i,o,n,r,e[s+3],14,-0xb2af279),r=g(r,i,o,n,e[s+8],20,0x455a14ed),n=g(n,r,i,o,e[s+13],5,-0x561c16fb),o=g(o,n,r,i,e[s+2],9,-0x3105c08),i=g(i,o,n,r,e[s+7],14,0x676f02d9),n=m(n,r=g(r,i,o,n,e[s+12],20,-0x72d5b376),i,o,e[s+5],4,-378558),o=m(o,n,r,i,e[s+8],11,-0x788e097f),i=m(i,o,n,r,e[s+11],16,0x6d9d6122),r=m(r,i,o,n,e[s+14],23,-0x21ac7f4),n=m(n,r,i,o,e[s+1],4,-0x5b4115bc),o=m(o,n,r,i,e[s+4],11,0x4bdecfa9),i=m(i,o,n,r,e[s+7],16,-0x944b4a0),r=m(r,i,o,n,e[s+10],23,-0x41404390),n=m(n,r,i,o,e[s+13],4,0x289b7ec6),o=m(o,n,r,i,e[s+0],11,-0x155ed806),i=m(i,o,n,r,e[s+3],16,-0x2b10cf7b),r=m(r,i,o,n,e[s+6],23,0x4881d05),n=m(n,r,i,o,e[s+9],4,-0x262b2fc7),o=m(o,n,r,i,e[s+12],11,-0x1924661b),i=m(i,o,n,r,e[s+15],16,0x1fa27cf8),n=y(n,r=m(r,i,o,n,e[s+2],23,-0x3b53a99b),i,o,e[s+0],6,-0xbd6ddbc),o=y(o,n,r,i,e[s+7],10,0x432aff97),i=y(i,o,n,r,e[s+14],15,-0x546bdc59),r=y(r,i,o,n,e[s+5],21,-0x36c5fc7),n=y(n,r,i,o,e[s+12],6,0x655b59c3),o=y(o,n,r,i,e[s+3],10,-0x70f3336e),i=y(i,o,n,r,e[s+10],15,-1051523),r=y(r,i,o,n,e[s+1],21,-0x7a7ba22f),n=y(n,r,i,o,e[s+8],6,0x6fa87e4f),o=y(o,n,r,i,e[s+15],10,-0x1d31920),i=y(i,o,n,r,e[s+6],15,-0x5cfebcec),r=y(r,i,o,n,e[s+13],21,0x4e0811a1),n=y(n,r,i,o,e[s+4],6,-0x8ac817e),o=y(o,n,r,i,e[s+11],10,-0x42c50dcb),i=y(i,o,n,r,e[s+2],15,0x2ad7d2bb),r=y(r,i,o,n,e[s+9],21,-0x14792c6f),n=b(n,a),r=b(r,l),i=b(i,c),o=b(o,u)}return[n,r,i,o]}function p(e,t,n,r,i,o){return b((t=b(b(t,e),b(r,o)))<<i|t>>>32-i,n)}function f(e,t,n,r,i,o,s){return p(t&n|~t&r,e,t,i,o,s)}function g(e,t,n,r,i,o,s){return p(t&r|n&~r,e,t,i,o,s)}function m(e,t,n,r,i,o,s){return p(t^n^r,e,t,i,o,s)}function y(e,t,n,r,i,o,s){return p(n^(t|~r),e,t,i,o,s)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,o,s,a,l,c){t.exports=function(e){for(var t,n=Array(e),r=0;r<e;r++)0==(3&r)&&(t=0x100000000*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,o,s,a,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o=Array(80),s=0x67452301,a=-0x10325477,l=-0x67452302,c=0x10325476,u=-0x3c2d1e10,d=0;d<e.length;d+=16){for(var h=s,g=a,m=l,y=c,b=u,v=0;v<80;v++){o[v]=v<16?e[d+v]:f(o[v-3]^o[v-8]^o[v-14]^o[v-16],1);var w=p(p(f(s,5),(w=a,r=l,i=c,(n=v)<20?w&r|~w&i:!(n<40)&&n<60?w&r|w&i|r&i:w^r^i)),p(p(u,o[v]),(n=v)<20?0x5a827999:n<40?0x6ed9eba1:n<60?-0x70e44324:-0x359d3e2a)),u=c,c=l,l=f(a,30),a=s,s=w}s=p(s,h),a=p(a,g),l=p(l,m),c=p(c,y),u=p(u,b)}return[s,a,l,c,u]}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,o,s,a,l,c,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){var n,r=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
7076c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],i=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],o=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,a,l=0;l<e.length;l+=16){for(var c=i[0],u=i[1],h=i[2],p=i[3],m=i[4],y=i[5],b=i[6],v=i[7],w=0;w<64;w++)o[w]=w<16?e[w+l]:d(d(d(f(a=o[w-2],17)^f(a,19)^g(a,10),o[w-7]),f(a=o[w-15],7)^f(a,18)^g(a,3)),o[w-16]),n=d(d(d(d(v,f(a=m,6)^f(a,11)^f(a,25)),m&y^~m&b),r[w]),o[w]),s=d(f(s=c,2)^f(s,13)^f(s,22),c&u^c&h^u&h),v=b,b=y,y=m,m=d(p,n),p=h,h=u,u=c,c=d(n,s);i[0]=d(c,i[0]),i[1]=d(u,i[1]),i[2]=d(h,i[2]),i[3]=d(p,i[3]),i[4]=d(m,i[4]),i[5]=d(y,i[5]),i[6]=d(b,i[6]),i[7]=d(v,i[7])}return i}var p=e("./helpers"),f=function(e,t){return e>>>t|e<<32-t},g=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,o,s,a,l,c){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,i=e[t+d];for(d+=h,o=i&(1<<-u)-1,i>>=-u,u+=a;0<u;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;0<u;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(i?-1:1);s+=Math.pow(2,r),o-=c}return(i?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,l=8*o-i-1,c=(1<<l)-1,u=c>>1,d=5960464477539062e-23*(23===i),h=r?0:o-1,p=r?1:-1,o=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+u?d/r:d*Math.pow(2,1-u))*r&&(s++,r/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(t*r-1)*Math.pow(2,i),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,i),s=0));8<=i;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;0<l;e[n+h]=255&s,h+=p,s/=256,l-=8);e[n+h-p]|=128*o}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,o,s,a,l,c){var u,d,h;function p(){}(e=t.exports={}).nextTick=(d="undefined"!=typeof window&&window.setImmediate,h="undefined"!=typeof window&&window.postMessage&&window.addEventListener,d?function(e){return window.setImmediate(e)}:h?(u=[],window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<u.length&&u.shift()())},!0),function(e){u.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},80003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},80021:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},80430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("align-center",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},80534:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])}
70,82214:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},83101:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(2821);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,s=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let o=i(t)||i(r);return s[e][o]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...c}[t]):({...a,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},83457:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},83654:(e,t,n)=>{"use strict";var r=n(12115),i=n(14806),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=s(e,(d=c(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),u(p),p}},84382:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},84780:e=>{function t(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function n(e){return e}function r(e,r){let i=(r=r||{}).delimiter||".",o=r.maxDepth,s=r.transformKey||n,a={};return!function e(n,l,c){c=c||1,Object.keys(n).forEach(function(u){let d=n[u],h=r.safe&&Array.isArray(d),p=Object.prototype.toString.call(d),f=t(d),g=l?l+i+s(u):s(u);if(!h&&!f&&("[object Object]"===p||"[object Array]"===p)&&Object.keys(d).length&&(!r.maxDepth||c<o))return e(d,g,c+1);a[g]=d})}(e),a}e.exports=r,r.flatten=r,r.unflatten=function e(i,o){let s=(o=o||{}).delimiter||".",a=o.overwrite||!1,l=o.transformKey||n,c={};if(t(i)||"[object Object]"!==Object.prototype.toString.call(i))return i;function u(e){let t=Number(e);return isNaN(t)||-1!==e.indexOf(".")||o.object?e:t}return Object.keys(i=Object.keys(i).reduce(function(e,t){var n;let a=Object.prototype.toString.call(i[t]);return"[object Object]"!==a&&"[object Array]"!==a||function(e){let t=Object.prototype.toString.call(e);return!e||("[object Array]"===t?!e.length:"[object Object]"===t?!Object.keys(e).length:void 0)}(i[t])?(e[t]=i[t],e):Object.keys(n=r(i[t],o)).reduce(function(e,r){return e[t+s+r]=n[r],e},e)},{})).forEach(function(t){let n=t.split(s).map(l),r=u(n.shift()),d=u(n[0]),h=c;for(;void 0!==d;){if("__proto__"===r)return;let e=Object.prototype.toString.call(h[r]),t="[object Object]"===e||"[object Array]"===e;if(!a&&!t&&void 0!==h[r])return;(!a||t)&&(a||null!=h[r])||(h[r]="number"!=typeof d||o.object?{}:[]),h=h[r],n.length>0&&(r=u(n.shift()),d=u(n[0]))}h[r]=e(i[t],o)}),c}},85210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(54857).L2},85582:(e,t,n)=>{"use strict";n.d(t,{CH:()=>d,Es:()=>a,FT:()=>u,MS:()=>l,QL:()=>c,T_:()=>h});var r=n(12115),i=n(27628),o=n(47650),s=n(29790),a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function l(e,t){let n=(0,r.useRef)(new Map),s=function(){let e=(0,r.useState)(0)[1];return(0,r.useCallback)(()=>{e(e=>e+1)},[e])}();return a(()=>e?(0,i.QZ)(()=>{var r;let a=!1,l=!1;for(let o of n.current){let[s]=o,c=(0,i.O8)(()=>o[1]),u=e[s];c!==u&&(a=!0,n.current.set(s,u),l=null!=(r=null==t?void 0:t(s,c,u))&&r)}a&&(l?(0,o.flushSync)(s):s())}):void n.current.clear(),[e]),(0,r.useMemo)(()=>e?new Proxy(e,{get(e,t){let r=e[t];return n.current.set(t,r),r}}):e,[e])}function c(e,t){e()}function u(e){let t=(0,r.useRef)(e);return a(()=>{t.current=e},[e]),t}function d(e,t,n=r.useEffect,i=Object.is){let o=(0,r.useRef)(e);n(()=>{let n=o.current;i(e,n)||(o.current=e,t(e,n))},[t,e])}function h(e,t){let n=(0,r.useRef)((0,s.b)(e));a(()=>{let r=(0,s.b)(e);r!==n.current&&(n.current=r,t(r))})}}
70,85998:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},86651:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},87149:(e,t,n)=>{"use strict";n.d(t,{bD:()=>N});var r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty;function s(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function a(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var i=r.cache,o=i.get(t),s=i.get(n);if(o&&s)return o===n&&s===t;i.set(t,n),i.set(n,t);var a=e(t,n,r);return i.delete(t),i.delete(n),a}}function l(e){return r(e).concat(i(e))}var c=Object.hasOwn||function(e,t){return o.call(e,t)};function u(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var d=Object.getOwnPropertyDescriptor,h=Object.keys;function p(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function f(e,t){return u(e.getTime(),t.getTime())}function g(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function m(e,t){return e===t}function y(e,t,n){var r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;for(var s=Array(o),a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var c=t.entries(),u=!1,d=0;(i=c.next())&&!i.done;){if(s[d]){d++;continue}var h=r.value,p=i.value;if(n.equals(h[0],p[0],l,d,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){u=s[d]=!0;break}d++}if(!u)return!1;l++}return!0}function b(e,t,n){var r=h(e),i=r.length;if(h(t).length!==i)return!1;for(;i-- >0;)if(!S(e,t,n,r[i]))return!1;return!0}function v(e,t,n){var r,i,o,s=l(e),a=s.length;if(l(t).length!==a)return!1;for(;a-- >0;)if(!S(e,t,n,r=s[a])||(i=d(e,r),o=d(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function w(e,t){return u(e.valueOf(),t.valueOf())}function k(e,t){return e.source===t.source&&e.flags===t.flags}function E(e,t,n){var r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;for(var s=Array(o),a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),c=!1,u=0;(i=l.next())&&!i.done;){if(!s[u]&&n.equals(r.value,i.value,r.value,i.value,e,t,n)){c=s[u]=!0;break}u++}if(!c)return!1}return!0}function A(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function _(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function S(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||c(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var M=Array.isArray,C="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,O=Object.assign,T=Object.prototype.toString.call.bind(Object.prototype.toString),N=I();function I(e){void 0===e&&(e={});var t,n,r,i,o,l,c,d,h,S,N,I,R,L=e.circular,D=e.createInternalComparator,z=e.createState,j=e.strict,B=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?v:p,areDatesEqual:f,areErrorsEqual:g,areFunctionsEqual:m,areMapsEqual:r?s(y,v):y,areNumbersEqual:u,areObjectsEqual:r?v:b,arePrimitiveWrappersEqual:w,areRegExpsEqual:k,areSetsEqual:r?s(E,v):E,areTypedArraysEqual:r?v:A,areUrlsEqual:_};if(n&&(i=O({},i,n(i))),t){var o=a(i.areArraysEqual),l=a(i.areMapsEqual),c=a(i.areObjectsEqual),d=a(i.areSetsEqual);i=O({},i,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:d})}return i}(e)).areArraysEqual,r=t.areDatesEqual,i=t.areErrorsEqual,o=t.areFunctionsEqual,l=t.areMapsEqual,c=t.areNumbersEqual,d=t.areObjectsEqual,h=t.arePrimitiveWrappersEqual,S=t.areRegExpsEqual,N=t.areSetsEqual,I=t.areTypedArraysEqual,R=t.areUrlsEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t)return!1;var a=typeof e;if(a!==typeof t)return!1;if("object"!==a)return"number"===a?c(e,t,s):"function"===a&&o(e,t,s);var u=e.constructor;if(u!==t.constructor)return!1;if(u===Object)return d(e,t,s);if(M(e))return n(e,t,s);if(null!=C&&C(e))return I(e,t,s);if(u===Date)return r(e,t,s);if(u===RegExp)return S(e,t,s);if(u===Map)return l(e,t,s);if(u===Set)return N(e,t,s);var p=T(e);return"[object Date]"===p?r(e,t,s):"[object RegExp]"===p?S(e,t,s):"[object Map]"===p?l(e,t,s):"[object Set]"===p?N(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&d(e,t,s):"[object URL]"===p?R(e,t,s):"[object Error]"===p?i(e,t,s):"[object Arguments]"===p?d(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&h(e,t,s)}),P=D?D(B):function(e,t,n,r,i,o,s){return B(e,t,s)};
70return function(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(e,s){var a=r(),l=a.cache;return n(e,s,{cache:void 0===l?t?new WeakMap:void 0:l,equals:i,meta:a.meta,strict:o})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var s={cache:void 0,equals:i,meta:void 0,strict:o};return function(e,t){return n(e,t,s)}}({circular:void 0!==L&&L,comparator:B,createState:z,equals:P,strict:void 0!==j&&j})}I({strict:!0}),I({circular:!0}),I({circular:!0,strict:!0}),I({createInternalComparator:function(){return u}}),I({strict:!0,createInternalComparator:function(){return u}}),I({circular:!0,createInternalComparator:function(){return u}}),I({circular:!0,createInternalComparator:function(){return u},strict:!0})},87475:(e,t,n)=>{"use strict";n.d(t,{o:()=>r}),(0,n(74844).hY)();var r={RichTextEditor:"_RichTextEditor_z25h4_1","RichTextEditor--editor":"_RichTextEditor--editor_z25h4_50","RichTextEditor--disabled":"_RichTextEditor--disabled_z25h4_107","RichTextEditor--isActive":"_RichTextEditor--isActive_z25h4_111","RichTextEditor-menu":"_RichTextEditor-menu_z25h4_117"}},89354:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(91960),i=n(74844),o=n(12115);(0,i.hY)();var s={ul:{label:"Bullet list",icon:r.B8},ol:{label:"Numbered list",icon:r.cM}},a=e=>{let t=[];return(null==e?void 0:e.listItem)!==!1&&(t=["ul","ol"]),(0,o.useMemo)(()=>t.map(e=>({value:e,label:s[e].label,icon:s[e].icon})),[t])}},89442:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},89592:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]])},89715:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},89863:(e,t,n)=>{"use strict";n.d(t,{eh:()=>r});let r=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());o=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(o)},e(t,n,r)}},90079:(e,t,n)=>{"use strict";n.d(t,{Se:()=>eb});var r,i,o,s=n(95704),a=n(59410);let l={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 c=n(37964);let u=globalThis.fetch.bind(globalThis);var d=n(25070),h=n(95704),p=n(15376).Buffer,f=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 g(e){var t;let n;return e instanceof ReadableStream?e:e instanceof Blob?e.stream():m(e)?l.toWeb(e):(n=e instanceof ArrayBuffer?new Uint8Array(e):a(e)?e:(t=e,new TextEncoder().encode(t)),await f)?new Blob([n]).stream():new ReadableStream({start(e){e.enqueue(n),e.close()}})}function m(e){return"object"==typeof e&&"function"==typeof e.pipe&&e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState}var y=Symbol.for("@vercel/request-context"),b=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i,v={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000};function w(e){let t;if("number"==typeof e&&!Number.isNaN(e))return e;if("string"!=typeof e)return null;let n=b.exec(e),r="b";if(n){let[,e,,,i]=n;if(!e)return null;t=parseFloat(e),i&&(r=i.toLowerCase())}else t=parseInt(e,10);return Number.isNaN(t)?null:Math.floor(v[r]*t)}function k(e){try{let t=h.env[e];return"string"==typeof t&&""!==t.trim()?t.trim():void 0}catch{return}}function E(e){let[,,,t=""]=e.split("_");return t}function A(e){return e.startsWith("store_")?e.slice(6):e}
70var _=class extends Error{constructor(e){super(`Vercel Blob: ${e}`)}};function S(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 M=["//"],C=(()=>{if(function(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if(void 0!==s){let e=s.type;return"renderer"!==e&&"worker"!==e&&!!(s.versions&&s.versions.node)}return!1}())return!0;if(O().startsWith("http://localhost"))return!1;let e=!1,t=new Request(O(),{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})();function O(e=""){let t=null;try{t=h.env.VERCEL_BLOB_API_URL||h.env.NEXT_PUBLIC_VERCEL_BLOB_API_URL}catch{}return`${t||"https://vercel.com/api/blob"}${e}`}var T="function"==typeof TextEncoder?new TextEncoder:null;function N(e){return e?"string"==typeof e?T?T.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 I(e){return globalThis.ReadableStream&&e instanceof ReadableStream}function R(e){return!!(I(e)||m(e))}var L=!1;try{((null==(r=h.env.DEBUG)?void 0:r.includes("blob"))||(null==(i=h.env.NEXT_PUBLIC_DEBUG)?void 0:i.includes("blob")))&&(L=!0)}catch{}function D(e,...t){L&&console.debug(`vercel-blob: ${e}`,...t)}var z=null!=(o=globalThis.DOMException)?o:(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})(),j=Object.prototype.toString,B=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"]),P="function"==typeof u,$=P&&C,F=async({input:e,init:t,onUploadProgress:n})=>{let r;if(D("using fetch"),t.body)if(n){let e=await g(t.body),i=0,o=((e,t)=>{let n=new Uint8Array(0);return new TransformStream({transform(r,i){let o=new Uint8Array(n.length+r.byteLength);for(o.set(n),o.set(new Uint8Array(r),n.length),n=o;n.length>=e;){let r=n.slice(0,e);i.enqueue(r),null==t||t(r.byteLength),n=n.slice(e)}},flush(e){n.length>0&&(e.enqueue(n),null==t||t(n.byteLength))}})})(65536,e=>{n(i+=e)});r=e.pipeThrough(o)}else r=t.body;let i=C&&r&&R(r)?"half":void 0;return u(e,{...t,...t.body?{body:r}:{},duplex:i})},U="undefined"!=typeof XMLHttpRequest,H=async({input:e,init:t,onUploadProgress:n})=>{D("using xhr");let r=null;return t.body&&(r=I(t.body)?await new Response(t.body).blob():t.body),new Promise((i,o)=>{let s=new XMLHttpRequest;if(s.open(t.method||"GET",e.toString(),!0),n&&s.upload.addEventListener("progress",e=>{e.lengthComputable&&n(e.loaded)}),s.onload=()=>{var e;if(null==(e=t.signal)?void 0:e.aborted)return void o(new DOMException("The user aborted the request.","AbortError"));let n=new Headers;s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{let t=e.split(": "),r=t.shift(),i=t.join(": ");r&&n.set(r.toLowerCase(),i)}),i(new Response(s.response,{status:s.status,statusText:s.statusText,headers:n}))},s.onerror=()=>{o(TypeError("Network request failed"))},s.ontimeout=()=>{o(TypeError("Network request timed out"))},s.onabort=()=>{o(new DOMException("The user aborted a request.","AbortError"))},t.headers&&new Headers(t.headers).forEach((e,t)=>{s.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",()=>{s.abort()}),t.signal.aborted))return void s.abort();s.send(r)})},q=async({input:e,init:t,onUploadProgress:n})=>{if(n){if($)return F({input:e,init:t,onUploadProgress:n});if(U)return H({input:e,init:t,onUploadProgress:n})}if(P)return F({input:e,init:t});if(U)return H({input:e,init:t});throw Error("No request implementation available")},W=class extends _{constructor(){super("Access denied, please provide a valid token for this resource.")}},K=class extends _{constructor(e){super(null!=e?e:"OIDC is enabled for this project, but not for this token's environment.")}},Y=class extends _{constructor(e){super(`Content type mismatch, ${e}.`)}},V=class extends _{constructor(e){super(`Pathname mismatch, ${e}. Check the pathname used in upload() or put() matches the one from the client token.`)}},J=class extends _{constructor(){super("Client token has expired.")}},G=class extends _{constructor(e){super(`File is too large, ${e}.`)}},Z=class extends _{constructor(){super("This store does not exist.")}},X=class extends _{constructor(){super("This store has been suspended.")}},Q=class extends _{constructor(){super("Unknown error, please visit https://vercel.com/help.")}},ee=class extends _{constructor(){super("The requested blob does not exist")}},et=class extends _{constructor(){super("The blob service is currently not available. Please try again.")}},en=class extends _{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}},er=class extends _{constructor(){super("The request was aborted.")}},ei=class extends _{constructor(){super("Precondition failed: ETag mismatch.")}};async function eo(e){var t,n,r;let i,o,s;try{let s=await e.json();i=null!=(n=null==(t=s.error)?void 0:t.code)?n:"unknown_error",o=null==(r=s.error)?void 0:r.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"),(null==o?void 0:o.startsWith("OIDC is enabled for this project, but not for the"))&&o.includes("environment.")&&(i="oidc_environment_not_allowed"),i){case"store_suspended":s=new X;break;case"forbidden":s=new W;break;case"oidc_environment_not_allowed":s=new K(o);break;case"content_type_not_allowed":s=new Y(o);break;case"client_token_pathname_mismatch":s=new V(o);break;case"client_token_expired":s=new J;break;case"file_too_large":s=new G(o);break;case"not_found":s=new ee;break;case"client_token_not_allowed":s=new _(null!=o?o:"This operation is not available when using a client token. Use a readâwrite or OIDC token on the server.");break;case"store_not_found":s=new Z;break;case"bad_request":s=new _(null!=o?o:"Bad request");break;case"service_unavailable":s=new et;break;case"rate_limited":s=function(e){let t=e.headers.get("retry-after");return new en(t?parseInt(t,10):void 0)}(e);break;case"precondition_failed":s=new ei;break;default:s=new Q}return{code:i,error:s}}
70async function es(e,t,n){let r=function(){let e=null;try{e=h.env.VERCEL_BLOB_API_VERSION_OVERRIDE||h.env.NEXT_PUBLIC_VERCEL_BLOB_API_VERSION_OVERRIDE}catch{}return`${null!=e?e:12}`}(),i=function(e){var t,n;if(null==e?void 0:e.presignedUrlPayload)return{kind:"presigned",storeId:function(e){let t,n=e.indexOf(".");if(n<0)throw new _("Invalid delegation token format.");let r=e.slice(0,n);try{t=JSON.parse(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=4-t.length%4;if(4!==n&&(t+="=".repeat(n)),"function"==typeof atob)return atob(t);if(void 0!==p)return p.from(t,"base64").toString("utf8");throw new _("Cannot decode base64: no atob or Buffer available.")}(r))}catch{throw new _("Invalid delegation token payload.")}if(!t.storeId||"string"!=typeof t.storeId)throw new _("Delegation token payload is missing `storeId`.");return A(t.storeId)}(e.presignedUrlPayload.delegationToken)};if(null==e?void 0:e.token){let t=E(e.token);return{kind:"readWrite",token:e.token,storeId:t}}let r=null==(t=null==e?void 0:e.oidcToken)?void 0:t.trim(),i=r||function(){var e,t,n,r;let i=null==(e=(null!=(r=null==(n=null==(t=globalThis[y])?void 0:t.get)?void 0:n.call(t))?r:{}).headers)?void 0:e["x-vercel-oidc-token"];if("string"==typeof i&&""!==i.trim())return i.trim();try{let e=h.env.VERCEL_OIDC_TOKEN;return"string"==typeof e&&""!==e.trim()?e.trim():void 0}catch{return}}();if(i){let t=null==(n=null==e?void 0:e.storeId)?void 0:n.trim();if(t)return{kind:"oidc",token:i,storeId:A(t)};let o=k("BLOB_STORE_ID");if(o)return{kind:"oidc",token:i,storeId:A(o)};if(r)throw new _("oidcToken was passed, but no storeId was found. Pass a `storeId` option or set `BLOB_STORE_ID` to use OIDC auth")}let o=k("BLOB_READ_WRITE_TOKEN");if(o){let e=E(o);return{kind:"readWrite",token:o,storeId:e}}throw new _("No blob credentials found. Pass a `token` option, set `BLOB_READ_WRITE_TOKEN`, or use `oidcToken` (or `VERCEL_OIDC_TOKEN`) with `storeId` or `BLOB_STORE_ID`.")}(n),o="presigned"===i.kind?void 0:i.token,s=function(){let e={};try{"VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in h.env&&void 0!==h.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API?e["x-proxy-through-alternative-api"]=h.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API:"NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in h.env&&void 0!==h.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API&&(e["x-proxy-through-alternative-api"]=h.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API)}catch{}return e}(),a=O(e);(null==n?void 0:n.presignedUrlPayload)&&(a=((e,t)=>{let n=new URL(e);for(let[e,r]of Object.entries(t.params))n.searchParams.set(e,r);return n.searchParams.set("vercel-blob-delegation",t.delegationToken),n.searchParams.set("vercel-blob-signature",t.signature),n.toString()})(a,n.presignedUrlPayload));let l=`${i.storeId}:${Date.now()}:${Math.random().toString(16).slice(2)}`,u=0,d=0,f=0,g=(null==n?void 0:n.onUploadProgress)||function(){try{return"1"===h.env.VERCEL_BLOB_USE_X_CONTENT_LENGTH}catch{return!1}}();t.body&&g&&(d=N(t.body)),(null==n?void 0:n.onUploadProgress)&&n.onUploadProgress({loaded:0,total:d,percentage:0});let m=await c(async e=>{let c;try{c=await q({input:a,init:{...t,headers:{"x-api-blob-request-id":l,"x-vercel-blob-store-id":i.storeId,"x-api-blob-request-attempt":String(u),"x-api-version":r,...g?{"x-content-length":String(d)}:{},...void 0!==o?{authorization:`Bearer ${o}`}:{},...s,...t.headers}},onUploadProgress:(null==n?void 0:n.onUploadProgress)?e=>{var t;let r=0!==d?d:e;f=e;let i=d>0?Number((e/r*100).toFixed(2)):0;100===i&&d>0||null==(t=n.onUploadProgress)||t.call(n,{loaded:e,total:r,percentage:i})}:void 0})}catch(t){if(t instanceof z&&"AbortError"===t.name)return void e(new er);if(t&&"[object Error]"===j.call(t)&&"TypeError"===t.name&&"string"==typeof t.message&&("Load failed"===t.message?void 0===t.stack:B.has(t.message)))throw t;if(t instanceof TypeError)return void e(t);throw t}if(c.ok)return c;let{code:h,error:p}=await eo(c);if("unknown_error"===h||"service_unavailable"===h||"internal_server_error"===h)throw p;e(p)},{retries:function(){try{let e=h.env.VERCEL_BLOB_RETRIES||"10";return parseInt(e,10)}catch{return 10}}(),onRetry:t=>{t instanceof Error&&D(`retrying API request to ${e}`,t.message),u+=1}});if(!m)throw new Q;return(null==n?void 0:n.onUploadProgress)&&n.onUploadProgress({loaded:f,total:f,percentage:100}),await m.json()}
70var ea={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 el(e,t){let n={};if(n[ea.access]=t.access,e.includes("contentType")&&t.contentType&&(n[ea.contentType]=t.contentType),e.includes("addRandomSuffix")&&void 0!==t.addRandomSuffix&&(n[ea.addRandomSuffix]=t.addRandomSuffix?"1":"0"),e.includes("ifMatch")&&t.ifMatch){if(!1===t.allowOverwrite)throw new _("ifMatch and allowOverwrite: false are contradictory. ifMatch is used for conditional overwrites, which requires allowOverwrite to be true.");n[ea.ifMatch]=t.ifMatch,e.includes("allowOverwrite")&&void 0===t.allowOverwrite&&(n[ea.allowOverwrite]="1")}return e.includes("allowOverwrite")&&void 0!==t.allowOverwrite&&(n[ea.allowOverwrite]=t.allowOverwrite?"1":"0"),e.includes("cacheControlMaxAge")&&void 0!==t.cacheControlMaxAge&&(n[ea.cacheControlMaxAge]=t.cacheControlMaxAge.toString()),n}async function ec({pathname:e,options:t,extraChecks:n,getToken:r}){if(!e)throw new _("pathname is required");if(e.length>950)throw new _("pathname is too long, maximum length is 950");for(let t of M)if(e.includes(t))throw new _(`pathname cannot contain "${t}", please encode it if needed`);if(!t)throw new _("missing options, see usage");if("public"!==t.access&&"private"!==t.access)throw new _('access must be "private" or "public", see https://vercel.com/docs/vercel-blob');return n&&n(t),r&&(t.token=await r(e,t)),t}async function eu({uploadId:e,key:t,pathname:n,parts:r,headers:i,options:o}){let s=new URLSearchParams({pathname:n});try{let n=await es(`/mpu?${s.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(r),signal:o.abortSignal},o);return D("mpu: complete",n),n}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new et;throw e}}async function ed(e,t,n){D("mpu: create","pathname:",e);let r=new URLSearchParams({pathname:e});try{let e=await es(`/mpu?${r.toString()}`,{method:"POST",headers:{...t,"x-mpu-action":"create"},signal:n.abortSignal},n);return D("mpu: create",e),e}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new et;throw e}}async function eh({uploadId:e,key:t,pathname:n,headers:r,options:i,internalAbortController:o=new AbortController,part:s}){var a,l,c;let u=new URLSearchParams({pathname:n}),d=es(`/mpu?${u.toString()}`,{signal:o.signal,method:"POST",headers:{...r,"x-mpu-action":"upload","x-mpu-key":encodeURIComponent(t),"x-mpu-upload-id":e,"x-mpu-part-number":s.partNumber.toString()},body:s.blob},i);function h(){o.abort()}(null==(a=i.abortSignal)?void 0:a.aborted)?h():null==(l=i.abortSignal)||l.addEventListener("abort",h);let p=await d;return null==(c=i.abortSignal)||c.removeEventListener("abort",h),p}var ep="undefined"!=typeof window?6:8,ef=8388608*ep*2;async function eg(e,t,n,r){D("mpu: init","pathname:",e,"headers:",n);let i={...r,onUploadProgress:void 0};if(void 0!==r.maximumSizeInBytes&&!R(t)&&N(t)>r.maximumSizeInBytes)throw new _(`Body size of ${N(t)} bytes exceeds the maximum allowed size of ${r.maximumSizeInBytes} bytes`);let o=await ed(e,n,i),s=N(t),a=await g(t),l=await function({uploadId:e,key:t,pathname:n,stream:r,headers:i,options:o,totalToLoad:s}){D("mpu: upload init","key:",t);let a=new AbortController;return new Promise((l,c)=>{let u,h=[],p=[],f=r.getReader(),g=0,m=!1,y=1,b=!1,v=0,k=!1,E=0,A=[],_=0,S={};async function M(){for(D("mpu: upload read start","activeUploads:",g,"currentBytesInMemory:",`${w(v)}/${w(ef)}`,"bytesSent:",w(E)),m=!0;v<ef&&!b;)try{let{value:e,done:t}=await f.read();if(t){k=!0,D("mpu: upload read consumed the whole stream"),A.length>0?(h.push({partNumber:y++,blob:new Blob(A,{type:"application/octet-stream"})}),O()):0===g&&(f.releaseLock(),l(p)),m=!1;return}v+=e.byteLength;let n=0;for(;n<e.byteLength;){let t=8388608-_,r=Math.min(n+t,e.byteLength),i=e.slice(n,r);A.push(i),_+=i.byteLength,n=r,8388608===_&&(h.push({partNumber:y++,blob:new Blob(A,{type:"application/octet-stream"})}),A=[],_=0,O())}}catch(e){T(e)}D("mpu: upload read end","activeUploads:",g,"currentBytesInMemory:",`${w(v)}/${w(ef)}`,"bytesSent:",w(E)),m=!1}async function C(r){g++,D("mpu: upload send part start","partNumber:",r.partNumber,"size:",r.blob.size,"activeUploads:",g,"currentBytesInMemory:",`${w(v)}/${w(ef)}`,"bytesSent:",w(E));try{let s=o.onUploadProgress?e=>{S[r.partNumber]=e.loaded,u&&u()}:void 0,c=await eh({uploadId:e,key:t,pathname:n,headers:i,options:{...o,onUploadProgress:s},internalAbortController:a,part:r});if(D("mpu: upload send part end","partNumber:",r.partNumber,"activeUploads",g,"currentBytesInMemory:",`${w(v)}/${w(ef)}`,"bytesSent:",w(E)),b)return;if(p.push({partNumber:r.partNumber,etag:c.etag}),v-=r.blob.size,g--,E+=r.blob.size,h.length>0&&O(),k){0===g&&(f.releaseLock(),l(p));return}m||M().catch(T)}catch(e){T(e)}}function O(){if(!b)for(D("send parts","activeUploads",g,"partsToUpload",h.length);g<ep&&h.length>0;){let e=h.shift();e&&C(e)}}function T(e){b||(b=!0,a.abort(),f.releaseLock(),e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message)?c(new et):c(e))}o.onUploadProgress&&(u=d(()=>{var e;let t=Object.values(S).reduce((e,t)=>
70e+t,0),n=s||t,r=s>0?Number((100*(t/s||t)).toFixed(2)):0;null==(e=o.onUploadProgress)||e.call(o,{loaded:t,total:n,percentage:r})},150)),M().catch(T)})}({uploadId:o.uploadId,key:o.key,pathname:e,stream:a,headers:n,options:r,totalToLoad:s});return await eu({uploadId:o.uploadId,key:o.key,pathname:e,parts:l,headers:n,options:i})}function em({allowedOptions:e,getToken:t,getPresignedUrlPayload:n,extraChecks:r}){return async function(i,o,s){if(!o)throw new _("body is required");if(S(o))throw new _("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");let a=await ec({pathname:i,options:s,extraChecks:r,getToken:t}),l=await (null==n?void 0:n(i,a)),c={...a,presignedUrlPayload:l},u=el(e,a);if(!0===a.multipart)return eg(i,o,u,c);let h=a.onUploadProgress?d(a.onUploadProgress,100):void 0,p=new URLSearchParams({pathname:i}),f=await es(`/?${p.toString()}`,{method:"PUT",body:o,headers:u,signal:a.abortSignal},{...c,onUploadProgress:h});return{url:f.url,downloadUrl:f.downloadUrl,pathname:f.pathname,contentType:f.contentType,contentDisposition:f.contentDisposition,etag:f.etag}}}function ey(e){return function(t){if(!t.token.startsWith("vercel_blob_client_"))throw new _(`${e} must be called with a client token`);if(void 0!==t.addRandomSuffix||void 0!==t.allowOverwrite||void 0!==t.cacheControlMaxAge)throw new _(`${e} doesn't allow \`addRandomSuffix\`, \`cacheControlMaxAge\` or \`allowOverwrite\`. Configure these options at the server side when generating client tokens.`)}}new TextEncoder,n(15376).Buffer,n(95704),em({allowedOptions:["contentType"],extraChecks:ey("client/`put`")}),function({allowedOptions:e,getToken:t,extraChecks:n}){}({allowedOptions:["contentType"],extraChecks:ey("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:n}){}({allowedOptions:["contentType"],extraChecks:ey("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:n}){}({allowedOptions:["contentType"],extraChecks:ey("client/`multipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:n}){}({allowedOptions:["contentType"],extraChecks:ey("client/`completeMultipartUpload`")});var eb=em({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new _("client/`upload` requires the 'handleUploadUrl' parameter");if(void 0!==e.addRandomSuffix||void 0!==e.allowOverwrite||void 0!==e.cacheControlMaxAge||void 0!==e.ifMatch)throw new _("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 n,r;return ew({handleUploadUrl:t.handleUploadUrl,pathname:e,clientPayload:null!=(n=t.clientPayload)?n:null,multipart:null!=(r=t.multipart)&&r,headers:t.headers})}});em({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new _("client/`upload` requires the 'handleUploadUrl' parameter");if(void 0!==e.addRandomSuffix||void 0!==e.allowOverwrite||void 0!==e.cacheControlMaxAge||void 0!==e.ifMatch)throw new _("client/`uploadPresigned` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating presigned URLs.")},async getPresignedUrlPayload(e,t){var n,r;return ex({pathname:e,handleUploadUrl:t.handleUploadUrl,clientPayload:null!=(n=t.clientPayload)?n:null,multipart:null!=(r=t.multipart)&&r,headers:t.headers})}});var ev={generateClientToken:"blob.generate-client-token",generatePresignedUrl:"blob.generate-presigned-url"};async function ew(e){let{handleUploadUrl:t,pathname:n}=e,r=eE(t)?t:ek(t),i={type:ev.generateClientToken,payload:{pathname:n,clientPayload:e.clientPayload,multipart:e.multipart}},o=await u(r,{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!o.ok)throw new _("Failed to retrieve the client token");try{let{clientToken:e}=await o.json();return e}catch{throw new _("Failed to retrieve the client token")}}async function ex(e){let{handleUploadUrl:t,pathname:n}=e,r=eE(t)?t:ek(t),i={type:ev.generatePresignedUrl,payload:{pathname:n,clientPayload:e.clientPayload,multipart:e.multipart}},o=await u(r,{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!o.ok)throw new _("Failed to retrieve the presigned URL");try{let{presignedUrlPayload:e}=await o.json();if(e)return e;throw new _("Missing presignedUrlPayload")}catch(e){if(e instanceof _)throw e;throw new _("Failed to retrieve the presigned URL")}}function ek(e){return new URL(e,location.href).href}function eE(e){try{return new URL(e),!0}catch{return!1}}},90368:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},90490:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({}
70,t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o},i=e=>e?r(e):r},90781:(e,t,n)=>{"use strict";n.d(t,{M_:()=>R,Y5:()=>j,bR:()=>I,dq:()=>D,yX:()=>L});var r,i,o,s,a,l=n(65344),c=n(27628),u=Object.create,d=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),y=e=>{throw TypeError(e)},b=Math.pow,v=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>d(e,"name",{value:t,configurable:!0}),k=["class","method","getter","setter","accessor","field","value","get","set"],E=e=>void 0!==e&&"function"!=typeof e?y("Function expected"):e,A=(e,t,n,r,i)=>({kind:k[e],name:t,metadata:r,addInitializer:e=>n._?y("Already initialized"):i.push(E(e||null))}),_=(e,t)=>v(t,m("metadata"),e[3]),S=(e,t,n,r,i,o)=>{var s,a,l,c,u,p=7&t,f=!!(8&t),g=!!(16&t),m=p>3?e.length+1:p?f?1:2:0,b=k[p+5],v=p>3&&(e[m-1]=[]),S=e[m]||(e[m]=[]),M=p&&(g||f||(i=i.prototype),p<5&&(p>3||!g)&&h(p<4?i:{get[n](){return O(this,o)},set[n](x){return T(this,o,x)}},n));p?g&&p<4&&w(o,(p>2?"set ":p>1?"get ":"")+n):w(i,n);for(var I=r.length-1;I>=0;I--)c=A(p,n,l={},e[3],S),p&&(c.static=f,c.private=g,u=c.access={has:g?e=>C(i,e):e=>n in e},3^p&&(u.get=g?e=>(1^p?O:N)(e,i,4^p?o:M.get):e=>e[n]),p>2&&(u.set=g?(e,t)=>T(e,i,t,4^p?o:M.set):(e,t)=>e[n]=t)),a=(0,r[I])(p?p<4?g?o:M[b]:p>4?void 0:{get:M.get,set:M.set}:i,c),l._=1,4^p||void 0===a?E(a)&&(p>4?v.unshift(a):p?g?o=a:M[b]=a:i=a):"object"!=typeof a||null===a?y("Object expected"):(E(s=a.get)&&(M.get=s),E(s=a.set)&&(M.set=s),E(s=a.init)&&v.unshift(s));return p||_(e,i),M&&d(i,n,M),g?4^p?o:M:i},M=(e,t,n)=>t.has(e)||y("Cannot "+n),C=(e,t)=>Object(t)!==t?y('Cannot use the "in" operator on this value'):e.has(t),O=(e,t,n)=>(M(e,t,"read from private field"),n?n.call(e):t.get(e)),T=(e,t,n,r)=>(M(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),N=(e,t,n)=>(M(e,t,"access private method"),n),I=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},R=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){let{top:r,left:i,width:o,height:s,scale:a}=this,l=new e(i+t,r+n,o,s);return l.scale=((e,t)=>{for(var n in t||(t={}))f.call(t,n)&&v(e,n,t[n]);if(p)for(var n of p(t))g.call(t,n)&&v(e,n,t[n]);return e})({},a),l}get boundingRectangle(){let{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){let{left:e,top:t,right:n,bottom:r}=this;return new I((e+n)/2,(t+r)/2)}get area(){let{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;let{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){let{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){let n=Math.max(t.top,e.top),r=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);return r<i&&n<o?(i-r)*(o-n):0}(this,t):0}intersectionRatio(e){let{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){let{top:e,height:t}=this;return e+t}get right(){let{left:e,width:t}=this;return e+t}get aspectRatio(){let{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){let r=(e,t)=>{let r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return I.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}},L=class extends(o=l.Wf,i=[l.un],r=[l.un],o){constructor(e){super(I.from(e),(e,t)=>I.equals(e,t)),((e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r)})(a,5,this),((e,t,n)=>t.has(e)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n))(this,s,0),this.velocity={x:0,y:0}}get delta(){return I.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){let{current:t}=this,n=I.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-O(this,s),a=e=>Math.round(e/o*100);(0,c.vA)(()=>{T(this,s,i),this.velocity={x:a(r.x),y:a(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(I.from(e)),this.velocity={x:0,y:0}}};function D({x:e,y:t},n){let r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(b(r,2)+b(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}a=(e=>{var t;return[,,,u(null!=(t=null==e?void 0:e[m("metadata")])?t:null)]})(o),s=new WeakMap,S(a,2,"delta",i,L),S(a,2,"direction",r,L),_(a,L);var z=(e=>(e.Horizontal="x",e.Vertical="y",e))(z||{}),j=Object.values(z)},91169:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},91456:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},91761:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])}
70,91933:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(49418);let i={};function o(e){let t=r.A.newInstance();return e&&a(e),{highlight:n,highlightAuto:function(e,r){let s,a=(r||i).subset||o(),l=-1,c=0;for(;++l<a.length;){let i=a[l];if(!t.getLanguage(i))continue;let o=n(i,e,r);o.data&&void 0!==o.data.relevance&&o.data.relevance>c&&(c=o.data.relevance,s=o)}return s||{type:"root",children:[],data:{language:void 0,relevance:c}}},listLanguages:o,register:a,registerAlias:function(e,n){if("string"==typeof e)t.registerAliases("string"==typeof n?n:[...n],{languageName:e});else{let n;for(n in e)if(Object.hasOwn(e,n)){let r=e[n];t.registerAliases("string"==typeof r?r:[...r],{languageName:n})}}},registered:function(e){return!!t.getLanguage(e)}};function n(e,n,r){let o=r||i,a="string"==typeof o.prefix?o.prefix:"hljs-";if(!t.getLanguage(e))throw Error("Unknown language: `"+e+"` is not registered");t.configure({__emitter:s,classPrefix:a});let l=t.highlight(n,{ignoreIllegals:!0,language:e});if(l.errorRaised)throw Error("Could not highlight with `Highlight.js`",{cause:l.errorRaised});let c=l._emitter.root,u=c.data;return u.language=l.language,u.relevance=l.relevance,c}function o(){return t.listLanguages()}function a(e,n){if("string"==typeof e)t.registerLanguage(e,n);else{let n;for(n in e)Object.hasOwn(e,n)&&t.registerLanguage(n,e[n])}}}class s{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(""===e)return;let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,t){let n=this.stack[this.stack.length-1],r=e.root.children;t?n.children.push({type:"element",tagName:"span",properties:{className:[t]},children:r}):n.children.push(...r)}openNode(e){let t=this,n=e.split(".").map(function(e,n){return n?e+"_".repeat(n):t.options.classPrefix+e}),r=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:n},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}},91960:(e,t,n)=>{"use strict";let r;n.d(t,{xd:()=>nD,mT:()=>nz,TU:()=>nI,GY:()=>nj,yN:()=>nB,yQ:()=>nP,c_:()=>n$,rX:()=>nF,Dc:()=>nU,Cy:()=>nH,Bq:()=>rP,QR:()=>nq,AB:()=>nW,Yb:()=>nK,J:()=>nY,qz:()=>nV,pj:()=>nJ,Vw:()=>nG,DZ:()=>nR,_:()=>nZ,fV:()=>nX,_B:()=>nQ,f_:()=>n0,mM:()=>n1,TT:()=>n2,J2:()=>n4,zg:()=>n5,D6:()=>n3,N_:()=>n6,B8:()=>nL,cM:()=>n8,LM:()=>n9,eV:()=>n7,h1:()=>re,xq:()=>rt,Hs:()=>rn,VA:()=>rr,e6:()=>ri,jz:()=>ro,FW:()=>rs,Pk:()=>ra,fL:()=>rl,HZ:()=>rc,vj:()=>ru,Yq:()=>r2,lC:()=>rd,wO:()=>rh,pJ:()=>rp,Gk:()=>rf,jp:()=>rg,Yf:()=>rm,lM:()=>ry,ZU:()=>rb,z2:()=>rv,bE:()=>rw,X:()=>rx,$Z:()=>rk,en:()=>rE,u0:()=>rz,pq:()=>rD,YH:()=>rG,uK:()=>rS,FQ:()=>rU,HC:()=>rH,CU:()=>rj,sL:()=>rB,ym:()=>r$,EE:()=>rC,RU:()=>rM,os:()=>rR,Fz:()=>rT,DQ:()=>rI,Zr:()=>rZ});var i,o,s,a=n(38488),l=n(43023),c=n(57094),u=n(51890),d=n(74844),h=n(12115),p=n.t(h,2),f=n(71138),g=n(89863);function m(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():y(e[t],null)}}}}function v(...e){return h.useCallback(b(...e),e)}"undefined"!=typeof window&&window.document&&window.document.createElement;var w=n(95155);function k(e,t=[]){let n=[],r=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=h.createContext(r),o=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,a=n?.[e]?.[o]||i,l=h.useMemo(()=>s,Object.values(s));return(0,w.jsx)(a.Provider,{value:l,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let a=s?.[e]?.[o]||i,l=h.useContext(a);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var E=n(47650);function A(e){let t=function(e){let t=h.forwardRef((e,t)=>
70{let{children:n,...r}=e;if(h.isValidElement(n)){var i;let e,o,s=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),a=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==h.Fragment&&(a.ref=t?b(t,s):s),h.cloneElement(n,a)}return h.Children.count(n)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=h.forwardRef((e,n)=>{let{children:r,...i}=e,o=h.Children.toArray(r),s=o.find(S);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null);return(0,w.jsx)(t,{...i,ref:n,children:h.isValidElement(e)?h.cloneElement(e,void 0,r):null})}return(0,w.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var _=Symbol("radix.slottable");function S(e){return h.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_}var M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=A(`Primitive.${t}`),r=h.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,w.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function C(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...e)=>t.current?.(...e),[])}var O="dismissableLayer.update",T=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=h.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...d}=e,p=h.useContext(T),[f,g]=h.useState(null),y=null!=(r=null==f?void 0:f.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,b]=h.useState({}),k=v(t,e=>g(e)),E=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=E.indexOf(A),S=f?E.indexOf(f):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=S>=_,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=C(e),i=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){R("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));L&&!n&&(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())},y),z=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=C(e),i=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!i.current&&R("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...p.branches].some(e=>e.contains(t))&&(null==l||l(e),null==c||c(e),e.defaultPrevented||null==u||u())},y);return!function(e,t=globalThis?.document){let n=C(e);h.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S===p.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},y),h.useEffect(()=>{if(f)return i&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(o=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),I(),()=>{i&&1===p.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=o)}},[f,y,i,p]),h.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),I())},[f,p]),h.useEffect(()=>{let e=()=>b({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),(0,w.jsx)(M.div,{...d,ref:k,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:m(e.onFocusCapture,z.onFocusCapture),onBlurCapture:m(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:m(e.onPointerDownCapture,D.onPointerDownCapture)})});function I(){let e=new CustomEvent(O);document.dispatchEvent(e)}function R(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),i)o&&E.flushSync(()=>o.dispatchEvent(s));else o.dispatchEvent(s)}N.displayName="DismissableLayer",h.forwardRef((e,t)=>
70{let n=h.useContext(T),r=h.useRef(null),i=v(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,w.jsx)(M.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var L=0;function D(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",B={bubbles:!1,cancelable:!0},P=h.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=h.useState(null),c=C(i),u=C(o),d=h.useRef(null),p=v(t,e=>l(e)),f=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let e=function(e){if(f.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:U(d.current,{select:!0})},t=function(e){if(f.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||U(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&U(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,f.paused]),h.useEffect(()=>{if(a){H.add(f);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(z,B);a.addEventListener(z,c),a.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(U(r,{select:t}),document.activeElement!==n)return}($(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&U(a))}return()=>{a.removeEventListener(z,c),setTimeout(()=>{let t=new CustomEvent(j,B);a.addEventListener(j,u),a.dispatchEvent(t),t.defaultPrevented||U(null!=e?e:document.body,{select:!0}),a.removeEventListener(j,u),H.remove(f)},0)}}},[a,c,u,f]);let g=h.useCallback(e=>{if(!n&&!r||f.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=$(e);return[F(t,e),F(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&U(o,{select:!0})):(e.preventDefault(),n&&U(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,f.paused]);return(0,w.jsx)(M.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});function $(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function U(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}P.displayName="FocusScope";var H=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=q(e,t)).unshift(t)},remove(t){var n;null==(n=(e=q(e,t))[0])||n.resume()}}}();function q(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var W=globalThis?.document?h.useLayoutEffect:()=>{},K=p[" useId ".trim().toString()]||(()=>void 0),Y=0;let V=["top","right","bottom","left"],J=Math.min,G=Math.max,Z=Math.round,X=Math.floor,Q=e=>({x:e,y:e}),ee={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e,t){return"function"==typeof e?e(t):e}function en(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function ei(e){return"x"===e?"y":"x"}function eo(e){return"y"===e?"height":"width"}function es(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ea(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let el=["left","right"],ec=["right","left"],eu=["top","bottom"],ed=["bottom","top"];function eh(e){let t=en(e);return ee[t]+e.slice(t.length)}function ep(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ef(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eg(e,t,n){let r,{reference:i,floating:o}=e,s=es(t),a=ei(es(t)),l=eo(a),c=en(t),u="y"===s,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(c){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(er(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}async function em(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=et(t,e),f=ep(p),g=a[h?"floating"===d?"reference":"floating":d],m=ef(await o.getClippingRect
vendor: 1,248 bytes, line 70
70({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),v=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=ef(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-w.top+f.top)/v.y,bottom:(w.bottom-m.bottom+f.bottom)/v.y,left:(m.left-w.left+f.left)/v.x,right:(w.right-m.right+f.right)/v.x}}let ey=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:em},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=eg(c,r,l),h=r,p=0,f={};for(let n=0;n<o.length;n++){let g=o[n];if(!g)continue;let{name:m,fn:y}=g,{x:b,y:v,data:w,reset:k}=await y({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,re
70cts:c,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=v?v:d,f[m]={...f[m],...w},k&&p<50&&(p++,"object"==typeof k&&(k.placement&&(h=k.placement),k.rects&&(c=!0===k.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:u,y:d}=eg(c,h,l)),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}};function eb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ev(e){return V.some(t=>e[t]>=0)}let ew=new Set(["left","top"]);async function ex(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=en(n),a=er(n),l="y"===es(n),c=ew.has(s)?-1:1,u=o&&l?-1:1,d=et(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}function ek(){return"undefined"!=typeof window}function eE(e){return eS(e)?(e.nodeName||"").toLowerCase():"#document"}function eA(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function e_(e){var t;return null==(t=(eS(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eS(e){return!!ek()&&(e instanceof Node||e instanceof eA(e).Node)}function eM(e){return!!ek()&&(e instanceof Element||e instanceof eA(e).Element)}function eC(e){return!!ek()&&(e instanceof HTMLElement||e instanceof eA(e).HTMLElement)}function eO(e){return!!ek()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eA(e).ShadowRoot)}function eT(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eB(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function eN(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eI=/transform|translate|scale|rotate|perspective|filter/,eR=/paint|layout|strict|content/,eL=e=>!!e&&"none"!==e;function eD(e){let t=eM(e)?eB(e):e;return eL(t.transform)||eL(t.translate)||eL(t.scale)||eL(t.rotate)||eL(t.perspective)||!ez()&&(eL(t.backdropFilter)||eL(t.filter))||eI.test(t.willChange||"")||eR.test(t.contain||"")}function ez(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ej(e){return/^(html|body|#document)$/.test(eE(e))}function eB(e){return eA(e).getComputedStyle(e)}function eP(e){return eM(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e$(e){if("html"===eE(e))return e;let t=e.assignedSlot||e.parentNode||eO(e)&&e.host||e_(e);return eO(t)?t.host:t}function eF(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=e$(t);return ej(n)?t.ownerDocument?t.ownerDocument.body:t.body:eC(n)&&eT(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=eA(i);if(!o)return t.concat(i,eF(i,[],n));{let e=eU(s);return t.concat(s,s.visualViewport||[],eT(i)?i:[],e&&n?eF(e):[])}}function eU(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eH(e){let t=eB(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=eC(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Z(n)!==o||Z(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function eq(e){return eM(e)?e:e.contextElement}function eW(e){let t=eq(e);if(!eC(t))return Q(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eH(t),s=(o?Z(n.width):n.width)/r,a=(o?Z(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let eK=Q(0);function eY(e){let t=eA(e);return ez()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eK}function eV(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=eq(e),a=Q(1);t&&(r?eM(r)&&(a=eW(r)):a=eW(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===eA(s))&&i)?eY(s):Q(0),c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){let e=eA(s),t=r&&eM(r)?eA(r):r,n=e,i=eU(n);for(;i&&r&&t!==n;){let e=eW(i),t=i.getBoundingClientRect(),r=eB(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,h*=e.y,c+=o,u+=s,i=eU(n=eA(i))}}return ef({width:d,height:h,x:c,y:u})}function eJ(e,t){let n=eP(e).scrollLeft;return t?t.left+n:eV(e_(e)).left+n}function eG(e,t){let n=e.getBoundingClientRect();
70return{x:n.left+t.scrollLeft-eJ(e,n),y:n.top+t.scrollTop}}function eZ(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=eA(e),r=e_(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=ez();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let c=eJ(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else c<=25&&(o+=c);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=e_(e),n=eP(e),r=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+eJ(e),a=-n.scrollTop;return"rtl"===eB(r).direction&&(s+=G(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(e_(e));else if(eM(t))r=function(e,t){let n=eV(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=eC(e)?eW(e):Q(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=eY(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ef(r)}function eX(e){return"static"===eB(e).position}function eQ(e,t){if(!eC(e)||"fixed"===eB(e).position)return null;if(t)return t(e);let n=e.offsetParent;return e_(e)===n&&(n=n.ownerDocument.body),n}function e0(e,t){var n;let r=eA(e);if(eN(e))return r;if(!eC(e)){let t=e$(e);for(;t&&!ej(t);){if(eM(t)&&!eX(t))return t;t=e$(t)}return r}let i=eQ(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(eE(n)))&&eX(i);)i=eQ(i,t);return i&&ej(i)&&eX(i)&&!eD(i)?r:i||function(e){let t=e$(e);for(;eC(t)&&!ej(t);){if(eD(t))return t;if(eN(t))break;t=e$(t)}return null}(e)||r}let e1=async function(e){let t=this.getOffsetParent||e0,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eC(t),i=e_(t),o="fixed"===n,s=eV(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=Q(0);if(r||!r&&!o)if(("body"!==eE(t)||eT(i))&&(a=eP(t)),r){let e=eV(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eJ(i));o&&!r&&i&&(l.x=eJ(i));let c=!i||r||o?Q(0):eG(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},e2={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=e_(r),a=!!t&&eN(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Q(1),u=Q(0),d=eC(r);if((d||!d&&!o)&&(("body"!==eE(r)||eT(s))&&(l=eP(r)),d)){let e=eV(r);c=eW(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let h=!s||d||o?Q(0):eG(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:e_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?eN(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eF(e,[],!1).filter(e=>eM(e)&&"body"!==eE(e)),i=null,o="fixed"===eB(e).position,s=o?e$(e):e;for(;eM(s)&&!ej(s);){let t=eB(s),n=eD(s);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||eT(s)&&!n&&function e(t,n){let r=e$(t);return!(r===n||!eM(r)||ej(r))&&("fixed"===eB(r).position||e(r,n))}(e,s)))?i=t:r=r.filter(e=>e!==s),s=e$(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=eZ(t,o[0],i),a=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<o.length;e++){let n=eZ(t,o[e],i);a=G(n.top,a),l=J(n.right,l),c=J(n.bottom,c),u=G(n.left,u)}return{width:l-u,height:c-a,x:u,y:a}},getOffsetParent:e0,getElementRects:e1,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eH(e);return{width:t,height:n}},getScale:eW,isElement:eM,isRTL:function(e){return"rtl"===eB(e).direction}};function e4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e5=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=et(e,t)||{};if(null==c)return{};let d=ep(u),h={x:n,y:r},p=ei(es(i)),f=eo(p),g=await s.getDimensions(c),m="y"===p,y=m?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[p]-h[p]-o.floating[f],v=h[p]-o.reference[p],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),k=w?w[y]:0;k&&await (null==s.isElement?void 0:s.isElement(w))||(k=a.floating[y]||o.floating[f]);let E=k/2-g[f]/2-1,A=J(d[m?"top":"left"],E),_=J(d[m?"bottom":"right"],E),S=k-g[f]-_,M=k/2-g[f]/2+(b/2-v/2),C=G(A,J(M,S)),O=!l.arrow&&null!=er(i)&&M!==C&&o.reference[f]/2-(M<A?A:_)-g[f]/2<0,T=O?M<A?M-A:M-S:0;return{[p]:h[p]+T,data:{[p]:C,centerOffset:M-C-T,...O&&{alignmentOffset:T}},reset:O}}});var e3="undefined"!=typeof document?h.useLayoutEffect:function(){};function e6(e,t){let n,r,i;if(e===t)return!0;
70if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e6(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!e6(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e8(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e7(e,t){let n=e8(e);return Math.round(t*n)/n}function e9(e){let t=h.useRef(e);return e3(()=>{t.current=e}),t}var te=h.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,w.jsx)(M.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,w.jsx)("polygon",{points:"0,0 30,0 15,10"})})});te.displayName="Arrow";var tt="Popper",[tn,tr]=k(tt),[ti,to]=tn(tt),ts=e=>{let{__scopePopper:t,children:n}=e,[r,i]=h.useState(null);return(0,w.jsx)(ti,{scope:t,anchor:r,onAnchorChange:i,children:n})};ts.displayName=tt;var ta="PopperAnchor",tl=h.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=to(ta,n),s=h.useRef(null),a=v(t,s),l=h.useRef(null);return h.useEffect(()=>{let e=l.current;l.current=(null==r?void 0:r.current)||s.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,w.jsx)(M.div,{...i,ref:a})});tl.displayName=ta;var tc="PopperContent",[tu,td]=tn(tc),th=h.forwardRef((e,t)=>{var n,r,i,o,s,a,l,c;let{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:f="center",alignOffset:g=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:k=0,sticky:A="partial",hideWhenDetached:_=!1,updatePositionStrategy:S="optimized",onPlaced:O,...T}=e,N=to(tc,u),[I,R]=h.useState(null),L=v(t,e=>R(e)),[D,z]=h.useState(null),j=function(e){let[t,n]=h.useState(void 0);return W(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(D),B=null!=(l=null==j?void 0:j.width)?l:0,P=null!=(c=null==j?void 0:j.height)?c:0,$="number"==typeof k?k:{top:0,right:0,bottom:0,left:0,...k},F=Array.isArray(b)?b:[b],U=F.length>0,H={padding:$,boundary:F.filter(tm),altBoundary:U},{refs:q,floatingStyles:K,placement:Y,isPositioned:V,middlewareData:Z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=h.useState(r);e6(p,r)||f(r);let[g,m]=h.useState(null),[y,b]=h.useState(null),v=h.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),w=h.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),k=o||g,A=s||y,_=h.useRef(null),S=h.useRef(null),M=h.useRef(u),C=null!=l,O=e9(l),T=e9(i),N=e9(c),I=h.useCallback(()=>{if(!_.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),((e,t,n)=>{let r=new Map,i={platform:e2,...n},o={...i.platform,_c:r};return ey(e,t,{...i,platform:o})})(_.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};R.current&&!e6(M.current,t)&&(M.current=t,E.flushSync(()=>{d(t)}))})},[p,t,n,T,N]);e3(()=>{!1===c&&M.current.isPositioned&&(M.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let R=h.useRef(!1);e3(()=>(R.current=!0,()=>{R.current=!1}),[]),e3(()=>{if(k&&(_.current=k),A&&(S.current=A),k&&A){if(O.current)return O.current(k,A,I);I()}},[k,A,I,O,C]);let L=h.useMemo(()=>({reference:_,floating:S,setReference:v,setFloating:w}),[v,w]),D=h.useMemo(()=>({reference:k,floating:A}),[k,A]),z=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=e7(D.floating,u.x),r=e7(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...e8(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:I,refs:L,elements:D,floatingStyles:z}),[u,I,L,D,z])}({strategy:"fixed",placement:d+("center"!==f?"-"+f:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=eq(e),d=o||s?[...u?eF(u):[],...t?eF(t):[]]:[];
70d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=u&&l?function(e,t){let n,r=null,i=e_(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;let f=X(d),g=X(i.clientWidth-(u+h)),m={rootMargin:-f+"px "+-g+"px "+-X(i.clientHeight-(d+p))+"px "+-X(u)+"px",threshold:G(0,J(1,l))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==l){if(!y)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||e4(c,e.getBoundingClientRect())||s(),y=!1}try{r=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(b,m)}r.observe(e)}(!0),o}(u,n):null,p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&f&&t&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),u&&!c&&f.observe(u),t&&f.observe(t));let g=c?eV(e):null;return c&&function t(){let r=eV(e);g&&!e4(g,r)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===S})},elements:{reference:N.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await ex(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:p+P,alignmentAxis:g}),y&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=et(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),h=es(en(i)),p=ei(h),f=u[p],g=u[h];
70if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+d[e],r=f-d[t];f=G(n,J(f,r))}if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=g+d[e],r=g-d[t];g=G(n,J(g,r))}let m=l.fn({...t,[p]:f,[h]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:s,[h]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=et(e,t),u={x:n,y:r},d=es(i),h=ei(d),p=u[h],f=u[d],g=et(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+m.mainAxis,n=o.reference[h]+o.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,b;let e="y"===h?"width":"height",t=ew.has(en(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=s.offset)?void 0:y[d])||0)+(t?0:m.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}}(e).fn,options:[e,t]}))():void 0,...H}),y&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s;let{placement:a,middlewareData:l,rects:c,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...v}=et(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let w=en(a),k=es(u),E=en(u)===u,A=await (null==d.isRTL?void 0:d.isRTL(h.floating)),_=g||(E||!b?[eh(u)]:function(e){let t=eh(e);return[ea(e),t,ea(t)]}(u)),S="none"!==y;!g&&S&&_.push(...function(e,t,n,r){let i=er(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ec:el;return t?el:ec;case"left":case"right":return t?eu:ed;default:return[]}}(en(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(ea)))),o}(u,b,y,A));let M=[u,..._],C=await d.detectOverflow(t,v),O=[],T=(null==(r=l.flip)?void 0:r.overflows)||[];if(p&&O.push(C[w]),f){let e=function(e,t,n){void 0===n&&(n=!1);let r=er(e),i=ei(es(e)),o=eo(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=eh(s)),[s,eh(s)]}(a,c,A);O.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:a,overflows:O}],!O.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=M[e];if(t&&("alignment"!==f||k===es(t)||T.every(e=>es(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(o=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(m){case"bestFit":{let e=null==(s=T.filter(e=>{if(S){let t=es(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...H}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,o,{placement:s,rects:a,platform:l,elements:c}=t,{apply:u=()=>{},...d}=et(e,t),h=await l.detectOverflow(t,d),p=en(s),f=er(s),g="y"===es(s),{width:m,height:y}=a.floating;"top"===p||"bottom"===p?(i=p,o=f===(await (null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(o=p,i="end"===f?"top":"bottom");let b=y-h.top-h.bottom,v=m-h.left-h.right,w=J(y-h[i],b),k=J(m-h[o],v),E=!t.middlewareData.shift,A=w,_=k;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=b),E&&!f){let e=G(h.left,0),t=G(h.right,0),n=G(h.top,0),r=G(h.bottom,0);g?_=m-2*(0!==e||0!==t?e+t:G(h.left,h.right)):A=y-2*(0!==n||0!==r?n+r:G(h.top,h.bottom))}await u({...t,availableWidth:_,availableHeight:A});let S=await l.getDimensions(c.floating);return m!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...H,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:s}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),D&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?e5({element:n.current,padding:r}).fn(t):{}:n?e5({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:D,padding:m}),ty({arrowWidth:B,arrowHeight:P}),_&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=et(e,t);
70switch(i){case"referenceHidden":{let e=eb(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ev(e)}}}case"escaped":{let e=eb(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ev(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...H})]}),[Q,ee]=tb(Y),ep=C(O);W(()=>{V&&(null==ep||ep())},[V,ep]);let ef=null==(n=Z.arrow)?void 0:n.x,eg=null==(r=Z.arrow)?void 0:r.y,em=(null==(i=Z.arrow)?void 0:i.centerOffset)!==0,[ek,eE]=h.useState();return W(()=>{I&&eE(window.getComputedStyle(I).zIndex)},[I]),(0,w.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:V?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(o=Z.transformOrigin)?void 0:o.x,null==(s=Z.transformOrigin)?void 0:s.y].join(" "),...(null==(a=Z.hide)?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,w.jsx)(tu,{scope:u,placedSide:Q,onArrowChange:z,arrowX:ef,arrowY:eg,shouldHideArrow:em,children:(0,w.jsx)(M.div,{"data-side":Q,"data-align":ee,...T,ref:L,style:{...T.style,animation:V?void 0:"none"}})})})});th.displayName=tc;var tp="PopperArrow",tf={top:"bottom",right:"left",bottom:"top",left:"right"},tg=h.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=td(tp,n),o=tf[i.placedSide];return(0,w.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,w.jsx)(te,{...r,ref:t,style:{...r.style,display:"block"}})})});function tm(e){return null!==e}tg.displayName=tp;var ty=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;let{placement:a,rects:l,middlewareData:c}=t,u=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,f]=tb(a),g={start:"0%",center:"50%",end:"100%"}[f],m=(null!=(o=null==(r=c.arrow)?void 0:r.x)?o:0)+d/2,y=(null!=(s=null==(i=c.arrow)?void 0:i.y)?s:0)+h/2,b="",v="";return"bottom"===p?(b=u?g:"".concat(m,"px"),v="".concat(-h,"px")):"top"===p?(b=u?g:"".concat(m,"px"),v="".concat(l.floating.height+h,"px")):"right"===p?(b="".concat(-h,"px"),v=u?g:"".concat(y,"px")):"left"===p&&(b="".concat(l.floating.width+h,"px"),v=u?g:"".concat(y,"px")),{data:{x:b,y:v}}}});function tb(e){let[t,n="center"]=e.split("-");return[t,n]}var tv=h.forwardRef((e,t)=>{var n,r;let{container:i,...o}=e,[s,a]=h.useState(!1);W(()=>a(!0),[]);let l=i||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return l?E.createPortal((0,w.jsx)(M.div,{...o,ref:t}),l):null});tv.displayName="Portal";var tw=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=h.useState(),o=h.useRef(null),s=h.useRef(e),a=h.useRef("none"),[l,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},h.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return h.useEffect(()=>{let e=tx(o.current);a.current="mounted"===l?e:"none"},[l]),W(()=>{let t=o.current,n=s.current;if(n!==e){let r=a.current,i=tx(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),W(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,i=e=>{let i=tx(o.current).includes(CSS.escape(e.animationName));if(e.target===r&&i&&(c("ANIMATION_END"),!s.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},l=e=>{e.target===r&&(a.current=tx(o.current))};return r.addEventListener("animationstart",l),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",l),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(e=>{o.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):h.Children.only(n),o=v(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||r.isPresent?h.cloneElement(i,{ref:o}):null};function tx(e){return(null==e?void 0:e.animationName)||"none"}tw.displayName="Presence";var tk=p[" useInsertionEffect ".trim().toString()]||W;Symbol("RADIX:SYNC_STATE");
70var tE=new WeakMap,tA=new WeakMap,t_={},tS=0,tM=function(e){return e&&(e.host||tM(e.parentNode))},tC=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tM(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});t_[n]||(t_[n]=new WeakMap);var o=t_[n],s=[],a=new Set,l=new Set(i),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tE.get(e)||0)+1,c=(o.get(e)||0)+1;tE.set(e,l),o.set(e,c),s.push(e),1===l&&i&&tA.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),tS++,function(){s.forEach(function(e){var t=tE.get(e)-1,i=o.get(e)-1;tE.set(e,t),o.set(e,i),t||(tA.has(e)||e.removeAttribute(r),tA.delete(e)),i||e.removeAttribute(n)}),--tS||(tE=new WeakMap,tE=new WeakMap,tA=new WeakMap,t_={})}},tO=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tC(r,i,n,"aria-hidden")):function(){return null}},tT=function(){return(tT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function tN(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var tI=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tR="width-before-scroll-bar";function tL(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tD="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,tz=new WeakMap;function tj(e){return e}var tB=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=tj),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}});return i.options=tT({async:!0,ssr:!1},e),i}(),tP=function(){},t$=h.forwardRef(function(e,t){var n,r,i,o,s=h.useRef(null),a=h.useState({onScrollCapture:tP,onWheelCapture:tP,onTouchMoveCapture:tP}),l=a[0],c=a[1],u=e.forwardProps,d=e.children,p=e.className,f=e.removeScrollBar,g=e.enabled,m=e.shards,y=e.sideCar,b=e.noRelative,v=e.noIsolation,w=e.inert,k=e.allowPinchZoom,E=e.as,A=e.gapMode,_=tN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[s,t],r=function(e){return n.forEach(function(t){return tL(t,e)})},(i=(0,h.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,tD(function(){var e=tz.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||tL(e,null)}),r.forEach(function(e){t.has(e)||tL(e,i)})}tz.set(o,n)},[n]),o),M=tT(tT({},_),l);return h.createElement(h.Fragment,null,g&&h.createElement(y,{sideCar:tB,removeScrollBar:f,shards:m,noRelative:b,noIsolation:v,inert:w,setCallbacks:c,allowPinchZoom:!!k,lockRef:s,gapMode:A}),u?h.cloneElement(h.Children.only(d),tT(tT({},M),{ref:S})):h.createElement(void 0===E?"div":E,tT({},M,{className:p,ref:S}),d))});t$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},t$.classNames={fullWidth:tR,zeroRight:tI};var tF=function(e){var t=e.sideCar,n=tN(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,tT({},n))};
70tF.isSideCarExport=!0;var tU=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tH=function(){var e=tU();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tq=function(){var e=tH();return function(t){return e(t.styles,t.dynamic),null}},tW={left:0,top:0,right:0,gap:0},tK=function(e){return parseInt(e||"",10)||0},tY=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tK(n),tK(r),tK(i)]},tV=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tW;var t=tY(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tJ=tq(),tG="data-scroll-locked",tZ=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(tG,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tI," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tR," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tI," .").concat(tI," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tR," .").concat(tR," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tG,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},tX=function(){var e=parseInt(document.body.getAttribute(tG)||"0",10);return isFinite(e)?e:0},tQ=function(){h.useEffect(function(){return document.body.setAttribute(tG,(tX()+1).toString()),function(){var e=tX()-1;e<=0?document.body.removeAttribute(tG):document.body.setAttribute(tG,e.toString())}},[])},t0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tQ();var o=h.useMemo(function(){return tV(i)},[i]);return h.createElement(tJ,{styles:tZ(o,!t,i,n?"":"!important")})},t1=!1;if("undefined"!=typeof window)try{var t2=Object.defineProperty({},"passive",{get:function(){return t1=!0,!0}});window.addEventListener("test",t2,t2),window.removeEventListener("test",t2,t2)}catch(e){t1=!1}var t4=!!t1&&{passive:!1},t5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},t3=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t6(e,r)){var i=t8(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t6=function(e,t){return"v"===e?t5(t,"overflowY"):t5(t,"overflowX")},t8=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t7=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,c=t.contains(l),u=!1,d=a>0,h=0,p=0;do{if(!l)break;var f=t8(e,l),g=f[0],m=f[1]-f[2]-s*g;(g||m)&&t6(e,l)&&(h+=m,p+=g);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&a>h)?u=!0:!d&&(i&&1>Math.abs(p)||!i&&-a>p)&&(u=!0),u},t9=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ne=function(e){return[e.deltaX,e.deltaY]},nt=function(e){return e&&"current"in e?e.current:e},nn=0,nr=[];let ni=(i=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(nn++)[0],o=h.useState(tq)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
70)([e.lockRef.current],(e.shards||[]).map(nt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=t9(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var f=t3(d,u);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=t3(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var g=r.current||i;return t7(g,t,e,"h"===g?l:c,!0)},[]),l=h.useCallback(function(e){if(nr.length&&nr[nr.length-1]===o){var n="deltaY"in e?ne(e):t9(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(nt).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=h.useCallback(function(e){n.current=t9(e),r.current=void 0},[]),d=h.useCallback(function(t){c(t.type,ne(t),t.target,a(t,e.lockRef.current))},[]),p=h.useCallback(function(t){c(t.type,t9(t),t.target,a(t,e.lockRef.current))},[]);h.useEffect(function(){return nr.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,t4),document.addEventListener("touchmove",l,t4),document.addEventListener("touchstart",u,t4),function(){nr=nr.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,t4),document.removeEventListener("touchmove",l,t4),document.removeEventListener("touchstart",u,t4)}},[]);var f=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?h.createElement(t0,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tB.useMedium(i),tF);var no=h.forwardRef(function(e,t){return h.createElement(t$,tT({},e,{ref:t,sideCar:ni}))});no.classNames=t$.classNames;var ns="Popover",[na,nl]=k(ns,[tr]),nc=tr(),[nu,nd]=na(ns),nh=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=nc(t),l=h.useRef(null),[c,u]=h.useState(!1),[d,p]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[n,r]=h.useState(e),i=h.useRef(n),o=h.useRef(t);return tk(()=>{o.current=t},[t]),h.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:i;{let t=h.useRef(void 0!==e);h.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[l,h.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else o(t)},[a,e,o,s])]}({prop:r,defaultProp:null!=i&&i,onChange:o,caller:ns});return(0,w.jsx)(ts,{...a,children:(0,w.jsx)(nu,{scope:t,contentId:function(e){let[t,n]=h.useState(K());return W(()=>{n(e=>e??String(Y++))},[void 0]),e||(t?`radix-${t}`:"")}(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:s,children:n})})};nh.displayName=ns;var np="PopoverAnchor";h.forwardRef((e,t)=>
70{let{__scopePopover:n,...r}=e,i=nd(np,n),o=nc(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return h.useEffect(()=>(s(),()=>a()),[s,a]),(0,w.jsx)(tl,{...o,...r,ref:t})}).displayName=np;var nf="PopoverTrigger",ng=h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nd(nf,n),o=nc(n),s=v(t,i.triggerRef),a=(0,w.jsx)(M.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nM(i.open),...r,ref:s,onClick:m(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:(0,w.jsx)(tl,{asChild:!0,...o,children:a})});ng.displayName=nf;var nm="PopoverPortal",[ny,nb]=na(nm,{forceMount:void 0}),nv=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=nd(nm,t);return(0,w.jsx)(ny,{scope:t,forceMount:n,children:(0,w.jsx)(tw,{present:n||o.open,children:(0,w.jsx)(tv,{asChild:!0,container:i,children:r})})})};nv.displayName=nm;var nw="PopoverContent",nx=h.forwardRef((e,t)=>{let n=nb(nw,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=nd(nw,e.__scopePopover);return(0,w.jsx)(tw,{present:r||o.open,children:o.modal?(0,w.jsx)(nE,{...i,ref:t}):(0,w.jsx)(nA,{...i,ref:t})})});nx.displayName=nw;var nk=A("PopoverContent.RemoveScroll"),nE=h.forwardRef((e,t)=>{let n=nd(nw,e.__scopePopover),r=h.useRef(null),i=v(t,r),o=h.useRef(!1);return h.useEffect(()=>{let e=r.current;if(e)return tO(e)},[]),(0,w.jsx)(no,{as:nk,allowPinchZoom:!0,children:(0,w.jsx)(n_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:m(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:m(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:m(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nA=h.forwardRef((e,t)=>{let n=nd(nw,e.__scopePopover),r=h.useRef(!1),i=h.useRef(!1);return(0,w.jsx)(n_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,s;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(s=n.triggerRef.current)||s.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,s;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(s=n.triggerRef.current)?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),n_=h.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=nd(nw,n),f=nc(n);return h.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:D()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:D()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),(0,w.jsx)(P,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,w.jsx)(N,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:(0,w.jsx)(th,{"data-state":nM(p.open),role:"dialog",id:p.contentId,...f,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nS="PopoverClose";function nM(e){return e?"open":"closed"}h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nd(nS,n);return(0,w.jsx)(M.button,{type:"button",...r,ref:t,onClick:m(e.onClick,()=>i.onOpenChange(!1))})}).displayName=nS,h.forwardRef((e,t)=>
70{let{__scopePopover:n,...r}=e,i=nc(n);return(0,w.jsx)(tg,{...i,...r,ref:t})}).displayName="PopoverArrow",(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var nC=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();(0,d.hY)(),(0,d.hY)();var nO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},nT=(0,h.forwardRef)((e,t)=>{var{color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:s="",children:a,iconNode:l}=e,c=(0,d.YG)(e,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,h.createElement)("svg",(0,d.IA)((0,d.ko)((0,d.IA)({ref:t},nO),{width:r,height:r,stroke:n,strokeWidth:o?24*Number(i)/Number(r):i,className:nC("lucide",s)}),c),[...l.map(([e,t])=>(0,h.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),nN=(e,t)=>{let n=(0,h.forwardRef)((n,r)=>{var{className:i}=n,o=(0,d.YG)(n,["className"]);return(0,h.createElement)(nT,(0,d.IA)({ref:r,iconNode:t,className:nC(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,i)},o))});return n.displayName=`${e}`,n},nI=nN("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);(0,d.hY)();var nR=nN("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);(0,d.hY)();var nL=nN("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);(0,d.hY)(),(0,d.hY)();var nD=nN("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);(0,d.hY)();var nz=nN("AlignJustify",[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]]);(0,d.hY)();var nj=nN("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);(0,d.hY)();var nB=nN("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);(0,d.hY)();var nP=nN("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);(0,d.hY)();var n$=nN("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);(0,d.hY)();var nF=nN("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);(0,d.hY)();var nU=nN("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);(0,d.hY)();var nH=nN("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);(0,d.hY)();var nq=nN("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);(0,d.hY)();var nW=nN("CornerLeftUp",[["polyline",{points:"14 9 9 4 4 9",key:"m9oyvo"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]);(0,d.hY)();var nK=nN("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);(0,d.hY)();var nY=nN("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);(0,d.hY)();var nV=nN("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);(0,d.hY)();var nJ=nN("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);(0,d.hY)();var nG=nN("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
70]]);(0,d.hY)();var nZ=nN("Heading1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);(0,d.hY)();var nX=nN("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);(0,d.hY)();var nQ=nN("Heading3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);(0,d.hY)();var n0=nN("Heading4",[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]]);(0,d.hY)();var n1=nN("Heading5",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]]);(0,d.hY)();var n2=nN("Heading6",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["circle",{cx:"19",cy:"16",r:"2",key:"15mx69"}],["path",{d:"M20 10c-2 2-3 3.5-3 6",key:"f35dl0"}]]);(0,d.hY)();var n4=nN("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);(0,d.hY)();var n5=nN("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);(0,d.hY)();var n3=nN("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);(0,d.hY)();var n6=nN("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);(0,d.hY)();var n8=nN("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);(0,d.hY)();var n7=nN("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);(0,d.hY)();var n9=nN("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);(0,d.hY)();var re=nN("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);(0,d.hY)();var rt=nN("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);(0,d.hY)();var rn=nN("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);(0,d.hY)();var rr=nN("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);(0,d.hY)();var ri=nN("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);(0,d.hY)();var ro=nN("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);(0,d.hY)();var rs=nN("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);(0,d.hY)();var ra=nN("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);(0,d.hY)();
70var rl=nN("RectangleEllipsis",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]);(0,d.hY)();var rc=nN("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);(0,d.hY)();var ru=nN("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);(0,d.hY)();var rd=nN("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);(0,d.hY)();var rh=nN("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);(0,d.hY)();var rp=nN("SquareCode",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);(0,d.hY)();var rf=nN("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);(0,d.hY)();var rg=nN("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);(0,d.hY)();var rm=nN("ToyBrick",[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]]);(0,d.hY)();var ry=nN("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);(0,d.hY)();var rb=nN("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);(0,d.hY)();var rv=nN("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);(0,d.hY)();var rw=nN("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);(0,d.hY)();var rx=nN("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);(0,d.hY)();var rk=nN("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);(0,d.hY)();var rE=nN("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var rA={ControlLeft:"ctrl",ControlRight:"ctrl",MetaLeft:"meta",MetaRight:"meta",ShiftLeft:"shift",ShiftRight:"shift",KeyA:"a",KeyB:"b",KeyC:"c",KeyD:"d",KeyE:"e",KeyF:"f",KeyG:"g",KeyH:"h",KeyI:"i",KeyJ:"j",KeyK:"k",KeyL:"l",KeyM:"m",KeyN:"n",KeyO:"o",KeyP:"p",KeyQ:"q",KeyR:"r",KeyS:"s",KeyT:"t",KeyU:"u",KeyV:"v",KeyW:"w",KeyX:"x",KeyY:"y",KeyZ:"z",Delete:"delete",Backspace:"backspace",AltRight:"altRight"},r_=(0,f.v)()((0,g.eh)(e=>({held:{},hold:t=>e(e=>e.held[t]?e:{held:(0,d.ko)((0,d.IA)({},e.held),{[t]:!0})}),release:t=>e(e=>e.held[t]?{held:(0,d.ko)((0,d.IA)({},e.held),{[t]:!1})}:e),reset:(t={})=>e(()=>({held:t})),triggers:{}}))),rS=e=>{let t=e=>{if(e.getModifierState("AltGraph"))return void r_.getState().hold("altRight");let t=rA[e.code];if(t){r_.getState().hold(t);let{held:n,triggers:r}=r_.getState();Object.values(r).forEach(({combo:t,cb:r})=>{Object.entries(t).every(([e,t])=>!!n[e]===t)&&Object.entries(n).every(([e,n])=>!!t[e]===n)&&!1!==r(e)&&e.preventDefault()}),"meta"!==t&&"ctrl"!==t&&"shift"!==t&&r_.getState().release(t)}},n=e=>{if(!e.getModifierState("AltGraph")&&"ControlRight"===e.code)return void r_.getState().release("altRight");let t=rA[e.code];t&&("meta"===t?r_.getState().reset():r_.getState().release(t))},r=e=>{"hidden"===document.visibilityState&&r_.getState().reset()},i=()=>{r_.getState().reset()};return window.addEventListener("blur",i),e.addEventListener("keydown",t),e.addEventListener("keyup",n),e.addEventListener("visibilitychange",r),()=>{e.removeEventListener("keydown",t),e.removeEventListener("keyup",n),e.removeEventListener("visibilitychange",r),window.removeEventListener("blur",i)}},rM=()=>{(0,h.useEffect)(()=>rS(document),[])},rC=(e,t)=>{(0,h.useEffect)(()=>r_.setState(n=>({triggers:(0,d.ko)((0,d.IA)({},n.triggers),{[`${Object.keys(e).join("+")}`]:{combo:e,cb:t}})})),[])},rO=e=>(0,d.ko)((0,d.IA)({},e),{ui:(0,d.ko)((0,d.IA)({},e.ui),{field:(0,d.ko)((0,d.IA)({},e.ui.field),{focus:null})})});function rT(e,{histories:t,index:n,initialAppState:r}){(0,h.useEffect)(()=>e.setState({history:(0,d.ko)((0,d.IA)({},e.getState().history),{histories:t,index:n,initialAppState:r})}),[t,n,r]);let i=()=>{e.getState().history.back()},o=()=>{e.getState().history.forward()};rC({altRight:!1,meta:!0,z:!0},i),rC({altRight:!1,meta:!0,shift:!0,z:!0},o),rC({altRight:!1,meta:!0,y:!0},o),rC({altRight:!1,ctrl:!0,z:!0},i),rC({altRight:!1,ctrl:!0,shift:!0,z:!0},o),rC({altRight:!1,ctrl:!0,y:!0},o)}(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var rN=(e,t)=>{let n=[];return(0,u.CS)(e,t,e=>e,e=>(n.push(e),e)),n},rI=(e,t)=>{(0,h.useEffect)(()=>{let{permissions:n}=e.getState(),{globalPermissions:r}=n;e.setState({permissions:(0,d.ko)((0,d.IA)({},n),{globalPermissions:(0,d.IA)((0,d.IA)({},r),t)})}),n.resolvePermissions()},[t]),(0,h.useEffect)(()=>e.subscribe(e=>e.state.data,()=>{e.getState().permissions.resolvePermissions()}),[]),(0,h.useEffect)(()=>e.subscribe(e=>e.config,()=>{e.getState().permissions.resolvePermissions()}),[])};(0,d.hY)();var rR=(e,t)=>{let n=(0,h.useCallback)(n=>(0,d.BU)(null,null,function*(){var r,i;let{fields:o,lastResolvedData:s}=e.getState().fields,c=e.getState().metadata,u=e.getState().state.indexes.nodes,h=u[t||"root"],p=null==h?void 0:h.data,f=(null==h?void 0:h.parentId)?u[h.parentId]:null,g=(null==f?void 0:f.data)||null,{getComponentConfig:m,state:y}=e.getState(),b=m(null==p?void 0:p.type);if(!p||!b)return;let v=b.fields||{},w=b.resolveFields,k=o;if(n&&(e.setState(e=>({fields:(0,d.ko)((0,d.IA)({},e.fields),{fields:v,id:t})})),k=v),w){let n=setTimeout(()=>{e.setState(e=>({fields:(0,d.ko)((0,d.IA)({},e.fields),{loading:!0})}
70))},50),o=(null==(r=s.props)?void 0:r.id)===t?s:null,u=(0,l.rv)(p,o),h=yield w(p,{changed:u,fields:v,lastFields:k,metadata:(0,d.IA)((0,d.IA)({},c),b.metadata),lastData:o,appState:(0,a.Vg)(y),parent:g});if(clearTimeout(n),(null==(i=e.getState().selectedItem)?void 0:i.props.id)!==t)return;e.setState({fields:{fields:h,loading:!1,lastResolvedData:p,id:t}})}else e.setState(e=>({fields:(0,d.ko)((0,d.IA)({},e.fields),{fields:v,id:t})}))}),[t]);(0,h.useEffect)(()=>(n(!0),e.subscribe(e=>e.state.indexes.nodes[t||"root"],()=>n())),[t])};(0,d.hY)();var rL={title:{type:"text"}},rD=e=>(0,f.v)()((0,g.eh)((t,n)=>{var r,i;return(0,d.ko)((0,d.IA)({instanceId:(0,u.$C)(),state:l.Kn,config:{components:{}},componentState:{},plugins:[],overrides:{},viewports:l.lu,zoomConfig:{autoZoom:1,rootHeight:0,zoom:1},status:"LOADING",iframe:{},_experimentalFullScreenCanvas:!1,_experimentalVirtualization:!1,metadata:{},fieldTransforms:{}},e),{fields:{fields:{},loading:!1,lastResolvedData:{},id:void 0},history:((e,t)=>({initialAppState:{},index:0,histories:[],hasPast:()=>t().history.index>0,hasFuture:()=>t().history.index<t().history.histories.length-1,prevHistory:()=>{let{history:e}=t();
70return e.hasPast()?e.histories[e.index-1]:null},nextHistory:()=>{let e=t().history;return e.hasFuture()?e.histories[e.index+1]:null},currentHistory:()=>t().history.histories[t().history.index],back:()=>{var n;let{history:r,dispatch:i}=t();r.hasPast()&&(i({type:"set",state:rO((null==(n=r.prevHistory())?void 0:n.state)||r.initialAppState)}),e({history:(0,d.ko)((0,d.IA)({},r),{index:r.index-1})}))},forward:()=>{var n;let{history:r,dispatch:i}=t();if(r.hasFuture()){let t=null==(n=r.nextHistory())?void 0:n.state;i({type:"set",state:t?rO(t):{}}),e({history:(0,d.ko)((0,d.IA)({},r),{index:r.index+1})})}},setHistories:n=>{var r;let{dispatch:i,history:o}=t();i({type:"set",state:(null==(r=n[n.length-1])?void 0:r.state)||o.initialAppState}),e({history:(0,d.ko)((0,d.IA)({},o),{histories:n,index:n.length-1})})},setHistoryIndex:n=>{var r;let{dispatch:i,history:o}=t();i({type:"set",state:(null==(r=o.histories[n])?void 0:r.state)||o.initialAppState}),e({history:(0,d.ko)((0,d.IA)({},o),{index:n})})},record:function(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(n=>{let{histories:r,index:i}=t().history,o={state:n,id:(0,u.$C)("history")},s=[...r.slice(0,i+1),o];e({history:(0,d.ko)((0,d.IA)({},t().history),{histories:s,index:s.length-1})})},250)}))(t,n),nodes:((e,t)=>{let n=new Map;return{registerNode:(e,t)=>{n.set(e,t)},unregisterNode:e=>{n.delete(e)},syncNode:e=>{var t;e&&(null==(t=n.get(e))||t.sync())},syncNodes:e=>{e.forEach(e=>{var t;e&&(null==(t=n.get(e))||t.sync())})},setOverlayVisible:(e,t)=>{if(!e)return;let r=n.get(e);if(r){if(t)return void r.showOverlay();r.hideOverlay()}}}})(0,0),permissions:((e,t)=>{let n=(...n)=>(0,d.BU)(null,[...n],function*(n={},r){let{state:i,permissions:o,config:s}=t(),{cache:c,globalPermissions:u}=o,h=(n,r=!1)=>(0,d.BU)(null,null,function*(){var i,o;let{config:s,state:h,setComponentLoading:p}=t(),f=c[n.props.id],g=h.indexes.nodes,m=null==(i=g[n.props.id])?void 0:i.parentId,y=m?g[m]:null,b=null!=(o=null==y?void 0:y.data)?o:null,v="root"===n.type?s.root:s.components[n.type];if(!v)return;let w=(0,d.IA)((0,d.IA)({},u),v.permissions);if(v.resolvePermissions){let i=(0,l.rv)(n,null==f?void 0:f.lastData),o=Object.values(i).some(e=>!0===e),s=(null==f?void 0:f.lastParentId)!==m;if(o||s||r){let r=p(n.props.id,!0,50),o=yield v.resolvePermissions(n,{changed:i,lastPermissions:(null==f?void 0:f.lastPermissions)||null,permissions:w,appState:(0,a.Vg)(h),lastData:(null==f?void 0:f.lastData)||null,parent:b}),s=t().permissions;e({permissions:(0,d.ko)((0,d.IA)({},s),{cache:(0,d.ko)((0,d.IA)({},s.cache),{[n.props.id]:{lastParentId:m,lastData:n,lastPermissions:o}}),resolvedPermissions:(0,d.ko)((0,d.IA)({},s.resolvedPermissions),{[n.props.id]:o})})}),r()}}}),{item:p,type:f,root:g}=n;p?yield h(p,r):f?rN(i,s).filter(e=>e.type===f).map(e=>(0,d.BU)(null,null,function*(){yield h(e,r)})):g?((e=!1)=>{let{state:n}=t();h({type:"root",props:(0,d.ko)((0,d.IA)({},n.data.root.props),{id:"root"})},e)})(r):rN(i,s).map(e=>(0,d.BU)(null,null,function*(){yield h(e,r)}))});return{cache:{},globalPermissions:{drag:!0,edit:!0,delete:!0,duplicate:!0,insert:!0},resolvedPermissions:{},getPermissions:({item:e,type:n,root:r}={})=>{let{config:i,permissions:o}=t(),{globalPermissions:s,resolvedPermissions:a}=o;if(e){let t=i.components[e.type],n=(0,d.IA)((0,d.IA)({},s),null==t?void 0:t.permissions),r=a[e.props.id];return r?(0,d.IA)((0,d.IA)({},s),r):n}if(n){let e=i.components[n];return(0,d.IA)((0,d.IA)({},s),null==e?void 0:e.permissions)}if(r){let e=i.root,t=(0,d.IA)((0,d.IA)({},s),null==e?void 0:e.permissions),n=a.root;return n?(0,d.IA)((0,d.IA)({},s),n):t}return s},resolvePermissions:n,refreshPermissions:e=>n(e,!0)}})(t,n),getCurrentData:()=>{var e;let t=n();return null!=(e=t.selectedItem)?e:t.state.data.root},getComponentConfig:e=>{var t;let{config:r,selectedItem:i}=n(),o=(null==(t=r.root)?void 0:t.fields)||rL;return e&&"root"!==e?r.components[e]:i?r.components[i.type]:(0,d.ko)((0,d.IA)({},r.root),{fields:o})},selectedItem:(null==(r=null==e?void 0:e.state)?void 0:r.ui.itemSelector)?(0,a.Gq)(null==(i=null==e?void 0:e.state)?void 0:i.ui.itemSelector,e.state):null,dispatch:e=>t(t=>{var r,i;let{record:o}=n().history,s=(0,a.vy)({record:o,appStore:t})(t.state,e),l=s.ui.itemSelector?(0,a.Gq)(s.ui.itemSelector,s):null;return null==(i=(r=n()).onAction)||i.call(r,e,s,n().state),(0,d.ko)((0,d.IA)({},t),{state:s,selectedItem:l})}),setZoomConfig:e=>t({zoomConfig:e}),setStatus:e=>t({status:e}),setComponentState:e=>t({componentState:e}),pendingLoadTimeouts:{},setComponentLoading:(e,r=!0,i=0)=>{let{setComponentState:o,pendingLoadTimeouts:s}=n(),a=(0,u.$C)(),l=()=>{var r;let{componentState:i}=n();clearTimeout(c),delete s[a],t({pendingLoadTimeouts:s}),o((0,d.ko)((0,d.IA)({},i),{[e]:(0,d.ko)((0,d.IA)({},i[e]),{loadingCount:Math.max(((null==(r=i[e])?void 0:r.loadingCount)||0)-1,0)})}))},c=setTimeout(()=>{r?(()=>{var t;let{componentState:r}=n();o((0,d.ko)((0,d.IA)({},r),{[e]:(0,d.ko)((0,d.IA)({},r[e]),{loadingCount:((null==(t=r[e])?void 0:t.loadingCount)||0)+1})}
70))})():l(),delete s[a],t({pendingLoadTimeouts:s})},i);return t({pendingLoadTimeouts:(0,d.ko)((0,d.IA)({},s),{[e]:c})}),l},unsetComponentLoading:e=>{let{setComponentLoading:t}=n();t(e,!1)},setUi:(e,n)=>t(t=>{let r=(0,a.vy)({record:()=>{},appStore:t})(t.state,{type:"setUi",ui:e,recordHistory:n}),i=r.ui.itemSelector?(0,a.Gq)(r.ui.itemSelector,r):null;return(0,d.ko)((0,d.IA)({},t),{state:r,selectedItem:i})}),resolveComponentData:(e,t)=>(0,d.BU)(null,null,function*(){var r,i;let{config:o,metadata:s,setComponentLoading:a,permissions:c,state:u}=n(),h="id"in e.props?e.props.id:"root",p=null==(r=u.indexes.nodes[h])?void 0:r.parentId,f=p?u.indexes.nodes[p]:null,g=null!=(i=null==f?void 0:f.data)?i:null,m={};return yield(0,l.kW)(e,o,s,e=>{let t="id"in e.props?e.props.id:"root";m[t]=a(t,!0,50)},e=>(0,d.BU)(null,null,function*(){let t="id"in e.props?e.props.id:"root";"type"in e?yield c.refreshPermissions({item:e}):yield c.refreshPermissions({root:!0}),m[t]()}),t,g)}),resolveAndCommitData:()=>(0,d.BU)(null,null,function*(){let{config:e,state:t,dispatch:r,resolveComponentData:i}=n();(0,u.CS)(t,e,e=>e,(e,t)=>(t.length>1||i(e,"load").then(e=>{let{state:t}=n(),i=t.indexes.nodes[e.node.props.id];if(i&&e.didChange)if("root"===e.node.props.id)r({type:"replaceRoot",root:(e=>{if("type"in e&&"root"!==e.type)throw Error("Converting non-root item to root.");let{readOnly:t}=e;if(e.props){if("id"in e.props){let n=e.props,{id:r}=n;return{props:(0,d.YG)(n,["id"]),readOnly:t}}return{props:e.props,readOnly:t}}return{props:{},readOnly:t}})(e.node)});else{let n=`${i.parentId}:${i.zone}`,o=t.indexes.zones[n].contentIds.indexOf(e.node.props.id);r({type:"replace",data:e.node,destinationIndex:o,destinationZone:n})}}),e))})})})),rz=(0,h.createContext)(rD());function rj(e){let t=(0,h.useContext)(rz);return(0,f.P)(t,e)}function rB(){return(0,h.useContext)(rz)}(0,d.hY)();var rP=(0,h.createContext)({}),r$=()=>(0,h.useContext)(rP);(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var rF={Select:"_Select_xjbef_1","Select-button":"_Select-button_xjbef_6","Select--hasOptions":"_Select--hasOptions_xjbef_19","Select--disabled":"_Select--disabled_xjbef_23","Select-buttonIcon":"_Select-buttonIcon_xjbef_27","Select--standalone":"_Select--standalone_xjbef_33","Select--actionBar":"_Select--actionBar_xjbef_38","Select--hasValue":"_Select--hasValue_xjbef_44","Select-items":"_Select-items_xjbef_61",SelectItem:"_SelectItem_xjbef_72","SelectItem--isSelected":"_SelectItem--isSelected_xjbef_87","SelectItem-icon":"_SelectItem-icon_xjbef_93"};(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var rU=(e,t,n)=>{let r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r};(0,d.hY)();var rH=(e,t,n)=>{let r=Array.from(e);return r.splice(t,1),r.splice(t,0,n),r};(0,d.hY)(),(0,d.hY)(),(0,d.hY)(),(0,d.hY)();var rq=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},rW=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},rK={top:0,right:0,bottom:0,left:0},rY=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?rK:n,i=e.border,o=void 0===i?rK:i,s=e.padding,a=void 0===s?rK:s,l=rq({top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}),c=rq(rW(t,o)),u=rq(rW(c,a));return{marginBox:l,borderBox:rq(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:a}},rV=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),n},rJ=function(e,t){var n={top:rV(t.marginTop),right:rV(t.marginRight),bottom:rV(t.marginBottom),left:rV(t.marginLeft)};return rY({borderBox:e,margin:n,padding:{top:rV(t.paddingTop),right:rV(t.paddingRight),bottom:rV(t.paddingBottom),left:rV(t.paddingLeft)},border:{top:rV(t.borderTopWidth),right:rV(t.borderRightWidth),bottom:rV(t.borderBottomWidth),left:rV(t.borderLeftWidth)}})},rG=function(e){return rJ(e.getBoundingClientRect(),window.getComputedStyle(e))},rZ=e=>{let t=rB();return n=>{let{state:r,zoomConfig:i,setZoomConfig:o}=t.getState(),{viewports:s}=r.ui,a=(null==n?void 0:n.viewports)||s;e.current&&o(((e,t,n)=>{let{width:r,height:i}=rG(t).contentBox,o="auto"===e.height?i:e.height,s=0,a=1;if("number"==typeof e.width&&(e.width>r||o>i)){let t=Math.min(r/e.width,1),l=Math.min(i/o,1);n=t,t<l?s=o/n:(s=o,n=l),a=n}else a=1,n=1,s=o;return{autoZoom:a,rootHeight:s,zoom:n}})(null==a?void 0:a.current,e.current,i.zoom))}},rX=(0,c.d)("Select",rF),rQ=(0,c.d)("SelectItem",rF),r0=({children:e,isSelected:t,onClick:n})=>(0,w.jsx)("button",{className:rQ({isSelected:t}),onClick:n,children:e}),r1=({children:e,options:t,onChange:n,value:r,defaultValue:i,mode:o,disabled:s=!1})=>{let[a,l]=(0,h.useState)(!1),c=t.length>0;return(0,w.jsx)("div",{className:rX({hasValue:r!==i,hasOptions:c,actionBar:"actionBar"===o,standalone:"standalone"===o,disabled:s||!c}),children:(0,w.jsxs)(nh,{open:a,onOpenChange:l,children:[c?(0,w.jsx)(ng,{asChild:!0,children:(0,w.jsxs)("button",{className:rX("button"),children:[(0,w.jsx)("span",{className:rX("buttonIcon"),children:e}),(0,w.jsx)(nP,{size:12})]})}):(0,w.jsx)("div",{children:(0,w.jsxs)("div",{className:rX("button"),children:[(0,w.jsx)("span",{className:rX("buttonIcon"),children:e}),(0,w.jsx)(nP,{size:12})]})}),t.length>0&&(0,w.jsx)(nv,{children:(0,w.jsx)(nx,{align:"start",children:(0,w.jsx)("ul",{className:rX("items"),"data-puck-rte-menu":!0,children:t.map(e=>{let t=e.icon;return(0,w.jsx)("li",{children:(0,w.jsxs)(r0,{isSelected:r===e.value,onClick:()=>{n(e.value),l(!1)},children:[t&&(0,w.jsx)("div",{className:rQ("icon"),children:(0,w.jsx)(t,{size:16})}),e.label]})},e.value)})})})})]})})};function r2({renderDefaultIcon:e,onChange:t,options:n,value:r,defaultValue:i}){var o,s;let{inline:a,readOnly:l}=r$(),c=(0,h.useMemo)(()=>n.reduce((e,t)=>
vendor: 4,407 bytes, line 70
70(0,d.ko)((0,d.IA)({},e),{[t.value]:t}),{}),[n]),u=null!=(s=r&&(null==(o=c[r])?void 0:o.icon))?s:e;return(0,w.jsx)(r1,{options:n,onChange:t,value:r,defaultValue:i,mode:a?"actionBar":"standalone",disabled:l,children:(0,w.jsx)(u,{})})}},92322:(e,t,n)=>{"use strict";function r(e){this.content=e}function i(e){return e>=56320&&e<57344}function o(e){return e>=55296&&e<56320}n.d(t,{S4:()=>H,ZF:()=>X,FK:()=>s,CU:()=>u,sX:()=>$,bP:()=>S,u$:()=>A,vI:()=>d,Sj:()=>F,Ji:()=>h}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return -1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new s(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=a}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,i)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let s=0;;s++){if(s==t.childCount||s==n.childCount)return t.childCount==n.childCount?null:r;let a=t.child(s),l=n.child(s);if(a==l){r+=a.nodeSize;continue}if(!a.sameMarkup(l))return r;if(a.isText&&a.text!=l.text){let e=a.text,t=l.text,n=0;for(;e[n]==t[n];
70n++)r++;return n&&n<e.length&&n<t.length&&o(e.charCodeAt(n-1))&&i(e.charCodeAt(n))&&r--,r}if(a.content.size||l.content.size){let t=e(a.content,l.content,r+1);if(null!=t)return t}r+=a.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,s){for(let a=t.childCount,l=n.childCount;;){if(0==a||0==l)return a==l?null:{a:r,b:s};let c=t.child(--a),u=n.child(--l),d=c.nodeSize;if(c==u){r-=d,s-=d;continue}if(!c.sameMarkup(u))return{a:r,b:s};if(c.isText&&c.text!=u.text){let e=c.text,t=u.text,n=e.length,a=t.length;for(;n>0&&a>0&&e[n-1]==t[a-1];)n--,a--,r--,s--;return n&&a&&n<e.length&&o(e.charCodeAt(n-1))&&i(e.charCodeAt(n))&&(r++,s++),{a:r,b:s}}if(c.content.size||u.content.size){let t=e(c.content,u.content,r-1,s-1);if(t)return t}r-=d,s-=d}}(this,e,t,n)}findIndex(e){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e){if(r==e)return l(t+1,r);return l(t,n)}n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return s.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new s(t||e,n)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);let a={index:0,offset:0};function l(e,t){return a.index=e,a.offset=t,a}function c(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!c(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class u{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return u.none;if(e instanceof u)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}u.none=[];class d extends Error{}class h{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i,o,s){let{index:a,offset:l}=t.findIndex(n),c=t.maybeChild(a);if(l==n||c.isText)return s&&i<=0&&o<=0&&!s.canReplace(a,a,r)?null:t.cut(0,n).append(r).append(t.cut(n));let u=e(c.content,n-l-1,r,0==a?i-1:0,a==t.childCount-1?o-1:0,c);return u&&t.replaceChild(a,c.copy(u))}(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return n&&new h(n,this.openStart,this.openEnd)}removeBetween(e,t){return new h(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),s=t.maybeChild(i),{index:a,offset:l}=t.findIndex(r);if(o==n||s.isText){if(l!=r&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return h.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new h(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new h(e,n,r)}}function p(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.n
vendor: 4,756 bytes, line 70
70ame)}function f(e,t,n){let r=e.node(n);return p(r,t.node(n)),r}function g(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function m(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(g(e.nodeAfter,r),o++));for(let e=o;e<s;e++)g(i.child(e),r);t&&t.depth==n&&t.textOffset&&g(t.nodeBefore,r)}function y(e,t){if(!e.type.validContent(t))throw new d("Invalid content for node "+e.type.name);return e.copy(t)}function b(e,t,n){let r=[];return m(null,e,n,r),e.depth>n&&g(y(f(e,t,n+1),b(e,t,n+1)),r),m(t,null,n,r),new s(r)}h.empty=new h(s.empty,0,0);class v{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return u.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new A(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(n.push(t,e,r+o),!s||(t=t.child(e)).isText)break;i=s-1,r+=o+1}return new v(t,n,i)}static resolveCached(e,t){let n=E.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else E.set(e,n=new w);let r=n.elts[n.i]=v.resolve(e,t);return n.i=(n.i+1)%k,r}}class w{constructor(){this.elts=[],this.i=0}}let k=12,E=new WeakMap;class A{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let _=Object.create(null);class S{constructor(e,t,n,r=u.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}
70textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&c(this.attrs,t||e.defaultAttrs||_)&&u.sameSet(this.marks,n||u.none)}copy(e=null){return e==this.content?this:new S(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new S(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return h.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o);return new h(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(e,t,n){var r=this.resolve(e),i=this.resolve(t);if(n.openStart>r.depth)throw new d("Inserted content deeper than insertion position");if(r.depth-n.openStart!=i.depth-n.openEnd)throw new d("Inconsistent open depths");return function e(t,n,r,i){let o=t.index(i),a=t.node(i);if(o==n.index(i)&&i<t.depth-r.openStart){let s=e(t,n,r,i+1);return a.copy(a.content.replaceChild(o,s))}if(!r.content.size)return y(a,b(t,n,i));if(r.openStart||r.openEnd||t.depth!=i||n.depth!=i){let{start:e,end:o}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(s.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return y(a,function e(t,n,r,i,o){let a=t.depth>o&&f(t,n,o+1),l=i.depth>o&&f(r,i,o+1),c=[];return m(null,t,o,c),a&&l&&n.index(o)==r.index(o)?(p(a,l),g(y(a,e(t,n,r,i,o+1)),c)):(a&&g(y(a,b(t,n,o+1)),c),m(n,r,o,c),l&&g(y(l,b(r,i,o+1)),c)),m(i,null,o,c),new s(c)}(t,e,o,n,i))}{let e=t.parent,i=e.content;return y(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,i,n,0)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return v.resolveCached(this,e)}resolveNoCache(e){return v.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),C(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=u.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!u.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
70e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}}S.prototype.text=void 0;class M extends S{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):C(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new M(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new M(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function C(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class O{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,i=new T(e,t);if(null==i.next)return O.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=N(e),r=n;return e.eat(",")&&(r="}"!=e.next?N(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let s=e(t.exprs[r],o);if(r==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){let s=n();return r(o,s),i(e(t.expr,s),s),[r(s)]}else if("plus"==t.type){let s=n();return i(e(t.expr,o),s),i(e(t.expr,s),s),[r(s)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,s),r),s=r}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;o++){let o=n();r(s,o),i(e(t.expr,s),o),s=o}return[r(s)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(r=i[t][1]);R(n,t).forEach(t=>{r||i.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let o=r[t.join(",")]=new O(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(I);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}(R(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}
vendor: 4,607 bytes, line 70
70matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,a){let l=o.matchFragment(e,n);if(l&&(!t||l.validEnd))return s.from(a.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:n}=o.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=i(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}O.empty=new O(!0);class T{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function N(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function I(e,t){return t-e}function R(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(I)}function L(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function D(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function z(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function j(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new P(e,r,t[r]);return n}class B{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=j(e,n.attrs),this.defaultAttrs=L(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==O.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:D(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new S(this,this.computeAttrs(e),s.from(t),u.setFrom(n))}createChecked(e=null,t,n){return t=s.from(t),this.checkContent(t),new S(this,this.computeAttrs(e),t,u.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=s.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(s.empty,!0);return i?new S(this,e,t.append(i),u.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
70if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){z(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:u.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new B(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class P{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class ${constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=j(e,r.attrs),this.excluded=null;let i=L(this.attrs);this.instance=i?new u(this,i):null}create(e=null){return!e&&this.instance?this.instance:new u(this,D(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new $(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){z(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class F{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=B.compile(this.spec.nodes,this),this.marks=$.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=O.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?U(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:U(this,n.split(" "))}this.nodeFromJSON=e=>S.fromJSON(this,e),this.markFromJSON=e=>u.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof B){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new M(n,n.defaultAttrs,e,u.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function U(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class H{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];
70t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new J(this,t,!1);return n.addAll(e,u.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new J(this,t,!0);return n.addAll(e,u.none,t.from,t.to),h.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=e,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=G(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=G(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new H(e,H.schemaRules(e)))}}let q={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},W={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},K={ol:!0,ul:!0};function Y(e,t,n){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&n}class V{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=u.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class J{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=Y(null,t.preserveWhitespace,0)|4*!!n;i=r?new V(r.type,r.attrs,u.none,!0,t.topMatch||r.type.contentMatch,o):n?new V(null,null,u.none,!0,null,o):new V(e.schema.topNodeType,null,u.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:o}=this.parser;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if("full"===i)n=n.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(o.text(e[n]),t,!/\S/.test(e[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;K.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&K.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));r:if(a?a.ignore:W.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(q.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break r}let s=a&&a.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;
vendor: 4,107 bytes, line 70
70if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+o)&&(r=a,i=s,!a.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=u.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Z(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=Y(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let a=u.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!Z(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new V(e,t,a,r,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
70if(t.isTextblock&&t.defaultAttrs)return t}}}function G(e){let t={};for(let n in e)t[n]=e[n];return t}function Z(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class X{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=ee(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return ee(t).createTextNode(e.text);let{dom:n,contentDOM:r}=en(ee(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&en(ee(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return"string"==typeof t?{dom:e.createTextNode(t)}:en(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new X(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Q(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Q(e.marks)}}function Q(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ee(e){return e.document||window.document}let et=new WeakMap;function en(e,t,n,r){let i,o,s;if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let a=t[0],l;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=et.get(r))&&et.set(r,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let n=0;n<t.length;n++)e(t[n]);else for(let n in t)e(t[n])}(r),o=s)),l=o)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=a.indexOf(" ");c>0&&(n=a.slice(0,c),a=a.slice(c+1));let u=n?e.createElementNS(n,a):e.createElement(a),d=t[1],h=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in h=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&u.style?u.style.cssText=d[e]:u.setAttribute(e,d[e])}}for(let o=h;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>h)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}if("string"==typeof s)u.appendChild(e.createTextNode(s));else{let{dom:t,contentDOM:o}=en(e,s,n,r);if(u.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:u,contentDOM:i}}},93145:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});var r=n(91960),i=n(74844),o=n(12115);(0,i.hY)();var s={h1:{label:"Heading 1",icon:r._},h2:{label:"Heading 2",icon:r.fV},h3:{label:"Heading 3",icon:r._B},h4:{label:"Heading 4",icon:r.f_},h5:{label:"Heading 5",icon:r.mM},h6:{label:"Heading 6",icon:r.TT}},a=e=>{var t;let n=[];return(null==e?void 0:e.heading)!==!1&&((null==(t=null==e?void 0:e.heading)?void 0:t.levels)?((null==e?void 0:e.heading.levels.includes(1))&&n.push("h1"),(null==e?void 0:e.heading.levels.includes(2))&&n.push("h2"),(null==e?void 0:e.heading.levels.includes(3))&&n.push("h3"),(null==e?void 0:e.heading.levels.includes(4))&&n.push("h4"),(null==e?void 0:e.heading.levels.includes(5))&&n.push("h5"),(null==e?void 0:e.heading.levels.includes(6))&&n.push("h6")):n=["h1","h2","h3","h4","h5","h6"]),(0,o.useMemo)(()=>n.map(e=>({value:e,label:s[e].label,icon:s[e].icon})),[n])}}
70,93499:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},93759:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(8624).ay},93777:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(51798),i=n(76908),o=n(51876),s=n(32806),a=n(49418);function l(e){return e.value||e.children||[]}function c({doc:e,name:t,lowlight:n,defaultLanguage:r}){let o=[];return(0,i.xe)(e,e=>e.type.name===t).forEach(e=>{var t;let i=e.pos+1,c=e.node.attrs.language||r,u=n.listLanguages();(function e(t,n=[]){return t.flatMap(t=>{let r=[...n,...t.properties?t.properties.className:[]];return t.children?e(t.children,r):{text:t.value,classes:r}})})(c&&(u.includes(c)||a.A.getLanguage(c)||(null==(t=n.registered)?void 0:t.call(n,c)))?l(n.highlight(c,e.node.textContent)):l(n.highlightAuto(e.node.textContent))).forEach(e=>{let t=i+e.text.length;if(e.classes.length){let n=s.NZ.inline(i,t,{class:e.classes.join(" ")});o.push(n)}i=t})}),s.zF.create(e,o)}var u=r.NG.extend({addOptions(){var e;return{...null==(e=this.parent)?void 0:e.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){var e;return[...(null==(e=this.parent)?void 0:e.call(this))||[],function({name:e,lowlight:t,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(e=>"function"==typeof t[e]))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");let r=new o.k_({key:new o.hs("lowlight"),state:{init:(r,{doc:i})=>c({doc:i,name:e,lowlight:t,defaultLanguage:n}),apply:(r,o,s,a)=>{let l=s.selection.$head.parent.type.name,u=a.selection.$head.parent.type.name,d=(0,i.xe)(s.doc,t=>t.type.name===e),h=(0,i.xe)(a.doc,t=>t.type.name===e);return r.docChanged&&([l,u].includes(e)||h.length!==d.length||r.steps.some(e=>void 0!==e.from&&void 0!==e.to&&d.some(t=>t.pos>=e.from&&t.pos+t.node.nodeSize<=e.to)))?c({doc:r.doc,name:e,lowlight:t,defaultLanguage:n}):o.map(r.mapping,r.doc)}},props:{decorations:e=>r.getState(e)}});return r}({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}})},94905: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))}e.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 n=this._timeouts.shift();if(void 0===n)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),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 n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._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,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],o=i.message,s=(e[o]||0)+1;e[o]=s,s>=n&&(t=i,n=s)}return t}},95740:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},96420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("subscript",[["path",{d:"m4 5 8 8",key:"1eunvl"}],["path",{d:"m12 5-8 8",key:"1ah0jp"}],["path",{d:"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",key:"e8ta8j"}]])}
70,96548:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]])},97150:(e,t,n)=>{"use strict";let r;n.d(t,{Nj:()=>R,PM:()=>L,XU:()=>N,uF:()=>I,zM:()=>G});var i,o,s,a,l,c=n(12115),u=n(46033),d=n(85582),h=n(65344),p=n(27628),f=n(95155),g=n(29790),m=n(10831),y=Object.defineProperty,b=Object.defineProperties,v=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,A=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&A(e,n,t[n]);if(w)for(var n of w(t))E.call(t,n)&&A(e,n,t[n]);return e},S=(e,t)=>b(e,v(t)),M=new u.ti,C=(0,c.createContext)(M),O=(0,c.memo)((0,c.forwardRef)(({children:e},t)=>{let[n,r]=(0,c.useState)(0),i=(0,c.useRef)(null),o=(0,c.useRef)(null),s=(0,c.useMemo)(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),(0,c.startTransition)(()=>{e(),r(e=>e+1)})}}),[]);return(0,d.Es)(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,n]),(0,c.useImperativeHandle)(t,()=>s),null})),T=[void 0,h.bD];function N(e){var t,{children:n,onCollision:r,onBeforeDragStart:i,onDragStart:o,onDragMove:s,onDragOver:a,onDragEnd:l}=e,h=((e,t)=>{var n={};for(var r in e)k.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&w)for(var r of w(e))0>t.indexOf(r)&&E.call(e,r)&&(n[r]=e[r]);return n})(e,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);let p=(0,c.useRef)(null),[g,m]=(0,c.useState)(null!=(t=h.manager)?t:null),{plugins:y,modifiers:b,sensors:v}=h,A=(0,d.FT)(i),_=(0,d.FT)(o),S=(0,d.FT)(a),M=(0,d.FT)(s),N=(0,d.FT)(l),I=(0,d.FT)(r);return(0,c.useEffect)(()=>{var e;if(!p.current)throw Error("Renderer not found");let{renderer:t,trackRendering:n}=p.current,r=null!=(e=h.manager)?e:new u.ti(h);return r.renderer=t,r.monitor.addEventListener("beforedragstart",e=>{let t=A.current;t&&n(()=>t(e,r))}),r.monitor.addEventListener("dragstart",e=>{var t;return null==(t=_.current)?void 0:t.call(_,e,r)}),r.monitor.addEventListener("dragover",e=>{let t=S.current;t&&n(()=>t(e,r))}),r.monitor.addEventListener("dragmove",e=>{let t=M.current;t&&n(()=>t(e,r))}),r.monitor.addEventListener("dragend",e=>{let t=N.current;t&&n(()=>t(e,r))}),r.monitor.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,r)}),(0,c.startTransition)(()=>m(r)),r.destroy},[h.manager]),(0,d.CH)(y,()=>g&&(g.plugins=null!=y?y:u.FS.plugins),...T),(0,d.CH)(v,()=>g&&(g.sensors=null!=v?v:u.FS.sensors),...T),(0,d.CH)(b,()=>g&&(g.modifiers=null!=b?b:u.FS.modifiers),...T),(0,f.jsxs)(C.Provider,{value:g,children:[(0,f.jsx)(O,{ref:p,children:n}),n]})}function I(){return(0,c.useContext)(C)}function R(e){var t;let n=null!=(t=I())?t:void 0,[r]=(0,c.useState)(()=>e(n));return r.manager!==n&&(r.manager=n),(0,d.Es)(r.register,[n,r]),r}function L(e){let{disabled:t,data:n,element:r,handle:i,id:o,modifiers:s,sensors:a}=e,l=R(t=>new u.sx(S(_({},e),{register:!1,handle:(0,g.b)(i),element:(0,g.b)(r)}),t)),p=(0,d.MS)(l,D);return(0,d.CH)(o,()=>l.id=o),(0,d.T_)(i,e=>l.handle=e),(0,d.T_)(r,e=>l.element=e),(0,d.CH)(n,()=>n&&(l.data=n)),(0,d.CH)(t,()=>l.disabled=!0===t),(0,d.CH)(a,()=>l.sensors=a),(0,d.CH)(s,()=>l.modifiers=s,void 0,h.bD),(0,d.CH)(e.feedback,()=>{var t;return l.feedback=null!=(t=e.feedback)?t:"default"}),(0,d.CH)(e.alignment,()=>l.alignment=e.alignment),{draggable:p,get isDragging(){return p.isDragging},get isDropping(){return p.isDropping},get isDragSource(){return p.isDragSource},handleRef:(0,c.useCallback)(e=>{l.handle=null!=e?e:void 0},[l]),ref:(0,c.useCallback)(e=>{var t,n;(e||null==(t=l.element)||!t.isConnected||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function D(e,t,n){return"isDragSource"===e&&!n&&!!t}var z=Object.create,j=Object.defineProperty,B=Object.getOwnPropertyDescriptor,P=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$=e=>{throw TypeError(e)},F=["class","method","getter","setter","accessor","field","value","get","set"],U=e=>void 0!==e&&"function"!=typeof e?$("Function expected"):e,H=(e,t,n,r,i)=>({kind:F[e],name:t,metadata:r,addInitializer:e=>n._?$("Already initialized"):i.push(U(e||null))}),q=(e,t,n,r,i,o)=>{for(var s,a,l,c=7&t,u=F[c+5],d=e[2]||(e[2]=[]),h=B(i=i.prototype,n),p=r.length-1;p>=0;p--)(l=H(c,n,a={},e[3],d)).static=!1,l.private=!1,(l.access={has:e=>n in e}).get=e=>e[n],s=(0,r[p])(h[u],l),a._=1,U(s)&&(h[u]=s);return h&&j(i,n,h),i},W=(e,t,n)=>t.has(e)||$("Cannot "+n),K=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Y=class extends(s=h.Wf,o=[h.un],i=[h.un],s){constructor(e){super(K.from(e),(e,t)=>K.equals(e,t)),((e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)o[i].call(n)})(l,5,this),((e,t,n)=>t.has(e)?$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n))(this,a,0),this.velocity={x:0,y:0}}get delta(){return K.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){let t,{current:n}=this,r=K.from(e),i={x:r.x-n.x,y:r.y-n.y},o=Date.now(),s=o-(W(this,t=a,"read from private field"),t.get(this)),l=e=>Math.round(e/s*100);(0,p.vA)(()=>{let e;W(this,e=a,"write to private field"),e.set(this,o),this.velocity={x:l(i.x),y:l(i.y)},super.current=r})}reset(e=this.defaultValue){super.reset(K.from(e)),this.velocity={x:0,y:0}}};l=(e=>{var t;return[,,,z(null!=(t=null==e?void 0:e[P("metadata")])?t:null)]})(s),a=new WeakMap,q(l,2,"delta",o,Y),q(l,2,"direction",i,Y),r=l,((e,t,n
70)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(Y,P("metadata"),r[3]);var V=(e=>(e.Horizontal="x",e.Vertical="y",e))(V||{});Object.values(V);var J=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/K.distance(t.shape.center,n),type:m.Bp.PointerIntersection,priority:m.zY.High}:null})(e))?t:(({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,o=K.distance(t.shape.center,i.current),s=r/(n.current.area+t.shape.area-r);return{id:t.id,value:s/o,type:m.Bp.ShapeIntersection,priority:m.zY.Normal}}return null})(e)};function G(e){let{collisionDetector:t,data:n,disabled:r,element:i,id:o,accept:s,type:a}=e,l=R(t=>new u.gL(S(_({},e),{register:!1,element:(0,g.b)(i)}),t)),p=(0,d.MS)(l);return(0,d.CH)(o,()=>l.id=o),(0,d.T_)(i,e=>l.element=e),(0,d.CH)(s,()=>l.accept=s,void 0,h.bD),(0,d.CH)(t,()=>l.collisionDetector=null!=t?t:J),(0,d.CH)(n,()=>n&&(l.data=n)),(0,d.CH)(r,()=>l.disabled=!0===r),(0,d.CH)(a,()=>l.type=a),{droppable:p,get isDropTarget(){return p.isDropTarget},ref:(0,c.useCallback)(e=>{var t,n;(e||null==(t=l.element)||!t.isConnected||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}},97239:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},97378:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},97947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},99708:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])}}]);
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.