PageSourceSearch

https://apparglobal.com/_next/static/chunks/5621.d3700d0b2b3ad149.js

js apparglobal.com collected 2026-10-04 04:58:20 UTC 403,396 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5621],{113:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},861:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>l,bL:()=>a});var r=n(12115),i=n(97602),o=n(95155),l=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...l,...e.style}}));s.displayName="VisuallyHidden";var a=s},2262:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,Q:()=>a});var r=n(44804),i=n(15958),o=n(38789),l=n(92529);let s=(0,n(45572).A)("quill:selection");class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}class u{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new a(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,l.A.sources.USER),1)}),this.emitter.on(l.A.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let e=this.getNativeRange();null!=e&&e.start.node!==this.cursor.textNode&&this.emitter.once(l.A.events.SCROLL_UPDATE,(t,n)=>{try{this.root.contains(e.start.node)&&this.root.contains(e.end.node)&&this.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);let r=n.some(e=>"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===this.root);this.update(r?l.A.sources.SILENT:t)}catch(e){}})}),this.emitter.on(l.A.events.SCROLL_OPTIMIZE,(e,t)=>{if(t.range){let{startNode:e,startOffset:n,endNode:r,endOffset:i}=t.range;this.setNativeRange(e,n,r,i),this.update(l.A.sources.SILENT)}}),this.update(l.A.sources.SILENT)}handleComposition(){this.emitter.on(l.A.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(l.A.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let e=this.cursor.restore();e&&setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(l.A.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();let n=this.getNativeRange();if(!(null==n||!n.native.collapsed||this.scroll.query(e,r.Scope.BLOCK))){if(n.start.node!==this.cursor.textNode){let e=this.scroll.find(n.start.node,!1);if(null==e)return;if(e instanceof r.LeafBlot){let t=e.split(n.start.offset);e.parent.insertBefore(this.cursor,t)}else e.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.scroll.length();r=Math.min((e=Math.min(e,i-1))+r,i-1)-e;let[o,l]=this.scroll.leaf(e);if(null==o)return null;if(r>0&&l===o.length()){let[t]=this.scroll.leaf(e+1);if(t){let[n]=this.scroll.line(e),[r]=this.scroll.line(e+1);n===r&&(o=t,l=0)}}[t,l]=o.position(l,!0);let s=document.createRange();if(r>0)return(s.setStart(t,l),[o,l]=this.scroll.leaf(e+r),null==o)?null:([t,l]=o.position(l,!0),s.setEnd(t,l),s.getBoundingClientRect());let a="left";if(t instanceof Text){if(!t.data.length)return null;l<t.data.length?(s.setStart(t,l),s.setEnd(t,l+1)):(s.setStart(t,l-1),s.setEnd(t,l),a="right"),n=s.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;n=o.domNode.getBoundingClientRect(),l>0&&(a="right")}return{bottom:n.top+n.height,height:n.height,left:n[a],right:n[a],top:n.top,width:0}}getNativeRange(){let e=document.getSelection();if(null==e||e.rangeCount<=0)return null;let t=e.getRangeAt(0);if(null==t)return null;let n=this.normalizeNative(t);return s.info("getNativeRange",n),n}getRange(){let e=this.scroll.domNode;
1if("isConnected"in e&&!e.isConnected)return[null,null];let t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&c(this.root,document.activeElement)}normalizedToRange(e){let t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);let n=t.map(e=>{let[t,n]=e,i=this.scroll.find(t,!0),o=i.offset(this.scroll);return 0===n?o:i instanceof r.LeafBlot?o+i.index(t,n):o+i.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),o=Math.min(i,...n);return new a(o,i-o)}normalizeNative(e){if(!c(this.root,e.startContainer)||!e.collapsed&&!c(this.root,e.endContainer))return null;let t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(e=>{let{node:t,offset:n}=e;for(;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else if(t.childNodes.length===n)n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1;else break;e.node=t,e.offset=n}),t}rangeToNative(e){let t=this.scroll.length(),n=(e,n)=>{e=Math.min(t-1,e);let[r,i]=this.scroll.leaf(e);return r?r.position(i,n):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(s.info("setNativeRange",e,t,n,r),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==n.parentNode))return;let o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(null==l||i||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||r!==l.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);let i=document.createRange();i.setStart(e,t),i.setEnd(n,r),o.removeAllRanges(),o.addRange(i)}}else o.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.A.sources.API;if("string"==typeof t&&(n=t,t=!1),s.info("setRange",e),null!=e){let n=this.rangeToNative(e);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.A.sources.USER,t=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,i.A)(t,this.lastRange)){if(!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode){let e=this.cursor.restore();e&&this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}let n=[l.A.events.SELECTION_CHANGE,(0,o.A)(this.lastRange),(0,o.A)(t),e];this.emitter.emit(l.A.events.EDITOR_CHANGE,...n),e!==l.A.sources.SILENT&&this.emitter.emit(...n)}}}function c(e,t){try{t.parentNode}catch(e){return!1}return e.contains(t)}let d=u},2337:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(44804),i=n(80916);class o extends r.EmbedBlot{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(e,t){if(0!==this.savedLength)return void super.format(e,t);let n=this,i=0;for(;null!=n&&n.statics.scope!==r.Scope.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=o.CONTENTS.length,n.optimize(),n.formatAt(i,o.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){let e;if(this.selection.composing||null==this.parent)return null;let t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let n=this.prev instanceof i.A?this.prev:null,r=n?n.length():0,l=this.next instanceof i.A?this.next:null,s=l?l.text:"",{textNode:a}=this,u=a.data.split(o.CONTENTS).join("");if(a.data=o.CONTENTS,n)e=n,(u||l)&&(n.insertAt(n.length(),u+s),l&&l.remove());else if(l)e=l,l.insertAt(0,u);else{let t=document.createTextNode(u);e=this.scroll.create(t),this.parent.insertBefore(e,this)}if(this.remove(),t){let i=(e,t)=>n&&e===n.domNode?t:e===a?r+t-1:l&&e===l.domNode?r+u.length+t:null,o=i(t.start.node,t.start.offset),s=i(t.end.node,t.end.offset);if(null!==o&&null!==s)return{startNode:e.domNode,startOffset:o,endNode:e.domNode,endOffset:s}}return null}update(e,t){if(e.some(e=>
1"characterData"===e.type&&e.target===this.textNode)){let e=this.restore();e&&(t.range=e)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if("A"===t.domNode.tagName){this.savedLength=o.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}}let l=o},4573:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(62308).A.Uint8Array},5225:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("FileText",[["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"}]])},5358:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(113),i=n(64536);let o=function(e,t,n){var o=t(e);return(0,i.A)(e)?o:(0,r.A)(o,n(e))}},5468:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("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"}]])},7870:(e,t,n)=>{"use strict";n.d(t,{H4:()=>b,_V:()=>y,bL:()=>m});var r=n(12115),i=n(3468),o=n(70222),l=n(4129),s=n(97602),a=n(95155),u="Avatar",[c,d]=(0,i.A)(u),h=[0,()=>void 0],[f,p]=c(u),m=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...i}=e,[o,l]=r.useState("idle"),[u,c]=function(){let e=h;{let[t]=e=r.useState(0),n=r.useRef(!1);r.useEffect(()=>{t>1&&!n.current&&(n.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}();return(0,a.jsx)(f,{scope:n,imageLoadingStatus:o,setImageLoadingStatus:l,imageCount:u,setImageCount:c,children:(0,a.jsx)(s.sG.span,{...i,ref:t})})});m.displayName=u;var g="AvatarImage",y=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:i,onLoadingStatusChange:u,...c}=e,d=p(g,n);!function(e){r.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}(d.setImageCount);let h=function(e,t){let{loadingStatus:n,setLoadingStatus:r,referrerPolicy:i,crossOrigin:o}=t;return(0,l.N)(()=>{if(!e)return void r("error");let t=new window.Image,n=e=>{r(A(e.currentTarget))},l=()=>r("error");return t.addEventListener("load",n),t.addEventListener("error",l),i&&(t.referrerPolicy=i),t.crossOrigin=null!=o?o:null,t.src=e,r(A(t)),()=>{t.removeEventListener("load",n),t.removeEventListener("error",l),r("idle")}},[e,o,i,r]),n}(i,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:d.imageLoadingStatus,setLoadingStatus:d.setImageLoadingStatus}),f=(0,o.c)(e=>{null==u||u(e)}),m=r.useRef(h);return(0,l.N)(()=>{let e=m.current;m.current=h,h!==e&&f(h)},[h,f]),"loaded"===h?(0,a.jsx)(s.sG.img,{...c,ref:t,src:i}):null});y.displayName=g;var v="AvatarFallback",b=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:i,...o}=e,l=p(v,n),[u,c]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),u&&"loaded"!==l.imageLoadingStatus?(0,a.jsx)(s.sG.span,{...o,ref:t}):null});function A(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}b.displayName=v},9484:(e,t,n)=>{"use strict";n.d(t,{C1:()=>w,bL:()=>A});var r=n(12115),i=n(3468),o=n(97602),l=n(95155),s="Progress",[a,u]=(0,i.A)(s),[c,d]=a(s),h=r.forwardRef((e,t)=>{var n,r,i,s;let{__scopeProgress:a,value:u=null,max:d,getValueLabel:h=m,...f}=e;(d||0===d)&&!v(d)&&console.error((n="".concat(d),r="Progress","Invalid prop `max` of value `".concat(n,"` supplied to `").concat(r,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let p=v(d)?d:100;null===u||b(u,p)||console.error((i="".concat(u),s="Progress","Invalid prop `value` of value `".concat(i,"` supplied to `").concat(s,"`. The `value` prop must be:\n  - a positive number\n  - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n  - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let A=b(u,p)?u:null,w=y(A)?h(A,p):void 0;return(0,l.jsx)(c,{scope:a,value:A,max:p,children:(0,l.jsx)(o.sG.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":y(A)?A:void 0,"aria-valuetext":w,role:"progressbar","data-state":g(A,p),"data-value":null!=A?A:void 0,"data-max":p,...f,ref:t})})});h.displayName=s;var f="ProgressIndicator",p=r.forwardRef((e,t)=>
1{var n;let{__scopeProgress:r,...i}=e,s=d(f,r);return(0,l.jsx)(o.sG.div,{"data-state":g(s.value,s.max),"data-value":null!=(n=s.value)?n:void 0,"data-max":s.max,...i,ref:t})});function m(e,t){return"".concat(Math.round(e/t*100),"%")}function g(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function v(e){return y(e)&&!isNaN(e)&&e>0}function b(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}p.displayName=f;var A=h,w=p},10454:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},10489:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(12115),i=n(97602),o=n(95155),l=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var s=l},11064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},11331:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},12036:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},13630:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Trash2",[["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"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},14432:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r,i,o=n(71450),l=n(12115),s="right-scroll-bar-position",a="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,d=new WeakMap;function h(e){return e}var f=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=h),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)},l=function(){return Promise.resolve().then(o)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return i.options=(0,o.Cl)({async:!0,ssr:!1},e),i}(),p=function(){},m=l.forwardRef(function(e,t){var n,r,i,s,a=l.useRef(null),h=l.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),m=h[0],g=h[1],y=e.forwardProps,v=e.children,b=e.className,A=e.removeScrollBar,w=e.enabled,x=e.shards,E=e.sideCar,N=e.noRelative,k=e.noIsolation,S=e.inert,C=e.allowPinchZoom,T=e.as,O=e.gapMode,_=(0,o.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[a,t],r=function(e){return n.forEach(function(t){return u(t,e)})},(i=(0,l.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,s=i.facade,c(function(){var e=d.get(s);if(e){var t=new Set(e),r=new Set(n),i=s.current;t.forEach(function(e){r.has(e)||u(e,null)}),r.forEach(function(e){t.has(e)||u(e,i)})}d.set(s,n)},[n]),s),R=(0,o.Cl)((0,o.Cl)({},_),m);return l.createElement(l.Fragment,null,w&&l.createElement(E,{sideCar:f,removeScrollBar:A,shards:x,noRelative:N,noIsolation:k,inert:S,setCallbacks:g,allowPinchZoom:!!C,lockRef:a,gapMode:O}),y?l.cloneElement(l.Children.only(v),(0,o.Cl)((0,o.Cl)({},R),{ref:L})):l.createElement(void 0===T?"div":T,(0,o.Cl)({},R,{className:b,ref:L}),v))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:a,zeroRight:s};
1var g=function(e){var t=e.sideCar,n=(0,o.Tt)(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 l.createElement(r,(0,o.Cl)({},n))};g.isSideCarExport=!0;var y=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=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v=function(){var e=y();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=v();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},x=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[w(n),w(r),w(i)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A;var t=x(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])}},N=b(),k="data-scroll-locked",S=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(k,"] {\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(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(s," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(a," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(k,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},C=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},T=function(){l.useEffect(function(){return document.body.setAttribute(k,(C()+1).toString()),function(){var e=C()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;T();var o=l.useMemo(function(){return E(i)},[i]);return l.createElement(N,{styles:S(o,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var L=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch(e){_=!1}var R=!!_&&{passive:!1},j=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])},M=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),q(e,r)){var i=I(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},q=function(e,t){return"v"===e?j(t,"overflowY"):j(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,l=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=l*r,a=n.target,u=t.contains(a),c=!1,d=s>0,h=0,f=0;do{if(!a)break;var p=I(e,a),m=p[0],g=p[1]-p[2]-l*m;(m||g)&&q(e,a)&&(h+=g,f+=m);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},P=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},F=0,H=[];let z=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(F++)[0],s=l.useState(b)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,o.fX)([e.lockRef.current],(e.shards||[]).map(U),!0).filter(
1Boolean);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 u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=P(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-o[0],u="deltaY"in e?e.deltaY:l[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var p=M(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=M(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var m=r.current||i;return D(m,t,e,"h"===m?s:u,!0)},[]),c=l.useCallback(function(e){if(H.length&&H[H.length-1]===s){var n="deltaY"in e?B(e):P(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=(a.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=l.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)},[]),h=l.useCallback(function(e){n.current=P(e),r.current=void 0},[]),f=l.useCallback(function(t){d(t.type,B(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){d(t.type,P(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return H.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,R),document.addEventListener("touchmove",c,R),document.addEventListener("touchstart",h,R),function(){H=H.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,R),document.removeEventListener("touchmove",c,R),document.removeEventListener("touchstart",h,R)}},[]);var m=e.removeScrollBar,g=e.inert;return l.createElement(l.Fragment,null,g?l.createElement(s,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?l.createElement(O,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},f.useMedium(r),g);var K=l.forwardRef(function(e,t){return l.createElement(m,(0,o.Cl)({},e,{ref:t,sideCar:z}))});K.classNames=m.classNames;let W=K},14875:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(35582),i=n(11331);let o=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var l=Object.prototype,s=l.hasOwnProperty,a=l.propertyIsEnumerable;let u=o(function(){return arguments}())?o:function(e){return(0,i.A)(e)&&s.call(e,"callee")&&!a.call(e,"callee")}},15041:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(46778);let i=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},15168:(e,t,n)=>{e=n.nmd(e);var r,i,o="__lodash_hash_undefined__",l="[object Arguments]",s="[object Array]",a="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]",A="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[l]=N[s]=N[A]=N[a]=N[w]=N[u]=N[c]=N[d]=N[h]=N[f]=N[p]=N[g]=N[y]=N[v]=N[b]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,C=k||S||Function("return this")(),T=t&&!t.nodeType&&t,O=T&&e&&!e.nodeType&&e,_=O&&O.exports===T,L=_&&k.process,R=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),j=R&&R.isTypedArray;function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var I=Array.prototype,D=Function.prototype,P=Object.prototype,B=C["__core-js_shared__"],U=D.toString,F=P.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||"");
1return e?"Symbol(src)_1."+e:""}(),z=P.toString,K=RegExp("^"+U.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=_?C.Buffer:void 0,G=C.Symbol,$=C.Uint8Array,V=P.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=(r=Object.keys,i=Object,function(e){return r(i(e))}),ee=eN(C,"DataView"),et=eN(C,"Map"),en=eN(C,"Promise"),er=eN(C,"Set"),ei=eN(C,"WeakMap"),eo=eN(Object,"create"),el=eC(ee),es=eC(et),ea=eC(en),eu=eC(er),ec=eC(ei),ed=G?G.prototype:void 0,eh=ed?ed.valueOf:void 0;function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ep(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function em(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new em;++t<n;)this.add(e[t])}function ey(e){var t=this.__data__=new ep(e);this.size=t.size}function ev(e,t){for(var n=e.length;n--;)if(eT(e[n][0],t))return n;return -1}function eb(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=F.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var i=z.call(e);return r&&(t?e[X]=n:delete e[X]),i}(e):(t=e,z.call(t))}function eA(e){return eq(e)&&eb(e)==l}function ew(e,t,n,r,i,o){var l=1&n,s=e.length,a=t.length;if(s!=a&&!(l&&a>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,h=2&n?new eg:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var f=e[c],p=t[c];if(r)var m=l?r(p,f,c,t,e,o):r(f,p,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||i(f,e,n,r,o)))return h.push(t)})){d=!1;break}}else if(!(f===p||i(f,p,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function ex(e){var t;return t=eD(e),e_(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,ek(e))}function eE(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function eN(e,t){var n,r=null==e?void 0:e[t];return!(!eM(r)||(n=r,H&&H in n))&&(eR(r)?K:x).test(eC(r))?r:void 0}ef.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},ef.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ef.prototype.get=function(e){var t=this.__data__;if(eo){var n=t[e];return n===o?void 0:n}return F.call(t,e)?t[e]:void 0},ef.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:F.call(t,e)},ef.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=eo&&void 0===t?o:t,this},ep.prototype.clear=function(){this.__data__=[],this.size=0},ep.prototype.delete=function(e){var t=this.__data__,n=ev(t,e);return!(n<0)&&(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,!0)},ep.prototype.get=function(e){var t=this.__data__,n=ev(t,e);return n<0?void 0:t[n][1]},ep.prototype.has=function(e){return ev(this.__data__,e)>-1},ep.prototype.set=function(e,t){var n=this.__data__,r=ev(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(et||ep),string:new ef}},em.prototype.delete=function(e){var t=eE(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return eE(this,e).get(e)},em.prototype.has=function(e){return eE(this,e).has(e)},em.prototype.set=function(e,t){var n=eE(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},eg.prototype.add=eg.prototype.push=function(e){return this.__data__.set(e,o),this},eg.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.clear=function(){this.__data__=new ep,this.size=0},ey.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ey.prototype.get=function(e){return this.__data__.get(e)},ey.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ep){var r=n.__data__;if(!et||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new em(r)}return n.set(e,t),this.size=n.size,this};var ek=Z?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[i++]=l)}return o}(Z(e=Object(e)),function(t){return V.call(e,t)})}:function(){return[]},eS=eb;function eC(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eT(e,t){return e===t||e!=e&&t!=t}(ee&&eS(new ee(new ArrayBuffer(1)))!=w||et&&eS(new et)!=h||en&&eS(en.resolve())!=m||er&&eS(new er)!=y||ei&&eS(new ei)!=b)&&(eS=function(e){var t=eb(e),n=t==p?e.constructor:void 0,r=n?eC(n):"";if(r)switch(r){case el:return w;case es:return h;case ea:return m;case eu:return y;case ec:return b}return t});var eO=eA(function(){return arguments}())?eA:function(e){return eq(e)&&F.call(e,"callee")&&!V.call(e,"callee")},e_=Array.isArray,eL=J||function(){return!1};function eR(e){if(!eM(e))return!1;var t=eb(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ej(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eq(e){return null!=e&&"object"==typeof e}var eI=j?function(e){return j(e)}:function(e){return eq(e)&&ej(e.length)&&!!N[eb(e)]};function eD(e){return null!=e&&ej(e.length)&&!eR(e)?function(e,t){var n,r,i=e_(e),o=!i&&eO(e),l=!i&&!o&&eL(e),s=!i&&!o&&!l&&eI(e),a=i||o||l||s,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=u.length;for(var d in e){F.call(e,d)&&!(a&&("length"==d||l&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(n=d,(r=null==(r=c)?0x1fffffffffffff:r)&&("number"==typeof n||E.test(n))&&n>-1&&n%1==0&&n<r)))&&u.push(d)}return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||P))return Q(e);var t,n,r=[];for(var i in Object(e))F.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}e.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eq(t)||eq(n))?function(e,t,n,r,i,o){var d=e_(e),m=e_(t),b=d?s:eS(e),x=m?s:eS(t);b=b==l?p:b,x=x==l?p:x;var E=b==p,N=x==p,k=b==x;if(k&&eL(e)){if(!eL(t))return!1;d=!0,E=!1}if(k&&!E)return o||(o=new ey),d||eI(e)?ew(e,t,n,r,i,o):function(e,t,n,r,i,o,l){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case A:if(e.byteLength!=t.byteLength||!o(new $(e),new $(t)))break;return!0;case a:case u:case f:return eT(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+"";case h:var s=M;case y:var d=1&r;if(s||(s=q),e.size!=t.size&&!d)break;var p=l.get(e);if(p)return p==t;r|=2,l.set(e,t);var m=ew(s(e),s(t),r,i,o,l);return l.delete(e),m;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(t)}return!1}(e,t,b,n,r,i,o);if(!(1&n)){var S=E&&F.call(e,"__wrapped__"),C=N&&F.call(t,"__wrapped__");
1if(S||C){var T=S?e.value():e,O=C?t.value():t;return o||(o=new ey),i(T,O,n,r,o)}}return!!k&&(o||(o=new ey),function(e,t,n,r,i,o){var l=1&n,s=ex(e),a=s.length;if(a!=ex(t).length&&!l)return!1;for(var u=a;u--;){var c=s[u];if(!(l?c in t:F.call(t,c)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=l;++u<a;){var p=e[c=s[u]],m=t[c];if(r)var g=l?r(m,p,c,t,e,o):r(p,m,c,e,t,o);if(!(void 0===g?p===m||i(p,m,n,r,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}},15958:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(88816),i=n(35571);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i.A;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},o.prototype.has=function(e){return this.__data__.has(e)};let l=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},s=function(e,t,n,r,i,s){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var f=-1,p=!0,m=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++f<u;){var g=e[f],y=t[f];if(r)var v=a?r(y,g,f,t,e,s):r(g,y,f,e,t,s);if(void 0!==v){if(v)continue;p=!1;break}if(m){if(!l(t,function(e,t){if(!m.has(t)&&(g===e||i(g,e,n,r,s)))return m.push(t)})){p=!1;break}}else if(!(g===y||i(g,y,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p};var a=n(63e3),u=n(4573),c=n(37537);let d=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},h=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var f=a.A?a.A.prototype:void 0,p=f?f.valueOf:void 0;let m=function(e,t,n,r,i,o,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new u.A(e),new u.A(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,c.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=d;case"[object Set]":var f=1&r;if(a||(a=h),e.size!=t.size&&!f)break;var m=l.get(e);if(m)return m==t;r|=2,l.set(e,t);var g=s(a(e),a(t),r,i,o,l);return l.delete(e),g;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1};var g=n(22275),y=Object.prototype.hasOwnProperty;let v=function(e,t,n,r,i,o){var l=1&n,s=(0,g.A)(e),a=s.length;if(a!=(0,g.A)(t).length&&!l)return!1;for(var u=a;u--;){var c=s[u];if(!(l?c in t:y.call(t,c)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=l;++u<a;){var m=e[c=s[u]],v=t[c];if(r)var b=l?r(v,m,c,t,e,o):r(m,v,c,e,t,o);if(!(void 0===b?m===v||i(m,v,n,r,o):b)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var A=e.constructor,w=t.constructor;A!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof A&&A instanceof A&&"function"==typeof w&&w instanceof w)&&(f=!1)}return o.delete(e),o.delete(t),f};var b=n(36133),A=n(64536),w=n(82092),x=n(67822),E="[object Arguments]",N="[object Array]",k="[object Object]",S=Object.prototype.hasOwnProperty;let C=function(e,t,n,i,o,l){var a=(0,A.A)(e),u=(0,A.A)(t),c=a?N:(0,b.A)(e),d=u?N:(0,b.A)(t);c=c==E?k:c,d=d==E?k:d;var h=c==k,f=d==k,p=c==d;if(p&&(0,w.A)(e)){if(!(0,w.A)(t))return!1;a=!0,h=!1}if(p&&!h)return l||(l=new r.A),a||(0,x.A)(e)?s(e,t,n,i,o,l):m(e,t,c,n,i,o,l);if(!(1&n)){var g=h&&S.call(e,"__wrapped__"),y=f&&S.call(t,"__wrapped__");
1if(g||y){var C=g?e.value():e,T=y?t.value():t;return l||(l=new r.A),o(C,T,n,i,l)}}return!!p&&(l||(l=new r.A),v(e,t,n,i,o,l))};var T=n(11331);let O=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&((0,T.A)(t)||(0,T.A)(n))?C(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}},16455:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},16802:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},17896:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(){return[]}},17988:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4573);let i=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},19201:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},19526:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>l});var r=n(12115),i=0,o=null;function l(){r.useEffect(()=>{o||(o={start:s(),end:s()});let{start:e,end:t}=o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),i++,()=>{1===i&&(null==o||o.start.remove(),null==o||o.end.remove(),o=null),i=Math.max(0,i-1)}},[])}function s(){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}},21286:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]])},21383:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(71851),i=n(83119);let o=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},22275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(5358),i=n(67131),o=n(45881);let l=function(e){return(0,r.A)(e,o.A,i.A)}},27314:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},27599:(e,t,n)=>{"use strict";n.d(t,{bL:()=>A,zi:()=>x});var r=n(12115),i=n(92556),o=n(94446),l=n(3468),s=n(23558),a=n(78108),u=n(84288),c=n(97602),d=n(95155),h="Switch",[f,p]=(0,l.A)(h),[m,g]=f(h);function y(e){let{__scopeSwitch:t,checked:n,children:i,defaultChecked:o,disabled:l,form:a,name:u,onCheckedChange:c,required:f,value:p="on",internal_do_not_use_render:g}=e,[y,v]=(0,s.i)({prop:n,defaultProp:null!=o&&o,onChange:c,caller:h}),[b,A]=r.useState(null),[w,x]=r.useState(null),E=r.useRef(!1),N=!b||!!a||!!b.closest("form"),k={checked:y,setChecked:v,disabled:l,control:b,setControl:A,name:u,form:a,value:p,hasConsumerStoppedPropagationRef:E,required:f,defaultChecked:o,isFormControl:N,bubbleInput:w,setBubbleInput:x};return(0,d.jsx)(m,{scope:t,...k,children:"function"==typeof g?g(k):i})}var v="SwitchTrigger",b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,onClick:r,...l}=e,{value:s,disabled:a,checked:u,required:h,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:b}=g(v,n),A=(0,o.s)(t,f);return(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":u,"aria-required":h,"data-state":k(u),"data-disabled":a?"":void 0,disabled:a,value:s,...l,ref:A,onClick:(0,i.mK)(r,e=>{p(e=>!e),b&&y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});b.displayName=v;var A=r.forwardRef((e,t)=>
1{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:o,required:l,disabled:s,value:a,onCheckedChange:u,form:c,...h}=e;return(0,d.jsx)(y,{__scopeSwitch:n,checked:i,defaultChecked:o,disabled:s,required:l,onCheckedChange:u,name:r,form:c,value:a,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(b,{...h,ref:t,__scopeSwitch:n}),r&&(0,d.jsx)(N,{__scopeSwitch:n})]})}})});A.displayName=h;var w="SwitchThumb",x=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=g(w,n);return(0,d.jsx)(c.sG.span,{"data-state":k(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});x.displayName=w;var E="SwitchBubbleInput",N=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...i}=e,{control:l,hasConsumerStoppedPropagationRef:s,checked:h,defaultChecked:f,required:p,disabled:m,name:y,value:v,form:b,bubbleInput:A,setBubbleInput:w}=g(E,n),x=(0,o.s)(t,w),N=(0,a.Z)(h),k=(0,u.X)(l);r.useEffect(()=>{if(!A)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(N!==h&&e){let n=new Event("click",{bubbles:t});e.call(A,h),A.dispatchEvent(n)}},[A,N,h,s]);let S=r.useRef(h);return(0,d.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=f?f:S.current,required:p,disabled:m,name:y,value:v,form:b,...i,tabIndex:-1,ref:x,style:{...i.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return e?"checked":"unchecked"}N.displayName=E},29440:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,Ji:()=>d,mG:()=>c,zo:()=>u});var r=n(44804),i=n(99346),o=n(42202),l=n(70014),s=n(80916);class a extends r.BlockBlot{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=c(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,n,i){t<=0||(this.scroll.query(n,r.Scope.BLOCK)?e+t===this.length()&&this.format(n,i):super.formatAt(e,Math.min(t,this.length()-e-1),n,i),this.cache={})}insertAt(e,t,n){if(null!=n){super.insertAt(e,t,n),this.cache={};return}if(0===t.length)return;let r=t.split("\n"),i=r.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?super.insertAt(Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let o=this;r.reduce((e,t)=>((o=o.split(e,!0)).insertAt(0,t),t.length),e+i.length)}insertBefore(e,t){let{head:n}=this.children;super.insertBefore(e,t),n instanceof o.A&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&(0===e||e>=this.length()-1)){let t=this.clone();return 0===e?(this.parent.insertBefore(t,this),this):(this.parent.insertBefore(t,this.next),t)}let n=super.split(e,t);return this.cache={},n}}a.blotName="block",a.tagName="P",a.defaultChild=o.A,a.allowedChildren=[o.A,l.A,r.EmbedBlot,s.A];class u extends r.EmbedBlot{attach(){super.attach(),this.attributes=new r.AttributorStore(this.domNode)}delta(){return new i().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){let n=this.scroll.query(e,r.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}formatAt(e,t,n,r){this.format(n,r)}insertAt(e,t,n){if(null!=n)return void super.insertAt(e,t,n);let r=t.split("\n"),i=r.pop(),o=r.map(e=>{let t=this.scroll.create(a.blotName);return t.insertAt(0,e),t}),l=this.split(e);o.forEach(e=>{this.parent.insertBefore(e,l)}),i&&this.parent.insertBefore(this.scroll.create("text",i),l)}}function c(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.descendants(r.LeafBlot).reduce((e,n)=>0===n.length()?e:e.insert(n.value(),d(n,{},t)),new i).insert("\n",d(e))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return null==e||("formats"in e&&"function"==typeof e.formats&&(t={...t,...e.formats()},n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope)?t:d(e.parent,t,n)}u.scope=r.Scope.BLOCK_BLOT},32031:(e,t)=>{"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),(n||(n={})).length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1},t.default=n},32265:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},33476:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},34280:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17988);let i=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},35571:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=(0,n(44099).A)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},l.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},l.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0},l.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)},l.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var s=n(85886),a=n(69790);let u=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},c=function(e,t){var n=e.__data__;return u(t)?n["string"==typeof t?"string":"hash"]:n.map};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new l,map:new(a.A||s.A),string:new l}},d.prototype.delete=function(e){var t=c(this,e).delete(e);return this.size-=!!t,t},d.prototype.get=function(e){return c(this,e).get(e)},d.prototype.has=function(e){return c(this,e).has(e)},d.prototype.set=function(e,t){var n=c(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};let h=d},35582:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(63e3),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,s=r.A?r.A.toStringTag:void 0;let a=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=l.call(e);return r&&(t?e[s]=n:delete e[s]),i};var u=Object.prototype.toString,c=r.A?r.A.toStringTag:void 0;let d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?a(e):u.call(e)}},35646:(e,t,n)=>{"use strict";n.d(t,{UC:()=>_,VY:()=>M,ZD:()=>R,ZL:()=>T,bL:()=>S,hE:()=>j,hJ:()=>O,l9:()=>C,rc:()=>L});var r=n(12115),i=n(3468),o=n(94446),l=n(89511),s=n(92556),a=n(95155),u="AlertDialog",[c,d]=(0,i.A)(u,[l.Hs]),h=(0,l.Hs)(),f=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,a.jsx)(l.bL,{...r,...n,modal:!0})};f.displayName=u;var p=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=h(n);return(0,a.jsx)(l.l9,{...i,...r,ref:t})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,a.jsx)(l.ZL,{...r,...n})};m.displayName="AlertDialogPortal";var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=h(n);return(0,a.jsx)(l.hJ,{...i,...r,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[v,b]=c(y),A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:i,...u}=e,c=h(n),d=r.useRef(null),f=(0,o.s)(t,d),p=r.useRef(null);return(0,a.jsx)(v,{scope:n,cancelRef:p,children:(0,a.jsx)(l.UC,{role:"alertdialog",...c,...u,ref:f,onOpenAutoFocus:(0,s.mK)(u.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=p.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:i})})});A.displayName=y;var w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=h(n);return(0,a.jsx)(l.hE,{...i,...r,ref:t})});w.displayName="AlertDialogTitle";var x=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=h(n);return(0,a.jsx)(l.VY,{...i,...r,ref:t})});x.displayName="AlertDialogDescription";var E=r.forwardRef((e,t)=>
1{let{__scopeAlertDialog:n,...r}=e,i=h(n);return(0,a.jsx)(l.bm,{...i,...r,ref:t})});E.displayName="AlertDialogAction";var N="AlertDialogCancel",k=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=b(N,n),s=h(n),u=(0,o.s)(t,i);return(0,a.jsx)(l.bm,{...s,...r,ref:u})});k.displayName=N;var S=f,C=p,T=m,O=g,_=A,L=E,R=k,j=w,M=x},35668:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return function(t){return e(t)}}},36133:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(44099),i=n(62308),o=(0,r.A)(i.A,"DataView"),l=n(69790),s=(0,r.A)(i.A,"Promise"),a=(0,r.A)(i.A,"Set"),u=(0,r.A)(i.A,"WeakMap"),c=n(35582),d=n(88216),h="[object Map]",f="[object Promise]",p="[object Set]",m="[object WeakMap]",g="[object DataView]",y=(0,d.A)(o),v=(0,d.A)(l.A),b=(0,d.A)(s),A=(0,d.A)(a),w=(0,d.A)(u),x=c.A;(o&&x(new o(new ArrayBuffer(1)))!=g||l.A&&x(new l.A)!=h||s&&x(s.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=m)&&(x=function(e){var t=(0,c.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,d.A)(n):"";if(r)switch(r){case y:return g;case v:return h;case b:return f;case A:return p;case w:return m}return t});let E=x},36204:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},37537:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},37998:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},38162:(e,t,n)=>{"use strict";n.d(t,{C1:()=>E,bL:()=>w});var r=n(12115),i=n(94446),o=n(3468),l=n(92556),s=n(23558),a=n(78108),u=n(84288),c=n(76842),d=n(97602),h=n(95155),f="Checkbox",[p,m]=(0,o.A)(f),[g,y]=p(f);function v(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:l,form:a,name:u,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:m}=e,[y,v]=(0,s.i)({prop:n,defaultProp:null!=o&&o,onChange:c,caller:f}),[b,A]=r.useState(null),[w,x]=r.useState(null),E=r.useRef(!1),N=!b||!!a||!!b.closest("form"),k={checked:y,disabled:l,setChecked:v,control:b,setControl:A,name:u,form:a,value:p,hasConsumerStoppedPropagationRef:E,required:d,defaultChecked:!S(o)&&o,isFormControl:N,bubbleInput:w,setBubbleInput:x};return(0,h.jsx)(g,{scope:t,...k,children:"function"==typeof m?m(k):i})}var b="CheckboxTrigger",A=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:o,onClick:s,...a}=e,{control:u,value:c,disabled:f,checked:p,required:m,setControl:g,setChecked:v,hasConsumerStoppedPropagationRef:A,isFormControl:w,bubbleInput:x}=y(b,n),E=(0,i.s)(t,g),N=r.useRef(p);return r.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>v(N.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,v]),(0,h.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":S(p)?"mixed":p,"aria-required":m,"data-state":C(p),"data-disabled":f?"":void 0,disabled:f,value:c,...a,ref:E,onKeyDown:(0,l.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.mK)(s,e=>{v(e=>!!S(e)||!e),x&&w&&(A.current=e.isPropagationStopped(),A.current||e.stopPropagation())})})});A.displayName=b;var w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:l,disabled:s,value:a,onCheckedChange:u,form:c,...d}=e;return(0,h.jsx)(v,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:l,onCheckedChange:u,name:r,form:c,value:a,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(A,{...d,ref:t,__scopeCheckbox:n}),r&&(0,h.jsx)(k,{__scopeCheckbox:n})]})}})});w.displayName=f;var x="CheckboxIndicator",E=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=y(x,n);return(0,h.jsx)(c.C,{present:r||S(o.checked)||!0===o.checked,children:(0,h.jsx)(d.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=x;var N="CheckboxBubbleInput",k=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...o}=e,{control:l,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:f,required:p,disabled:m,name:g,value:v,form:b,bubbleInput:A,setBubbleInput:w}=y(N,n),x=(0,i.s)(t,w),E=(0,a.Z)(c),k=(0,u.X)(l);r.useEffect(()=>{if(!A)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(E!==c&&e){let n=new Event("click",{bubbles:t});A.indeterminate=S(c),e.call(A,!S(c)&&c),A.dispatchEvent(n)}},[A,E,c,s]);let C=r.useRef(!S(c)&&c);return(0,h.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=f?f:C.current,required:p,disabled:m,name:g,value:v,form:b,...o,tabIndex:-1,ref:x,style:{...o.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function C(e){return S(e)?"indeterminate":e?"checked":"unchecked"}k.displayName=N}
1,38789:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=n(88816);let i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var o=n(57386),l=n(69294),s=n(45881),a=n(98046),u=n(47939),c=n(37998),d=n(67131),h=n(113),f=n(79614),p=n(17896),m=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,h.A)(t,(0,d.A)(e)),e=(0,f.A)(e);return t}:p.A,g=n(22275),y=n(5358);let v=function(e){return(0,y.A)(e,a.A,m)};var b=n(36133),A=Object.prototype.hasOwnProperty;let w=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&A.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var x=n(17988);let E=function(e,t){var n=t?(0,x.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var N=/\w*$/;let k=function(e){var t=new e.constructor(e.source,N.exec(e));return t.lastIndex=e.lastIndex,t};var S=n(63e3),C=S.A?S.A.prototype:void 0,T=C?C.valueOf:void 0,O=n(34280);let _=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,x.A)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return E(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,O.A)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return k(e);case"[object Symbol]":return T?Object(T.call(e)):{}}};var L=n(77294),R=n(64536),j=n(82092),M=n(11331),q=n(35668),I=n(48272),D=I.A&&I.A.isMap,P=D?(0,q.A)(D):function(e){return(0,M.A)(e)&&"[object Map]"==(0,b.A)(e)},B=n(33476),U=I.A&&I.A.isSet,F=U?(0,q.A)(U):function(e){return(0,M.A)(e)&&"[object Set]"==(0,b.A)(e)},H="[object Arguments]",z="[object Function]",K="[object Object]",W={};W[H]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object DataView]"]=W["[object Boolean]"]=W["[object Date]"]=W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Map]"]=W["[object Number]"]=W[K]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object Symbol]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Error]"]=W[z]=W["[object WeakMap]"]=!1;let G=function e(t,n,h,f,p,y){var A,x=1&n,E=2&n,N=4&n;if(h&&(A=p?h(t,f,p,y):h(t)),void 0!==A)return A;if(!(0,B.A)(t))return t;var k=(0,R.A)(t);
1if(k){if(A=w(t),!x)return(0,c.A)(t,A)}else{var S,C,T,O,M=(0,b.A)(t),q=M==z||"[object GeneratorFunction]"==M;if((0,j.A)(t))return(0,u.A)(t,x);if(M==K||M==H||q&&!p){if(A=E||q?{}:(0,L.A)(t),!x)return E?(C=(S=A)&&(0,l.A)(t,(0,a.A)(t),S),(0,l.A)(t,m(t),C)):(O=(T=A)&&(0,l.A)(t,(0,s.A)(t),T),(0,l.A)(t,(0,d.A)(t),O))}else{if(!W[M])return p?t:{};A=_(t,M,x)}}y||(y=new r.A);var I=y.get(t);if(I)return I;y.set(t,A),F(t)?t.forEach(function(r){A.add(e(r,n,h,r,t,y))}):P(t)&&t.forEach(function(r,i){A.set(i,e(r,n,h,i,t,y))});var D=N?E?v:g.A:E?a.A:s.A,U=k?void 0:D(t);return i(U||t,function(r,i){U&&(r=t[i=r]),(0,o.A)(A,i,e(r,n,h,i,t,y))}),A},$=function(e){return G(e,5)}},40137:(e,t,n)=>{"use strict";n.d(t,{qW:()=>g,e0:()=>y});var r,i=n(12115),o=n.t(i,2),l=n(92556),s=n(97602),a=n(94446),u=n(70222),c=n(4129),d=o[" useEffectEvent ".trim().toString()],h=o[" useInsertionEffect ".trim().toString()],f=n(95155),p="dismissableLayer.update",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),g=i.forwardRef((e,t)=>{var n,o;let{disableOutsidePointerEvents:g=!1,deferPointerDownOutside:y=!1,onEscapeKeyDown:A,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:E,onDismiss:N,...k}=e,S=i.useContext(m),[C,T]=i.useState(null),O=null!=(o=null==C?void 0:C.ownerDocument)?o:null==(n=globalThis)?void 0:n.document,[,_]=i.useState({}),L=(0,a.s)(t,T),R=Array.from(S.layers),[j]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),M=R.indexOf(j),q=C?R.indexOf(C):-1,I=S.layersWithOutsidePointerEventsDisabled.size>0,D=q>=M,P=i.useRef(!1),B=function(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:s}=t,a=(0,u.c)(e),c=i.useRef(!1),d=i.useRef(!1),h=i.useRef(new Map),f=i.useRef(()=>{});return i.useEffect(()=>{function e(){d.current=!1,l.current=!1,h.current.clear()}function t(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||h.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&f.current()},0)}function n(e){d.current&&h.current.set(e.type,!1)}let i=t=>{if(t.target&&!c.current){let n=function(){r.removeEventListener("click",f.current);let t=Array.from(h.current.values()).some(Boolean);e(),t||b("dismissableLayer.pointerDownOutside",a,i,{discrete:!0})},i={originalEvent:t};d.current=!0,l.current=o&&0===t.button,h.current.clear(),o&&0===t.button?(r.removeEventListener("click",f.current),f.current=n,r.addEventListener("click",f.current,{once:!0})):n()}else r.removeEventListener("click",f.current),e();c.current=!1},u=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of u)r.addEventListener(e,t,!0),r.addEventListener(e,n);let p=window.setTimeout(()=>{r.addEventListener("pointerdown",i)},0);return()=>{for(let e of(window.clearTimeout(p),r.removeEventListener("pointerdown",i),r.removeEventListener("click",f.current),u))r.removeEventListener(e,t,!0),r.removeEventListener(e,n)}},[r,a,o,l,s]),{onPointerDownCapture:()=>c.current=!0}}(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...S.branches].some(e=>e.contains(t));D&&!n&&(null==w||w(e),null==E||E(e),e.defaultPrevented||null==N||N())},{ownerDocument:O,deferPointerDownOutside:y,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:S.dismissableSurfaces}),U=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{if(y&&P.current)return;let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==x||x(e),null==E||E(e),e.defaultPrevented||null==N||N())},O),F=!!C&&q===R.length-1,H=function(e){if("function"==typeof d)return d(e);let t=i.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof h?h(()=>{t.current=e}):(0,c.N)(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}(e=>{"Escape"===e.key&&(null==A||A(e),!e.defaultPrevented&&N&&(e.preventDefault(),N()))});return i.useEffect(()=>{if(F)return O.addEventListener("keydown",H,{capture:!0}),()=>O.removeEventListener("keydown",H,{capture:!0})},[O,F]),i.useEffect(()=>{if(C)return g&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),v(),()=>{g&&(S.layersWithOutsidePointerEventsDisabled.delete(C),0===S.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=r))}},[C,O,g,S]),i.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),v())},[C,S]),i.useEffect(()=>{let e=()=>_({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,f.jsx)(s.sG.div,{...k,ref:L,style:{pointerEvents:I?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.mK)(e.onFocusCapture,U.onFocusCapture),onBlurCapture:(0,l.mK)(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:(0,l.mK)(e.onPointerDownCapture,B.onPointerDownCapture)})});function y(){let e=i.useContext(m),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function v(){let e=new CustomEvent(p);document.dispatchEvent(e)}function b(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,s.hO)(o,l):o.dispatchEvent(l)}g.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(m),r=i.useRef(null),o=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},41922:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},42202:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44804);class i extends r.EmbedBlot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}i.blotName="break",i.tagName="BR";let o=i},42614:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},44099:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(71851),i=n(62308).A["__core-js_shared__"],o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),l=n(33476),s=n(88216),a=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let f=function(e){return!!(0,l.A)(e)&&(!o||!(o in e))&&((0,r.A)(e)?h:a).test((0,s.A)(e))},p=function(e,t){var n=null==e?void 0:e[t];return f(n)?n:void 0}},44804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Attributor:()=>i,AttributorStore:()=>m,BlockBlot:()=>C,ClassAttributor:()=>c,ContainerBlot:()=>O,EmbedBlot:()=>L,InlineBlot:()=>k,LeafBlot:()=>b,ParentBlot:()=>E,Registry:()=>s,Scope:()=>r,ScrollBlot:()=>M,StyleAttributor:()=>f,TextBlot:()=>I});var r=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(r||{});class i{constructor(e,t,n={}){this.attrName=e,this.keyName=t;let i=r.TYPE&r.ATTRIBUTE;this.scope=null!=n.scope?n.scope&r.LEVEL|i:r.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(e=>e.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){let t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class o extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}let l=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,r){let i=this.query(n);if(null==i)throw new o(`Unable to create ${n} blot`);let l=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(t,l,r);return e.blots.set(s.domNode,s),s}find(t,n=!1){return e.find(t,n)}query(e,t=r.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&r.LEVEL&r.BLOCK?n=this.types.block:e&r.LEVEL&r.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(e=>!!(n=this.classes[e])),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&r.LEVEL&n.scope&&t&r.TYPE&n.scope?n:null}register(...e){return e.map(e=>{let t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new o("Invalid definition");if(t&&"abstract"===e.blotName)throw new o("Cannot register abstract class");let r=t?e.blotName:n?e.attrName:void 0;return this.types[r]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(e=>e.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEac
1h(t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)}))),e})}};l.blots=new WeakMap;let s=l;function a(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(e=>0===e.indexOf(`${t}-`))}class u extends i{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){a(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){let t=(a(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}let c=u;function d(e){let t=e.split("-"),n=t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("");return t[0]+n}class h extends i{static keys(e){return(e.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[d(this.keyName)]=t,!0)}remove(e){e.style[d(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){let t=e.style[d(this.keyName)];return this.canAdd(e,t)?t:""}}let f=h;class p{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};let e=s.find(this.domNode);if(null==e)return;let t=i.keys(this.domNode),n=c.keys(this.domNode),o=f.keys(this.domNode);t.concat(n).concat(o).forEach(t=>{let n=e.scroll.query(t,r.ATTRIBUTE);n instanceof i&&(this.attributes[n.attrName]=n)})}copy(e){Object.keys(this.attributes).forEach(t=>{let n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}let m=p,g=class{constructor(e,t){this.scroll=e,this.domNode=t,s.blots.set(t,this),this.prev=null,this.next=null}static create(e){let t,n;if(null==this.tagName)throw new o("Blot definition missing tagName");return Array.isArray(this.tagName)?("string"==typeof e?parseInt(n=e.toUpperCase(),10).toString()===n&&(n=parseInt(n,10)):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){let e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),s.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){let o=this.isolate(e,t);if(null!=this.scroll.query(n,r.BLOT)&&i)o.wrap(n,i);else if(null!=this.scroll.query(n,r.ATTRIBUTE)){let e=this.scroll.create(this.statics.scope);o.wrap(e),e.format(n,i)}}insertAt(e,t,n){let r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(r,i||void 0)}isolate(e,t){let n=this.split(e);if(null==n)throw Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){let n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){let n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new o(`Cannot wrap ${e}`);return n.appendChild(this),n}};g.blotName="abstract";let y=g,v=class extends y{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};v.scope=r.INLINE_BLOT;let b=v;class A{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){let t=e.slice(1);this.append(...t)}}at(e){let t=this.iterator(),n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){let t=this.iterator(),n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){let t=this.iterator(),n=t(),r=0;for(;n;){if(n===e)return r;r+=1,n=t()}return -1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return -1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{let t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){let n=this.iterator(),r=n();for(;r;){let i=r.length();if(e<i||t&&e===i&&(null==r.next||0!==r.next.length()))return[r,e];e-=i,r=n()}return[null,0]}forEach(e){let t=this.iterator(),n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;let[r,i]=this.find(e),o=e-i,l=this.iterator(r),s=l();for(;s&&o<e+t;){let r=s.length();e>o?n(s,e-o,Math.min(t,o+r-e)):n(s,0,Math.min(r,e+t-o)),o+=r,s=l()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){let n=this.iterator(),r=n();for(;r;)t=e(t,r),r=n();return t}}function w(e,t){let n=t.find(e);if(n)return n;try{return t.create(e)}catch{let n=t.create(r.INLINE);
vendor: 4,207 bytes, line 1
1return Array.from(e.childNodes).forEach(e=>{n.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}let x=class e extends y{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new A,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{let t=w(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(e){if(e instanceof o)return;throw e}})}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(e,t,n)=>{e.deleteAt(t,n)})}descendant(t,n=0){let[r,i]=this.children.find(n);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,i]:r instanceof e?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(n,r,l)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=l}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(e=>n instanceof e)||(n.statics.scope===r.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())})}formatAt(e,t,n,r){this.children.forEachAt(e,t,(e,t,i)=>{e.formatAt(t,i,n,r)})}insertAt(e,t,n){let[r,i]=this.children.find(e);if(r)r.insertAt(i,t,n);else{let e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){let e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){let[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof e?o.concat(r.path(i,n)):(null!=r&&o.push([r,i]),o)}removeChild(e){this.children.remove(e)}replaceWith(t,n){let r="string"==typeof t?this.scroll.create(t,n):t;return r instanceof e&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}let n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(e,r,i)=>{let o=e.split(r,t);null!=o&&n.appendChild(o)}),n}splitAfter(e){let t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){let n=[],r=[];e.forEach(e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),r.push(...e.removedNodes))}),r.forEach(e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()}),n.filter(e=>e.parentNode===this.domNode&&e!==this.uiNode).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));let n=w(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))}),this.enforceAllowedChildren()}};x.uiClass="";
1let E=x,N=class e extends E{static create(e){return super.create(e)}static formats(t,n){let r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new m(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){let e=this.scroll.query(t,r.INLINE);null!=e&&(e instanceof i?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}else this.children.forEach(t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){let e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){null!=this.formats()[n]||this.scroll.query(n,r.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(t){super.optimize(t);let n=this.formats();if(0===Object.keys(n).length)return this.unwrap();let r=this.next;r instanceof e&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){let n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}wrap(t,n){let r=super.wrap(t,n);return r instanceof e&&this.attributes.move(r),r}};N.allowedChildren=[N,b],N.blotName="inline",N.scope=r.INLINE_BLOT,N.tagName="SPAN";let k=N,S=class e extends E{static create(e){return super.create(e)}static formats(t,n){let r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new m(this.domNode)}format(t,n){let o=this.scroll.query(t,r.BLOCK);null!=o&&(o instanceof i?this.attributes.attribute(o,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){let e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){null!=this.scroll.query(n,r.BLOCK)?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,r.INLINE))super.insertAt(e,t,n);else{let r=this.split(e);if(null!=r){let e=this.scroll.create(t,n);r.parent.insertBefore(e,r)}else throw Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){let n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}};S.blotName="block",S.scope=r.BLOCK_BLOT,S.tagName="P",S.allowedChildren=[k,S,b];let C=S,T=class extends E{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};T.blotName="container",T.scope=r.BLOCK_BLOT;let O=T;class _ extends b{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,r){0===e&&t===this.length()?this.format(n,r):super.formatAt(e,t,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}}let L=_,R={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},j=class extends E{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,R),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){let n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=r.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEac
1h(e=>{e.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,r){this.update(),super.formatAt(e,t,n,r)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);let n=t.mutationsMap||new WeakMap,r=Array.from(this.observer.takeRecords());for(;r.length>0;)e.push(r.pop());let i=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&i(e.parent))},o=e=>{n.has(e.domNode)&&(e instanceof E&&e.children.forEach(o),n.delete(e.domNode),e.optimize(t))},l=e;for(let t=0;l.length>0;t+=1){if(t>=100)throw Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(e=>{let t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(i(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach(e=>{let t=this.find(e,!1);i(t,!1),t instanceof E&&t.children.forEach(e=>{i(e,!1)})})):"attributes"===e.type&&i(t.prev)),i(t))}),this.children.forEach(o),r=(l=Array.from(this.observer.takeRecords())).slice();r.length>0;)e.push(r.pop())}}update(e,t={}){e=e||this.observer.takeRecords();let n=new WeakMap;e.map(e=>{let t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)}).forEach(e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};j.blotName="scroll",j.defaultChild=C,j.allowedChildren=[C,O],j.scope=r.BLOCK_BLOT,j.tagName="DIV";let M=j,q=class e extends b{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}let n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(e=>"characterData"===e.type&&e.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};q.blotName="text",q.scope=r.INLINE_BLOT;let I=q},45572:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let r=["error","warn","log","info"],i="warn";function o(e){if(i&&r.indexOf(e)<=r.indexOf(i)){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];console[e](...n)}}function l(e){return r.reduce((t,n)=>(t[n]=o.bind(console,n,e),t),{})}l.level=e=>{i=e},o.level=l.level;let s=l},45881:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(59584),i=n(53798),o=(0,n(10454).A)(Object.keys,Object),l=Object.prototype.hasOwnProperty;let s=function(e){if(!(0,i.A)(e))return o(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t};var a=n(21383);let u=function(e){return(0,a.A)(e)?(0,r.A)(e):s(e)}},46088:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>tw});var r=n(84822),i=n(29440),o=n(42202),l=n(44804);class s extends l.ContainerBlot{}let a=s;var u=n(2337),c=n(62052),d=n(70014),h=n(99346),f=n(92529);function p(e){return e instanceof i.Ay||e instanceof i.zo}function m(e){return"function"==typeof e.updateContent}class g extends l.ScrollBlot{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=i.Ay;static allowedChildren=[i.Ay,i.zo,a];constructor(e,t,n){let{emitter:r}=n;super(e,t),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",e=>this.handleDragStart(e))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;let e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(f.A.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(f.A.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(f.A.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){let[n,r]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),null!=l&&n!==l&&r>0){if(n instanceof i.zo||l instanceof i.zo)return void this.optimize();let e=l.children.head instanceof o.A?null:l.children.head;n.moveChildren(l,e),n.remove()}this.optimize()}enable(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(null==n||null==this.scroll.query(t,l.Scope.BLOCK)){let e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e),null==n&&t.endsWith("\n")?e.insertAt(0,t.slice(0,-1),n):e.insertAt(0,t,n)}else{let e=this.scroll.create(t,n);this.appendChild(e)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===l.Scope.INLINE_BLOT){let n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){let n=this.deltaToRenderBlocks(t.concat(new h().insert("\n"))),r
1=n.pop();if(null==r)return;this.batchStart();let o=n.shift();if(o){let t="block"===o.type&&(0===o.delta.length()||!this.descendant(i.zo,e)[0]&&e<this.length()),n="block"===o.type?o.delta:new h().insert({[o.key]:o.value});y(this,e,n);let r=+("block"===o.type),l=e+n.length()+r;t&&this.insertAt(l-1,"\n");let s=(0,i.Ji)(this.line(e)[0]),a=h.AttributeMap.diff(s,o.attributes)||{};Object.keys(a).forEach(e=>{this.formatAt(l-1,1,e,a[e])}),e=l}let[l,s]=this.children.find(e);n.length&&(l&&(l=l.split(s),s=0),n.forEach(e=>{if("block"===e.type)y(this.createBlock(e.attributes,l||void 0),0,e.delta);else{let t=this.create(e.key,e.value);this.insertBefore(t,l||void 0),Object.keys(e.attributes).forEach(n=>{t.format(n,e.attributes[n])})}})),"block"===r.type&&r.delta.length()&&y(this,l?l.offset(l.scroll)+s:this.length(),r.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(e){let t=this.path(e).pop();if(!t)return[null,-1];let[n,r]=t;return n instanceof l.LeafBlot?[n,r]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}lines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=(e,t,r)=>{let i=[],o=r;return e.children.forEachAt(t,r,(e,t,r)=>{p(e)?i.push(e):e instanceof l.ContainerBlot&&(i=i.concat(n(e,t,o))),o-=r}),i};return n(this,e,t)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.batch&&(super.optimize(e,t),e.length>0&&this.emitter.emit(f.A.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=f.A.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter(e=>{let{target:t}=e,n=this.find(t,!0);return n&&!m(n)})).length>0&&this.emitter.emit(f.A.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(f.A.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){let[r]=this.descendant(e=>e instanceof i.zo,e);r&&r.statics.blotName===t&&m(r)&&r.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){let t=[],n=new h;return e.forEach(e=>{let r=e?.insert;if(r)if("string"==typeof r){let i=r.split("\n");i.slice(0,-1).forEach(r=>{n.insert(r,e.attributes),t.push({type:"block",delta:n,attributes:e.attributes??{}}),n=new h});let o=i[i.length-1];o&&n.insert(o,e.attributes)}else{let i=Object.keys(r)[0];if(!i)return;this.query(i,l.Scope.INLINE)?n.push(e):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new h,t.push({type:"blockEmbed",key:i,value:r[i],attributes:e.attributes??{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n,r={};Object.entries(e).forEach(e=>{let[t,i]=e;null!=this.query(t,l.Scope.BLOCK&l.Scope.BLOT)?n=t:r[t]=i});let i=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(i,t||void 0);let o=i.length();return Object.entries(r).forEach(e=>{let[t,n]=e;i.formatAt(0,o,t,n)}),i}}function y(e,t,n){n.reduce((t,n)=>{let r=h.Op.length(n),o=n.attributes||{};if(null!=n.insert){if("string"==typeof n.insert){let r=n.insert;e.insertAt(t,r);let[s]=e.descendant(l.LeafBlot,t),a=(0,i.Ji)(s);o=h.AttributeMap.diff(a,o)||{}}else if("object"==typeof n.insert){let r=Object.keys(n.insert)[0];if(null==r)return t;if(e.insertAt(t,r,n.insert[r]),null!=e.scroll.query(r,l.Scope.INLINE)){let[n]=e.descendant(l.LeafBlot,t),r=(0,i.Ji)(n);o=h.AttributeMap.diff(r,o)||{}}}}return Object.keys(o).forEach(n=>{e.formatAt(t,r,n,o[n])}),t+r},t)}var v=n(80916),b=n(45572),A=n(73052);let w={scope:l.Scope.BLOCK,whitelist:["right","center","justify"]},x=new l.Attributor("align","align",w),E=new l.ClassAttributor("align","ql-align",w),N=new l.StyleAttributor("align","text-align",w);class k extends l.StyleAttributor{value(e){let t=super.value(e);if(!t.startsWith("rgb("))return t;let n=(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(e=>`00${parseInt(e,10).toString(16)}`.slice(-2)).join("");return`#${n}`}}let S=new l.ClassAttributor("color","ql-color",{scope:l.Scope.INLINE}),C=new k("color","color",{scope:l.Scope.INLINE}),T=new l.ClassAttributor("background","ql-bg",{scope:l.Scope.INLINE}),O=new k("background","background-color",{scope:l.Scope.INLINE});class _ extends a{static create(e){let t=super.create(e);
1return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(e=>1>=e.length()?"":e.domNode.innerText).join("\n").slice(e,e+t)}html(e,t){return`<pre>
2${(0,v.X)(this.code(e,t))}
3</pre>`}}class L extends i.Ay{static TAB="  ";static register(){r.Ay.register(_)}}class R extends d.A{}R.blotName="code",R.tagName="CODE",L.blotName="code-block",L.className="ql-code-block",L.tagName="DIV",_.blotName="code-block-container",_.className="ql-code-block-container",_.tagName="DIV",_.allowedChildren=[L],L.allowedChildren=[v.A,o.A,u.A],L.requiredContainer=_;let j={scope:l.Scope.BLOCK,whitelist:["rtl"]},M=new l.Attributor("direction","dir",j),q=new l.ClassAttributor("direction","ql-direction",j),I=new l.StyleAttributor("direction","direction",j),D={scope:l.Scope.INLINE,whitelist:["serif","monospace"]},P=new l.ClassAttributor("font","ql-font",D);class B extends l.StyleAttributor{value(e){return super.value(e).replace(/["']/g,"")}}let U=new B("font","font-family",D),F=new l.ClassAttributor("size","ql-size",{scope:l.Scope.INLINE,whitelist:["small","large","huge"]}),H=new l.StyleAttributor("size","font-size",{scope:l.Scope.INLINE,whitelist:["10px","18px","32px"]});var z=n(15958),K=n(38789);let W=(0,b.A)("quill:keyboard"),G=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class $ extends A.A{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&null!==t[n])&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(e=>{this.options.bindings[e]&&this.addBinding(this.options.bindings[e])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!=typeof e)return null;e=(0,K.A)(e)}return e.shortKey&&(e[G]=e.shortKey,delete e.shortKey),e}(e);if(null==r)return void W.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),(Array.isArray(r.key)?r.key:[r.key]).forEach(e=>{let i={...r,key:e,...t,...n};this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;let t=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(t=>$.match(e,t));if(0===t.length)return;let n=r.Ay.find(e.target,!0);if(n&&n.scroll!==this.quill.scroll)return;let i=this.quill.getSelection();if(null==i||!this.quill.hasFocus())return;let[o,s]=this.quill.getLine(i.index),[a,u]=this.quill.getLeaf(i.index),[c,d]=0===i.length?[a,u]:this.quill.getLeaf(i.index+i.length),h=a instanceof l.TextBlot?a.value().slice(0,u):"",f=c instanceof l.TextBlot?c.value().slice(d):"",p={collapsed:0===i.length,empty:0===i.length&&1>=o.length(),format:this.quill.getFormat(i),line:o,offset:s,prefix:h,suffix:f,event:e};t.some(e=>{if(null!=e.collapsed&&e.collapsed!==p.collapsed||null!=e.empty&&e.empty!==p.empty||null!=e.offset&&e.offset!==p.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(e=>null==p.format[e]))return!1}else if("object"==typeof e.format&&!Object.keys(e.format).every(t=>!0===e.format[t]?null!=p.format[t]:!1===e.format[t]?null==p.format[t]:(0,z.A)(e.format[t],p.format[t])))return!1;return(null==e.prefix||!!e.prefix.test(p.prefix))&&(null==e.suffix||!!e.suffix.test(p.suffix))&&!0!==e.handler.call(this,i,p,e)})&&e.preventDefault()})}handleBackspace(e,t){let n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||1>=this.quill.getLength())return;let i={},[o]=this.quill.getLine(e.index),l=new h().retain(e.index-n).delete(n);if(0===t.offset){let[t]=this.quill.getLine(e.index-1);if(t&&!("block"===t.statics.blotName&&1>
3=t.length())){let t=o.formats(),n=this.quill.getFormat(e.index-1,1);if(Object.keys(i=h.AttributeMap.diff(t,n)||{}).length>0){let t=new h().retain(e.index+o.length()-2).retain(1,i);l=l.compose(t)}}}this.quill.updateContents(l,r.Ay.sources.USER),this.quill.focus()}handleDelete(e,t){let n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let i={},[o]=this.quill.getLine(e.index),l=new h().retain(e.index).delete(n);if(t.offset>=o.length()-1){let[t]=this.quill.getLine(e.index+1);if(t){let n=o.formats(),r=this.quill.getFormat(e.index,1);Object.keys(i=h.AttributeMap.diff(n,r)||{}).length>0&&(l=l.retain(t.length()-1).retain(1,i))}}this.quill.updateContents(l,r.Ay.sources.USER),this.quill.focus()}handleDeleteRange(e){J({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){let n=Object.keys(t.format).reduce((e,n)=>(this.quill.scroll.query(n,l.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e),{}),i=new h().retain(e.index).delete(e.length).insert("\n",n);this.quill.updateContents(i,r.Ay.sources.USER),this.quill.setSelection(e.index+1,r.Ay.sources.SILENT),this.quill.focus()}}function V(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:i}=n,{TAB:o}=this.quill.scroll.query("code-block");if(0===t.length&&!i.shiftKey){this.quill.insertText(t.index,o,r.Ay.sources.USER),this.quill.setSelection(t.index+o.length,r.Ay.sources.SILENT);return}let l=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t),{index:s,length:a}=t;l.forEach((t,n)=>{e?(t.insertAt(0,o),0===n?s+=o.length:a+=o.length):t.domNode.textContent.startsWith(o)&&(t.deleteAt(0,o.length),0===n?s-=o.length:a-=o.length)}),this.quill.update(r.Ay.sources.USER),this.quill.setSelection(s,a,r.Ay.sources.SILENT)}}}function Y(e,t){return{key:e,shiftKey:t,altKey:null,["ArrowLeft"===e?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;"ArrowRight"===e&&(i+=n.length+1);let[o]=this.quill.getLeaf(i);return!(o instanceof l.EmbedBlot)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,r.Ay.sources.USER):this.quill.setSelection(n.index-1,r.Ay.sources.USER):t?this.quill.setSelection(n.index,n.length+1,r.Ay.sources.USER):this.quill.setSelection(n.index+n.length+1,r.Ay.sources.USER),!1)}}}function X(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],r.Ay.sources.USER)}}}function Z(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){let i=e?"prev":"next",o=n.line,l=o.parent[i];if(null!=l){if("table-row"===l.statics.blotName){let e=l.children.head,t=o;for(;null!=t.prev;)t=t.prev,e=e.next;let i=e.offset(this.quill.scroll)+Math.min(n.offset,e.length()-1);this.quill.setSelection(i,0,r.Ay.sources.USER)}}else{let t=o.table()[i];null!=t&&(e?this.quill.setSelection(t.offset(this.quill.scroll)+t.length()-1,0,r.Ay.sources.USER):this.quill.setSelection(t.offset(this.quill.scroll),0,r.Ay.sources.USER))}return!1}}}function J(e){let{quill:t,range:n}=e,i=t.getLines(n),o={};if(i.length>1){let e=i[0].formats(),t=i[i.length-1].formats();o=h.AttributeMap.diff(t,e)||{}}t.deleteText(n,r.Ay.sources.USER),Object.keys(o).length>0&&t.formatLine(n.index,1,o,r.Ay.sources.USER),t.setSelection(n.index,r.Ay.sources.SILENT)}$.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return!!t.collapsed&&0!==t.offset||(this.quill.format("indent","+1",r.Ay.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return!!t.collapsed&&0!==t.offset||(this.quill.format("indent","-1",r.Ay.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){null!=t.format.indent?this.quill.format("indent","-1",r.Ay.sources.USER):null!=t.format.list&&this.quill.format("list",!1,r.Ay.sources.USER)}},"indent code-block":V(!0),"outdent code-block":V(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,r.Ay.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();let n=new h().retain(e.index).delete(e.length).insert("	");return this.quill.updateContents(n,r.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,r.Ay.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,r.Ay.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){let n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,r.Ay.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){let[t,n]=this.quill.getLine(e.index),i={...t.formats(),list:"checked"}
3,o=new h().retain(e.index).insert("\n",i).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,r.Ay.sources.USER),this.quill.setSelection(e.index+1,r.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){let[n,i]=this.quill.getLine(e.index),o=new h().retain(e.index).insert("\n",t.format).retain(n.length()-i-1).retain(1,{header:null});this.quill.updateContents(o,r.Ay.sources.USER),this.quill.setSelection(e.index+1,r.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){let t=this.quill.getModule("table");if(t){var n,i,o,l;let[s,a,u,c]=t.getTable(e),d=(n=0,i=a,o=u,l=c,null==i.prev&&null==i.next?null==o.prev&&null==o.next?0===l?-1:1:null==o.prev?-1:1:null==i.prev?-1:null==i.next?1:null);if(null==d)return;let f=s.offset();if(d<0){let t=new h().retain(f).insert("\n");this.quill.updateContents(t,r.Ay.sources.USER),this.quill.setSelection(e.index+1,e.length,r.Ay.sources.SILENT)}else if(d>0){f+=s.length();let e=new h().retain(f).insert("\n");this.quill.updateContents(e,r.Ay.sources.USER),this.quill.setSelection(f,r.Ay.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){let{event:n,line:i}=t,o=i.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,r.Ay.sources.USER):this.quill.setSelection(o+i.length(),r.Ay.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){let n;if(null==this.quill.scroll.query("list"))return!0;let{length:i}=t.prefix,[o,l]=this.quill.getLine(e.index);if(l>i)return!0;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(e.index," ",r.Ay.sources.USER),this.quill.history.cutoff();let s=new h().retain(e.index-l).delete(i+1).retain(o.length()-2-l).retain(1,{list:n});return this.quill.updateContents(s,r.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-i,r.Ay.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){let[t,n]=this.quill.getLine(e.index),i=2,o=t;for(;null!=o&&1>=o.length()&&o.formats()["code-block"];)if(o=o.prev,(i-=1)<=0){let i=new h().retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,r.Ay.sources.USER),this.quill.setSelection(e.index-1,r.Ay.sources.SILENT),!1}return!0}},"embed left":Y("ArrowLeft",!1),"embed left shift":Y("ArrowLeft",!0),"embed right":Y("ArrowRight",!1),"embed right shift":Y("ArrowRight",!0),"table down":Z(!1),"table up":Z(!0)}};let Q=/font-weight:\s*normal/,ee=["P","OL","UL"],et=e=>e&&ee.includes(e.tagName),en=/\bmso-list:[^;]*ignore/i,er=/\bmso-list:[^;]*\bl(\d+)/i,ei=/\bmso-list:[^;]*\blevel(\d+)/i,eo=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&(e=>{let t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],r=[];t.forEach(e=>{(e.getAttribute("style")||"").match(en)?n.push(e):r.push(e)}),n.forEach(e=>e.parentNode?.removeChild(e));let i=e.documentElement.innerHTML,o=r.map(e=>((e,t)=>{let n=e.getAttribute("style"),r=n?.match(er);if(!r)return null;let i=Number(r[1]),o=n?.match(ei),l=o?Number(o[1]):1,s=RegExp(`@list l${i}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),a=t.match(s);return{id:i,indent:l,type:a&&"bullet"===a[1]?"bullet":"ordered",element:e}})(e,i)).filter(e=>e);for(;o.length;){let e=[],t=o.shift();for(;t;)e.push(t),t=o.length&&o[0]?.element===t.element.nextElementSibling&&o[0].id===t.id?o.shift():null;let n=document.createElement("ul");e.forEach(e=>{let t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class",`ql-indent-${e.indent-1}`),t.innerHTML=e.element.innerHTML,n.appendChild(t)});let r=e[0]?.element,{parentNode:i}=r??{};
3r&&i?.replaceChild(n,r),e.slice(1).forEach(e=>{let{element:t}=e;i?.removeChild(t)})}})(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&(Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(Q)).forEach(t=>{let n=e.createDocumentFragment();n.append(...t.childNodes),t.parentNode?.replaceChild(n,t)}),Array.from(e.querySelectorAll("br")).filter(e=>et(e.previousElementSibling)&&et(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)}))}],el=(0,b.A)("quill:clipboard"),es=[[Node.TEXT_NODE,function(e,t,n){let r=e.data;if(e.parentElement?.tagName==="O:P")return t.insert(r.trim());if(!function e(t){return null!=t&&(ep.has(t)||("PRE"===t.tagName?ep.set(t,!0):ep.set(t,e(t.parentNode))),ep.get(t))}(e)){if(0===r.trim().length&&r.includes("\n")&&(!e.previousElementSibling||!e.nextElementSibling||ef(e.previousElementSibling,n)||ef(e.nextElementSibling,n)))return t;let i=(e,t)=>{let n=t.replace(/[^\u00a0]/g,"");return n.length<1&&e?" ":n};r=(r=r.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&null!=e.parentElement&&ef(e.parentElement,n)||e.previousSibling instanceof Element&&ef(e.previousSibling,n))&&(r=r.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&null!=e.parentElement&&ef(e.parentElement,n)||e.nextSibling instanceof Element&&ef(e.nextSibling,n))&&(r=r.replace(/\s+$/,i.bind(i,!1)))}return t.insert(r)}],[Node.TEXT_NODE,ey],["br",function(e,t){return eh(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,ey],[Node.ELEMENT_NODE,function(e,t,n){let r=n.query(e);if(null==r)return t;if(r.prototype instanceof l.EmbedBlot){let t={},i=r.value(e);if(null!=i)return t[r.blotName]=i,new h().insert(t,r.formats(e,n))}else if(r.prototype instanceof l.BlockBlot&&!eh(t,"\n")&&t.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return ed(t,r.blotName,r.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){let r=l.Attributor.keys(e),i=l.ClassAttributor.keys(e),o=l.StyleAttributor.keys(e),s={};return r.concat(i).concat(o).forEach(t=>{let r=n.query(t,l.Scope.ATTRIBUTE);null!=r&&(s[r.attrName]=r.value(e),s[r.attrName])||(null!=(r=ea[t])&&(r.attrName===t||r.keyName===t)&&(s[r.attrName]=r.value(e)||void 0),null!=(r=eu[t])&&(r.attrName===t||r.keyName===t)&&(s[(r=eu[t]).attrName]=r.value(e)||void 0))}),Object.entries(s).reduce((e,t)=>{let[r,i]=t;return ed(e,r,i,n)},t)}],[Node.ELEMENT_NODE,function(e,t,n){let r={},i=e.style||{};return("italic"===i.fontStyle&&(r.italic=!0),"underline"===i.textDecoration&&(r.underline=!0),"line-through"===i.textDecoration&&(r.strike=!0),(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),t=Object.entries(r).reduce((e,t)=>{let[r,i]=t;return ed(e,r,i,n)},t),parseFloat(i.textIndent||0)>0)?new h().insert("	").concat(t):t}],["li",function(e,t,n){let r=n.query(e);if(null==r||"list"!==r.blotName||!eh(t,"\n"))return t;let i=-1,o=e.parentNode;for(;null!=o;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((e,t)=>t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,{indent:i,...t.attributes||{}}):e,new h)}],["ol, ul",function(e,t,n){let r="OL"===e.tagName?"ordered":"bullet",i=e.getAttribute("data-checked");return i&&(r="true"===i?"checked":"unchecked"),ed(t,"list",r,n)}],["pre",function(e,t,n){let r=n.query("code-block");return ed(t,"code-block",!r||!("formats"in r)||"function"!=typeof r.formats||r.formats(e,n),n)}],["tr",function(e,t,n){let r=e.parentElement?.tagName==="TABLE"?e.parentElement:e.parentElement?.parentElement;return null!=r?ed(t,"table",Array.from(r.querySelectorAll("tr")).indexOf(e)+1,n):t}],["b",eg("bold")],["i",eg("italic")],["strike",eg("strike")],["style",function(){return new h}]],ea=[x,M].reduce((e,t)=>(e[t.keyName]=t,e),{}),eu=[N,O,C,I,U,H].reduce((e,t)=>(e[t.keyName]=t,e),{});class ec extends A.A{static DEFAULTS={matchers:[]};constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",e=>this.onCaptureCopy(e,!1)),this.quill.root.addEventListener("cut",e=>this.onCaptureCopy(e,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],es.concat(this.options.matchers??[]).forEac
3h(e=>{let[t,n]=e;this.addMatcher(t,n)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[L.blotName])return new h().insert(n||"",{[L.blotName]:r[L.blotName]});if(!t)return new h().insert(n||"",r);let i=this.convertHTML(t);return eh(i,"\n")&&(null==i.ops[i.ops.length-1].attributes||r.table)?i.compose(new h().retain(i.length()-1).delete(1)):i}normalizeHTML(e){e.documentElement&&eo.forEach(t=>{t(e)})}convertHTML(e){let t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);let n=t.body,r=new WeakMap,[i,o]=this.prepareMatching(n,r);return em(this.quill.scroll,n,i,o,r)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Ay.sources.API;if("string"==typeof e){let n=this.convert({html:e,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,r.Ay.sources.SILENT)}else{let i=this.convert({html:t,text:""});this.quill.updateContents(new h().retain(e).concat(i),n),this.quill.setSelection(e+i.length(),r.Ay.sources.SILENT)}}onCaptureCopy(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.defaultPrevented)return;e.preventDefault();let[n]=this.quill.selection.getRange();if(null==n)return;let{html:r,text:i}=this.onCopy(n,t);e.clipboardData?.setData("text/plain",i),e.clipboardData?.setData("text/html",r),t&&J({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(e=>"#"!==e[0]).join("\n")}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();let t=this.quill.getSelection(!0);if(null==t)return;let n=e.clipboardData?.getData("text/html"),r=e.clipboardData?.getData("text/plain");if(!n&&!r){let t=e.clipboardData?.getData("text/uri-list");t&&(r=this.normalizeURIList(t))}let i=Array.from(e.clipboardData?.files||[]);if(!n&&i.length>0)return void this.quill.uploader.upload(t,i);if(n&&i.length>0){let e=new DOMParser().parseFromString(n,"text/html");if(1===e.body.childElementCount&&e.body.firstElementChild?.tagName==="IMG")return void this.quill.uploader.upload(t,i)}this.onPaste(t,{html:n,text:r})}onCopy(e){let t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:i}=t,o=this.quill.getFormat(e.index),l=this.convert({text:n,html:i},o);el.log("onPaste",l,{text:n,html:i});let s=new h().retain(e.index).delete(e.length).concat(l);this.quill.updateContents(s,r.Ay.sources.USER),this.quill.setSelection(s.length()-e.length,r.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){let n=[],r=[];return this.matchers.forEach(i=>{let[o,l]=i;switch(o){case Node.TEXT_NODE:r.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(e.querySelectorAll(o)).forEach(e=>{if(t.has(e)){let n=t.get(e);n?.push(l)}else t.set(e,[l])})}}),[n,r]}}function ed(e,t,n,r){return r.query(t)?e.reduce((e,r)=>r.insert?r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,{...n?{[t]:n}:{},...r.attributes}):e,new h):e}function eh(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){let t=e.ops[r];if("string"!=typeof t.insert)break;n=t.insert+n}return n.slice(-1*t.length)===t}function ef(e,t){if(!(e instanceof Element))return!1;let n=t.query(e);return(!n||!(n.prototype instanceof l.EmbedBlot))&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}let ep=new WeakMap;function em(e,t,n,r,i){return t.nodeType===t.TEXT_NODE?r.reduce((n,r)=>r(t,n,e),new h):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,l)=>{let s=em(e,l,n,r,i);return l.nodeType===t.ELEMENT_NODE&&(s=n.reduce((t,n)=>n(l,t,e),s),s=(i.get(l)||[]).reduce((t,n)=>n(l,t,e),s)),o.concat(s)},new h):new h}function eg(e){return(t,n,r)=>ed(n,e,!0,r)}function ey(e,t,n){if(!eh(t,"\n")){if(ef(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;null!=r;){if(ef(r,n))return t.insert("\n");let e=n.query(r);if(e&&e.prototype instanceof i.zo)return t.insert("\n");r=r.firstChild}}}return t}class ev extends A.A{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,t){super(e,t),this.quill.on(r.Ay.events.EDITOR_CHANGE,(e,t,n,i)=>{e===r.Ay.events.SELECTION_CHANGE?t&&i!==r.Ay.sources.SILENT&&(this.currentRange=t):e===r.Ay.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&i!==r.Ay.sources.USER?this.transform(t):this.record(t,n)),this.currentRange=eA(this.currentRange,t))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",e=>{"historyUndo"===e.inputType?(this.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(this.redo(),e.preventDefault())})}change(e,t){if(0===this.stack[e].length)return;let n=this.stack[e].pop();if(!n)return;let i=this.quill.getContents(),o=n.delta.invert(i);this.stack[t].push({delta:o,range:eA(n.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,r.Ay.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,t){if(0===e.ops.length)return;this.stack.redo=[];let n=e.invert(t),r=this.currentRange,i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){let e=this.stack.undo.pop();e&&(n=n.compose(e.delta),r=e.range)}else this.lastRecorded=i;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){eb(this.stack.undo,e),eb(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,r.Ay.sources.USER);else{let t=function(e,t){let n=t.reduce((e,t)=>
3e+(t.delete||0),0),r=t.length()-n;return function(e,t){let n=t.ops[t.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some(t=>null!=e.query(t,l.Scope.BLOCK)))}(e,t)&&(r-=1),r}(this.quill.scroll,e.delta);this.quill.setSelection(t,r.Ay.sources.USER)}}}function eb(e,t){let n=t;for(let t=e.length-1;t>=0;t-=1){let r=e[t];e[t]={delta:n.transform(r.delta,!0),range:r.range&&eA(r.range,n)},n=r.delta.transform(n),0===e[t].delta.length()&&e.splice(t,1)}}function eA(e,t){if(!e)return e;let n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}class ew extends A.A{constructor(e,t){super(e,t),e.root.addEventListener("drop",t=>{t.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(t.clientX,t.clientY);(n=document.createRange()).setStart(e.offsetNode,e.offset),n.setEnd(e.offsetNode,e.offset)}let r=n&&e.selection.normalizeNative(n);if(r){let n=e.selection.normalizedToRange(r);t.dataTransfer?.files&&this.upload(n,t.dataTransfer.files)}})}upload(e,t){let n=[];Array.from(t).forEach(e=>{e&&this.options.mimetypes?.includes(e.type)&&n.push(e)}),n.length>0&&this.options.handler.call(this,e,n)}}ew.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){this.quill.scroll.query("image")&&Promise.all(t.map(e=>new Promise(t=>{let n=new FileReader;n.onload=()=>{t(n.result)},n.readAsDataURL(e)}))).then(t=>{let n=t.reduce((e,t)=>e.insert({image:t}),new h().retain(e.index).delete(e.length));this.quill.updateContents(n,f.A.sources.USER),this.quill.setSelection(e.index+t.length,f.A.sources.SILENT)})}};let ex=["insertText","insertReplacementText"];class eE extends A.A{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",e=>{this.handleBeforeInput(e)}),/Android/i.test(navigator.userAgent)||e.on(r.Ay.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){J({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){let n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new h().retain(e.index).insert(t,n),r.Ay.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,r.Ay.sources.SILENT),!0}handleBeforeInput(e){var t;if(this.quill.composition.isComposing||e.defaultPrevented||!ex.includes(e.inputType))return;let n=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!n||!0===n.collapsed)return;let r="string"==typeof(t=e).data?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null;if(null==r)return;let i=this.quill.selection.normalizeNative(n),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,r)&&e.preventDefault()}handleCompositionStart(){let e=this.quill.getSelection();e&&this.replaceText(e)}}let eN=/Mac/i.test(navigator.platform);class ek extends A.A{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:n,event:i}=t;if(!(n instanceof l.ParentBlot)||!n.uiNode)return!0;let o="rtl"===getComputedStyle(n.domNode).direction;return!!o&&"ArrowRight"!==i.key||!o&&"ArrowLeft"!==i.key||(this.quill.setSelection(e.index-1,e.length+ +!!i.shiftKey,r.Ay.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&("ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||eN&&"a"===e.key&&!0===e.ctrlKey||0)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;let e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){let e=document.getSelection();if(!e)return;let t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;let n=this.quill.scroll.find(t.startContainer);if(!(n instanceof l.ParentBlot)||!n.uiNode)return;let r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}}r.Ay.register({"blots/block":i.Ay,"blots/block/embed":i.zo,"blots/break":o.A,"blots/container":a,"blots/cursor":u.A,"blots/embed":c.A,"blots/inline":d.A,"blots/scroll":g,"blots/text":v.A,"modules/clipboard":ec,"modules/history":ev,"modules/keyboard":$,"modules/uploader":ew,"modules/input":eE,"modules/uiNode":ek});let eS=r.Ay;class eC extends l.ClassAttributor{add(e,t){let n=0;if("+1"===t||"-1"===t){let r=this.value(e)||0;n="+1"===t?r+1:r-1}else"number"==typeof t&&(n=t);return 0===n?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}let eT=new eC("indent","ql-indent",{scope:l.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class eO extends i.Ay{static blotName="blockquote";static tagName="blockquote"}class e_ extends i.Ay{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}class eL extends a{}eL.blotName="list-container",eL.tagName="OL";class eR extends i.Ay{static create(e){let t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){r.Ay.register(eL)}constructor(e,t){super(e,t);let n=t.ownerDocument.createElement("span"),r=n=>{if(!e.isEnabled())return;let r=this.statics.formats(t,e);"checked"===r?(this.format("list","unchecked"),n.preventDefault()):"unchecked"===r&&(this.format("list","checked"),n.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}eR.blotName="list",eR.tagName="LI",eL.allowedChildren=[eR],eR.requiredContainer=eL;class ej extends d.A{static blotName="bold";static tagName=["STRONG","B"];
3static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}let eM=ej;class eq extends eM{static blotName="italic";static tagName=["EM","I"]}class eI extends d.A{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){let t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return eD(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("href",this.constructor.sanitize(t)):super.format(e,t)}}function eD(e,t){let n=document.createElement("a");n.href=e;let r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}class eP extends d.A{static blotName="script";static tagName=["SUB","SUP"];static create(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):super.create(e)}static formats(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}class eB extends eM{static blotName="strike";static tagName=["S","STRIKE"]}class eU extends d.A{static blotName="underline";static tagName="U"}class eF extends c.A{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(null==window.katex)throw Error("Formula module requires KaTeX.");let t=super.create(e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){let{formula:e}=this.value();return`<span>${e}</span>`}}let eH=["alt","height","width"];class ez extends l.EmbedBlot{static blotName="image";static tagName="IMG";static create(e){let t=super.create(e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return eH.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return eD(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){eH.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}let eK=["height","width"];class eW extends i.zo{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){let t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return eK.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return eI.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){eK.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){let{video:e}=this.value();return`<a href="${e}">${e}</a>`}}let eG=new l.ClassAttributor("code-token","hljs",{scope:l.Scope.INLINE});class e$ extends d.A{static formats(e,t){for(;null!=e&&e!==t.domNode;){if(e.classList&&e.classList.contains(L.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),eG.add(this.domNode,n)}format(e,t){e!==e$.blotName?super.format(e,t):t?eG.add(this.domNode,t):(eG.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),eG.value(this.domNode)||this.unwrap()}}e$.blotName="code-token",e$.className="ql-token";class eV extends L{static create(e){let t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),e$.blotName,!1),super.replaceWith(e,t)}}class eY extends _{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===eV.blotName&&(this.forceNext=!0,this.children.forEac
3h(n=>{n.format(e,t)}))}formatAt(e,t,n,r){n===eV.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,r)}highlight(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;let n=Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode),r=`${n.map(e=>e.textContent).join("\n")}
4`,o=eV.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==r){if(r.trim().length>0||null==this.cachedText){let t=this.children.reduce((e,t)=>e.concat((0,i.mG)(t,!1)),new h),n=e(r,o);t.diff(n).reduce((e,t)=>{let{retain:n,attributes:r}=t;return n?(r&&Object.keys(r).forEach(t=>{[eV.blotName,e$.blotName].includes(t)&&this.formatAt(e,n,t,r[t])}),e+n):e},0)}this.cachedText=r,this.forceNext=!1}}html(e,t){let[n]=this.children.find(e),r=n?eV.formats(n.domNode):"plain";return`<pre data-language="${r}">
5${(0,v.X)(this.code(e,t))}
6</pre>`}optimize(e){if(super.optimize(e),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){let e=eV.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}eY.allowedChildren=[eV],eV.requiredContainer=eY,eV.allowedChildren=[e$,u.A,v.A,o.A];class eX extends A.A{static register(){r.Ay.register(e$,!0),r.Ay.register(eV,!0),r.Ay.register(eY,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((e,t)=>{let{key:n}=t;return e[n]=!0,e},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(r.Ay.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof eY))return;let t=this.quill.root.ownerDocument.createElement("select");
6this.options.languages.forEach(e=>{let{key:n,label:r}=e,i=t.ownerDocument.createElement("option");i.textContent=r,i.setAttribute("value",n),t.appendChild(i)}),t.addEventListener("change",()=>{e.format(eV.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=eV.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(r.Ay.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(r.Ay.sources.USER);let n=this.quill.getSelection();(null==e?this.quill.scroll.descendants(eY):[e]).forEach(e=>{e.highlight(this.highlightBlot,t)}),this.quill.update(r.Ay.sources.SILENT),null!=n&&this.quill.setSelection(n,r.Ay.sources.SILENT)}highlightBlot(e){var t,n,r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(i=this.languages[i]?i:"plain"))return(0,v.X)(e).split("\n").reduce((e,t,n)=>(0!==n&&e.insert("\n",{[L.blotName]:i}),e.insert(t)),new h);let o=this.quill.root.ownerDocument.createElement("div");return o.classList.add(L.className),t=this.options.hljs,n=i,r=e,o.innerHTML="string"==typeof t.versionString&&parseInt(t.versionString.split(".")[0],10)>=11?t.highlight(r,{language:n}).value:t.highlight(n,r).value,em(this.quill.scroll,o,[(e,t)=>{let n=eG.value(e);return n?t.compose(new h().retain(t.length(),{[e$.blotName]:n})):t}],[(e,t)=>e.data.split("\n").reduce((e,t,n)=>(0!==n&&e.insert("\n",{[L.blotName]:i}),e.insert(t)),t)],new WeakMap)}}eX.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class eZ extends i.Ay{static blotName="table";static tagName="TD";static create(e){let t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",e1()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===eZ.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class eJ extends a{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){let e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),r=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===r.table}return!1}optimize(e){super.optimize(e),this.children.forEach(e=>{if(null==e.next)return;let t=e.formats(),n=e.next.formats();if(t.table!==n.table){let t=this.splitAfter(e);t&&t.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class eQ extends a{static blotName="table-body";static tagName="TBODY"}class e0 extends a{static blotName="table-container";static tagName="TABLE";balanceCells(){let e=this.descendants(eJ),t=e.reduce((e,t)=>Math.max(t.children.length,e),0);e.forEach(e=>{Array(t-e.children.length).fill(0).forEach(()=>{let t;null!=e.children.head&&(t=eZ.formats(e.children.head.domNode));let n=this.scroll.create(eZ.blotName,t);e.appendChild(n),n.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){let[t]=this.descendant(eQ);null!=t&&null!=t.children.head&&t.children.forEach(t=>{let n=t.children.at(e);null!=n&&n.remove()})}insertColumn(e){let[t]=this.descendant(eQ);
6null!=t&&null!=t.children.head&&t.children.forEach(t=>{let n=t.children.at(e),r=eZ.formats(t.children.head.domNode),i=this.scroll.create(eZ.blotName,r);t.insertBefore(i,n)})}insertRow(e){let[t]=this.descendant(eQ);if(null==t||null==t.children.head)return;let n=e1(),r=this.scroll.create(eJ.blotName);t.children.head.children.forEach(()=>{let e=this.scroll.create(eZ.blotName,n);r.appendChild(e)});let i=t.children.at(e);t.insertBefore(r,i)}rows(){let e=this.children.head;return null==e?[]:e.children.map(e=>e)}}function e1(){let e=Math.random().toString(36).slice(2,6);return`row-${e}`}e0.allowedChildren=[eQ],eQ.requiredContainer=e0,eQ.allowedChildren=[eJ],eJ.requiredContainer=eQ,eJ.allowedChildren=[eZ],eZ.requiredContainer=eJ;class e2 extends A.A{static register(){r.Ay.register(eZ),r.Ay.register(eJ),r.Ay.register(eQ),r.Ay.register(e0)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(e0).forEach(e=>{e.balanceCells()})}deleteColumn(){let[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update(r.Ay.sources.USER))}deleteRow(){let[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update(r.Ay.sources.USER))}deleteTable(){let[e]=this.getTable();if(null==e)return;let t=e.offset();e.remove(),this.quill.update(r.Ay.sources.USER),this.quill.setSelection(t,r.Ay.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];let[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==eZ.blotName)return[null,null,null,-1];let r=t.parent;return[r.parent.parent,r,t,n]}insertColumn(e){let t=this.quill.getSelection();if(!t)return;let[n,i,o]=this.getTable(t);if(null==o)return;let l=o.cellOffset();n.insertColumn(l+e),this.quill.update(r.Ay.sources.USER);let s=i.rowOffset();0===e&&(s+=1),this.quill.setSelection(t.index+s,t.length,r.Ay.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){let t=this.quill.getSelection();if(!t)return;let[n,i,o]=this.getTable(t);if(null==o)return;let l=i.rowOffset();n.insertRow(l+e),this.quill.update(r.Ay.sources.USER),e>0?this.quill.setSelection(t,r.Ay.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,r.Ay.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){let n=this.quill.getSelection();if(null==n)return;let i=Array(e).fill(0).reduce(e=>{let n=Array(t).fill("\n").join("");return e.insert(n,{table:e1()})},new h().retain(n.index));this.quill.updateContents(i,r.Ay.sources.USER),this.quill.setSelection(n.index,r.Ay.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(r.Ay.events.SCROLL_OPTIMIZE,e=>{e.some(e=>!!["TD","TR","TBODY","TABLE"].includes(e.target.tagName)&&(this.quill.once(r.Ay.events.TEXT_CHANGE,(e,t,n)=>{n===r.Ay.sources.USER&&this.balanceTables()}),!0))})}}var e5=n(93545);let e4='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',e3={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/>
6<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:e4,"code-block":e4
vendor: 12,560 bytes, line 6
6,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'}
6,e6=0;function e8(e,t){e.setAttribute(t,`${"true"!==e.getAttribute(t)}`)}class e9{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),e8(this.label,"aria-expanded"),e8(this.options,"aria-hidden")}buildItem(e){let t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");let n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.selectItem(t,!0),e.preventDefault();break;case"Escape":this.escape(),e.preventDefault()}}),t}buildLabel(){let e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","fal
6se"),this.container.appendChild(e),e}buildOptions(){let e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${e6}`,e6+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{let n=this.buildItem(t);e.appendChild(n),!0===t.selected&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){let t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);let t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}let e7=e9;class te extends e7{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(e=>{e.classList.add("ql-primary")})}buildItem(e){let t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);let n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}}class tt extends e7{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(e=>{e.innerHTML=t[e.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);let n=e||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}class tn{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(e=>{let{overflowY:t}=getComputedStyle(e,null);return"visible"!==t&&"clip"!==t})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){let t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");let r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=`${t+o}px`),i.left<r.left&&(o=r.left-i.left,this.root.style.left=`${t+o}px`),i.bottom>r.bottom){let t=i.bottom-i.top,r=e.bottom-e.top+t;this.root.style.top=`${n-r}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}let tr=tn;var ti=n(71571),to=n(56485);let tl=[!1,"center","right","justify"],ts=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],ta=[!1,"serif","monospace"],tu=["1","2","3",!1],tc=["small",!1,"large","huge"];class td extends to.A{constructor(e,t){super(e,t);let n=t=>{if(!document.body.contains(e.root))return void document.body.removeEventListener("click",n);null==this.tooltip||this.tooltip.root.contains(t.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEac
6h(e=>{e.container.contains(t.target)||e.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){let t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(e=>{(e.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(n.startsWith("ql-")&&null!=t[n=n.slice(3)])if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{let r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(e=>{if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&tf(e,tl),"object"==typeof t.align))return new tt(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){let n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&tf(e,ts,"background"===n?"#ffffff":"#000000"),new te(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?tf(e,ta):e.classList.contains("ql-header")?tf(e,tu):e.classList.contains("ql-size")&&tf(e,tc)),new e7(e)});let n=()=>{this.pickers.forEach(e=>{e.update()})};this.quill.on(f.A.events.EDITOR_CHANGE,n)}}td.DEFAULTS=(0,ti.A)({},to.A.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{let t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class th extends tr{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");let n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{let{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,f.A.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,f.A.sources.USER)),this.quill.root.scrollTop=t;break}case"video":var t;let n;e=(n=(t=e).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?`${n[1]||"https"}://www.youtube.com/embed/${n[2]}?showinfo=0`:(n=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${n[1]||"https"}://player.vimeo.com/video/${n[2]}/`:t;case"formula":{if(!e)break;let t=this.quill.getSelection(!0);if(null!=t){let n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,f.A.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",f.A.sources.USER),this.quill.setSelection(n+2,f.A.sources.USER)}}}this.textbox.value="",this.hide()}}function tf(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(t=>{let r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(t)),e.appendChild(r)})}var tp=n(2262);let tm=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class tg extends th{static TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';constructor(e,t){super(e,t),this.quill.on(f.A.events.EDITOR_CHANGE,(e,t,n,r)=>{if(e===f.A.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===f.A.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;let e=this.quill.getLines(t.index,t.length);if(1===e.length){let e=this.quill.getBounds(t);null!=e&&this.position(e)}else{let n=e[e.length-1],r=this.quill.getIndex(n),i=Math.min(n.length()-1,t.index+t.length-r),o=this.quill.getBounds(new tp.Q(r,i));null!=o&&this.position(o)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(f.A.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;let e=this.quill.getSelection();if(null!=e){let t=this.quill.getBounds(e);null!=t&&this.position(t)}},1)})}cancel(){this.show()}position(e){let t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==t&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}class ty extends td{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=tm),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new tg(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),e3),this.buildPickers(e.container.querySelectorAll("select"),e3))}}ty.DEFAULTS=(0,ti.A)({},td.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,r.Ay.sources.USER)}}}}});let tv=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class tb extends th{static TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(null!=this.linkRange){let e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,f.A.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(f.A.events.SELECTION_CHANGE,(e,t,n)=>{if(null!=e){if(0===e.length&&n===f.A.sources.USER){let[t,n]=this.quill.scroll.descendant(eI,e.index);if(null!=t){this.linkRange=new tp.Q(e.index-n,t.length());let r=eI.formats(t.domNode);this.preview.textContent=r,this.preview.setAttribute("href",r),this.show();let i=this.quill.getBounds(this.linkRange);null!=i&&this.position(i);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class tA extends td{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=tv),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),e3),this.buildPickers(e.container.querySelectorAll("select"),e3),this.tooltip=new tb(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}tA.DEFAULTS=(0,ti.A)({},td.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){let e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);let{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,r.Ay.sources.USER)}}}}}
6),eS.register({"attributors/attribute/direction":M,"attributors/class/align":E,"attributors/class/background":T,"attributors/class/color":S,"attributors/class/direction":q,"attributors/class/font":P,"attributors/class/size":F,"attributors/style/align":N,"attributors/style/background":O,"attributors/style/color":C,"attributors/style/direction":I,"attributors/style/font":U,"attributors/style/size":H},!0),eS.register({"formats/align":E,"formats/direction":q,"formats/indent":eT,"formats/background":O,"formats/color":C,"formats/font":P,"formats/size":F,"formats/blockquote":eO,"formats/code-block":L,"formats/header":e_,"formats/list":eR,"formats/bold":eM,"formats/code":R,"formats/italic":eq,"formats/link":eI,"formats/script":eP,"formats/strike":eB,"formats/underline":eU,"formats/formula":eF,"formats/image":ez,"formats/video":eW,"modules/syntax":eX,"modules/table":e2,"modules/toolbar":e5.A,"themes/bubble":ty,"themes/snow":tA,"ui/icons":e3,"ui/picker":e7,"ui/icon-picker":tt,"ui/color-picker":te,"ui/tooltip":tr},!0);let tw=eS},46778:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(44099);let i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},47520:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>z,UC:()=>$,ZL:()=>G,bL:()=>K,l9:()=>W});var r=n(12115),i=n(92556),o=n(94446),l=n(3468),s=n(40137),a=n(68946),u=n(66093),c=n(75433),d=n(76842),h=n(97602),f=n(32467),p=n(23558),m=n(861),g=n(95155),[y,v]=(0,l.A)("Tooltip",[u.Bk]),b=(0,u.Bk)(),A="TooltipProvider",w="tooltip.open",[x,E]=y(A),N=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=e,s=r.useRef(!0),a=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(x,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{i<=0||(window.clearTimeout(u.current),s.current=!1)},[i]),onClose:r.useCallback(()=>{i<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i))},[i]),isPointerInTransitRef:a,onPointerInTransitChange:r.useCallback(e=>{a.current=e},[]),disableHoverableContent:o,children:l})};N.displayName=A;var k="Tooltip",[S,C]=y(k),T=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,d=E(k,e.__scopeTooltip),h=b(t),[f,m]=r.useState(null),y=(0,a.B)(),v=r.useRef(0),A=null!=s?s:d.disableHoverableContent,x=null!=c?c:d.delayDuration,N=r.useRef(!1),[C,T]=(0,p.i)({prop:i,defaultProp:null!=o&&o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==l||l(e)},caller:k}),O=r.useMemo(()=>C?N.current?"delayed-open":"instant-open":"closed",[C]),_=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,N.current=!1,T(!0)},[T]),L=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,T(!1)},[T]),R=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{N.current=!0,T(!0),v.current=0},x)},[x,T]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,g.jsx)(u.bL,{...h,children:(0,g.jsx)(S,{scope:t,contentId:y,open:C,stateAttribute:O,trigger:f,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?R():_()},[d.isOpenDelayedRef,R,_]),onTriggerLeave:r.useCallback(()=>{A?L():(window.clearTimeout(v.current),v.current=0)},[L,A]),onOpen:_,onClose:L,disableHoverableContent:A,children:n})})};T.displayName=k;var O="TooltipTrigger",_=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,s=C(O,n),a=E(O,n),c=b(n),d=r.useRef(null),f=(0,o.s)(t,d,s.onTriggerChange),p=r.useRef(!1),m=r.useRef(!1),y=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(h.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...l,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||a.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.mK)(e.onBlur,s.onClose),onClick:(0,i.mK)(e.onClick,s.onClose)})})});_.displayName=O;var L="TooltipPortal",[R,j]=y(L,{forceMount:void 0}),M=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=C(L,t);
6return(0,g.jsx)(R,{scope:t,forceMount:n,children:(0,g.jsx)(d.C,{present:n||o.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};M.displayName=L;var q="TooltipContent",I=r.forwardRef((e,t)=>{let n=j(q,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=C(q,e.__scopeTooltip);return(0,g.jsx)(d.C,{present:r||l.open,children:l.disableHoverableContent?(0,g.jsx)(F,{side:i,...o,ref:t}):(0,g.jsx)(D,{side:i,...o,ref:t})})}),D=r.forwardRef((e,t)=>{let n=C(q,e.__scopeTooltip),i=E(q,e.__scopeTooltip),l=r.useRef(null),s=(0,o.s)(t,l),[a,u]=r.useState(null),{trigger:c,onClose:d}=n,h=l.current,{onPointerInTransitChange:f}=i,p=r.useCallback(()=>{u(null),f(!1)},[f]),m=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&h){let e=e=>m(e,h),t=e=>m(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,m,p]),r.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let l=t[e],s=t[o],a=l.x,u=l.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-a)*(r-u)/(d-u)+a&&(i=!i)}return i}(n,a);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,a,d,p]),(0,g.jsx)(F,{...e,ref:s})}),[P,B]=y(k,{isInside:!1}),U=(0,f.Dc)("TooltipContent"),F=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:a,...c}=e,d=C(q,n),h=b(n),{onClose:f}=d;return r.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),r.useEffect(()=>{if(d.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(d.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,g.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,g.jsxs)(u.UC,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(U,{children:i}),(0,g.jsx)(P,{scope:n,isInside:!0,children:(0,g.jsx)(m.bL,{id:d.contentId,role:"tooltip",children:o||i})})]})})});I.displayName=q;var H="TooltipArrow";r.forwardRef((e,t)=>
6{let{__scopeTooltip:n,...r}=e,i=b(n);return B(H,n).isInside?null:(0,g.jsx)(u.i3,{...i,...r,ref:t})}).displayName=H;var z=N,K=T,W=_,G=M,$=I},47939:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(62308),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,l=o&&o.exports===i?r.A.Buffer:void 0,s=l?l.allocUnsafe:void 0;let a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},48272:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51985),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,l=o&&o.exports===i&&r.A.process;let s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return l&&l.binding&&l.binding("util")}catch(e){}}()},48373:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ImageDown",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},50245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(32031);class i{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);let t=this.ops[this.index];if(!t)return{retain:1/0};{let n=this.offset,i=r.default.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{let r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"object"==typeof t.retain&&null!==t.retain?r.retain=t.retain:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let e=this.ops[this.index];if(e){if("number"==typeof e.delete)return"delete";else if("number"!=typeof e.retain&&("object"!=typeof e.retain||null===e.retain))return"insert"}return"retain"}rest(){if(!this.hasNext())return[];{if(0===this.offset)return this.ops.slice(this.index);let e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}}}t.default=i},51190:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},51262:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});let i=n(54892),o=n(15168);!function(e){e.compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let r=i(t);for(let i in n||(r=Object.keys(r).reduce((e,t)=>(null!=r[t]&&(e[t]=r[t]),e),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let n=Object.keys(e).concat(Object.keys(t)).reduce((n,r)=>(o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e={},t={}){e=e||{};let n=Object.keys(t).reduce((n,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n),{});return Object.keys(e).reduce((n,r)=>(e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n),n)},e.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;let r=Object.keys(t).reduce((n,r)=>(void 0===e[r]&&(n[r]=t[r]),n),{});return Object.keys(r).length>0?r:void 0}}(r||(r={})),t.default=r},51876:(e,t,n)=>{"use strict";n.d(t,{K:()=>C,N_:()=>k,Ys:()=>p,ok:()=>S,pg:()=>w});var r,i,o,l,s=n(12115),a=n(47650),u=n(62335),c=n(20888);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function h(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}let f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function p(e,t){var n;let r;return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({}
6,null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||((r=null==(n=window)?void 0:n.__staticRouterHydrationData)&&r.errors&&(r=d({},r,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new c.VV(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let i=new t(r.message);i.stack="",n[e]=i}catch(e){}}if(null==n[e]){let t=Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}(r.errors)})),r),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}let m=s.createContext({isTransitioning:!1}),g=s.createContext(new Map),y=(r||(r=n.t(s,2))).startTransition,v=(i||(i=n.t(a,2))).flushSync;function b(e){v?v(e):e()}(r||(r=n.t(s,2))).useId;class A{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function w(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=s.useState(n.state),[l,a]=s.useState(),[c,d]=s.useState({isTransitioning:!1}),[h,f]=s.useState(),[p,v]=s.useState(),[w,E]=s.useState(),N=s.useRef(new Map),{v7_startTransition:k}=r||{},S=s.useCallback(e=>{if(k)y?y(e):e();else e()},[k]),C=s.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:i,viewTransitionOpts:l}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&N.current.set(t,e.data)}),r.forEach(e=>N.current.delete(e));let s=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(!l||s)return void(i?b(()=>o(e)):S(()=>o(e)));if(i){b(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:l.currentLocation,nextLocation:l.nextLocation})});let t=n.window.document.startViewTransition(()=>{b(()=>o(e))});t.finished.finally(()=>{b(()=>{f(void 0),v(void 0),a(void 0),d({isTransitioning:!1})})}),b(()=>v(t));return}p?(h&&h.resolve(),p.skipTransition(),E({state:e,currentLocation:l.currentLocation,nextLocation:l.nextLocation})):(a(e),d({isTransitioning:!0,flushSync:!1,currentLocation:l.currentLocation,nextLocation:l.nextLocation}))},[n.window,p,h,N,S]);s.useLayoutEffect(()=>n.subscribe(C),[n,C]),s.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new A)},[c]),s.useEffect(()=>{if(h&&l&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{S(()=>o(l)),await e});t.finished.finally(()=>{f(void 0),v(void 0),a(void 0),d({isTransitioning:!1})}),v(t)}},[S,l,h,n.window]),s.useEffect(()=>{h&&l&&i.location.key===l.location.key&&h.resolve()},[h,p,i.location,l]),s.useEffect(()=>{!c.isTransitioning&&w&&(a(w.state),d({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),E(void 0))},[c.isTransitioning,w]),s.useEffect(()=>{},[]);let T=s.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),O=n.basename||"/",_=s.useMemo(()=>({router:n,navigator:T,static:!1,basename:O}),[n,T,O]),L=s.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return s.useEffect(()=>(0,u.V8)(r,n.future),[r,n.future]),s.createElement(s.Fragment,null,s.createElement(u.sp.Provider,{value:_},s.createElement(u.Rq.Provider,{value:i},s.createElement(g.Provider,{value:N.current},s.createElement(m.Provider,{value:c},s.createElement(u.Ix,{basename:O,location:i.location,navigationType:i.historyAction,navigator:T,future:L},i.initialized||n.future.v7_partialHydration?s.createElement(x,{routes:n.routes,future:n.future,state:i}):t))))),null)}let x=s.memo(function(e){let{routes:t,future:n,state:r}=e;
6return(0,u.ph)(t,void 0,r,n)}),E="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k=s.forwardRef(function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:h,to:p,preventScrollReset:m,viewTransition:g}=e,y=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,f),{basename:v}=s.useContext(u.jb),b=!1;if("string"==typeof p&&N.test(p)&&(n=p,E))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),n=(0,c.pb)(t.pathname,v);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:b=!0}catch(e){}let A=(0,u.$P)(p,{relative:i}),w=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,viewTransition:a}=void 0===t?{}:t,d=(0,u.Zp)(),h=(0,u.zy)(),f=(0,u.x$)(e,{relative:l});return s.useCallback(t=>{0!==t.button||n&&"_self"!==n||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==r?r:(0,c.AO)(h)===(0,c.AO)(f),state:i,preventScrollReset:o,relative:l,viewTransition:a}))},[h,d,f,r,i,n,e,o,l,a])}(p,{replace:l,state:a,target:h,preventScrollReset:m,relative:i,viewTransition:g});return s.createElement("a",d({},y,{href:n||A,onClick:b||o?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:h}))});function S(e){let t=s.useRef(h(e)),n=s.useRef(!1),r=(0,u.zy)(),i=s.useMemo(()=>{var e,i;let o;return e=r.search,i=n.current?null:t.current,o=h(e),i&&i.forEach((e,t)=>{o.has(t)||i.getAll(t).forEach(e=>{o.append(t,e)})}),o},[r.search]),o=(0,u.Zp)(),l=s.useCallback((e,t)=>{let r=h("function"==typeof e?e(i):e);n.current=!0,o("?"+r,t)},[o,i]);return[i,l]}function C(e,t){let{capture:n}=t||{};s.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(o||(o={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(l||(l={}))},51985:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},53489:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])}
6,53798:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Object.prototype;let i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},54892:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i="[object Arguments]",o="[object Boolean]",l="[object Date]",s="[object Function]",a="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",h="[object Promise]",f="[object RegExp]",p="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",A="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",N="[object Int32Array]",k="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",T="[object Uint32Array]",O=/\w*$/,_=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,R={};R[i]=R["[object Array]"]=R[v]=R[b]=R[o]=R[l]=R[A]=R[w]=R[x]=R[E]=R[N]=R[u]=R[c]=R[d]=R[f]=R[p]=R[m]=R[g]=R[k]=R[S]=R[C]=R[T]=!0,R["[object Error]"]=R[s]=R[y]=!1;var j="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,q=j||M||Function("return this")(),I=t&&!t.nodeType&&t,D=I&&e&&!e.nodeType&&e,P=D&&D.exports===I;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function F(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function K(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var G=Array.prototype,$=Function.prototype,V=Object.prototype,Y=q["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=$.toString,J=V.hasOwnProperty,Q=V.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=P?q.Buffer:void 0,en=q.Symbol,er=q.Uint8Array,ei=K(Object.getPrototypeOf,Object),eo=Object.create,el=V.propertyIsEnumerable,es=G.splice,ea=Object.getOwnPropertySymbols,eu=et?et.isBuffer:void 0,ec=K(Object.keys,Object),ed=ej(q,"DataView"),eh=ej(q,"Map"),ef=ej(q,"Promise"),ep=ej(q,"Set"),em=ej(q,"WeakMap"),eg=ej(Object,"create"),ey=eD(ed),ev=eD(eh),eb=eD(ef),eA=eD(ep),ew=eD(em),ex=en?en.prototype:void 0,eE=ex?ex.valueOf:void 0;function eN(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ek(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eS(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eC(e){this.__data__=new ek(e)}function eT(e,t,n){var r=e[t];J.call(e,t)&&eP(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function eO(e,t){for(var n=e.length;n--;)if(eP(e[n][0],t))return n;return -1}function e_(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t}function eL(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;eT(n,l,void 0===s?e[l]:s)}return n}function eR(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ej(e,t){var n,r=null==e?void 0:e[t];return!(!ez(r)||(n=r,X&&X in n))&&(eH(r)||H(r)?ee:_).test(eD(r))?r:void 0}eN.prototype.clear=function(){this.__data__=eg?eg(null):{}},eN.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eN.prototype.get=function(e){var t=this.__data__;if(eg){var n=t[e];return n===r?void 0:n}return J.call(t,e)?t[e]:void 0},eN.prototype.has=function(e){var t=this.__data__;return eg?void 0!==t[e]:J.call(t,e)},eN.prototype.set=function(e,t){return this.__data__[e]=eg&&void 0===t?r:t,this},ek.prototype.clear=function(){this.__data__=[]},ek.prototype.delete=function(e){var t=this.__data__,n=eO(t,e);return!(n<0)&&(n==t.length-1?t.pop():es.call(t,n,1),!0)},ek.prototype.get=function(e){var t=this.__data__,n=eO(t,e);return n<0?void 0:t[n][1]},ek.prototype.has=function(e){return eO(this.__data__,e)>-1},ek.prototype.set=function(e,t){var n=this.__data__,r=eO(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eS.prototype.clear=function(){this.__data__={hash:new eN,map:new(eh||ek),string:new eN}},eS.prototype.delete=function(e){return eR(this,e).delete(e)},eS.prototype.get=function(e){return eR(this,e).get(e)},eS.prototype.has=function(e){return eR(this,e).has(e)},eS.prototype.set=function(e,t){return eR(this,e).set(e,t),this},eC.prototype.clear=function(){this.__data__=new ek},eC.prototype.delete=function(e){return this.__data__.delete(e)},eC.prototype.get=function(e){return this.__data__.get(e)},eC.prototype.has=function(e){return this.__data__.has(e)},eC.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ek){var r=n.__data__;if(!eh||r.length<199)return r.push([e,t]),this;n=this.__data__=new eS(r)}return n.set(e,t),this};var eM=ea?K(ea,Object):function(){return[]},eq=function(e){return Q.call(e)};function eI(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||V)}function eD(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eP(e,t){return e===t||e!=e&&t!=t}(ed&&eq(new ed(new ArrayBuffer(1)))!=b||eh&&eq(new eh)!=u||ef&&eq(ef.resolve())!=h||ep&&eq(new ep)!=p||em&&eq(new em)!=y)&&(eq=function(e){var t=Q.call(e),n=t==d?e.constructor:void 0,r=n?eD(n):void 0;if(r)switch(r){case ey:return b;case ev:return u;case eb:return h;case eA:return p;case ew:return y}return t});var eB=Array.isArray;function eU(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!eH(e)}var eF=eu||function(){return!1};function eH(e){var t=ez(e)?Q.call(e):"";return t==s||t==a}function ez(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eK(e){return eU(e)?function(e,t){var n,r,o,l,s,a=eB(e)||(o=r=n=e)&&"object"==typeof o&&eU(r)&&J.call(n,"callee")&&(!el.call(n,"callee")||Q.call(n)==i)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,c=!!u;for(var d in e){J.call(e,d)&&!(c&&("length"==d||(l=d,(s=null==(s=u)?0x1fffffffffffff:s)&&("number"==typeof l||L.test(l))&&l>-1&&l%1==0&&l<s)))&&a.push(d)}return a}(e):function(e){if(!eI(e))return ec(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return function e(t,n,r,h,y,_,L){if(h&&(j=_?h(t,y,_,L):h(t)),void 0!==j)return j;if(!ez(t))return t;var j,M=eB(t);
6if(M){if(I=(q=t).length,D=q.constructor(I),I&&"string"==typeof q[0]&&J.call(q,"index")&&(D.index=q.index,D.input=q.input),j=D,!n){var q,I,D,P=t,K=j,G=-1,$=P.length;for(K||(K=Array($));++G<$;)K[G]=P[G];return K}}else{var V,Y,X,Z,Q,ee=eq(t),et=ee==s||ee==a;if(eF(t)){var en=t,er=n;if(er)return en.slice();var el=new en.constructor(en.length);return en.copy(el),el}if(ee==d||ee==i||et&&!_){if(H(t))return _?t:{};if(j="function"!=typeof(V=et?{}:t).constructor||eI(V)?{}:ez(Y=ei(V))?eo(Y):{},!n){return X=t,Z=(Q=j)&&eL(t,eK(t),Q),eL(X,eM(X),Z)}}else{if(!R[ee])return _?t:{};j=function(e,t,n,r){var i,s,a,d=e.constructor;switch(t){case v:return e_(e);case o:case l:return new d(+e);case b:return i=r?e_(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.byteLength);case A:case w:case x:case E:case N:case k:case S:case C:case T:return s=r?e_(e.buffer):e.buffer,new e.constructor(s,e.byteOffset,e.length);case u:return F(r?n(z(e),!0):z(e),B,new e.constructor);case c:case m:return new d(e);case f:return(a=new e.constructor(e.source,O.exec(e))).lastIndex=e.lastIndex,a;case p:return F(r?n(W(e),!0):W(e),U,new e.constructor);case g:return eE?Object(eE.call(e)):{}}}(t,ee,e,n)}}L||(L=new eC);var es=L.get(t);if(es)return es;if(L.set(t,j),!M)var ea=r?function(e){var t;return t=eK(e),eB(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eM(e))}(t):eK(t);return!function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(ea||t,function(i,o){ea&&(i=t[o=i]),eT(j,o,e(i,n,r,h,o,t,L))}),j}(e,!0,!0)}},55644:(e,t,n)=>{"use strict";n.d(t,{UC:()=>Q,YJ:()=>ep,In:()=>$,q7:()=>eA,VF:()=>eN,p4:()=>ex,JU:()=>eg,ZL:()=>Z,bL:()=>H,wn:()=>eT,PP:()=>eS,wv:()=>e_,l9:()=>K,WT:()=>G,LM:()=>ec});var r=n(12115),i=n(47650);function o(e,[t,n]){return Math.min(n,Math.max(t,e))}var l=n(92556),s=n(49972),a=n(94446),u=n(3468),c=n(66218),d=n(40137),h=n(19526),f=n(69666),p=n(68946),m=n(66093),g=n(75433),y=n(76842),v=n(97602),b=n(32467),A=n(70222),w=n(23558),x=n(4129),E=n(78108),N=n(861),k=n(97745),S=n(14432),C=n(95155),T=[" ","Enter","ArrowUp","ArrowDown"],O=[" ","Enter"],_="Select",[L,R,j]=(0,s.N)(_),[M,q]=(0,u.A)(_,[j,m.Bk]),I=(0,m.Bk)(),[D,P]=M(_),[B,U]=M(_);function F(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:l,value:s,defaultValue:a,onValueChange:u,dir:d,name:h,autoComplete:f,disabled:g,required:y,form:v,internal_do_not_use_render:b}=e,A=I(t),[x,E]=r.useState(null),[N,k]=r.useState(null),[S,T]=r.useState(!1),O=(0,c.jH)(d),[R,j]=(0,w.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:_}),[M,q]=(0,w.i)({prop:s,defaultProp:a,onChange:u,caller:_}),P=r.useRef(null),U=!x||!!v||!!x.closest("form"),[F,H]=r.useState(new Set),z=(0,p.B)(),K=Array.from(F).map(e=>e.props.value).join(";"),W=r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),G=r.useCallback(e=>{H(t=>{let n=new Set(t);return n.delete(e),n})},[]),$={required:y,trigger:x,onTriggerChange:E,valueNode:N,onValueNodeChange:k,valueNodeHasChildren:S,onValueNodeHasChildrenChange:T,contentId:z,value:M,onValueChange:q,open:R,onOpenChange:j,dir:O,triggerPointerDownPosRef:P,disabled:g,name:h,autoComplete:f,form:v,nativeOptions:F,nativeSelectKey:K,isFormControl:U};return(0,C.jsx)(m.bL,{...A,children:(0,C.jsx)(D,{scope:t,...$,children:(0,C.jsx)(L.Provider,{scope:t,children:(0,C.jsx)(B,{scope:t,onNativeOptionAdd:W,onNativeOptionRemove:G,children:"function"==typeof b?b($):n})})})})}F.displayName="SelectProvider";var H=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,C.jsx)(F,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,C.jsxs)(C.Fragment,{children:[n,r?(0,C.jsx)(ej,{__scopeSelect:t}):null]})}})};H.displayName=_;var z="SelectTrigger",K=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...o}=e,s=I(n),u=P(z,n),c=u.disabled||i,d=(0,a.s)(t,u.onTriggerChange),h=R(n),f=r.useRef("touch"),[p,g,y]=eq(e=>{let t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=eI(t,e,n);void 0!==r&&u.onValueChange(r.value)}),b=e=>{c||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,C.jsx)(m.Mz,{asChild:!0,...s,children:(0,C.jsx)(v.sG.button,{type:"button",role:"combobox","aria-controls":u.open?u.contentId:void 0,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eM(u.value)?"":void 0,...o,ref:d,onClick:(0,l.mK)(o.onClick,e=>
6{e.currentTarget.focus(),"mouse"!==f.current&&b(e)}),onPointerDown:(0,l.mK)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,l.mK)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(b(),e.preventDefault())})})})});K.displayName=z;var W="SelectValue",G=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:o,children:l,placeholder:s="",...u}=e,c=P(W,n),{onValueNodeHasChildrenChange:d}=c,h=void 0!==l,f=(0,a.s)(t,c.onValueNodeChange);(0,x.N)(()=>{d(h)},[d,h]);let p=eM(c.value);return(0,C.jsx)(v.sG.span,{...u,asChild:!p&&u.asChild,ref:f,style:{pointerEvents:"none"},children:(0,C.jsx)(r.Fragment,{children:p?s:l},p?"placeholder":"value")})});G.displayName=W;var $=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,C.jsx)(v.sG.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});$.displayName="SelectIcon";var V="SelectPortal",[Y,X]=M(V,{forceMount:void 0}),Z=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,C.jsx)(Y,{scope:e.__scopeSelect,forceMount:n,children:(0,C.jsx)(g.Z,{asChild:!0,...r})})};Z.displayName=V;var J="SelectContent",Q=r.forwardRef((e,t)=>{let n=X(J,e.__scopeSelect),{forceMount:i=n.forceMount,...o}=e,l=P(J,e.__scopeSelect),[s,a]=r.useState();return(0,x.N)(()=>{a(new DocumentFragment)},[]),(0,C.jsx)(y.C,{present:i||l.open,children:e=>{let{present:n}=e;return n?(0,C.jsx)(ei,{...o,ref:t}):(0,C.jsx)(ee,{...o,fragment:s})}})});Q.displayName=J;var ee=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:o}=e;return o?i.createPortal((0,C.jsx)(et,{scope:n,children:(0,C.jsx)(L.Slot,{scope:n,children:(0,C.jsx)("div",{ref:t,children:r})})}),o):null});ee.displayName="SelectContentFragment";var[et,en]=M(J),er=(0,b.TL)("SelectContent.RemoveScroll"),ei=r.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:b,sticky:A,hideWhenDetached:w,avoidCollisions:x,...E}=e,N=P(J,n),[T,O]=r.useState(null),[_,L]=r.useState(null),j=(0,a.s)(t,O),[M,q]=r.useState(null),[I,D]=r.useState(null),B=R(n),[U,F]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(T)return(0,k.Eq)(T)},[T]),(0,h.Oh)();let z=r.useCallback(e=>{let[t,...n]=B().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===r&&_&&(_.scrollTop=_.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[B,_]),K=r.useCallback(()=>z([M,T]),[z,M,T]);r.useEffect(()=>{U&&K()},[U,K]);let{onOpenChange:W,triggerPointerDownPosRef:G}=N;r.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(n=G.current)?void 0:n.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=G.current)?void 0:r.y)?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(T)||W(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[T,W,G]),r.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[$,V]=eq(e=>{let t=B().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eI(t,e,n);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),Y=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==N.value&&N.value===t||r)&&(q(e),r&&(H.current=!0))},[N.value]),X=r.useCallback(()=>null==T?void 0:T.focus(),[T]),Z=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==N.value&&N.value===t||r)&&D(e)},[N.value]),Q="popper"===i?el:eo,ee=Q===el?{side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:b,sticky:A,hideWhenDetached:w,avoidCollisions:x}:{};return(0,C.jsx)(et,{scope:n,content:T,viewport:_,onViewportChange:L,itemRefCallback:Y,selectedItem:M,onItemLeave:X,itemTextRefCallback:Z,focusSelectedItem:K,selectedItemText:I,position:i,isPositioned:U,searchRef:$,children:(0,C.jsx)(S.A,{as:er,allowPinchZoom:!0,children:(0,C.jsx)(f.n,{asChild:!0,trapped:N.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.mK)(o,e=>{var t;
6null==(t=N.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:(0,C.jsx)(Q,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:e=>e.preventDefault(),...E,...ee,onPlaced:()=>F(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,l.mK)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});ei.displayName="SelectContentImpl";var eo=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...l}=e,s=P(J,n),u=en(J,n),[c,d]=r.useState(null),[h,f]=r.useState(null),p=(0,a.s)(t,f),m=R(n),g=r.useRef(!1),y=r.useRef(!0),{viewport:b,selectedItem:A,selectedItemText:w,focusSelectedItem:E}=u,N=r.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&h&&b&&A&&w){let e=s.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){let i=r.left-t.left,l=n.left-i,s=e.left-l,a=e.width+s,u=Math.max(a,t.width),d=o(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=a+"px",c.style.left=d+"px"}else{let i=t.right-r.right,l=window.innerWidth-n.right-i,s=window.innerWidth-e.right-l,a=e.width+s,u=Math.max(a,t.width),d=o(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=a+"px",c.style.right=d+"px"}let l=m(),a=window.innerHeight-20,u=b.scrollHeight,d=window.getComputedStyle(h),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),v=f+p+u+parseInt(d.paddingBottom,10)+y,x=Math.min(5*A.offsetHeight,v),E=window.getComputedStyle(b),N=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),S=e.top+e.height/2-10,C=A.offsetHeight/2,T=f+p+(A.offsetTop+C);if(T<=S){let e=l.length>0&&A===l[l.length-1].ref.current;c.style.bottom="0px";let t=Math.max(a-S,C+(e?k:0)+(h.clientHeight-b.offsetTop-b.offsetHeight)+y);c.style.height=T+t+"px"}else{let e=l.length>0&&A===l[0].ref.current;c.style.top="0px";let t=Math.max(S,f+b.offsetTop+(e?N:0)+C);c.style.height=t+(v-T)+"px",b.scrollTop=T-S+b.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=x+"px",c.style.maxHeight=a+"px",null==i||i(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,c,h,b,A,w,s.dir,i]);(0,x.N)(()=>N(),[N]);let[k,S]=r.useState();(0,x.N)(()=>{h&&S(window.getComputedStyle(h).zIndex)},[h]);let T=r.useCallback(e=>{e&&!0===y.current&&(N(),null==E||E(),y.current=!1)},[N,E]);return(0,C.jsx)(es,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:(0,C.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,C.jsx)(v.sG.div,{...l,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});eo.displayName="SelectItemAlignedPosition";var el=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,l=I(n);return(0,C.jsx)(m.UC,{...l,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});el.displayName="SelectPopperPosition";var[es,ea]=M(J,{}),eu="SelectViewport",ec=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,s=en(eu,n),u=ea(eu,n),c=(0,a.s)(t,s.onViewportChange),d=r.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,C.jsx)(L.Slot,{scope:n,children:(0,C.jsx)(v.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,l.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,l=Math.min(r,o),s=o-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});ec.displayName=eu;var ed="SelectGroup",[eh,ef]=M(ed),ep=r.forwardRef((e,t)=>
6{let{__scopeSelect:n,...r}=e,i=(0,p.B)();return(0,C.jsx)(eh,{scope:n,id:i,children:(0,C.jsx)(v.sG.div,{role:"group","aria-labelledby":i,...r,ref:t})})});ep.displayName=ed;var em="SelectLabel",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ef(em,n);return(0,C.jsx)(v.sG.div,{id:i.id,...r,ref:t})});eg.displayName=em;var ey="SelectItem",[ev,eb]=M(ey),eA=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...u}=e,c=P(ey,n),d=en(ey,n),h=c.value===i,[f,m]=r.useState(null!=s?s:""),[g,y]=r.useState(!1),b=(0,A.c)(e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,i,o)}),w=(0,a.s)(t,b),x=(0,p.B)(),E=r.useRef("touch"),N=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};return(0,C.jsx)(ev,{scope:n,value:i,disabled:o,textId:x,isSelected:h,onItemTextChange:r.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,C.jsx)(L.ItemSlot,{scope:n,value:i,disabled:o,textValue:f,children:(0,C.jsx)(v.sG.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:w,onFocus:(0,l.mK)(u.onFocus,()=>y(!0)),onBlur:(0,l.mK)(u.onBlur,()=>y(!1)),onClick:(0,l.mK)(u.onClick,()=>{"mouse"!==E.current&&N()}),onPointerUp:(0,l.mK)(u.onPointerUp,()=>{"mouse"===E.current&&N()}),onPointerDown:(0,l.mK)(u.onPointerDown,e=>{E.current=e.pointerType}),onPointerMove:(0,l.mK)(u.onPointerMove,e=>{if(E.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===E.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.mK)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,l.mK)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(O.includes(e.key)&&N()," "===e.key&&e.preventDefault())})})})})});eA.displayName=ey;var ew="SelectItemText",ex=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:o,style:l,...s}=e,u=P(ew,n),c=en(ew,n),d=eb(ew,n),h=U(ew,n),[f,p]=r.useState(null),m=(0,A.c)(e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),g=(0,a.s)(t,p,d.onItemTextChange,m),y=null==f?void 0:f.textContent,b=r.useMemo(()=>(0,C.jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:w,onNativeOptionRemove:E}=h;return(0,x.N)(()=>(w(b),()=>E(b)),[w,E,b]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(v.sG.span,{id:d.textId,...s,ref:g}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren&&!eM(u.value)?i.createPortal(s.children,u.valueNode):null]})});ex.displayName=ew;var eE="SelectItemIndicator",eN=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return eb(eE,n).isSelected?(0,C.jsx)(v.sG.span,{"aria-hidden":!0,...r,ref:t}):null});eN.displayName=eE;var ek="SelectScrollUpButton",eS=r.forwardRef((e,t)=>{let n=en(ek,e.__scopeSelect),i=ea(ek,e.__scopeSelect),[o,l]=r.useState(!1),s=(0,a.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(eO,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eS.displayName=ek;var eC="SelectScrollDownButton",eT=r.forwardRef((e,t)=>{let n=en(eC,e.__scopeSelect),i=ea(eC,e.__scopeSelect),[o,l]=r.useState(!1),s=(0,a.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(eO,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eT.displayName=eC;var eO=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,s=en("SelectScrollButton",n),a=r.useRef(null),u=R(n),c=r.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,x.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,C.jsx)(v.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,l.mK)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(i,50))}),onPointerMove:(0,l.mK)(o.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===a.current&&(a.current=window.setInterval(i,50))}),onPointerLeave:(0,l.mK)(o.onPointerLeave,()=>{c()})})}),e_=r.forwardRef((e,t)=>
6{let{__scopeSelect:n,...r}=e;return(0,C.jsx)(v.sG.div,{"aria-hidden":!0,...r,ref:t})});e_.displayName="SelectSeparator";var eL="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=I(n);return"popper"===en(eL,n).position?(0,C.jsx)(m.i3,{...i,...r,ref:t}):null}).displayName=eL;var eR="SelectBubbleInput",ej=r.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,o=P(eR,n),{value:l,onValueChange:s,required:u,disabled:c,name:d,autoComplete:h,form:f}=o,{nativeOptions:p,nativeSelectKey:m}=o,g=r.useRef(null),y=(0,a.s)(t,g),b=null!=l?l:"",A=(0,E.Z)(b),w=Array.from(p).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return r.useEffect(()=>{let e=g.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(A!==b&&t){let n=new Event("change",{bubbles:!0});t.call(e,b),e.dispatchEvent(n)}},[A,b]),(0,C.jsxs)(v.sG.select,{"aria-hidden":!0,required:u,tabIndex:-1,name:d,autoComplete:h,disabled:c,form:f,onChange:e=>s(e.target.value),...i,style:{...N.Qg,...i.style},ref:y,defaultValue:b,children:[eM(l)&&!w?(0,C.jsx)("option",{value:""}):null,Array.from(p)]},m)});function eM(e){return""===e||void 0===e}function eq(e){let t=(0,A.c)(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,l]}function eI(e,t,n){var r,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,s=(r=e,i=Math.max(l,0),r.map((e,t)=>r[(i+t)%r.length]));1===o.length&&(s=s.filter(e=>e!==n));let a=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}ej.displayName=eR},55958:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},56397:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},56485:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class r{static DEFAULTS={modules:{}};static themes={default:r};modules={};constructor(e,t){this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{null==this.modules[e]&&this.addModule(e)})}addModule(e){let t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}let i=r},57386:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(15041),i=n(37537),o=Object.prototype.hasOwnProperty;let l=function(e,t,n){var l=e[t];o.call(e,t)&&(0,i.A)(l,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},58772:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},59338:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},59584:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var i=n(14875),o=n(64536),l=n(82092),s=n(90904),a=n(67822),u=Object.prototype.hasOwnProperty;let c=function(e,t){var n=(0,o.A)(e),c=!n&&(0,i.A)(e),d=!n&&!c&&(0,l.A)(e),h=!n&&!c&&!
6d&&(0,a.A)(e),f=n||c||d||h,p=f?r(e.length,String):[],m=p.length;for(var g in e)(t||u.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,s.A)(g,m)))&&p.push(g);return p}},60574:(e,t,n)=>{"use strict";n.d(t,{UC:()=>Y,B8:()=>$,bL:()=>G,l9:()=>V});var r=n(12115),i=n(92556),o=n(3468),l=n(49972),s=n(94446),a=n(68946),u=n(97602),c=n(70222),d=n(23558),h=n(66218),f=n(95155),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,b]=(0,l.N)(g),[A,w]=(0,o.A)(g,[b]),[x,E]=A(g),N=r.forwardRef((e,t)=>(0,f.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(k,{...e,ref:t})})}));N.displayName=g;var k=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:l=!1,dir:a,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:A,onEntryFocus:w,preventScrollOnEntryFocus:E=!1,...N}=e,k=r.useRef(null),S=(0,s.s)(t,k),C=(0,h.jH)(a),[T,_]=(0,d.i)({prop:y,defaultProp:null!=b?b:null,onChange:A,caller:g}),[L,R]=r.useState(!1),j=(0,c.c)(w),M=v(n),q=r.useRef(!1),[I,D]=r.useState(0);return r.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(p,j),()=>e.removeEventListener(p,j)},[j]),(0,f.jsx)(x,{scope:n,orientation:o,dir:C,loop:l,currentTabStopId:T,onItemFocus:r.useCallback(e=>_(e),[_]),onItemShiftTab:r.useCallback(()=>R(!0),[]),onFocusableItemAdd:r.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>D(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:L||0===I?-1:0,"data-orientation":o,...N,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{q.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!q.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),E)}}q.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>R(!1))})})}),S="RovingFocusGroupItem",C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:s,children:c,...d}=e,h=(0,a.B)(),p=s||h,m=E(S,n),g=m.currentTabStopId===p,b=v(n),{onFocusableItemAdd:A,onFocusableItemRemove:w,currentTabStopId:x}=m;return r.useEffect(()=>{if(o)return A(),()=>w()},[o,A,w]),(0,f.jsx)(y.ItemSlot,{scope:n,id:p,focusable:o,active:l,children:(0,f.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return T[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>O(n))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=x}):c})})});C.displayName=S;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var _=n(76842),L="Tabs",[R,j]=(0,o.A)(L,[w]),M=w(),[q,I]=R(L),D=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:l="horizontal",dir:s,activationMode:c="automatic",...p}=e,m=(0,h.jH)(s),[g,y]=(0,d.i)({prop:r,onChange:i,defaultProp:null!=o?o:"",caller:L});return(0,f.jsx)(q,{scope:n,baseId:(0,a.B)(),value:g,onValueChange:y,orientation:l,dir:m,activationMode:c,children:(0,f.jsx)(u.sG.div,{dir:m,"data-orientation":l,...p,ref:t})})});D.displayName=L;var P="TabsList",B=r.forwardRef((e,t)=>
6{let{__scopeTabs:n,loop:r=!0,...i}=e,o=I(P,n),l=M(n);return(0,f.jsx)(N,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:(0,f.jsx)(u.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});B.displayName=P;var U="TabsTrigger",F=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,s=I(U,n),a=M(n),c=K(s.baseId,r),d=W(s.baseId,r),h=r===s.value;return(0,f.jsx)(C,{asChild:!0,...a,focusable:!o,active:h,children:(0,f.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...l,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==s.activationMode;h||o||!e||s.onValueChange(r)})})})});F.displayName=U;var H="TabsContent",z=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:o,children:l,...s}=e,a=I(H,n),c=K(a.baseId,i),d=W(a.baseId,i),h=i===a.value,p=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(_.C,{present:o||h,children:n=>{let{present:r}=n;return(0,f.jsx)(u.sG.div,{"data-state":h?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&l})}})});function K(e,t){return"".concat(e,"-trigger-").concat(t)}function W(e,t){return"".concat(e,"-content-").concat(t)}z.displayName=H;var G=D,$=B,V=F,Y=z},60805:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},61270:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},62052:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(44804),i=n(80916);class o extends r.EmbedBlot{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(e=>{this.contentNode.appendChild(e)}),this.leftGuard=document.createTextNode("\uFEFF"),this.rightGuard=document.createTextNode("\uFEFF"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t,n=null,r=e.data.split("\uFEFF").join("");if(e===this.leftGuard)if(this.prev instanceof i.A){let e=this.prev.length();this.prev.insertAt(e,r),n={startNode:this.prev.domNode,startOffset:e+r.length}}else t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof i.A?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:r.length}));return e.data="\uFEFF",n}update(e,t){e.forEach(e=>{if("characterData"===e.type&&(e.target===this.leftGuard||e.target===this.rightGuard)){let n=this.restore(e.target);n&&(t.range=n)}})}}let l=o},62308:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(51985),i="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||i||Function("return this")()},62335:(e,t,n)=>{"use strict";n.d(t,{$P:()=>f,C5:()=>q,Eu:()=>function e(t,n){void 0===n&&(n=[]);let r=[];
6return i.Children.forEach(t,(t,l)=>{if(!i.isValidElement(t))return;let s=[...n,l];if(t.type===i.Fragment)return void r.push.apply(r,e(t.props.children,s));t.type!==D&&(0,o.Oi)(!1),t.props.index&&t.props.children&&(0,o.Oi)(!1);let a={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=e(t.props.children,s)),r.push(a)}),r},Ix:()=>P,KP:()=>L,Rq:()=>a,V8:()=>M,Zp:()=>y,g:()=>b,jb:()=>u,ph:()=>w,qh:()=>D,sp:()=>s,sv:()=>I,wE:()=>U,x$:()=>A,zy:()=>m});var r,i=n(12115),o=n(20888);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let s=i.createContext(null),a=i.createContext(null),u=i.createContext(null),c=i.createContext(null),d=i.createContext({outlet:null,matches:[],isDataRoute:!1}),h=i.createContext(null);function f(e,t){let{relative:n}=void 0===t?{}:t;p()||(0,o.Oi)(!1);let{basename:r,navigator:l}=i.useContext(u),{hash:s,pathname:a,search:c}=A(e,{relative:n}),d=a;return"/"!==r&&(d="/"===a?r:(0,o.HS)([r,a])),l.createHref({pathname:d,search:c,hash:s})}function p(){return null!=i.useContext(c)}function m(){return p()||(0,o.Oi)(!1),i.useContext(c).location}function g(e){i.useContext(u).static||i.useLayoutEffect(e)}function y(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=C(k.UseNavigateStable),t=O(S.UseNavigateStable),n=i.useRef(!1);return g(()=>{n.current=!0}),i.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,l({fromRouteId:t},i)))},[e,t])}():function(){p()||(0,o.Oi)(!1);let e=i.useContext(s),{basename:t,future:n,navigator:r}=i.useContext(u),{matches:l}=i.useContext(d),{pathname:a}=m(),c=JSON.stringify((0,o.yD)(l,n.v7_relativeSplatPath)),h=i.useRef(!1);return g(()=>{h.current=!0}),i.useCallback(function(n,i){if(void 0===i&&(i={}),!h.current)return;if("number"==typeof n)return void r.go(n);let l=(0,o.Gh)(n,JSON.parse(c),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,o.HS)([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,c,a,e])}()}let v=i.createContext(null);function b(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function A(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=i.useContext(u),{matches:l}=i.useContext(d),{pathname:s}=m(),a=JSON.stringify((0,o.yD)(l,r.v7_relativeSplatPath));return i.useMemo(()=>(0,o.Gh)(e,JSON.parse(a),s,"path"===n),[e,a,s,n])}function w(e,t,n,r){let s;p()||(0,o.Oi)(!1);let{navigator:a}=i.useContext(u),{matches:h}=i.useContext(d),f=h[h.length-1],g=f?f.params:{};f&&f.pathname;let y=f?f.pathnameBase:"/";f&&f.route;let v=m();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===y||(null==(b=e.pathname)?void 0:b.startsWith(y))||(0,o.Oi)(!1),s=e}else s=v;let A=s.pathname||"/",w=A;if("/"!==y){let e=y.replace(/^\//,"").split("/");w="/"+A.replace(/^\//,"").split("/").slice(e.length).join("/")}let k=(0,o.ue)(e,{pathname:w}),S=function(e,t,n,r){var l,s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(null==(s=r)||!s.v7_partialHydration||0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,u=null==(l=n)?void 0:l.errors;if(null!=u){let e=a.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,o.Oi)(!1),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){c=!0,a=d>=0?a.slice(0,d+1):[a[0]];break}}}return a.reduceRight((e,r,o)=>{var l;let s,h=!1,f=null,p=null;n&&(s=u&&r.route.id?u[r.route.id]:void 0,f=r.route.errorElement||x,c&&(d<0&&0===o?(l="route-fallback",R[l]||(R[l]=!0),h=!0,p=null):d===o&&(h=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,o+1)),g=()=>{let t;return t=s?f:h?p:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(N,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(E,{location:n.location,revalidation:n.revalidation,component:f,error:s,children:g(),routeC
6ontext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}(k&&k.map(e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,o.HS)([y,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?y:(0,o.HS)([y,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),h,n,r);return t&&S?i.createElement(c.Provider,{value:{location:l({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:o.rc.Pop}},S):S}let x=i.createElement(function(){var e;let t,n,r,l=(t=i.useContext(h),n=T(S.UseRouteError),r=O(S.UseRouteError),void 0!==t?t:null==(e=n.errors)?void 0:e[r]),s=(0,o.pX)(l)?l.status+" "+l.statusText:l instanceof Error?l.message:JSON.stringify(l),a=l instanceof Error?l.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},s),a?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},a):null,null)},null);class E extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function N(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(s);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}var k=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(k||{}),S=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(S||{});function C(e){let t=i.useContext(s);return t||(0,o.Oi)(!1),t}function T(e){let t=i.useContext(a);return t||(0,o.Oi)(!1),t}function O(e){let t,n=((t=i.useContext(d))||(0,o.Oi)(!1),t),r=n.matches[n.matches.length-1];return r.route.id||(0,o.Oi)(!1),r.route.id}let _=0;function L(e){let{router:t,basename:n}=C(k.UseBlocker),r=T(S.UseBlocker),[s,a]=i.useState(""),u=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:i,historyAction:s}=t;return e({currentLocation:l({},r,{pathname:(0,o.pb)(r.pathname,n)||r.pathname}),nextLocation:l({},i,{pathname:(0,o.pb)(i.pathname,n)||i.pathname}),historyAction:s})},[n,e]);return i.useEffect(()=>{let e=String(++_);return a(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==s&&t.getBlocker(s,u)},[t,s,u]),s&&r.blockers.has(s)?r.blockers.get(s):o.G3}let R={},j=(e,t,n)=>{};function M(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&j("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath||j("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&j("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&j("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&j("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&j("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function q(e){let{to:t,replace:n,state:r,relative:l}=e;p()||(0,o.Oi)(!1);let{future:s,static:a}=i.useContext(u),{matches:c}=i.useContext(d),{pathname:h}=m(),f=y(),g=JSON.stringify((0,o.Gh)(t,(0,o.yD)(c,s.v7_relativeSplatPath),h,"path"===l));return i.useEffect(()=>f(JSON.parse(g),{replace:n,state:r,relative:l}),[f,g,l,n,r]),null}function I(e){var t;let n;return t=e.context,(n=i.useContext(d).outlet)?i.createElement(v.Provider,{value:t},n):n}function D(e){(0,o.Oi)(!1)}function P(e){let{basename:t="/",children:n=null,location:r,navigationType:s=o.rc.Pop,navigator:a,static:d=!1,future:h}=e;p()&&(0,o.Oi)(!1);let f=t.replace(/^\/*/,"/"),m=i.useMemo(()=>({basename:f,navigator:a,static:d,future:l({v7_relativeSplatPath:!1},h)}),[f,h,a,d]);"string"==typeof r&&(r=(0,o.Rr)(r));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:A="default"}=r,w=i.useMemo(()=>{let e=(0,o.pb)(g,f);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:A},navigationType:s}},[f,g,y,v,b,A,s]);return null==w?null:i.createElement(u.Provider,{value:m},i.createElement(c.Provider,{children:n,value:w}))}(r||(r=n.t(i,2))).startTransition;
6var B=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(B||{});function U(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{}),i.Component},62593:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},63e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(62308).A.Symbol},64536:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=Array.isArray},66093:(e,t,n)=>{"use strict";let r;n.d(t,{Mz:()=>eY,i3:()=>eZ,UC:()=>eX,bL:()=>eV,Bk:()=>eR});var i=n(12115);let o=["top","right","bottom","left"],l=Math.min,s=Math.max,a=Math.round,u=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let b=["left","right"],A=["right","left"],w=["top","bottom"],x=["bottom","top"];function E(e){let t=f(e);return d[t]+e.slice(t.length)}function N(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(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 S(e,t,n){let r,{reference:i,floating:o}=e,l=y(t),s=m(y(t)),a=g(s),u=f(t),c="y"===l,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,v=i[a]/2-o[a]/2;switch(u){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(p(t)){case"start":r[s]-=v*(n&&c?-1:1);break;case"end":r[s]+=v*(n&&c?-1:1)}return r}async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=N(p),g=s[f?"floating"===d?"reference":"floating":d],y=k(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),v="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),A=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=k(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:a}):v);return{top:(y.top-w.top+m.top)/A.y,bottom:(w.bottom-y.bottom+m.bottom)/A.y,left:(y.left-w.left+m.left)/A.x,right:(w.right-y.right+m.right)/A.x}}let T=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:C},a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=S(u,r,a),h=r,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:b,data:A,reset:w}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=b?b:d,p[g]={...p[g],...A},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=S(u,h,a)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:p}};function O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _(e){return o.some(t=>e[t]>=0)}let L=new Set(["left","top"]);async function R(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=f(n),s=p(n),a="y"===y(n),u=L.has(l)?-1:1,c=o&&a?-1:1,d=h(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
6:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(g="end"===s?-1*v:v),a?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function j(){return"undefined"!=typeof window}function M(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!j()&&(e instanceof Node||e instanceof q(e).Node)}function P(e){return!!j()&&(e instanceof Element||e instanceof q(e).Element)}function B(e){return!!j()&&(e instanceof HTMLElement||e instanceof q(e).HTMLElement)}function U(e){return!!j()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let z=/transform|translate|scale|rotate|perspective|filter/,K=/paint|layout|strict|content/,W=e=>!!e&&"none"!==e;function G(e){let t=P(e)?Y(e):e;return W(t.transform)||W(t.translate)||W(t.scale)||W(t.rotate)||W(t.perspective)||!$()&&(W(t.backdropFilter)||W(t.filter))||z.test(t.willChange||"")||K.test(t.contain||"")}function $(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function V(e){return/^(html|body|#document)$/.test(M(e))}function Y(e){return q(e).getComputedStyle(e)}function X(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||I(e);return U(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=Z(t);return V(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=q(i);if(!o)return t.concat(i,J(i,[],n));{let e=Q(l);return t.concat(l,l.visualViewport||[],F(i)?i:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=a(n)!==o||a(r)!==l;return s&&(n=o,r=l),{width:n,height:r,$:s}}function et(e){return P(e)?e:e.contextElement}function en(e){let t=et(e);if(!B(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ee(t),l=(o?a(n.width):n.width)/r,s=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let er=c(0);function ei(e){let t=q(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=et(e),s=c(1);t&&(r?P(r)&&(s=en(r)):s=en(e));let a=(void 0===(i=n)&&(i=!1),r&&(!i||r===q(l))&&i)?ei(l):c(0),u=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,h=o.width/s.x,f=o.height/s.y;if(l){let e=q(l),t=r&&P(r)?q(r):r,n=e,i=Q(n);for(;i&&r&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=Y(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,h*=e.x,f*=e.y,u+=o,d+=l,i=Q(n=q(i))}}return k({width:h,height:f,x:u,y:d})}function el(e,t){let n=X(e).scrollLeft;return t?t.left+n:eo(I(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function ea(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=q(e),r=I(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=$();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let u=el(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else u<=25&&(o+=u);return{width:o,height:l,x:s,y:a}}(e,n);else if("document"===t)r=function(e){let t=I(e),n=X(e),r=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+el(e),a=-n.scrollTop;return"rtl"===Y(r).direction&&(l+=s(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}(I(e));else if(P(t))r=function(e,t){let n=eo(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=B(e)?en(e):c(1),l=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:l,height:s,x:i*o.x,y:r*o.y}}(t,n);else{let n=ei(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function eu(e){return"static"===Y(e).position}function ec(e,t){if(!B(e)||"fixed"===Y(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ed(e,t){var n;let r=q(e);if(H(e))return r;if(!B(e)){let t=Z(e);for(;t&&!V(t);){if(P(t)&&!eu(t))return t;t=Z(t)}return r}let i=ec(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(M(n)))&&eu(i);)i=ec(i,t);
6return i&&V(i)&&eu(i)&&!G(i)?r:i||function(e){let t=Z(e);for(;B(t)&&!V(t);){if(G(t))return t;if(H(t))break;t=Z(t)}return null}(e)||r}let eh=async function(e){let t=this.getOffsetParent||ed,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),i=I(t),o="fixed"===n,l=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=c(0);if(r||!r&&!o)if(("body"!==M(t)||F(i))&&(s=X(t)),r){let e=eo(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=el(i));o&&!r&&i&&(a.x=el(i));let u=!i||r||o?c(0):es(i,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=I(r),s=!!t&&H(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},u=c(1),d=c(0),h=B(r);if((h||!h&&!o)&&(("body"!==M(r)||F(l))&&(a=X(r)),h)){let e=eo(r);u=en(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!l||h||o?c(0):es(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-a.scrollTop*u.y+d.y+f.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>P(e)&&"body"!==M(e)),i=null,o="fixed"===Y(e).position,l=o?Z(e):e;for(;P(l)&&!V(l);){let t=Y(l),n=G(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||F(l)&&!n&&function e(t,n){let r=Z(t);return!(r===n||!P(r)||V(r))&&("fixed"===Y(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=Z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=ea(t,o[0],i),u=a.top,c=a.right,d=a.bottom,h=a.left;for(let e=1;e<o.length;e++){let n=ea(t,o[e],i);u=s(n.top,u),c=l(n.right,c),d=l(n.bottom,d),h=s(n.left,h)}return{width:c-h,height:d-u,x:h,y:u}},getOffsetParent:ed,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:P,isRTL:function(e){return"rtl"===Y(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let v=N(f),b={x:n,y:r},A=m(y(i)),w=g(A),x=await a.getDimensions(d),E="y"===A,k=E?"clientHeight":"clientWidth",S=o.reference[w]+o.reference[A]-b[A]-o.floating[w],C=b[A]-o.reference[A],T=await (null==a.getOffsetParent?void 0:a.getOffsetParent(d)),O=T?T[k]:0;O&&await (null==a.isElement?void 0:a.isElement(T))||(O=u.floating[k]||o.floating[w]);let _=O/2-x[w]/2-1,L=l(v[E?"top":"left"],_),R=l(v[E?"bottom":"right"],_),j=O-x[w]-R,M=O/2-x[w]/2+(S/2-C/2),q=s(L,l(M,j)),I=!c.arrow&&null!=p(i)&&M!==q&&o.reference[w]/2-(M<L?L:R)-x[w]/2<0,D=I?M<L?M-L:M-j:0;return{[A]:b[A]+D,data:{[A]:q,centerOffset:M-q-D,...I&&{alignmentOffset:D}},reset:I}}});var eg=n(47650),ey="undefined"!=typeof document?i.useLayoutEffect:function(){};function ev(e,t){let n,r,i;if(e===t)return!0;if(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(!ev(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)&&!ev(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eb(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){let n=eb(e);return Math.round(t*n)/n}function ew(e){let t=i.useRef(e);return ey(()=>{t.current=e}),t}var ex=n(97602),eE=n(95155),eN=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eE.jsx)(ex.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eN.displayName="Arrow";var ek=n(94446),eS=n(3468),eC=n(70222),eT=n(4129),eO=n(84288),e_="Popper",[eL,eR]=(0,eS.A)(e_),[ej,eM]=eL(e_),eq=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,s]=i.useState(void 0);return(0,eE.jsx)(ej,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:s,children:n})};eq.displayName=e_;var eI="PopperAnchor",eD=i.forwardRef((e,t)=>
6{let{__scopePopper:n,virtualRef:r,...o}=e,l=eM(eI,n),s=i.useRef(null),a=l.onAnchorChange,u=i.useCallback(e=>{s.current=e,e&&a(e)},[a]),c=(0,ek.s)(t,u),d=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&a(d.current)});let h=l.placementState&&e$(l.placementState),f=null==h?void 0:h[0],p=null==h?void 0:h[1];return r?null:(0,eE.jsx)(ex.sG.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:c})});eD.displayName=eI;var eP="PopperContent",[eB,eU]=eL(eP),eF=i.forwardRef((e,t)=>{var n,r,o,a,c,d,N,k;let{__scopePopper:S,side:C="bottom",sideOffset:j=0,align:M="center",alignOffset:q=0,arrowPadding:D=0,avoidCollisions:P=!0,collisionBoundary:B=[],collisionPadding:U=0,sticky:F="partial",hideWhenDetached:H=!1,updatePositionStrategy:z="optimized",onPlaced:K,...W}=e,G=eM(eP,S),[$,V]=i.useState(null),Y=(0,ek.s)(t,V),[X,Z]=i.useState(null),Q=(0,eO.X)(X),ee=null!=(N=null==Q?void 0:Q.width)?N:0,en=null!=(k=null==Q?void 0:Q.height)?k:0,er="number"==typeof U?U:{top:0,right:0,bottom:0,left:0,...U},ei=Array.isArray(B)?B:[B],el=ei.length>0,es={padding:er,boundary:ei.filter(eW),altBoundary:el},{refs:ea,floatingStyles:eu,placement:ec,isPositioned:ed,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=i.useState(r);ev(f,r)||p(r);let[m,g]=i.useState(null),[y,v]=i.useState(null),b=i.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),A=i.useCallback(e=>{e!==N.current&&(N.current=e,v(e))},[]),w=l||m,x=s||y,E=i.useRef(null),N=i.useRef(null),k=i.useRef(d),S=null!=u,C=ew(u),O=ew(o),_=ew(c),L=i.useCallback(()=>{if(!E.current||!N.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),((e,t,n)=>{let r=new Map,i={platform:ef,...n},o={...i.platform,_c:r};return T(e,t,{...i,platform:o})})(E.current,N.current,e).then(e=>{let t={...e,isPositioned:!1!==_.current};R.current&&!ev(k.current,t)&&(k.current=t,eg.flushSync(()=>{h(t)}))})},[f,t,n,O,_]);ey(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let R=i.useRef(!1);ey(()=>(R.current=!0,()=>{R.current=!1}),[]),ey(()=>{if(w&&(E.current=w),x&&(N.current=x),w&&x){if(C.current)return C.current(w,x,L);L()}},[w,x,L,C,S]);let j=i.useMemo(()=>({reference:E,floating:N,setReference:b,setFloating:A}),[b,A]),M=i.useMemo(()=>({reference:w,floating:x}),[w,x]),q=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eA(M.floating,d.x),r=eA(M.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eb(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:L,refs:j,elements:M,floatingStyles:q}),[d,L,j,M,q])}({strategy:"fixed",placement:C+("center"!==M?"-"+M:""),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:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=et(e),p=o||a?[...f?J(f):[],...t?J(t):[]]:[];p.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=f&&d?function(e,t){let n,r=null,i=I(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),o();let h=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=h;if(c||t(),!m||!g)return;let y=u(p),v=u(i.clientWidth-(f+m)),b={rootMargin:-y+"px "+-v+"px "+-u(i.clientHeight-(p+g))+"px "+-u(f)+"px",threshold:s(0,l(1,d))||1},A=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!A)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ep(h,e.getBoundingClientRect())||a(),A=!1}try{r=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(w,b)}r.observe(e)}(!0),o}(f,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),t&&y.observe(t));let v=h?eo(e):null;return h&&function t(){let r=eo(e);v&&!ep(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;
6p.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===z})},elements:{reference:G.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:l,middlewareData:s}=t,a=await R(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:j+en,alignmentAxis:q}),P&&((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:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=h(e,t),p={x:n,y:r},g=await o.detectOverflow(t,d),v=y(f(i)),b=m(v),A=p[b],w=p[v];if(a){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=A+g[e],r=A-g[t];A=s(n,l(A,r))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+g[e],r=w-g[t];w=s(n,l(w,r))}let x=c.fn({...t,[b]:A,[v]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[b]:a,[v]:u}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===F?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=h(e,t),c={x:n,y:r},d=y(i),p=m(d),g=c[p],v=c[d],b=h(s,t),A="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(a){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+A.mainAxis,n=o.reference[p]+o.reference[e]-A.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var w,x;let e="y"===p?"width":"height",t=L.has(f(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(w=l.offset)?void 0:w[d])||0)+(t?0:A.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[d])||0)-(t?A.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[p]:g,[d]:v}}}}(e).fn,options:[e,t]}))():void 0,...es}),P&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:s,middlewareData:a,rects:u,initialPlacement:c,platform:d,elements:N}=t,{mainAxis:k=!0,crossAxis:S=!0,fallbackPlacements:C,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:_=!0,...L}=h(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let R=f(s),j=y(c),M=f(c)===c,q=await (null==d.isRTL?void 0:d.isRTL(N.floating)),I=C||(M||!_?[E(c)]:function(e){let t=E(e);return[v(e),t,v(t)]}(c)),D="none"!==O;!C&&D&&I.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?A:b;return t?b:A;case"left":case"right":return t?w:x;default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(c,_,O,q));let P=[c,...I],B=await d.detectOverflow(t,L),U=[],F=(null==(r=a.flip)?void 0:r.overflows)||[];if(k&&U.push(B[R]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=m(y(e)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=E(l)),[l,E(l)]}(s,u,q);U.push(B[e[0]],B[e[1]])}if(F=[...F,{placement:s,overflows:U}],!U.every(e=>e<=0)){let e=((null==(i=a.flip)?void 0:i.index)||0)+1,t=P[e];if(t&&("alignment"!==S||j===y(t)||F.every(e=>y(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let e=null==(l=F.filter(e=>{if(D){let t=y(e.placement);return t===j||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...es}),((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:a,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...g}=h(e,t),v=await c.detectOverflow(t,g),b=f(a),A=p(a),w="y"===y(a),{width:x,height:E}=u.floating;"top"===b||"bottom"===b?(i=b,o=A===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(o=b,i="end"===A?"top":"bottom");let N=E-v.top-v.bottom,k=x-v.left-v.right,S=l(E-v[i],N),C=l(x-v[o],k),T=!t.middlewareData.shift,O=S,_=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=k),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(O=N),T&&!A){let e=s(v.left,0),t=s(v.right,0),n=s(v.top,0),r=s(v.bottom,0);w?_=x-2*(0!==e||0!==t?e+t:s(v.left,v.right)):O=E-2*(0!==n||0!==r?n+r:s(v.top,v.bottom))}await m({...t,availableWidth:_,availableHeight:O});let L=await c.getDimensions(d.floating);return x!==L.width||E!==L.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...es,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),X&&((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?em({element:n.current,padding:r}).fn(t):{}:n?em({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:X,padding:D}),eG({arrowWidth:ee,arrowHeight:en}),H&&((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}=h(e,t);switch(i){case"referenceHidden":{let e=O(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_(e)}}}case"escaped":{let e=O(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...es,boundary:el?es.boundary:void 0})]}),eN=G.setPlacementState;(0,eT.N)(()=>(eN(ec),()=>{eN(void 0)}),[ec,eN]);let[eS,e_]=e$(ec),eL=(0,eC.c)(K);
6(0,eT.N)(()=>{ed&&(null==eL||eL())},[ed,eL]);let eR=null==(n=eh.arrow)?void 0:n.x,ej=null==(r=eh.arrow)?void 0:r.y,eq=(null==(o=eh.arrow)?void 0:o.centerOffset)!==0,[eI,eD]=i.useState();return(0,eT.N)(()=>{$&&eD(window.getComputedStyle($).zIndex)},[$]),(0,eE.jsx)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:ed?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eI,"--radix-popper-transform-origin":[null==(a=eh.transformOrigin)?void 0:a.x,null==(c=eh.transformOrigin)?void 0:c.y].join(" "),...(null==(d=eh.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eB,{scope:S,placedSide:eS,placedAlign:e_,onArrowChange:Z,arrowX:eR,arrowY:ej,shouldHideArrow:eq,children:(0,eE.jsx)(ex.sG.div,{"data-side":eS,"data-align":e_,...W,ref:Y,style:{...W.style,animation:ed?void 0:"none"}})})})});eF.displayName=eP;var eH="PopperArrow",ez={top:"bottom",right:"left",bottom:"top",left:"right"},eK=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eU(eH,n),o=ez[i.placedSide];return(0,eE.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,eE.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})});function eW(e){return null!==e}eK.displayName=eH;var eG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:s,rects:a,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=e$(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+d/2,y=(null!=(l=null==(i=u.arrow)?void 0:i.y)?l:0)+h/2,v="",b="";return"bottom"===f?(v=c?m:"".concat(g,"px"),b="".concat(-h,"px")):"top"===f?(v=c?m:"".concat(g,"px"),b="".concat(a.floating.height+h,"px")):"right"===f?(v="".concat(-h,"px"),b=c?m:"".concat(y,"px")):"left"===f&&(v="".concat(a.floating.width+h,"px"),b=c?m:"".concat(y,"px")),{data:{x:v,y:b}}}});function e$(e){let[t,n="center"]=e.split("-");return[t,n]}var eV=eq,eY=eD,eX=eF,eZ=eK},66902:(e,t,n)=>{"use strict";var r,i,o,l,s,a,u,c,d,h,f,p;n.d(t,{ij:()=>$}),function(e){e.STRING="string",e.NUMBER="number",e.INTEGER="integer",e.BOOLEAN="boolean",e.ARRAY="array",e.OBJECT="object"}(r||(r={})),function(e){e.LANGUAGE_UNSPECIFIED="language_unspecified",e.PYTHON="python"}(i||(i={})),function(e){e.OUTCOME_UNSPECIFIED="outcome_unspecified",e.OUTCOME_OK="outcome_ok",e.OUTCOME_FAILED="outcome_failed",e.OUTCOME_DEADLINE_EXCEEDED="outcome_deadline_exceeded"}(o||(o={}));let m=["user","model","function","system"];!function(e){e.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",e.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",e.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",e.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",e.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT"}(l||(l={})),function(e){e.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",e.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",e.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",e.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",e.BLOCK_NONE="BLOCK_NONE"}(s||(s={})),function(e){e.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",e.NEGLIGIBLE="NEGLIGIBLE",e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={})),function(e){e.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",e.SAFETY="SAFETY",e.OTHER="OTHER"}(u||(u={})),function(e){e.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",e.STOP="STOP",e.MAX_TOKENS="MAX_TOKENS",e.SAFETY="SAFETY",e.RECITATION="RECITATION",e.LANGUAGE="LANGUAGE",e.OTHER="OTHER"}(c||(c={})),function(e){e.TASK_TYPE_UNSPECIFIED="TASK_TYPE_UNSPECIFIED",e.RETRIEVAL_QUERY="RETRIEVAL_QUERY",e.RETRIEVAL_DOCUMENT="RETRIEVAL_DOCUMENT",e.SEMANTIC_SIMILARITY="SEMANTIC_SIMILARITY",e.CLASSIFICATION="CLASSIFICATION",e.CLUSTERING="CLUSTERING"}(d||(d={})),function(e){e.MODE_UNSPECIFIED="MODE_UNSPECIFIED",e.AUTO="AUTO",e.ANY="ANY",e.NONE="NONE"}(h||(h={})),function(e){e.MODE_UNSPECIFIED="MODE_UNSPECIFIED",e.MODE_DYNAMIC="MODE_DYNAMIC"}(f||(f={}));
6class g extends Error{constructor(e){super(`[GoogleGenerativeAI Error]: ${e}`)}}class y extends g{constructor(e,t){super(e),this.response=t}}class v extends g{constructor(e,t,n,r){super(e),this.status=t,this.statusText=n,this.errorDetails=r}}class b extends g{}!function(e){e.GENERATE_CONTENT="generateContent",e.STREAM_GENERATE_CONTENT="streamGenerateContent",e.COUNT_TOKENS="countTokens",e.EMBED_CONTENT="embedContent",e.BATCH_EMBED_CONTENTS="batchEmbedContents"}(p||(p={}));class A{constructor(e,t,n,r,i){this.model=e,this.task=t,this.apiKey=n,this.stream=r,this.requestOptions=i}toString(){var e,t;let n=(null==(e=this.requestOptions)?void 0:e.apiVersion)||"v1beta",r=(null==(t=this.requestOptions)?void 0:t.baseUrl)||"https://generativelanguage.googleapis.com",i=`${r}/${n}/${this.model}:${this.task}`;return this.stream&&(i+="?alt=sse"),i}}async function w(e){var t;let n=new Headers;n.append("Content-Type","application/json"),n.append("x-goog-api-client",function(e){let t=[];return(null==e?void 0:e.apiClient)&&t.push(e.apiClient),t.push("genai-js/0.21.0"),t.join(" ")}(e.requestOptions)),n.append("x-goog-api-key",e.apiKey);let r=null==(t=e.requestOptions)?void 0:t.customHeaders;if(r){if(!(r instanceof Headers))try{r=new Headers(r)}catch(e){throw new b(`unable to convert customHeaders value ${JSON.stringify(r)} to Headers: ${e.message}`)}for(let[e,t]of r.entries()){if("x-goog-api-key"===e)throw new b(`Cannot set reserved header name ${e}`);if("x-goog-api-client"===e)throw new b(`Header name ${e} can only be set using the apiClient field`);n.append(e,t)}}return n}async function x(e,t,n,r,i,o){let l=new A(e,t,n,r,o);return{url:l.toString(),fetchOptions:Object.assign(Object.assign({},function(e){let t={};if((null==e?void 0:e.signal)!==void 0||(null==e?void 0:e.timeout)>=0){let n=new AbortController;(null==e?void 0:e.timeout)>=0&&setTimeout(()=>n.abort(),e.timeout),(null==e?void 0:e.signal)&&e.signal.addEventListener("abort",()=>{n.abort()}),t.signal=n.signal}return t}(o)),{method:"POST",headers:await w(l),body:i})}}async function E(e,t,n,r,i,o={},l=fetch){let{url:s,fetchOptions:a}=await x(e,t,n,r,i,o);return N(s,a,l)}async function N(e,t,n=fetch){let r;try{r=await n(e,t)}catch(n){var i=n,o=e;let t=i;throw i instanceof v||i instanceof b||((t=new g(`Error fetching from ${o.toString()}: ${i.message}`)).stack=i.stack),t}return r.ok||await k(r,e),r}async function k(e,t){let n,r="";try{let t=await e.json();r=t.error.message,t.error.details&&(r+=` ${JSON.stringify(t.error.details)}`,n=t.error.details)}catch(e){}throw new v(`Error fetching from ${t.toString()}: [${e.status} ${e.statusText}] ${r}`,e.status,e.statusText,n)}function S(e){return e.text=()=>{if(e.candidates&&e.candidates.length>0){if(e.candidates.length>1&&console.warn(`This response had ${e.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),O(e.candidates[0]))throw new y(`${_(e)}`,e);return function(e){var t,n,r,i;let o=[];if(null==(n=null==(t=e.candidates)?void 0:t[0].content)?void 0:n.parts)for(let t of null==(i=null==(r=e.candidates)?void 0:r[0].content)?void 0:i.parts)t.text&&o.push(t.text),t.executableCode&&o.push("\n```"+t.executableCode.language+"\n"+t.executableCode.code+"\n```\n"),t.codeExecutionResult&&o.push("\n```\n"+t.codeExecutionResult.output+"\n```\n");return o.length>0?o.join(""):""}(e)}if(e.promptFeedback)throw new y(`Text not available. ${_(e)}`,e);return""},e.functionCall=()=>{if(e.candidates&&e.candidates.length>0){if(e.candidates.length>1&&console.warn(`This response had ${e.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),O(e.candidates[0]))throw new y(`${_(e)}`,e);return console.warn("response.functionCall() is deprecated. Use response.functionCalls() instead."),C(e)[0]}if(e.promptFeedback)throw new y(`Function call not available. ${_(e)}`,e)},e.functionCalls=()=>{if(e.candidates&&e.candidates.length>0){if(e.candidates.length>1&&console.warn(`This response had ${e.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),O(e.candidates[0]))throw new y(`${_(e)}`,e);return C(e)}if(e.promptFeedback)throw new y(`Function call not available. ${_(e)}`,e)},e}function C(e){var t,n,r,i;let o=[];if(null==(n=null==(t=e.candidates)?void 0:t[0].content)?void 0:n.parts)for(let t of null==(i=null==(r=e.candidates)?void 0:r[0].content)?void 0:i.parts)t.functionCall&&o.push(t.functionCall);return o.length>0?o:void 0}let T=[c.RECITATION,c.SAFETY,c.LANGUAGE];function O(e){return!!e.finishReason&&T.includes(e.finishReason)}function _(e){var t,n,r;let i="";if((!e.candidates||0===e.candidates.length)&&e.promptFeedback)i+="Response was blocked",(null==(t=e.promptFeedback)?void 0:t.blockReason)&&(i+=` due to ${e.promptFeedback.blockReason}`),(null==(n=e.promptFeedback)?void 0:n.blockReasonMessage)&&(i+=`: ${e.promptFeedback.blockReasonMessage}`);else if(null==(r=e.candidates)?void 0:r[0]){let t=e.candidates[0];O(t)&&(i+=`Candidate was blocked due to ${t.finishReason}`,t.finishMessage&&(i+=`: ${t.finishMessage}`))}return i}function L(e){return this instanceof L?(this.v=e,this):new L(e)}"function"==typeof SuppressedError&&SuppressedError;let R=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;async function j(e){let t=[],n=e.getReader();for(;;){let{done:e,value:r}=await n.read();if(e)return S(function(e){let t=e[e.length-1],n={promptFeedback:null==t?void 0:t.promptFeedback};for(let t of e){if(t.candidates)for(let e of t.candidates){let t=e.index;if(n.candidates||(n.candidates=[]),n.candidates[t]||(n.candidates[t]={index:e.index}),n.candidates[t].citationMetadata=e.citationMetadata,n.candidates[t].groundingMetadata=e.groundingMetadata,n.candidates[t].finishReason=e.finishReason,n.candidates[t].finishMessage=e.finishMessage,n.candidates[t].safetyRatings=e.safetyRatings,e.content&&e.content.parts){n.candidates[t].content||(n.candidates[t].content={role:e.content.role||"user",parts:[]});let r={};for(let i of e.content.parts)i.text&&(r.text=i.text),i.functionCall&&(r.functionCall=i.functionCall),i.executableCode&&(r.executableCode=i.executableCode),i.c
6odeExecutionResult&&(r.codeExecutionResult=i.codeExecutionResult),0===Object.keys(r).length&&(r.text=""),n.candidates[t].content.parts.push(r)}}t.usageMetadata&&(n.usageMetadata=t.usageMetadata)}return n}(t));t.push(r)}}async function M(e,t,n,r){let[i,o]=(function(e){let t=e.getReader();return new ReadableStream({start(e){let n="";return function r(){return t.read().then(({value:t,done:i})=>{let o;if(i)return n.trim()?void e.error(new g("Failed to parse stream")):void e.close();let l=(n+=t).match(R);for(;l;){try{o=JSON.parse(l[1])}catch(t){e.error(new g(`Error parsing JSON response: "${l[1]}"`));return}e.enqueue(o),l=(n=n.substring(l[0].length)).match(R)}return r()})}()}})})((await E(t,p.STREAM_GENERATE_CONTENT,e,!0,JSON.stringify(n),r)).body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))).tee();return{stream:function(e){return function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},l("next"),l("throw"),l("return"),r[Symbol.asyncIterator]=function(){return this},r;function l(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof L?Promise.resolve(n.value.v).then(a,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function a(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){let t=e.getReader();for(;;){let{value:e,done:n}=yield L(t.read());if(n)break;yield yield L(S(e))}})}(i),response:j(o)}}async function q(e,t,n,r){let i=await E(t,p.GENERATE_CONTENT,e,!1,JSON.stringify(n),r);return{response:S(await i.json())}}function I(e){if(null!=e){if("string"==typeof e)return{role:"system",parts:[{text:e}]};if(e.text)return{role:"system",parts:[e]};if(e.parts)if(!e.role)return{role:"system",parts:e.parts};else return e}}function D(e){let t=[];if("string"==typeof e)t=[{text:e}];else for(let n of e)"string"==typeof n?t.push({text:n}):t.push(n);var n=t;let r={role:"user",parts:[]},i={role:"function",parts:[]},o=!1,l=!1;for(let e of n)"functionResponse"in e?(i.parts.push(e),l=!0):(r.parts.push(e),o=!0);if(o&&l)throw new g("Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message.");if(!o&&!l)throw new g("No content is provided for sending chat message.");return o?r:i}function P(e){let t;return t=e.contents?e:{contents:[D(e)]},e.systemInstruction&&(t.systemInstruction=I(e.systemInstruction)),t}let B=["text","inlineData","functionCall","functionResponse","executableCode","codeExecutionResult"],U={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall","executableCode","codeExecutionResult"],system:["text"]},F="SILENT_ERROR";class H{constructor(e,t,n,r={}){this.model=t,this.params=n,this._requestOptions=r,this._history=[],this._sendPromise=Promise.resolve(),this._apiKey=e,(null==n?void 0:n.history)&&(!function(e){let t=!1;for(let n of e){let{role:e,parts:r}=n;if(!t&&"user"!==e)throw new g(`First content should be with role 'user', got ${e}`);if(!m.includes(e))throw new g(`Each item should include role field. Got ${e} but valid roles are: ${JSON.stringify(m)}`);if(!Array.isArray(r))throw new g("Content should have 'parts' property with an array of Parts");if(0===r.length)throw new g("Each Content should have at least one part");let i={text:0,inlineData:0,functionCall:0,functionResponse:0,fileData:0,executableCode:0,codeExecutionResult:0};for(let e of r)for(let t of B)t in e&&(i[t]+=1);let o=U[e];for(let t of B)if(!o.includes(t)&&i[t]>0)throw new g(`Content with role '${e}' can't contain '${t}' part`);t=!0}}(n.history),this._history=n.history)}async getHistory(){return await this._sendPromise,this._history}async sendMessage(e,t={}){var n,r,i,o,l,s;let a;await this._sendPromise;let u=D(e),c={safetySettings:null==(n=this.params)?void 0:n.safetySettings,generationConfig:null==(r=this.params)?void 0:r.generationConfig,tools:null==(i=this.params)?void 0:i.tools,toolConfig:null==(o=this.params)?void 0:o.toolConfig,systemInstruction:null==(l=this.params)?void 0:l.systemInstruction,cachedContent:null==(s=this.params)?void 0:s.cachedContent,contents:[...this._history,u]},d=Object.assign(Object.assign({},this._requestOptions),t);return this._sendPromise=this._sendPromise.then(()=>q(this._apiKey,this.model,c,d)).then(e=>{var t;if(e.response.candidates&&e.response.candidates.length>0){this._history.push(u);let n=Object.assign({parts:[],role:"model"},null==(t=e.response.candidates)?void 0:t[0].content);this._history.push(n)}else{let t=_(e.response);t&&console.warn(`sendMessage() was unsuccessful. ${t}. Inspect response object for details.`)}a=e}),await this._sendPromise,a}
6async sendMessageStream(e,t={}){var n,r,i,o,l,s;await this._sendPromise;let a=D(e),u={safetySettings:null==(n=this.params)?void 0:n.safetySettings,generationConfig:null==(r=this.params)?void 0:r.generationConfig,tools:null==(i=this.params)?void 0:i.tools,toolConfig:null==(o=this.params)?void 0:o.toolConfig,systemInstruction:null==(l=this.params)?void 0:l.systemInstruction,cachedContent:null==(s=this.params)?void 0:s.cachedContent,contents:[...this._history,a]},c=Object.assign(Object.assign({},this._requestOptions),t),d=M(this._apiKey,this.model,u,c);return this._sendPromise=this._sendPromise.then(()=>d).catch(e=>{throw Error(F)}).then(e=>e.response).then(e=>{if(e.candidates&&e.candidates.length>0){this._history.push(a);let t=Object.assign({},e.candidates[0].content);t.role||(t.role="model"),this._history.push(t)}else{let t=_(e);t&&console.warn(`sendMessageStream() was unsuccessful. ${t}. Inspect response object for details.`)}}).catch(e=>{e.message!==F&&console.error(e)}),d}}async function z(e,t,n,r){return(await E(t,p.COUNT_TOKENS,e,!1,JSON.stringify(n),r)).json()}async function K(e,t,n,r){return(await E(t,p.EMBED_CONTENT,e,!1,JSON.stringify(n),r)).json()}async function W(e,t,n,r){let i=n.requests.map(e=>Object.assign(Object.assign({},e),{model:t}));return(await E(t,p.BATCH_EMBED_CONTENTS,e,!1,JSON.stringify({requests:i}),r)).json()}class G{constructor(e,t,n={}){this.apiKey=e,this._requestOptions=n,t.model.includes("/")?this.model=t.model:this.model=`models/${t.model}`,this.generationConfig=t.generationConfig||{},this.safetySettings=t.safetySettings||[],this.tools=t.tools,this.toolConfig=t.toolConfig,this.systemInstruction=I(t.systemInstruction),this.cachedContent=t.cachedContent}async generateContent(e,t={}){var n;let r=P(e),i=Object.assign(Object.assign({},this._requestOptions),t);return q(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null==(n=this.cachedContent)?void 0:n.name},r),i)}async generateContentStream(e,t={}){var n;let r=P(e),i=Object.assign(Object.assign({},this._requestOptions),t);return M(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null==(n=this.cachedContent)?void 0:n.name},r),i)}startChat(e){var t;return new H(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null==(t=this.cachedContent)?void 0:t.name},e),this._requestOptions)}async countTokens(e,t={}){let n=function(e,t){var n;let r={model:null==t?void 0:t.model,generationConfig:null==t?void 0:t.generationConfig,safetySettings:null==t?void 0:t.safetySettings,tools:null==t?void 0:t.tools,toolConfig:null==t?void 0:t.toolConfig,systemInstruction:null==t?void 0:t.systemInstruction,cachedContent:null==(n=null==t?void 0:t.cachedContent)?void 0:n.name,contents:[]},i=null!=e.generateContentRequest;if(e.contents){if(i)throw new b("CountTokensRequest must have one of contents or generateContentRequest, not both.");r.contents=e.contents}else if(i)r=Object.assign(Object.assign({},r),e.generateContentRequest);else{let t=D(e);r.contents=[t]}return{generateContentRequest:r}}(e,{model:this.model,generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:this.cachedContent}),r=Object.assign(Object.assign({},this._requestOptions),t);return z(this.apiKey,this.model,n,r)}async embedContent(e,t={}){let n="string"==typeof e||Array.isArray(e)?{content:D(e)}:e,r=Object.assign(Object.assign({},this._requestOptions),t);return K(this.apiKey,this.model,n,r)}async batchEmbedContents(e,t={}){let n=Object.assign(Object.assign({},this._requestOptions),t);return W(this.apiKey,this.model,e,n)}}class ${constructor(e){this.apiKey=e}getGenerativeModel(e,t){if(!e.model)throw new g("Must provide a model name. Example: genai.getGenerativeModel({ model: 'my-model-name' })");return new G(this.apiKey,e,t)}getGenerativeModelFromCachedContent(e,t,n){if(!e.name)throw new b("Cached content must contain a `name` field.");
6if(!e.model)throw new b("Cached content must contain a `model` field.");for(let n of["model","systemInstruction"])if((null==t?void 0:t[n])&&e[n]&&(null==t?void 0:t[n])!==e[n]){if("model"===n&&(t.model.startsWith("models/")?t.model.replace("models/",""):t.model)===(e.model.startsWith("models/")?e.model.replace("models/",""):e.model))continue;throw new b(`Different value for "${n}" specified in modelParams (${t[n]}) and cachedContent (${e[n]})`)}let r=Object.assign(Object.assign({},t),{model:e.model,tools:e.tools,toolConfig:e.toolConfig,systemInstruction:e.systemInstruction,cachedContent:e});return new G(this.apiKey,r,n)}}},67131:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[i++]=l)}return o};var i=n(17896),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols;let s=l?function(e){return null==e?[]:r(l(e=Object(e)),function(t){return o.call(e,t)})}:i.A},67822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(35582),i=n(83119),o=n(11331),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var s=n(35668),a=n(48272),u=a.A&&a.A.isTypedArray;let c=u?(0,s.A)(u):function(e){return(0,o.A)(e)&&(0,i.A)(e.length)&&!!l[(0,r.A)(e)]}},69294:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(57386),i=n(15041);let o=function(e,t,n,o){var l=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),l?(0,i.A)(n,u,c):(0,r.A)(n,u,c)}return n}},69666:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(12115),i=n(94446),o=n(97602),l=n(70222),s=n(95155),a="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:y,...v}=e,[b,A]=r.useState(null),w=(0,l.c)(g),x=(0,l.c)(y),E=r.useRef(null),N=(0,i.s)(t,A),k=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:p(E.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(E.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&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,b,k.paused]),r.useEffect(()=>{if(b){m.add(k);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(a,c);b.addEventListener(a,w),b.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(p(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(a,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,x),m.remove(k)},0)}}},[b,w,x,k]);let S=r.useCallback(e=>{if(!n&&!d||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=h(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&p(o,{select:!0})):(e.preventDefault(),n&&p(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,k.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...v,ref:N,onKeyDown:S})});function h(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 p(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()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=g(e,t)).unshift(t)},remove(t){var n;null==(n=(e=g(e,t))[0])||n.resume()}}}();function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},69790:(e,t,n)=>{"use strict";n.d(t,{A:()=>
6o});var r=n(44099),i=n(62308);let o=(0,r.A)(i.A,"Map")},70014:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(44804),i=n(42202),o=n(80916);class l extends r.InlineBlot{static allowedChildren=[l,i.A,r.EmbedBlot,o.A];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,t){let n=l.order.indexOf(e),r=l.order.indexOf(t);return n>=0||r>=0?n-r:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(0>l.compare(this.statics.blotName,n)&&this.scroll.query(n,r.Scope.BLOT)){let r=this.isolate(e,t);i&&r.wrap(n,i)}else super.formatAt(e,t,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof l&&l.compare(this.statics.blotName,this.parent.statics.blotName)>0){let e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}let s=l},70222:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(12115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},71330:(e,t,n)=>{"use strict";n.d(t,{GP:()=>D});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function a(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;let s=l[0],a=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(a,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(a,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let i,o=r[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:(e,t,n,r)=>l[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
6ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:a({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:a({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},c={};function d(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}function h(e){let t=d(e);return t.setHours(0,0,0,0),t}function f(e){let t=d(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function p(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){var n,r,i,o,l,s,a,u;let h=null!=(u=null!=(a=null!=(s=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?s:c.weekStartsOn)?a:null==(o=c.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?u:0,f=d(e),p=f.getDay();return f.setDate(f.getDate()-(7*(p<h)+p-h)),f.setHours(0,0,0,0),f}function g(e){return m(e,{weekStartsOn:1})}function y(e){let t=d(e),n=t.getFullYear(),r=p(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=g(r),o=p(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let l=g(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function v(e,t){var n,r,i,o,l,s,a,u;let h=d(e),f=h.getFullYear(),g=null!=(u=null!=(a=null!=(s=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?s:c.firstWeekContainsDate)?a:null==(o=c.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?u:1,y=p(e,0);y.setFullYear(f+1,0,g),y.setHours(0,0,0,0);let v=m(y,t),b=p(e,0);b.setFullYear(f,0,g),b.setHours(0,0,0,0);let A=m(b,t);return h.getTime()>=v.getTime()?f+1:h.getTime()>=A.getTime()?f:f-1}function b(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let A={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return b("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):b(n+1,2)},d:(e,t)=>b(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
6default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>b(e.getHours()%12||12,t.length),H:(e,t)=>b(e.getHours(),t.length),m:(e,t)=>b(e.getMinutes(),t.length),s:(e,t)=>b(e.getSeconds(),t.length),S(e,t){let n=t.length;return b(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},w={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return A.y(e,t)},Y:function(e,t,n,r){let i=v(e,r),o=i>0?i:1-i;return"YY"===t?b(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):b(o,t.length)},R:function(e,t){return b(y(e),t.length)},u:function(e,t){return b(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return A.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=function(e,t){let n=d(e);return Math.round((m(n,t)-function(e,t){var n,r,i,o,l,s,a,u;let d=null!=(u=null!=(a=null!=(s=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?s:c.firstWeekContainsDate)?a:null==(o=c.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?u:1,h=v(e,t),f=p(e,0);return f.setFullYear(h,0,d),f.setHours(0,0,0,0),m(f,t)}(n,t))/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):b(i,t.length)},I:function(e,t,n){let r=function(e){let t=d(e);return Math.round((g(t)-function(e){let t=y(e),n=p(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),g(n)}(t))/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):b(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):A.d(e,t)},D:function(e,t,n){let r=function(e){let t=d(e);return function(e,t){let n=h(e),r=h(t);return Math.round((n-f(n)-(r-f(r)))/864e5)}(t,function(e){let t=d(e),n=p(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return b(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return b(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return b(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?w.noon:0===i?w.midnight:i/12>
6=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?w.evening:i>=12?w.afternoon:i>=4?w.morning:w.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return A.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):A.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):A.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):A.s(e,t)},S:function(e,t){return A.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return N(r);case"XXXX":case"XX":return k(r);default:return k(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return N(r);case"xxxx":case"xx":return k(r);default:return k(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+E(r,":");default:return"GMT"+k(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+E(r,":");default:return"GMT"+k(r,":")}},t:function(e,t,n){return b(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return b(e.getTime(),t.length)}};function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+b(o,2)}function N(e,t){return e%60==0?(e>0?"-":"+")+b(Math.abs(e)/60,2):k(e,t)}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+b(Math.trunc(n/60),2)+t+b(n%60,2)}let S=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},C=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},T={p:C,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return S(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",S(i,t)).replace("{{time}}",C(o,t))}},O=/^D+$/,_=/^Y+$/,L=["D","DD","YY","YYYY"],R=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,q=/''/g,I=/[a-zA-Z]/;function D(e,t,n){var r,i,o,l,s,a,h,f,p,m,g,y,v,b,A,w,E,N;let k=null!=(m=null!=(p=null==n?void 0:n.locale)?p:c.locale)?m:u,S=null!=(b=null!=(v=null!=(y=null!=(g=null==n?void 0:n.firstWeekContainsDate)?g:null==n||null==(i=n.locale)||null==(r=i.options)?void 0:r.firstWeekContainsDate)?y:c.firstWeekContainsDate)?v:null==(l=c.locale)||null==(o=l.options)?void 0:o.firstWeekContainsDate)?b:1,C=null!=(N=null!=(E=null!=(w=null!=(A=null==n?void 0:n.weekStartsOn)?A:null==n||null==(a=n.locale)||null==(s=a.options)?void 0:s.weekStartsOn)?w:c.weekStartsOn)?E:null==(f=c.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?N:0,D=d(e);if(!((D instanceof Date||"object"==typeof D&&"[object Date]"===Object.prototype.toString.call(D)||"number"==typeof D)&&!isNaN(Number(d(D)))))throw RangeError("Invalid time value");let P=t.match(j).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,T[t])(e,k.formatLong):e}).join("").match(R).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(M);return t?t[1].replace(q,"'"):e}(e)};if(x[t])return{isToken:!0,value:e};
6if(t.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});k.localize.preprocessor&&(P=k.localize.preprocessor(D,P));let B={firstWeekContainsDate:S,weekStartsOn:C,locale:k};return P.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&O.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),L.includes(e))throw RangeError(r)}(i,t,String(e)),(0,x[i[0]])(D,i,k.localize,B)}).join("")}},71571:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(88816),i=n(15041),o=n(37537);let l=function(e,t,n){(void 0===n||(0,o.A)(e[t],n))&&(void 0!==n||t in e)||(0,i.A)(e,t,n)},s=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),l=o.length;l--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};var a=n(47939),u=n(34280),c=n(37998),d=n(77294),h=n(14875),f=n(64536),p=n(21383),m=n(11331),g=n(82092),y=n(71851),v=n(33476),b=n(35582),A=n(79614),w=Object.prototype,x=Function.prototype.toString,E=w.hasOwnProperty,N=x.call(Object);let k=function(e){if(!(0,m.A)(e)||"[object Object]"!=(0,b.A)(e))return!1;var t=(0,A.A)(e);if(null===t)return!0;var n=E.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&x.call(n)==N};var S=n(67822);let C=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var T=n(69294),O=n(98046);let _=function(e,t,n,r,i,o,s){var b=C(e,n),A=C(t,n),w=s.get(A);if(w)return void l(e,n,w);var x=o?o(b,A,n+"",e,t,s):void 0,E=void 0===x;if(E){var N=(0,f.A)(A),_=!N&&(0,g.A)(A),L=!N&&!_&&(0,S.A)(A);(x=A,N||_||L)?(0,f.A)(b)?x=b:(0,m.A)(b)&&(0,p.A)(b)?x=(0,c.A)(b):_?(E=!1,x=(0,a.A)(A,!0)):L?(E=!1,x=(0,u.A)(A,!0)):x=[]:k(A)||(0,h.A)(A)?(x=b,(0,h.A)(b))?x=(0,T.A)(b,(0,O.A)(b)):(!(0,v.A)(b)||(0,y.A)(b))&&(x=(0,d.A)(A)):E=!1}E&&(s.set(A,x),i(x,A,r,o,s),s.delete(A)),l(e,n,x)},L=function e(t,n,i,o,a){t!==n&&s(n,function(s,u){if(a||(a=new r.A),(0,v.A)(s))_(t,n,u,i,e,o,a);else{var c=o?o(C(t,u),s,u+"",t,n,a):void 0;void 0===c&&(c=s),l(t,u,c)}},O.A)},R=function(e){return e},j=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var M=Math.max,q=n(46778),I=q.A?function(e,t){return(0,q.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:R,D=Date.now,P=function(e){var t=0,n=0;return function(){var r=D(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(I);let B=function(e,t){var n;return P((n=M(void 0===(n=t)?e.length-1:n,0),function(){for(var t=arguments,r=-1,i=M(t.length-n,0),o=Array(i);++r<i;)o[r]=t[n+r];r=-1;for(var l=Array(n+1);++r<n;)l[r]=t[r];return l[n]=R(o),j(e,this,l)}),e+"")};var U=n(90904);let F=function(e,t,n){if(!(0,v.A)(n))return!1;var r=typeof t;return("number"==r?!!((0,p.A)(n)&&(0,U.A)(t,n.length)):"string"==r&&t in n)&&(0,o.A)(n[t],e)},H=function(e){return B(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,l&&F(n[0],n[1],l)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}(function(e,t,n){L(e,t,n)})},71851:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(35582),i=n(33476);let o=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},72251:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},73052:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class r{static DEFAULTS={};constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=e,this.options=t}}let i=r},73180:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},74235:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,l){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,l),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],s]:e._events[a].push(s):(e._events[a]=s,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,l=Array(o);i<o;i++)l[i]=r[i].fn;return l},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,l){var s=n?n+e:e;if(!this._events[s])return!1;var a,u,c=this._events[s],d=arguments.length;
6if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,l),!0}for(u=1,a=Array(d-1);u<d;u++)a[u-1]=arguments[u];c.fn.apply(c.context,a)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!a)for(h=1,a=Array(d-1);h<d;h++)a[h-1]=arguments[h];c[u].fn.apply(c[u].context,a)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||l(this,o);else{for(var a=0,u=[],c=s.length;a<c;a++)(s[a].fn!==t||i&&!s[a].once||r&&s[a].context!==r)&&u.push(s[a]);u.length?this._events[o]=1===u.length?u[0]:u:l(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&l(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},74640:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},75433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(12115),i=n(47650),o=n(97602),l=n(4129),s=n(95155),a=r.forwardRef((e,t)=>{var n,a;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,l.N)(()=>h(!0),[]);let f=u||d&&(null==(a=globalThis)||null==(n=a.document)?void 0:n.body);return f?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),f):null});a.displayName="Portal"},77294:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(33476),i=Object.create,o=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),l=n(79614),s=n(53798);let a=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:o((0,l.A)(e))}},78108:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(12115);function i(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},78770:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("CircleAlert",[["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"}]])},78936:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=new WeakMap},79614:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10454).A)(Object.getPrototypeOf,Object)}
6,80549:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(12115),i=n(38559),o=n(74268),l=n(38445),s=n(34049),a=class extends l.Q{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#o(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??(0,i.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#o(e){o.jG.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},u=n(99776);function c(e,t){let n=(0,u.jE)(t),[i]=r.useState(()=>new a(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let l=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=r.useCallback((e,t)=>{i.mutate(e,t).catch(s.lQ)},[i]);if(l.error&&(0,s.GU)(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}},80839:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]])},80916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,X:()=>o});var r=n(44804);class i extends r.TextBlot{}function o(e){return e.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}},81152:e=>{function t(e,h,f,p,m){if(e===h)return e?[[0,e]]:[];if(null!=f){var y=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=e.length,l=t.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,a=e.slice(0,s),u=e.slice(s),c=i?i.index:null;e:{var d=s+l-o;if(null!==c&&c!==d||d<0||d>l)break e;var h=t.slice(0,d),f=t.slice(d);if(f!==u)break e;var p=Math.min(s,d),m=a.slice(0,p),y=h.slice(0,p);if(m!==y)break e;var v=a.slice(p),b=h.slice(p);return g(m,v,b,u)}t:if(null===c||c===s){var h=t.slice(0,s),f=t.slice(s);if(h!==a)break t;var A=Math.min(o-s,l-s),w=u.slice(u.length-A),x=f.slice(f.length-A);if(w!==x)break t;var v=u.slice(0,u.length-A),b=f.slice(0,f.length-A);return g(a,v,b,w)}}if(r.length>0&&i&&0===i.length)n:{var m=e.slice(0,r.index),w=e.slice(r.index+r.length),p=m.length,A=w.length;if(l<p+A)break n;var y=t.slice(0,p),x=t.slice(l-A);if(m!==y||w!==x)break n;var v=e.slice(p,o-A),b=t.slice(p,l-A);return g(m,v,b,w)}return null}(e,h,f);if(y)return y}var v=r(e,h),b=e.substring(0,v);v=o(e=e.substring(v),h=h.substring(v));var A=e.substring(e.length-v),w=function(e,i){if(!e)return[[1,i]];if(!i)return[[-1,e]];var l,s=e.length>i.length?e:i,a=e.length>i.length?i:e,u=s.indexOf(a);if(-1!==u)return l=[[1,s.substring(0,u)],[0,a],[1,s.substring(u+a.length)]],e.length>i.length&&(l[0][0]=l[2][0]=-1),l;if(1===a.length)return[[-1,e],[1,i]];var c=function(e,t){var n,i,l,s,a,u=e.length>t.length?e:t,c=e.length>t.length?t:e;if(u.length<4||2*c.length<u.length)return null;function d(e,t,n){for(var i,l,s,a,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!==(c=t.indexOf(u,c+1));){var h=r(e.substring(n),t.substring(c)),f=o(e.substring(0,n),t.substring(0,c));d.length<f+h&&(d=t.substring(c-f,c)+t.substring(c,c+h),i=e.substring(0,n-f),l=e.substring(n+h),s=t.substring(0,c-f),a=t.substring(c+h))}return 2*d.length>=e.length?[i,l,s,a,d]:null}var h=d(u,c,Math.ceil(u.length/4)),f=d(u,c,Math.ceil(u.length/2));return h||f?(n=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(i=n[0],l=n[1],s=n[2],a=n[3]):(s=n[0],a=n[1],i=n[2],l=n[3]),[i,l,s,a,n[4]]):null}(e,i);if(c){var d=c[0],h=c[1],f=c[2],p=c[3],m=c[4],g=t(d,f),y=t(h,p);return g.concat([[0,m]],y)}return function(e,t){for(var r=e.length,i=t.length,o=Math.ceil((r+i)/2),l=2*o,s=Array(l),a=Array(l),u=0;u<l;u++)s[u]=-1,a[u]=-1;s[o+1]=0,a[o+1]=0;for(var c=r-i,d=c%2!=0,h=0,f=0,p=0,m=0,g=0;g<o;g++){for(var y=-g+h;y<=g-f;y+=2){for(var v,b=o+y,A=(v=y===-g||y!==g&&s[b-1]<s[b+1]?s[b+1]:s[b-1]+1)-y;v<r&&A<i&&e.charAt(v)===t.charAt(A);)v++,A++;if(s[b]=v,v>r)f+=2;else if(A>i)h+=2;else if(d){var w=o+c-y;if(w>=0&&w<l&&-1!==a[w]){var x=r-a[w];if(v>=x)return n(e,t,v,A)}}}for(var E=-g+p;E<=g-m;E+=2){for(var x,w=o+E,N=(x=E===-g||E!==g&&a[w-1]<a[w+1]?a[w+1]:a[w-1]+1)-E;x<r&&N<i&&e.charAt(r-x-1)===t.charAt(i-N-1);)x++,N++;if(a[w]=x,x>r)m+=2;else if(N>i)p+=2;else if(!d){var b=o+c-E;if(b>=0&&b<l&&-1!==s[b]){var v=s[b],A=o+v-b;if(v>=(x=r-x))return n(e,t,v,A)}}}}return[[-1,e],[1,t]]}(e,i)}(e=e.substring(0,e.length-v),h=h.substring(0,h.length-v));return b&&w.unshift([0,b]),A&&w.push([0,A]),d(w,m),p&&function(e){for(var t=!1,n=[],r=0,h=null,f=0,p=0,m=0,g=0,y=0;f<e.length;)0==e[f][0]?(n[r++]=f,p=g,m=y,g=0,y=0,h=e[f][1]):(1==e[f][0]?g+=e[f][1].length:y+=e[f][1].length,h&&h.length<=Math.max(p,m)&&h.length<=Math.max(g,y)&&(e.splice(n[r-1],0,[-1,h]),e[n[r-1]+1][0]=1,r--,f=--r>0?n[r-1]:-1,p=0,m=0,g=0,y=0,h=null,t=!0)),f++;for(t&&d(e),function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(l),o=r.match(l),d=i&&n.match(s),h=o&&r.match(s),f=d&&n.match(a),p=h&&r.match(a),m=f&&e.match(u),g=p&&t.match(c);if(m||g)return 5;if(f||p)return 4;if(i&&!d&&h)return 3;if(d||h)return 2;if(i||o)return 1;return 0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],i=e[n][1],d=e[n+1][1],h=o(r,i);if(h){var f=i.substring(i.length-h);r=r.substring(0,r.length-h),i=f+i.substring(0,i.length-h),d=f+d}for(var p=r,m=i,g=d,y=t(r,i)+t(i,d);i.charAt(0)===d.charAt(0);
6){r+=i.charAt(0),i=i.substring(1)+d.charAt(0),d=d.substring(1);var v=t(r,i)+t(i,d);v>=y&&(y=v,p=r,m=i,g=d)}e[n-1][1]!=p&&(p?e[n-1][1]=p:(e.splice(n-1,1),n--),e[n][1]=m,g?e[n+1][1]=g:(e.splice(n+1,1),n--))}n++}}(e),f=1;f<e.length;){if(-1==e[f-1][0]&&1==e[f][0]){var v=e[f-1][1],b=e[f][1],A=i(v,b),w=i(b,v);A>=w?(A>=v.length/2||A>=b.length/2)&&(e.splice(f,0,[0,b.substring(0,A)]),e[f-1][1]=v.substring(0,v.length-A),e[f+1][1]=b.substring(A),f++):(w>=v.length/2||w>=b.length/2)&&(e.splice(f,0,[0,v.substring(0,w)]),e[f-1][0]=1,e[f-1][1]=b.substring(0,b.length-w),e[f+1][0]=-1,e[f+1][1]=v.substring(w),f++),f++}f++}}(w),w}function n(e,n,r,i){var o=e.substring(0,r),l=n.substring(0,i),s=e.substring(r),a=n.substring(i),u=t(o,l),c=t(s,a);return u.concat(c)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return h(e.charCodeAt(i-1))&&i--,i}function i(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,l=1;;){var s=e.substring(i-l),a=t.indexOf(s);if(-1==a)return o;l+=a,(0==a||e.substring(i-l)==t.substring(0,l))&&(o=l,l++)}}function o(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return f(e.charCodeAt(e.length-i))&&i--,i}var l=/[^a-zA-Z0-9]/,s=/\s/,a=/[\r\n]/,u=/\n\r?\n$/,c=/^\r?\n\r?\n/;function d(e,t){e.push([0,""]);for(var n,i=0,l=0,s=0,a="",u="";i<e.length;){if(i<e.length-1&&!e[i][1]){e.splice(i,1);continue}switch(e[i][0]){case 1:s++,u+=e[i][1],i++;break;case -1:l++,a+=e[i][1],i++;break;case 0:var c=i-s-l-1;if(t){if(c>=0&&m(e[c][1])){var h=e[c][1].slice(-1);if(e[c][1]=e[c][1].slice(0,-1),a=h+a,u=h+u,!e[c][1]){e.splice(c,1),i--;var f=c-1;e[f]&&1===e[f][0]&&(s++,u=e[f][1]+u,f--),e[f]&&-1===e[f][0]&&(l++,a=e[f][1]+a,f--),c=f}}if(p(e[i][1])){var h=e[i][1].charAt(0);e[i][1]=e[i][1].slice(1),a+=h,u+=h}}if(i<e.length-1&&!e[i][1]){e.splice(i,1);break}if(a.length>0||u.length>0){a.length>0&&u.length>0&&(0!==(n=r(u,a))&&(c>=0?e[c][1]+=u.substring(0,n):(e.splice(0,0,[0,u.substring(0,n)]),i++),u=u.substring(n),a=a.substring(n)),0!==(n=o(u,a))&&(e[i][1]=u.substring(u.length-n)+e[i][1],u=u.substring(0,u.length-n),a=a.substring(0,a.length-n)));var g=s+l;0===a.length&&0===u.length?(e.splice(i-g,g),i-=g):0===a.length?(e.splice(i-g,g,[1,u]),i=i-g+1):0===u.length?(e.splice(i-g,g,[-1,a]),i=i-g+1):(e.splice(i-g,g,[-1,a],[1,u]),i=i-g+2)}0!==i&&0===e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,s=0,l=0,a="",u=""}}""===e[e.length-1][1]&&e.pop();var y=!1;for(i=1;i<e.length-1;)0===e[i-1][0]&&0===e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)===e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),y=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),y=!0)),i++;y&&d(e,t)}function h(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function p(e){return f(e.charCodeAt(0))}function m(e){return h(e.charCodeAt(e.length-1))}function g(e,t,n,r){if(m(e)||p(r))return null;for(var i=[[0,e],[-1,t],[1,n],[0,r]],o=[],l=0;l<i.length;l++)i[l][1].length>0&&o.push(i[l]);return o}function y(e,n,r,i){return t(e,n,r,i,!0)}y.INSERT=1,y.DELETE=-1,y.EQUAL=0,e.exports=y},81288:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},82092:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(62308),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,l=o&&o.exports===i?r.A.Buffer:void 0;let s=(l?l.isBuffer:void 0)||function(){return!1}},82931:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>em});
6let i=Object.entries,o=Object.setPrototypeOf,l=Object.isFrozen,s=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,u=Object.freeze,c=Object.seal,d=Object.create,h="undefined"!=typeof Reflect&&Reflect,f=h.apply,p=h.construct;u||(u=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),p||(p=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let m=q(Array.prototype.forEach),g=q(Array.prototype.lastIndexOf),y=q(Array.prototype.pop),v=q(Array.prototype.push),b=q(Array.prototype.splice),A=Array.isArray,w=q(String.prototype.toLowerCase),x=q(String.prototype.toString),E=q(String.prototype.match),N=q(String.prototype.replace),k=q(String.prototype.indexOf),S=q(String.prototype.trim),C=q(Number.prototype.toString),T=q(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:q(BigInt.prototype.toString),_="undefined"==typeof Symbol?null:q(Symbol.prototype.toString),L=q(Object.prototype.hasOwnProperty),R=q(Object.prototype.toString),j=q(RegExp.prototype.test),M=(ep=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(ep,t)});function q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return f(e,t,r)}}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(o&&o(e,null),!A(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(l(t)||(t[r]=e),i=e)}e[i]=!0}return e}function D(e){let t=d(null);for(let o of i(e)){var n=function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,l,s=[],a=!0,u=!1;try{o=(n=n.call(e)).next,!1;for(;!(a=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}(o,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],l=n[1];L(e,i)&&(A(l)?t[i]=function(e){for(let t=0;t<e.length;t++)L(e,t)||(e[t]=null);return e}(l):l&&"object"==typeof l&&l.constructor===Object?t[i]=D(l):t[i]=l)}return t}function P(e,t){for(;null!==e;){let n=a(e,t);if(n){if(n.get)return q(n.get);if("function"==typeof n.value)return q(n.value)}e=s(e)}return function(){return null}}let B=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),K=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=u(["#text"]),G=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
6spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),$=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=c(/{{[\w\W]*|^[\w\W]*}}/g),Z=c(/<%[\w\W]*|^[\w\W]*%>/g),J=c(/\${[\w\W]*/g),Q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=c(/^aria-[\-\w]+$/),et=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=c(/^(?:\w+script|data):/i),er=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ei=c(/^html$/i),eo=c(/^[a-z][.\w]*(-[.\w]+)+$/i),el=c(/<[/\w!]/g),es=c(/<[/\w]/g),ea=c(/<\/no(script|embed|frames)/i),eu=c(/\/>/i),ec={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},ed=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ef=function(e,t,n,r){return L(e,t)&&A(e[t])?I(r.base?D(r.base):{},e[t],r.transform):n};var ep,em=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,o=t=>e(t);if(o.version="3.4.11",o.removed=[],!r||!r.document||r.document.nodeType!==ec.document||!r.Element)return o.isSupported=!1,o;let l=r.document,s=l,a=s.currentScript;r.DocumentFragment;let h=r.HTMLTemplateElement,f=r.Node,p=r.Element,q=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let ep=r.DOMParser,em=r.trustedTypes,eg=p.prototype,ey=P(eg,"cloneNode"),ev=P(eg,"remove"),eb=P(eg,"nextSibling"),eA=P(eg,"childNodes"),ew=P(eg,"parentNode"),ex=P(eg,"shadowRoot"),eE=P(eg,"attributes"),eN=f&&f.prototype?P(f.prototype,"nodeType"):null,ek=f&&f.prototype?P(f.prototype,"nodeName"):null;if("function"==typeof h){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let eS="",eC=!1,eT=0,eO=function(){if(eT>0)throw M('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},e_=function(e){eO(),eT++;try{return t.createHTML(e)}finally{eT--}},eL=function(e){eO(),eT++;try{return t.createScriptURL(e)}finally{eT--}},eR=l,ej=eR.implementation,eM=eR.createNodeIterator,eq=eR.createDocumentFragment,eI=eR.getElementsByTagName,eD=s.importNode,eP=eh();o.isSupported="function"==typeof i&&"function"==typeof ew&&ej&&void 0!==ej.createHTMLDocument;let eB=et,eU=null,eF=I({},[...B,...U,...F,...z,...W]),eH=null,ez=I({}
6,[...G,...$,...V,...Y]),eK=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eW=null,eG=null,e$=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eV=!0,eY=!0,eX=!1,eZ=!0,eJ=!1,eQ=!0,e0=!1,e1=!1,e2=null,e5=null,e4=!1,e3=!1,e6=!1,e8=!1,e9=!0,e7=!1,te="user-content-",tt=!0,tn=!1,tr={},ti=null,to=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tl=null,ts=I({},["audio","video","img","source","image","track"]),ta=null,tu=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tc="http://www.w3.org/1998/Math/MathML",td="http://www.w3.org/2000/svg",th="http://www.w3.org/1999/xhtml",tf=th,tp=!1,tm=null,tg=I({},[tc,td,th],x),ty=u(["mi","mo","mn","ms","mtext"]),tv=I({},ty),tb=u(["annotation-xml"]),tA=I({},tb),tw=I({},["title","style","font","a","script"]),tx=null,tE=["application/xhtml+xml","text/html"],tN=null,tk=null,tS=l.createElement("form"),tC=function(e){return e instanceof RegExp||e instanceof Function},tT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tk&&tk===e)return;e&&"object"==typeof e||(e={}),e=D(e),tN="application/xhtml+xml"===(tx=-1===tE.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?x:w,eU=ef(e,"ALLOWED_TAGS",eF,{transform:tN}),eH=ef(e,"ALLOWED_ATTR",ez,{transform:tN}),tm=ef(e,"ALLOWED_NAMESPACES",tg,{transform:x}),ta=ef(e,"ADD_URI_SAFE_ATTR",tu,{transform:tN,base:tu}),tl=ef(e,"ADD_DATA_URI_TAGS",ts,{transform:tN,base:ts}),ti=ef(e,"FORBID_CONTENTS",to,{transform:tN}),eW=ef(e,"FORBID_TAGS",D({}),{transform:tN}),eG=ef(e,"FORBID_ATTR",D({}),{transform:tN}),tr=!!L(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?D(e.USE_PROFILES):e.USE_PROFILES),eV=!1!==e.ALLOW_ARIA_ATTR,eY=!1!==e.ALLOW_DATA_ATTR,eX=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eZ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eJ=e.SAFE_FOR_TEMPLATES||!1,eQ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e3=e.RETURN_DOM||!1,e6=e.RETURN_DOM_FRAGMENT||!1,e8=e.RETURN_TRUSTED_TYPE||!1,e4=e.FORCE_BODY||!1,e9=!1!==e.SANITIZE_DOM,e7=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tn=e.IN_PLACE||!1,eB=!function(e){try{return j(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tf="string"==typeof e.NAMESPACE?e.NAMESPACE:th,tv=L(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?D(e.MATHML_TEXT_INTEGRATION_POINTS):I({},ty),tA=L(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?D(e.HTML_INTEGRATION_POINTS):I({},tb);let r=L(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?D(e.CUSTOM_ELEMENT_HANDLING):d(null);if(eK=d(null),L(r,"tagNameCheck")&&tC(r.tagNameCheck)&&(eK.tagNameCheck=r.tagNameCheck),L(r,"attributeNameCheck")&&tC(r.attributeNameCheck)&&(eK.attributeNameCheck=r.attributeNameCheck),L(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eK.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),c(eK),eJ&&(eY=!1),e6&&(e3=!0),tr&&(eU=I({},W),eH=d(null),!0===tr.html&&(I(eU,B),I(eH,G)),!0===tr.svg&&(I(eU,U),I(eH,$),I(eH,Y)),!0===tr.svgFilters&&(I(eU,F),I(eH,$),I(eH,Y)),!0===tr.mathMl&&(I(eU,z),I(eH,V),I(eH,Y))),e$.tagCheck=null,e$.attributeCheck=null,L(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?e$.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(eU===eF&&(eU=D(eU)),I(eU,e.ADD_TAGS,tN))),L(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?e$.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(eH===ez&&(eH=D(eH)),I(eH,e.ADD_ATTR,tN))),L(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&I(ta,e.ADD_URI_SAFE_ATTR,tN),L(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(ti===to&&(ti=D(ti)),I(ti,e.FORBID_CONTENTS,t
6N)),L(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(ti===to&&(ti=D(ti)),I(ti,e.ADD_FORBID_CONTENTS,tN)),tt&&(eU["#text"]=!0),e0&&I(eU,["html","head","body"]),eU.table&&(I(eU,["tbody"]),delete eW.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eS=e_("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eS=""):(void 0===t&&(eC||(n=ed(em,a),eC=!0),t=n),t&&"string"==typeof eS&&(eS=e_("")));u&&u(e),tk=e},tO=I({},[...U,...F,...H]),t_=I({},[...z,...K]),tL=function(e){var t,n,r;let i=ew(e);i&&i.tagName||(i={namespaceURI:tf,tagName:"template"});let o=w(e.tagName),l=w(i.tagName);return!!tm[e.namespaceURI]&&(e.namespaceURI===td?(t=i).namespaceURI===th?"svg"===o:t.namespaceURI===tc?"svg"===o&&("annotation-xml"===l||tv[l]):!!tO[o]:e.namespaceURI===tc?(n=i).namespaceURI===th?"math"===o:n.namespaceURI===td?"math"===o&&tA[l]:!!t_[o]:e.namespaceURI===th?((r=i).namespaceURI!==td||!!tA[l])&&(r.namespaceURI!==tc||!!tv[l])&&!t_[o]&&(tw[o]||!tO[o]):"application/xhtml+xml"===tx&&!!tm[e.namespaceURI])},tR=function(e){v(o.removed,{element:e});try{ew(e).removeChild(e)}catch(t){if(ev(e),!ew(e))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tj=function(e){let t=eA(e);if(t){let e=[];m(t,t=>{v(e,t)}),m(e,e=>{try{ev(e)}catch(e){}})}let n=eE(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},tM=function(e,t){try{v(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e3||e6)try{tR(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tq=function(e){let t=eE(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if("string"==typeof i&&!eH[tN(i)])try{e.removeAttribute(i)}catch(e){}}},tI=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eN?eN(e):e.nodeType)===ec.element&&tq(e);let n=eA(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tD=function(e){let n=null,r=null;if(e4)e="<remove></remove>"+e;else{let t=E(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tx&&tf===th&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?e_(e):e;if(tf===th)try{n=new ep().parseFromString(i,tx)}catch(e){}if(!n||!n.documentElement){n=ej.createDocument(tf,"template",null);try{n.documentElement.innerHTML=tp?eS:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),tf===th)?eI.call(n,e0?"html":"body")[0]:e0?n.documentElement:o},tP=function(e){return eM.call(e.ownerDocument||e,e,q.SHOW_ELEMENT|q.SHOW_COMMENT|q.SHOW_TEXT|q.SHOW_PROCESSING_INSTRUCTION|q.SHOW_CDATA_SECTION,null)},tB=function(e){return e=N(e,X," "),e=N(e,Z," "),e=N(e,J," ")},tU=function(e){var t;e.normalize();let n=eM.call(e.ownerDocument||e,e,q.SHOW_TEXT|q.SHOW_COMMENT|q.SHOW_CDATA_SECTION|q.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=tB(r.data),r=n.nextNode();let i=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");i&&m(i,e=>{tH(e.content)&&tU(e.content)})},tF=function(e){let t=ek?ek(e):null;return"string"==typeof t&&"form"===tN(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eE(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eN(e)||e.childNodes!==eA(e))},tH=function(e){if(!eN||"object"!=typeof e||null===e)return!1;try{return eN(e)===ec.documentFragment}catch(e){return!1}},tz=function(e){if(!eN||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eN(e)}catch(e){return!1}};function tK(e,t,n){0!==e.length&&m(e,e=>{e.call(o,t,n,tk)})}let tW=function(e,t){if(!eW[t]&&tY(t)&&(eK.tagNameCheck instanceof RegExp&&j(eK.tagNameCheck,t)||eK.tagNameCheck instanceof Function&&eK.tagNameCheck(t)))return!1;if(tt&&!ti[t]){let t=ew(e),n=eA(e);
6if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=tn?n[i]:ey(n[i],!0);t.insertBefore(r,eb(e))}}}return tR(e),!0},tG=function(e){if(tK(eP.beforeSanitizeElements,e,null),tF(e))return tR(e),!0;let t=tN(ek?ek(e):e.nodeName);if(tK(eP.uponSanitizeElement,e,{tagName:t,allowedTags:eU}),eQ&&e.hasChildNodes()&&!tz(e.firstElementChild)&&j(el,e.textContent)&&j(el,e.innerHTML)||eQ&&e.namespaceURI===th&&"style"===t&&tz(e.firstElementChild)||e.nodeType===ec.processingInstruction||eQ&&e.nodeType===ec.comment&&j(es,e.data)||0)return tR(e),!0;if(eW[t]||!(e$.tagCheck instanceof Function&&e$.tagCheck(t))&&!eU[t])return tW(e,t);if((eN?eN(e):e.nodeType)===ec.element&&!tL(e)||("noscript"===t||"noembed"===t||"noframes"===t)&&j(ea,e.innerHTML))return tR(e),!0;if(eJ&&e.nodeType===ec.text){let t=tB(e.textContent);e.textContent!==t&&(v(o.removed,{element:e.cloneNode()}),e.textContent=t)}return tK(eP.afterSanitizeElements,e,null),!1},t$=function(e,t,n){if(eG[t]||e9&&("id"===t||"name"===t)&&(n in l||n in tS))return!1;let r=eH[t]||e$.attributeCheck instanceof Function&&e$.attributeCheck(t,e);if(eY&&j(Q,t));else if(eV&&j(ee,t));else if(r){if(ta[t]);else if(j(eB,N(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===k(n,"data:")&&tl[e]);else if(eX&&!j(en,N(n,er,"")));else if(n)return!1}else if(!(tY(e)&&(eK.tagNameCheck instanceof RegExp&&j(eK.tagNameCheck,e)||eK.tagNameCheck instanceof Function&&eK.tagNameCheck(e))&&(eK.attributeNameCheck instanceof RegExp&&j(eK.attributeNameCheck,t)||eK.attributeNameCheck instanceof Function&&eK.attributeNameCheck(t,e))||"is"===t&&eK.allowCustomizedBuiltInElements&&(eK.tagNameCheck instanceof RegExp&&j(eK.tagNameCheck,n)||eK.tagNameCheck instanceof Function&&eK.tagNameCheck(n))))return!1;return!0},tV=I({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tY=function(e){return!tV[w(e)]&&j(eo,e)},tX=function(e,n,r,i){if(t&&"object"==typeof em&&"function"==typeof em.getAttributeType&&!r)switch(em.getAttributeType(e,n)){case"TrustedHTML":return e_(i);case"TrustedScriptURL":return eL(i)}return i},tZ=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tF(e)?tR(e):y(o.removed)}catch(n){tM(t,e)}},tJ=function(e){tK(eP.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tF(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eH,forceKeepAttr:void 0},r=t.length,i=tN(e.nodeName);for(;r--;){let o=t[r],l=o.name,s=o.namespaceURI,a=o.value,u=tN(l),c="value"===l?a:S(a);if(n.attrName=u,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,tK(eP.uponSanitizeAttribute,e,n),c=n.attrValue,e7&&("id"===u||"name"===u)&&0!==k(c,te)&&(tM(l,e),c=te+c),eQ&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&E(c,"href")){tM(l,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!eZ&&j(eu,c)||(eJ&&(c=tB(c)),!t$(i,u,c))){tM(l,e);continue}(c=tX(i,u,s,c))!==a&&tZ(e,l,s,c)}}tK(eP.afterSanitizeAttributes,e,null)},tQ=function(e){let t=null,n=tP(e);for(tK(eP.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tK(eP.uponSanitizeShadowNode,t,null),tG(t),tJ(t),tH(t.content)&&tQ(t.content),(eN?eN(t):t.nodeType)===ec.element){let e=ex(t);tH(e)&&(t0(e),tQ(e))}tK(eP.afterSanitizeShadowDOM,e,null)},t0=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){tQ(e.shadow);continue}let n=e.node,r=(eN?eN(n):n.nodeType)===ec.element,i=eA(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ek?ek(n):null;if("string"==typeof e&&"template"===tN(e)){let e=n.content;tH(e)&&t.push({node:e,shadow:null})}}if(r){let e=ex(n);tH(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return o.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,l=null,a=null;if((tp=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tz(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return C(e);case"boolean":return T(e);case"bigint":return O?O(e):"0";case"symbol":return _?_(e):"Symbol()";case"undefined":default:return R(e);case"function":case"object":{if(null===e)return R(e);let t=P(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:R(n)}return R(e)}}}(e)))throw M("dirty is not a string, aborting");if(!o.isSupported)return e;e1?(eU=e2,eH=e5):tT(n),(eP.uponSanitizeElement.length>0||eP.uponSanitizeAttribute.length>0)&&(eU=D(eU)),eP.uponSanitizeAttribute.length>0&&(eH=D(eH)),o.removed=[];let u=tn&&"string"!=typeof e&&tz(e);if(u){let t=ek?ek(e):e.nodeName;if("string"==typeof t){let e=tN(t);if(!eU[e]||eW[e])throw M("root node is forbidden and cannot be sanitized in-place")}if(tF(e))throw M("root node is clobbered and cannot be sanitized in-place");try{t0(e)}catch(t){throw tj(e),t}}else if(tz(e))(i=(r=tD("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ec.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),t0(i);else{if(!e3&&!eJ&&!e0&&-1===e.indexOf("<"))return t&&e8?e_(e):e;if(!(r=tD(e)))return e3?null:e8?eS:""}r&&e4&&tR(r.firstChild);let c=tP(u?e:r);try{for(;l=c.nextNode();)tG(l),tJ(l),tH(l.content)&&tQ(l.content)}catch(t){throw u&&tj(e),t}if(u)return m(o.removed,e=>{e.element&&tI(e.element)}),eJ&&tU(e),e;if(e3){if(eJ&&tU(r),e6)for(a=eq.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(eH.shadowroot||eH.shadowrootmode)&&(a=eD.call(s,a,!0)),a}let d=e0?r.outerHTML:r.innerHTML;return e0&&eU["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&j(ei,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),eJ&&(d=tB(d)),t&&e8?e_(d):d},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tT(e),e1=!0,e2=eU,e5=eH},o.clearConfig=function(){tk=null,e1=!1,e2=null,e5=null,t=n,eS=""},o.isValidAttribute=function(e,t,n){return tk||tT({}),t$(tN(e),tN(t),n)},o.addHook=function(e,t){"function"==typeof t&&L(eP,e)&&v(eP[e],t)},o.removeHook=function(e,t){if(L(eP,e)){if(void 0!==t){let n=g(eP[e],t);
6return -1===n?void 0:b(eP[e],n,1)[0]}return y(eP[e])}},o.removeHooks=function(e){L(eP,e)&&(eP[e]=[])},o.removeAllHooks=function(){eP=eh()},o}()},82994:()=>{},83119:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},84288:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(12115),i=n(4129);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{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}},84336:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},84822:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>j});var r=n(71571),i=n(44804),o=n(99346),l=n(38789),s=n(15958),a=n(29440),u=n(42202),c=n(2337),d=n(80916),h=n(2262);let f=/^[ -~]*$/;class p{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let n=y(e),l=new o;return(function(e){let t=[];return e.forEach(e=>{"string"==typeof e.insert?e.insert.split("\n").forEach((n,r)=>{r&&t.push({insert:"\n",attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})}):t.push(e)}),t})(n.ops.slice()).reduce((e,n)=>{let s=o.Op.length(n),u=n.attributes||{},c=!1,h=!1;if(null!=n.insert){if(l.retain(s),"string"==typeof n.insert){let l=n.insert;h=!l.endsWith("\n")&&(t<=e||!!this.scroll.descendant(a.zo,e)[0]),this.scroll.insertAt(e,l);let[s,c]=this.scroll.line(e),d=(0,r.A)({},(0,a.Ji)(s));if(s instanceof a.Ay){let[e]=s.descendant(i.LeafBlot,c);e&&(d=(0,r.A)(d,(0,a.Ji)(e)))}u=o.AttributeMap.diff(d,u)||{}}else if("object"==typeof n.insert){let l=Object.keys(n.insert)[0];if(null==l)return e;let s=null!=this.scroll.query(l,i.Scope.INLINE);if(s)(t<=e||this.scroll.descendant(a.zo,e)[0])&&(h=!0);else if(e>0){let[t,n]=this.scroll.descendant(i.LeafBlot,e-1);t instanceof d.A?"\n"!==t.value()[n]&&(c=!0):t instanceof i.EmbedBlot&&t.statics.scope===i.Scope.INLINE_BLOT&&(c=!0)}if(this.scroll.insertAt(e,l,n.insert[l]),s){let[t]=this.scroll.descendant(i.LeafBlot,e);if(t){let e=(0,r.A)({},(0,a.Ji)(t));u=o.AttributeMap.diff(e,u)||{}}}}t+=s}else if(l.push(n),null!==n.retain&&"object"==typeof n.retain){let t=Object.keys(n.retain)[0];if(null==t)return e;this.scroll.updateEmbedAt(e,t,n.retain[t])}Object.keys(u).forEach(t=>{this.scroll.formatAt(e,s,t,u[t])});let f=+!!c,p=+!!h;return t+=f+p,l.retain(f),l.delete(p),e+s+f+p},0),l.reduce((e,t)=>"number"==typeof t.delete?(this.scroll.deleteAt(e,t.delete),e):e+o.Op.length(t),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new o().retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(r=>{this.scroll.lines(e,Math.max(t,1)).forEach(e=>{e.format(r,n[r])})}),this.scroll.optimize();let r=new o().retain(e).retain(t,(0,l.A)(n));return this.update(r)}formatText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(r=>{this.scroll.formatAt(e,t,r,n[r])});let r=new o().retain(e).retain(t,(0,l.A)(n));return this.update(r)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new o)}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(e=>{let[t]=e;t instanceof a.Ay?n.push(t):t instanceof i.LeafBlot&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(i.LeafBlot,e,t));let[o,l]=[n,r].map(e=>{let t=e.shift();if(null==t)return{};let n=(0,a.Ji)(t);for(;Object.keys(n).length>0;){let t=e.shift();if(null==t)break;n=function(e,t){return Object.keys(t).reduce((n,r)=>{if(null==e[r])return n;let i=t[r];return i===e[r]?n[r]=i:Array.isArray(i)?0>i.indexOf(e[r])?n[r]=i.concat([e[r]]):n[r]=i:n[r]=[i,e[r]],n},{})}((0,a.Ji)(t),n)}return n});return{...o,...l}}getHTML(e,t){let[n,r]=this.scroll.line(e);if(n){let i=n.length();return n.length()>=r+t&&(0!==r||t!==i)?m(n,r,t,!0):m(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(e=>"string"==typeof e.insert).map(e=>e.insert).join("")}insertContents(e,t){let n=y(t),r=new o().retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update(new o().retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEac
6h(r=>{this.scroll.formatAt(e,t.length,r,n[r])}),this.update(new o().retain(e).insert(t,(0,l.A)(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;let e=this.scroll.children.head;return e?.statics.blotName===a.Ay.blotName&&!(e.children.length>1)&&e.children.head instanceof u.A}removeFormat(e,t){let n=this.getText(e,t),[r,i]=this.scroll.line(e+t),l=0,s=new o;null!=r&&(l=r.length()-i,s=r.delta().slice(i,i+l-1).insert("\n"));let a=this.getContents(e,t+l).diff(new o().insert(n).concat(s)),u=new o().retain(e).concat(a);return this.applyDelta(u)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(f)&&this.scroll.find(t[0].target)){let i=this.scroll.find(t[0].target),l=(0,a.Ji)(i),s=i.offset(this.scroll),u=t[0].oldValue.replace(c.A.CONTENTS,""),d=new o().insert(u),h=new o().insert(i.value()),f=n&&{oldRange:v(n.oldRange,-s),newRange:v(n.newRange,-s)};e=new o().retain(s).concat(d.diff(h,f)).reduce((e,t)=>t.insert?e.insert(t.insert,l):e.push(t),new o),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,s.A)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}function m(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof d.A)return(0,d.X)(e.value().slice(t,t+n));if(e instanceof i.ParentBlot){if("list-container"===e.statics.blotName){let r=[];return e.children.forEachAt(t,n,(e,t,n)=>{let i="formats"in e&&"function"==typeof e.formats?e.formats():{};r.push({child:e,offset:t,length:n,indent:i.indent||0,type:i.list})}),function e(t,n,r){if(0===t.length){let[t]=g(r.pop());return n<=0?`</li></${t}>`:`</li></${t}>${e([],n-1,r)}`}let[{child:i,offset:o,length:l,indent:s,type:a},...u]=t,[c,d]=g(a);if(s>n)return(r.push(a),s===n+1)?`<${c}><li${d}>${m(i,o,l)}${e(u,s,r)}`:`<${c}><li>${e(t,n+1,r)}`;let h=r[r.length-1];if(s===n&&a===h)return`</li><li${d}>${m(i,o,l)}${e(u,s,r)}`;let[f]=g(r.pop());return`</li></${f}>${e(t,n-1,r)}`}(r,-1,[])}let i=[];if(e.children.forEachAt(t,n,(e,t,n)=>{i.push(m(e,t,n))}),r||"list"===e.statics.blotName)return i.join("");let{outerHTML:o,innerHTML:l}=e.domNode,[s,a]=o.split(`>${l}<`);return"<table"===s?`<table style="border: 1px solid #000;">${i.join("")}<${a}`:`${s}>${i.join("")}<${a}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function g(e){let t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function y(e){return e.reduce((e,t)=>{if("string"==typeof t.insert){let n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new o)}function v(e,t){let{index:n,length:r}=e;return new h.Q(n+t,r)}var b=n(92529),A=n(78936),w=n(45572),x=n(73052),E=n(62052);class N{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){let t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof E.A||(this.emitter.emit(b.A.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(b.A.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(b.A.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(b.A.events.COMPOSITION_END,e),this.isComposing=!1}}var k=n(56485);let S=e=>e.parentElement||e.getRootNode().host||null,C=e=>{let t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},T=e=>{let t=parseInt(e,10);return Number.isNaN(t)?0:t},O=(e,t,n,r,i,o)=>e<n&&t>r?0:e<n?-(n-e+i):t>r?t-e>r-n?e+i-n:t-r+o:0,_=["block","break","cursor","inline","scroll","text"],L=(0,w.A)("quill"),R=new i.Registry;i.ParentBlot.uiClass="ql-ui";class j{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:R,theme:"default"};static events=b.A.events;static sources=b.A.sources;static version="2.0.2";static imports={delta:o,parchment:i,"core/module":x.A,"core/theme":k.A};static debug(e){!0===e&&(e="log"),w.A.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return A.A.get(e)||R.find(e,t)}static import(e){return null==this.imports[e]&&L.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){let e=arguments.length<=0?void 0:arguments[0],t=!!(arguments.length<=1?void 0:arguments[1]),n="attrName"in e?e.attrName:e.blotName;"string"==typeof n?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(n=>{this.register(n,e[n],t)})}else{let e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[e]||n||L.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&R.register(t),"function"==typeof t.register&&t.register(R)}}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(e,t){let n=M(e);if(!n)throw Error("Invalid Quill container");let o=t.theme&&t.theme!==j.DEFAULTS.theme?j.import(`themes/${t.theme}`):k.A;if(!o)throw Error(`Invalid theme ${t.theme}. Did you register it?`);let{modules:l,...s}=j.DEFAULTS,{modules:a,...u}=o.DEFAULTS,c=q(t.modules);null!=c&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});let d=(0,r.A)({},q(l),q(a),c),h={...s,...I(u),...I(t)},f=t.registry;return f?t.formats&&L.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?((e,t,n
6)=>{let r=new i.Registry;return _.forEach(e=>{let n=t.query(e);n&&r.register(n)}),e.forEach(e=>{let i=t.query(e);i||n.error(`Cannot register "${e}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;i;)if(r.register(i),i="blotName"in i?i.requiredContainer??null:null,(o+=1)>100){n.error(`Cycle detected in registering blot requiredContainer: "${e}"`);break}}),r})(t.formats,h.registry,L):h.registry,{...h,registry:f,container:n,theme:o,modules:Object.entries(d).reduce((e,t)=>{let[n,i]=t;if(!i)return e;let o=j.import(`modules/${n}`);return null==o?(L.error(`Cannot load ${n} module. Are you sure you registered it?`),e):{...e,[n]:(0,r.A)({},o.DEFAULTS||{},i)}},{}),bounds:M(h.bounds)}}(e,t),this.container=this.options.container,null==this.container)return void L.error("Invalid Quill container",e);this.options.debug&&j.debug(this.options.debug);let n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",A.A.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new b.A;let l=i.ScrollBlot.blotName,s=this.options.registry.query(l);if(!s||!("blotName"in s))throw Error(`Cannot initialize Quill without "${l}" blot`);if(this.scroll=new s(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new p(this.scroll),this.selection=new h.A(this.scroll,this.emitter),this.composition=new N(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(b.A.events.EDITOR_CHANGE,e=>{e===b.A.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(b.A.events.SCROLL_UPDATE,(e,t)=>{let n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;D.call(this,()=>this.editor.update(null,t,i),e)}),this.emitter.on(b.A.events.SCROLL_EMBED_UPDATE,(e,t)=>{let n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;D.call(this,()=>{let n=new o().retain(e.offset(this)).retain({[e.statics.blotName]:t});return this.editor.update(n,[],i)},j.sources.USER)}),n){let e=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(e)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){let t=e;(e=document.createElement("div")).classList.add(t)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=P(e,t,n),D.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;let t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b.A.sources.API;return D.call(this,()=>{let n=this.getSelection(!0),r=new o;if(null==n)return r;if(this.scroll.query(e,i.Scope.BLOCK))r=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(0===n.length)return this.selection.format(e,t),r;r=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,b.A.sources.SILENT),r},n)}formatLine(e,t,n,r,i){let o;return[e,t,o,i]=P(e,t,n,r,i),D.call(this,()=>this.editor.formatLine(e,t,o),i,e,0)}formatText(e,t,n,r,i){let o;return[e,t,o,i]=P(e,t,n,r,i),D.call(this,()=>this.editor.formatText(e,t,o),i,e,0)}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(!(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length)))return null;let r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=P(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=P(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=P(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.sources.API;return D.call(this,()=>this.editor.insertEmbed(e,t,n),r,e)}insertText(e,t,n,r,i){let o;return[e,,o,i]=P(e,0,n,r,i),D.call(this,()=>this.editor.insertText(e,t,o),i,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=P(e,t,n),D.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){((e,t)=>
6{let n=e.ownerDocument,r=t,i=e;for(;i;){let e=i===n.body,t=e?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:C(i),o=getComputedStyle(i),l=O(r.left,r.right,t.left,t.right,T(o.scrollPaddingLeft),T(o.scrollPaddingRight)),s=O(r.top,r.bottom,t.top,t.bottom,T(o.scrollPaddingTop),T(o.scrollPaddingBottom));if(l||s)if(e)n.defaultView?.scrollBy(l,s);else{let{scrollLeft:e,scrollTop:t}=i;s&&(i.scrollTop+=s),l&&(i.scrollLeft+=l);let n=i.scrollLeft-e,o=i.scrollTop-t;r={left:r.left-n,top:r.top-o,right:r.right-n,bottom:r.bottom-o}}i=e||"fixed"===o.position?null:S(i)}})(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){let e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.A.sources.API;return D.call(this,()=>{e=new o(e);let t=this.getLength(),n=this.editor.deleteText(0,t),r=this.editor.insertContents(0,e),i=this.editor.deleteText(this.getLength()-1,1);return n.compose(r).compose(i)},t)}setSelection(e,t,n){null==e?this.selection.setRange(null,t||j.sources.API):([e,t,,n]=P(e,t,n),this.selection.setRange(new h.Q(Math.max(0,e),t),n),n!==b.A.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.A.sources.API,n=new o().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.A.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.A.sources.API;return D.call(this,()=>(e=new o(e),this.editor.applyDelta(e)),t,!0)}}function M(e){return"string"==typeof e?document.querySelector(e):e}function q(e){return Object.entries(e??{}).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:!0===r?{}:r}},{})}function I(e){return Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]))}function D(e,t,n,r){if(!this.isEnabled()&&t===b.A.sources.USER&&!this.allowReadOnlyEdits)return new o;let i=null==n?null:this.getSelection(),l=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=B(i,s,t):0!==r&&(i=B(i,n,r,t)),this.setSelection(i,b.A.sources.SILENT)),s.length()>0){let e=[b.A.events.TEXT_CHANGE,s,l,t];this.emitter.emit(b.A.events.EDITOR_CHANGE,...e),t!==b.A.sources.SILENT&&this.emitter.emit(...e)}return s}function P(e,t,n,r,i){let o={};return"number"==typeof e.index&&"number"==typeof e.length?("number"!=typeof t&&(i=r,r=n,n=t),t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"==typeof n?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),[e,t,o,i=i||b.A.sources.API]}function B(e,t,n,r){let i,o,l="number"==typeof n?n:0;return null==e?null:(t&&"function"==typeof t.transformPosition?[i,o]=[e.index,e.index+e.length].map(e=>t.transformPosition(e,r!==b.A.sources.USER)):[i,o]=[e.index,e.index+e.length].map(e=>e<t||e===t&&r===b.A.sources.USER?e:l>=0?e+l:Math.max(t,e+l)),new h.Q(i,o-i))}},85886:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37537);let i=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return -1};var o=Array.prototype.splice;function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)},l.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},l.prototype.has=function(e){return i(this.__data__,e)>-1},l.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=l},88216:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Function.prototype.toString;let i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},88816:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(85886),i=n(69790),o=n(35571);function l(e){var t=this.__data__=new r.A(e);this.size=t.size}l.prototype.clear=function(){this.__data__=new r.A,this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},l.prototype.get=function(e){return this.__data__.get(e)},l.prototype.has=function(e){return this.__data__.has(e)},l.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.A){var l=n.__data__;if(!i.A||l.length<199)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new o.A(l)}return n.set(e,t),this.size=n.size,this};let s=l},89069:(e,t,n)=>{"use strict";n.d(t,{N:()=>g});var r=n(95155),i=n(12115),o=n(60296),l=n(94416),s=n(59686),a=n(53127);class u extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:n}=e,o=(0,i.useId)(),l=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(a.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i}=s.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(i,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[n]),(0,r.jsx)(u,{isPresent:n,childRef:l,sizeRef:s,children:i.cloneElement(t,{ref:l})})}let d=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:d,mode:f}=e,p=(0,l.M)(h),m=(0,i.useId)(),g=(0,i.useCallback)(e=>
6{for(let t of(p.set(e,!0),p.values()))if(!t)return;a&&a()},[p,a]),y=(0,i.useMemo)(()=>({id:m,initial:n,isPresent:o,custom:u,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),g]:[o,g]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[o]),i.useEffect(()=>{o||p.size||!a||a()},[o]),"popLayout"===f&&(t=(0,r.jsx)(c,{isPresent:o,children:t})),(0,r.jsx)(s.t.Provider,{value:y,children:t})};function h(){return new Map}let f=e=>e.key||"";function p(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var m=n(86553);let g=e=>{let{children:t,custom:n,initial:a=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:g=!1}=e,[y,v]=function(e=!0){let t=(0,i.useContext)(s.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:o}=t,l=(0,i.useId)();(0,i.useEffect)(()=>{e&&o(l)},[e]);let a=(0,i.useCallback)(()=>e&&r&&r(l),[l,r,e]);return!n&&r?[!1,a]:[!0]}(g),b=(0,i.useMemo)(()=>p(t),[t]),A=g&&!y?[]:b.map(f),w=(0,i.useRef)(!0),x=(0,i.useRef)(b),E=(0,l.M)(()=>new Map),[N,k]=(0,i.useState)(b),[S,C]=(0,i.useState)(b);(0,m.E)(()=>{w.current=!1,x.current=b;for(let e=0;e<S.length;e++){let t=f(S[e]);A.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[S,A.length,A.join("-")]);let T=[];if(b!==N){let e=[...b];for(let t=0;t<S.length;t++){let n=S[t],r=f(n);A.includes(r)||(e.splice(t,0,n),T.push(n))}"wait"===h&&T.length&&(e=T),C(p(e)),k(b);return}let{forceRender:O}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:S.map(e=>{let t=f(e),i=(!g||!!y)&&(b===S||A.includes(t));return(0,r.jsx)(d,{isPresent:i,initial:(!w.current||!!a)&&void 0,custom:i?void 0:n,presenceAffectsLayout:c,mode:h,onExitComplete:i?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==O||O(),C(x.current),g&&(null==v||v()),u&&u())},children:e},t)})})}},89511:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>w,UC:()=>I,VY:()=>z,ZL:()=>_,bL:()=>N,bm:()=>W,hE:()=>F,hJ:()=>R,l9:()=>S});var r=n(12115),i=n(92556),o=n(94446),l=n(3468),s=n(68946),a=n(23558),u=n(40137),c=n(69666),d=n(75433),h=n(76842),f=n(97602),p=n(19526),m=n(14432),g=n(97745),y=n(32467),v=n(95155),b="Dialog",[A,w]=(0,l.A)(b),[x,E]=A(b),N=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[h,f]=(0,a.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:b});return(0,v.jsx)(x,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};N.displayName=b;var k="DialogTrigger",S=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=E(k,n),s=(0,o.s)(t,l.triggerRef);return(0,v.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":G(l.open),...r,ref:s,onClick:(0,i.mK)(e.onClick,l.onOpenToggle)})});S.displayName=k;var C="DialogPortal",[T,O]=A(C,{forceMount:void 0}),_=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=E(C,t);return(0,v.jsx)(T,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,v.jsx)(h.C,{present:n||l.open,children:(0,v.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};_.displayName=C;var L="DialogOverlay",R=r.forwardRef((e,t)=>{let n=O(L,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=E(L,e.__scopeDialog);return o.modal?(0,v.jsx)(h.C,{present:r||o.open,children:(0,v.jsx)(M,{...i,ref:t})}):null});R.displayName=L;var j=(0,y.TL)("DialogOverlay.RemoveScroll"),M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(L,n),l=(0,u.e0)(),s=(0,o.s)(t,l);return(0,v.jsx)(m.A,{as:j,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(f.sG.div,{"data-state":G(i.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})}),q="DialogContent",I=r.forwardRef((e,t)=>{let n=O(q,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=E(q,e.__scopeDialog);return(0,v.jsx)(h.C,{present:r||o.open,children:o.modal?(0,v.jsx)(D,{...i,ref:t}):(0,v.jsx)(P,{...i,ref:t})})});I.displayName=q;var D=r.forwardRef((e,t)=>{let n=E(q,e.__scopeDialog),l=r.useRef(null),s=(0,o.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.Eq)(e)},[]),(0,v.jsx)(B,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;
6e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),P=r.forwardRef((e,t)=>{let n=E(q,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,v.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),B=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,s=E(q,n);return(0,p.Oh)(),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,v.jsx)(u.qW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":G(s.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),U="DialogTitle",F=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(U,n);return(0,v.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});F.displayName=U;var H="DialogDescription",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(H,n);return(0,v.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})});z.displayName=H;var K="DialogClose",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(K,n);return(0,v.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function G(e){return e?"open":"closed"}W.displayName=K},90109:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},90904:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},91719:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},92033:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},92529:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(74235),i=n(78936);let o=(0,n(45572).A)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(e=>{document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(e=>{let n=i.A.get(e);n&&n.emitter&&n.emitter.handleDOM(...t)})})});class l extends r{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",o.error)}emit(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.log.call(o,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
6(this.domListeners[e.type]||[]).forEach(t=>{let{node:r,handler:i}=t;(e.target===r||r.contains(e.target))&&i(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}let s=l},92649:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).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"}]])},92925:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("ExternalLink",[["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"}]])},93545:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,u:()=>d});var r=n(99346),i=n(44804),o=n(84822),l=n(45572),s=n(73052);let a=(0,l.A)("quill:toolbar");class u extends s.A{constructor(e,t){if(super(e,t),Array.isArray(this.options.container)){let t=document.createElement("div");t.setAttribute("role","toolbar"),d(t,this.options.container),e.container?.parentNode?.insertBefore(t,e.container),this.container=t}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement))return void a.error("Container required for toolbar",this.options);this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(e=>{let t=this.options.handlers?.[e];t&&this.addHandler(e,t)}),Array.from(this.container.querySelectorAll("button, select")).forEac
6h(e=>{this.attach(e)}),this.quill.on(o.Ay.events.EDITOR_CHANGE,()=>{let[e]=this.quill.selection.getRange();this.update(e)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(e=>0===e.indexOf("ql-"));if(!t)return;if(t=t.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[t]&&null==this.quill.scroll.query(t))return void a.warn("ignoring attaching to nonexistent format",t,e);let n="SELECT"===e.tagName?"change":"click";e.addEventListener(n,n=>{let l;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;let t=e.options[e.selectedIndex];l=!t.hasAttribute("selected")&&(t.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),n.preventDefault();this.quill.focus();let[s]=this.quill.selection.getRange();if(null!=this.handlers[t])this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof i.EmbedBlot){if(!(l=prompt(`Enter ${t}`)))return;this.quill.updateContents(new r().retain(s.index).delete(s.length).insert({[t]:l}),o.Ay.sources.USER)}else this.quill.format(t,l,o.Ay.sources.USER);this.update(s)}),this.controls.push([t,e])}update(e){let t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(n=>{let[r,i]=n;if("SELECT"===i.tagName){let n=null;if(null==e)n=null;else if(null==t[r])n=i.querySelector("option[selected]");else if(!Array.isArray(t[r])){let e=t[r];"string"==typeof e&&(e=e.replace(/"/g,'\\"')),n=i.querySelector(`option[value="${e}"]`)}null==n?(i.value="",i.selectedIndex=-1):n.selected=!0}else if(null==e)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){let e=t[r],n=e===i.getAttribute("value")||null!=e&&e.toString()===i.getAttribute("value")||null==e&&!i.getAttribute("value");i.classList.toggle("ql-active",n),i.setAttribute("aria-pressed",n.toString())}else{let e=null!=t[r];i.classList.toggle("ql-active",e),i.setAttribute("aria-pressed",e.toString())}})}}function c(e,t,n){let r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),null!=n?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function d(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(t=>{let n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(e=>{if("string"==typeof e)c(n,e);else{let t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){let r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(e=>{let t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):c(n,t,r)}}),e.appendChild(n)})}u.DEFAULTS={},u.DEFAULTS={container:null,handlers:{clean(){let e=this.quill.getSelection();null!=e&&(0===e.length?Object.keys(this.quill.getFormat()).forEach(e=>{null!=this.quill.scroll.query(e,i.Scope.INLINE)&&this.quill.format(e,!1,o.Ay.sources.USER)}):this.quill.removeFormat(e.index,e.length,o.Ay.sources.USER))},direction(e){let{align:t}=this.quill.getFormat();"rtl"===e&&null==t?this.quill.format("align","right",o.Ay.sources.USER):e||"right"!==t||this.quill.format("align",!1,o.Ay.sources.USER),this.quill.format("direction",e,o.Ay.sources.USER)},indent(e){let t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){let t="+1"===e?1:-1;"rtl"===n.direction&&(t*=-1),this.quill.format("indent",r+t,o.Ay.sources.USER)}},link(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,o.Ay.sources.USER)},list(e){let t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,o.Ay.sources.USER):this.quill.format("list","unchecked",o.Ay.sources.USER):this.quill.format("list",e,o.Ay.sources.USER)}}}},93790:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]])},97745:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},l=0,s=function(e){return e&&(e.host||s(e.parentNode))},a=function(e,t,n,a){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(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});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],h=new Set,f=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(a),o=null!==t&&"false"!==t,l=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,l),c.set(e,s),d.push(e),1===l&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(a,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(a),i.delete(e)),o||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=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"))),a(r,i,n,"aria-hidden")):function(){return null}}},98046:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(59584),i=n(33476),o=n(53798);let l=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;let a=function(e){if(!(0,i.A)(e))return l(e);var t=(0,o.A)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n};var u=n(21383);let c=function(e){return(0,u.A)(e)?(0,r.A)(e,!0):a(e)}}
6,98428:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(14294).A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},99346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;let r=n(81152),i=n(54892),o=n(15168),l=n(51262);t.AttributeMap=l.default;let s=n(32031);t.Op=s.default;let a=n(50245);t.OpIterator=a.default;let u=(e,t)=>{if("object"!=typeof e||null===e)throw Error(`cannot retain a ${typeof e}`);if("object"!=typeof t||null===t)throw Error(`cannot retain a ${typeof t}`);let n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class c{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){let t=this.handlers[e];if(!t)throw Error(`no handlers for embed type "${e}"`);return t}insert(e,t){let n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;let n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=i(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;else if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){let e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){let t=[],n=[];return this.forEach(r=>{(e(r)?t:n).push(r)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+s.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+s.default.length(t),0)}slice(e=0,t=1/0){let n=[],r=new a.default(this.ops),i=0;for(;i<t&&r.hasNext();){let o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=s.default.length(o)}return new c(n)}compose(e){let t=new a.default(this.ops),n=new a.default(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){let e=i.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),r.push(t.next());i.retain-e>0&&n.next(i.retain-e)}let s=new c(r);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{let e=Math.min(t.peekLength(),n.peekLength()),r=t.next(e),i=n.next(e);if(i.retain){let a={};if("number"==typeof r.retain)a.retain="number"==typeof i.retain?e:i.retain;else if("number"==typeof i.retain)null==r.retain?a.insert=r.insert:a.retain=r.retain;else{let e=null==r.retain?"insert":"retain",[t,n,o]=u(r[e],i.retain),l=c.getHandler(t);a[e]={[t]:l.compose(n,o,"retain"===e)}}let d=l.default.compose(r.attributes,i.attributes,"number"==typeof r.retain);if(d&&(a.attributes=d),s.push(a),!n.hasNext()&&o(s.ops[s.ops.length-1],a)){let e=new c(t.rest());return s.concat(e).chop()}}else"number"==typeof i.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&s.push(i)}return s.chop()}concat(e){let t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new c;let n=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:"\0";throw Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),i=new c,s=r(n[0],n[1],t,!0),u=new a.default(this.ops),d=new a.default(e.ops);
6return s.forEach(e=>{let t=e[1].length;for(;t>0;){let n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);let s=u.next(n),a=d.next(n);o(s.insert,a.insert)?i.retain(n,l.default.diff(s.attributes,a.attributes)):i.push(a).delete(n)}t-=n}}),i.chop()}eachLine(e,t="\n"){let n=new a.default(this.ops),r=new c,i=0;for(;n.hasNext();){if("insert"!==n.peekType())return;let o=n.peek(),l=s.default.length(o)-n.peekLength(),a="string"==typeof o.insert?o.insert.indexOf(t,l)-l:-1;if(a<0)r.push(n.next());else if(a>0)r.push(n.next(a));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new c}}r.length()>0&&e(r,{},i)}invert(e){let t=new c;return this.reduce((n,r)=>{if(r.insert)t.delete(s.default.length(r));else if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),n+r.retain;else if(r.delete||"number"==typeof r.retain){let i=r.delete||r.retain;return e.slice(n,n+i).forEach(e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(s.default.length(e),l.default.invert(r.attributes,e.attributes))}),n+i}else if("object"==typeof r.retain&&null!==r.retain){let i=e.slice(n,n+1),o=new a.default(i.ops).next(),[s,d,h]=u(r.retain,o.insert),f=c.getHandler(s);return t.retain({[s]:f.invert(d,h)},l.default.invert(r.attributes,o.attributes)),n+1}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);let n=new a.default(this.ops),r=new a.default(e.ops),i=new c;for(;n.hasNext()||r.hasNext();)if("insert"===n.peekType()&&(t||"insert"!==r.peekType()))i.retain(s.default.length(n.next()));else if("insert"===r.peekType())i.push(r.next());else{let e=Math.min(n.peekLength(),r.peekLength()),o=n.next(e),s=r.next(e);if(o.delete)continue;if(s.delete)i.push(s);else{let n=o.retain,r=s.retain,a="object"==typeof r&&null!==r?r:e;if("object"==typeof n&&null!==n&&"object"==typeof r&&null!==r){let e=Object.keys(n)[0];if(e===Object.keys(r)[0]){let i=c.getHandler(e);i&&(a={[e]:i.transform(n[e],r[e],t)})}}i.retain(a,l.default.transform(o.attributes,s.attributes,t))}}return i.chop()}transformPosition(e,t=!1){t=!!t;let n=new a.default(this.ops),r=0;for(;n.hasNext()&&r<=e;){let i=n.peekLength(),o=n.peekType();if(n.next(),"delete"===o){e-=Math.min(i,e-r);continue}"insert"===o&&(r<e||!t)&&(e+=i),r+=i}return e}}c.Op=s.default,c.OpIterator=a.default,c.AttributeMap=l.default,c.handlers={},t.default=c,e.exports=c,e.exports.default=c}}]);

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.