All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
492 lines
4.5 MiB
492 lines
4.5 MiB
/*! For license information please see decap-cms-app.js.LICENSE.txt */
|
||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("DecapCmsApp",["react","react-dom"],t):"object"==typeof exports?exports.DecapCmsApp=t(require("react"),require("react-dom")):e.DecapCmsApp=t(e.React,e.ReactDOM)}(window,((__WEBPACK_EXTERNAL_MODULE__12244__,__WEBPACK_EXTERNAL_MODULE__53741__)=>(()=>{var __webpack_modules__={61540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AutoScrollActivator:()=>xe,DndContext:()=>Xe,DragOverlay:()=>gt,KeyboardCode:()=>ae,KeyboardSensor:()=>de,MeasuringFrequency:()=>Se,MeasuringStrategy:()=>Ce,MouseSensor:()=>be,PointerSensor:()=>ge,TouchSensor:()=>_e,TraversalOrder:()=>Ee,applyModifiers:()=>Ke,closestCenter:()=>T,closestCorners:()=>O,defaultAnnouncements:()=>h,defaultCoordinates:()=>w,defaultDropAnimation:()=>pt,defaultDropAnimationSideEffects:()=>ft,defaultScreenReaderInstructions:()=>p,getClientRect:()=>B,getFirstCollision:()=>S,getScrollableAncestors:()=>z,pointerWithin:()=>D,rectIntersection:()=>R,useDndContext:()=>nt,useDndMonitor:()=>f,useDraggable:()=>tt,useDroppable:()=>ot,useSensor:()=>y,useSensors:()=>b});var r=n(12244),i=n.n(r),o=n(53741),a=n(82851);const s={display:"none"};function l(e){let{id:t,value:n}=e;return i().createElement("div",{id:t,style:s},n)}const u={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function c(e){let{id:t,announcement:n}=e;return i().createElement("div",{id:t,style:u,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const d=(0,r.createContext)(null);function f(e){const t=(0,r.useContext)(d);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}const p={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},h={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function m(e){let{announcements:t=h,container:n,hiddenTextDescribedById:s,screenReaderInstructions:u=p}=e;const{announce:d,announcement:m}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,a.useUniqueId)("DndLiveRegion"),[v,y]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{y(!0)}),[]),f((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;d(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&d(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;d(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;d(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;d(t.onDragCancel({active:n,over:r}))}})),[d,t])),!v)return null;const b=i().createElement(i().Fragment,null,i().createElement(l,{id:s,value:u.draggable}),i().createElement(c,{id:g,announcement:m}));return n?(0,o.createPortal)(b,n):b}var g;function v(){}function y(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(g||(g={}));const w=Object.freeze({x:0,y:0});function _(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function x(e,t){const n=(0,a.getEventCoordinates)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function E(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function S(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function A(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const T=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=A(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=_(A(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(E)},O=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=C(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=C(r),a=i.reduce(((e,t,r)=>e+_(n[r],t)),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(E)};function P(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=P(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(k)};function M(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const D=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const e of t){const{id:t}=e,o=n.get(t);if(o&&M(r,o)){const n=C(o).reduce(((e,t)=>e+_(r,t)),0),a=Number((n/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(E)};function I(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:w}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const j=L(1);function N(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const F={ignoreTransform:!1};function B(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,a.getWindow)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=N(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:s,bottom:l,right:u}=n;return{top:r,left:i,width:o,height:s,bottom:l,right:u}}function U(e){return B(e,{ignoreTransform:!0})}function z(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,a.isDocument)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,a.isHTMLElement)(i)||(0,a.isSVGElement)(i))return n;if(n.includes(i))return n;const o=(0,a.getWindow)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,a.getWindow)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=(0,a.getWindow)(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function q(e){const[t]=z(e,1);return null!=t?t:null}function W(e){return a.canUseDOM&&e?(0,a.isWindow)(e)?e:(0,a.isNode)(e)?(0,a.isDocument)(e)||e===(0,a.getOwnerDocument)(e).scrollingElement?window:(0,a.isHTMLElement)(e)?e:null:null:null}function $(e){return(0,a.isWindow)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,a.isWindow)(e)?e.scrollY:e.scrollTop}function G(e){return{x:$(e),y:H(e)}}var V;function K(e){return!(!a.canUseDOM||!e)&&e===document.scrollingElement}function Z(e){const t={x:0,y:0},n=K(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(V||(V={}));const Y={x:.2,y:.2};function X(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Y);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=Z(e),p={x:0,y:0},h={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(p.y=V.Backward,h.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(p.y=V.Forward,h.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(p.x=V.Forward,h.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(p.x=V.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function Q(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function J(e){return e.reduce(((e,t)=>(0,a.add)(e,G(t))),w)}function ee(e,t){if(void 0===t&&(t=B),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);q(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const te=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+$(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+H(t)),0)}]];class ne{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=z(t),r=J(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of te)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class re{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ie(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var oe,ae;function se(e){e.preventDefault()}function le(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(oe||(oe={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ae||(ae={}));const ue={start:[ae.Space,ae.Enter],cancel:[ae.Esc],end:[ae.Space,ae.Enter]},ce=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ae.Right:return{...n,x:n.x+25};case ae.Left:return{...n,x:n.x-25};case ae.Down:return{...n,y:n.y+25};case ae.Up:return{...n,y:n.y-25}}};class de{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new re((0,a.getOwnerDocument)(t)),this.windowListeners=new re((0,a.getWindow)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(oe.Resize,this.handleCancel),this.windowListeners.add(oe.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(oe.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ee(n),t(w)}handleKeyDown(e){if((0,a.isKeyboardEvent)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ue,coordinateGetter:o=ce,scrollBehavior:s="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:w;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,a.subtract)(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:a,isLeft:l,isBottom:u,maxScroll:c,minScroll:f}=Z(n),p=Q(n),h={x:Math.min(i===ae.Right?p.right-p.width/2:p.right,Math.max(i===ae.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===ae.Down?p.bottom-p.height/2:p.bottom,Math.max(i===ae.Down?p.top:p.top+p.height/2,d.y))},m=i===ae.Right&&!a||i===ae.Left&&!l,g=i===ae.Down&&!u||i===ae.Up&&!o;if(m&&h.x!==d.x){const e=n.scrollLeft+t.x,o=i===ae.Right&&e<=c.x||i===ae.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=o?n.scrollLeft-e:i===ae.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&h.y!==d.y){const e=n.scrollTop+t.y,o=i===ae.Down&&e<=c.y||i===ae.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=o?n.scrollTop-e:i===ae.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,a.add)((0,a.subtract)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function fe(e){return Boolean(e&&"distance"in e)}function pe(e){return Boolean(e&&"delay"in e)}de.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ue,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class he{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,a.getWindow)(e);return e instanceof t?e:(0,a.getOwnerDocument)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,a.getOwnerDocument)(o),this.documentListeners=new re(this.document),this.listeners=new re(n),this.windowListeners=new re((0,a.getWindow)(o)),this.initialCoordinates=null!=(r=(0,a.getEventCoordinates)(i))?r:w,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(oe.Resize,this.handleCancel),this.windowListeners.add(oe.DragStart,se),this.windowListeners.add(oe.VisibilityChange,this.handleCancel),this.windowListeners.add(oe.ContextMenu,se),this.documentListeners.add(oe.Keydown,this.handleKeydown),t){if(fe(t))return;if(pe(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(oe.Click,le,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(oe.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!r)return;const l=null!=(t=(0,a.getEventCoordinates)(e))?t:w,u=(0,a.subtract)(r,l);if(!n&&s){if(pe(s))return ie(u,s.tolerance)?this.handleCancel():void 0;if(fe(s))return null!=s.tolerance&&ie(u,s.tolerance)?this.handleCancel():ie(u,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ae.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const me={move:{name:"pointermove"},end:{name:"pointerup"}};class ge extends he{constructor(e){const{event:t}=e,n=(0,a.getOwnerDocument)(t.target);super(e,me,n)}}ge.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ve={move:{name:"mousemove"},end:{name:"mouseup"}};var ye;!function(e){e[e.RightClick=2]="RightClick"}(ye||(ye={}));class be extends he{constructor(e){super(e,ve,(0,a.getOwnerDocument)(e.event.target))}}be.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ye.RightClick&&(null==r||r({event:n}),!0)}}];const we={move:{name:"touchmove"},end:{name:"touchend"}};class _e extends he{constructor(e){super(e,we)}static setup(){return window.addEventListener(we.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(we.move.name,e)};function e(){}}}var xe,Ee;_e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(xe||(xe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ee||(Ee={}));const ke={x:{[V.Backward]:!1,[V.Forward]:!1},y:{[V.Backward]:!1,[V.Forward]:!1}};var Ce,Se;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Ce||(Ce={})),function(e){e.Optimized="optimized"}(Se||(Se={}));const Ae=new Map;function Te(e,t){return(0,a.useLazyMemo)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Oe(e){let{callback:t,disabled:n}=e;const i=(0,a.useEvent)(t),o=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function Pe(e){return new ne(B(e),e)}function Re(e,t,n){void 0===t&&(t=Pe);const[i,o]=(0,r.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),s=function(e){let{callback:t,disabled:n}=e;const i=(0,a.useEvent)(t),o=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),l=Oe({callback:o});return(0,a.useIsomorphicLayoutEffect)((()=>{o(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),i}const Me=[];function De(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==w;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,a.subtract)(e,n.current):w}function Ie(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Le=[];function je(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,a.isHTMLElement)(t)?t:e}const Ne=[{sensor:ge,options:{}},{sensor:de,options:{}}],Fe={current:{}},Be={draggable:{measure:U},droppable:{measure:U,strategy:Ce.WhileDragging,frequency:Se.Optimized},dragOverlay:{measure:B}};class Ue extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const ze={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ue,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:v},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Be,measureDroppableContainers:v,windowRect:null,measuringScheduled:!1},qe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v,draggableNodes:new Map,over:null,measureDroppableContainers:v},We=(0,r.createContext)(qe),$e=(0,r.createContext)(ze);function He(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ue}}}function Ge(e,t){switch(t.type){case g.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case g.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case g.DragEnd:case g.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case g.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ue(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case g.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Ue(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case g.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Ue(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Ve(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:o}=(0,r.useContext)(We),s=(0,a.usePrevious)(i),l=(0,a.usePrevious)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&s&&null!=l){if(!(0,a.isKeyboardEvent)(s))return;if(document.activeElement===s.target)return;const e=o.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,a.findFirstFocusableNode)(e);if(t){t.focus();break}}}))}}),[i,t,o,l,s]),null}function Ke(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ze=(0,r.createContext)({...w,scaleX:1,scaleY:1});var Ye;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ye||(Ye={}));const Xe=(0,r.memo)((function(e){var t,n,s,l;let{id:u,accessibility:c,autoScroll:f=!0,children:p,sensors:h=Ne,collisionDetection:v=R,measuring:y,modifiers:b,..._}=e;const x=(0,r.useReducer)(Ge,void 0,He),[E,k]=x,[C,A]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[T,O]=(0,r.useState)(Ye.Uninitialized),P=T===Ye.Initialized,{draggable:{active:M,nodes:D,translate:L},droppable:{containers:N}}=E,F=M?D.get(M):null,U=(0,r.useRef)({initial:null,translated:null}),$=(0,r.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==F?void 0:F.data)?e:Fe,rect:U}:null}),[M,F]),H=(0,r.useRef)(null),[Z,Y]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,a.useLatestValue)(_,Object.values(_)),re=(0,a.useUniqueId)("DndDescribedBy",u),ie=(0,r.useMemo)((()=>N.getEnabled()),[N]),oe=(ae=y,(0,r.useMemo)((()=>({draggable:{...Be.draggable,...null==ae?void 0:ae.draggable},droppable:{...Be.droppable,...null==ae?void 0:ae.droppable},dragOverlay:{...Be.dragOverlay,...null==ae?void 0:ae.dragOverlay}})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:se,measureDroppableContainers:le,measuringScheduled:ue}=function(e,t){let{dragging:n,dependencies:i,config:o}=t;const[s,l]=(0,r.useState)(null),{frequency:u,measure:c,strategy:d}=o,f=(0,r.useRef)(e),p=function(){switch(d){case Ce.Always:return!1;case Ce.BeforeDragging:return n;default:return!n}}(),h=(0,a.useLatestValue)(p),m=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),g=(0,r.useRef)(null),v=(0,a.useLazyMemo)((t=>{if(p&&!n)return Ae;if(!t||t===Ae||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ne(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,p,c]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||m()}),[n,p]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{p||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),u))}),[u,p,m,...i]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:null!=s}}(ie,{dragging:P,dependencies:[L.x,L.y],config:oe.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,a.useLazyMemo)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(D,M),de=(0,r.useMemo)((()=>Q?(0,a.getEventCoordinates)(Q):null),[Q]),fe=function(){const e=!1===(null==Z?void 0:Z.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=P&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),pe=function(e,t){return Te(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:o=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:u}="boolean"==typeof o?{x:o,y:o}:o;(0,a.useIsomorphicLayoutEffect)((()=>{if(!l&&!u||!t)return void(s.current=!1);if(s.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=I(n(e),i);if(l||(r.x=0),u||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=q(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,u,i,n])}({activeNode:M?D.get(M):null,config:fe.layoutShiftCompensation,initialRect:pe,measure:oe.draggable.measure});const he=Re(ce,oe.draggable.measure,pe),me=Re(ce?ce.parentElement:null),ge=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:se,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ve=N.getNodeFor(null==(t=ge.current.over)?void 0:t.id),ye=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),o=Oe({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,a.isHTMLElement)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=je(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),i(n?t(n):null)}),[t,o]),[l,u]=(0,a.useNodeRef)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:u})),[n,l,u])}({measure:oe.dragOverlay.measure}),be=null!=(n=ye.nodeRef.current)?n:ce,we=P?null!=(s=ye.rect)?s:he:null,_e=Boolean(ye.nodeRef.current&&ye.rect),Se=I(Pe=_e?null:he,Te(Pe));var Pe;const Ue=Ie(be?(0,a.getWindow)(be):null),ze=function(e){const t=(0,r.useRef)(e),n=(0,a.useLazyMemo)((n=>e?n&&n!==Me&&e&&t.current&&e.parentNode===t.current.parentNode?n:z(e):Me),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(P?null!=ve?ve:ce:null),qe=function(e,t){void 0===t&&(t=B);const[n]=e,i=Ie(n?(0,a.getWindow)(n):null),[o,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>K(e)?i:new ne(t(e),e))):Le}),Le),l=Oe({callback:s});return e.length>0&&o===Le&&s(),(0,a.useIsomorphicLayoutEffect)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),o}(ze),Xe=Ke(b,{transform:{x:L.x-Se.x,y:L.y-Se.y,scaleX:1,scaleY:1},activatorEvent:Q,active:$,activeNodeRect:he,containerNodeRect:me,draggingNodeRect:we,over:ge.current.over,overlayNodeRect:ye.rect,scrollableAncestors:ze,scrollableAncestorRects:qe,windowRect:Ue}),Qe=de?(0,a.add)(de,L):null,Je=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),o=(0,r.useCallback)((e=>{const t=W(e.target);t&&n((e=>e?(e.set(t,G(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const a=e.map((e=>{const t=W(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,G(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=W(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,a.add)(e,t)),w):J(e):w),[e,t])}(ze),et=De(Je),tt=De(Je,[he]),nt=(0,a.add)(Xe,et),rt=we?j(we,Xe):null,it=$&&rt?v({active:$,collisionRect:rt,droppableRects:se,droppableContainers:ie,pointerCoordinates:Qe}):null,ot=S(it,"id"),[at,st]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(_e?Xe:(0,a.add)(Xe,tt),null!=(l=null==at?void 0:at.rect)?l:null,he),ut=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==H.current)return;const i=D.get(H.current);if(!i)return;const a=e.nativeEvent,s=new n({active:H.current,activeNode:i,event:a,options:r,context:ge,onStart(e){const t=H.current;if(null==t)return;const n=D.get(t);if(!n)return;const{onDragStart:r}=te.current,i={active:{id:t,data:n.data,rect:U}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),O(Ye.Initializing),k({type:g.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:i})}))},onMove(e){k({type:g.DragMove,coordinates:e})},onEnd:l(g.DragEnd),onCancel:l(g.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ge.current;let s=null;if(t&&i){const{cancelDrop:o}=te.current;s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===g.DragEnd&&"function"==typeof o&&await Promise.resolve(o(s))&&(e=g.DragCancel)}H.current=null,(0,o.unstable_batchedUpdates)((()=>{k({type:e}),O(Ye.Uninitialized),st(null),Y(null),ee(null);const t=e===g.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),C({type:t,event:s})}}))}}(0,o.unstable_batchedUpdates)((()=>{Y(s),ee(e.nativeEvent)}))}),[D]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=D.get(r);if(null!==H.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},H.current=r,ut(n,t))}),[D,ut]),dt=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(h,ct);!function(e){(0,r.useEffect)((()=>{if(!a.canUseDOM)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(h),(0,a.useIsomorphicLayoutEffect)((()=>{he&&T===Ye.Initializing&&O(Ye.Initialized)}),[he,T]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=ge.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:nt.x,y:nt.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),C({type:"onDragMove",event:a})}))}),[nt.x,nt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ge.current;if(!e||null==H.current||!t||!i)return;const{onDragOver:a}=te.current,s=r.get(ot),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,o.unstable_batchedUpdates)((()=>{st(l),null==a||a(u),C({type:"onDragOver",event:u})}))}),[ot]),(0,a.useIsomorphicLayoutEffect)((()=>{ge.current={activatorEvent:Q,active:$,activeNode:ce,collisionRect:rt,collisions:it,droppableRects:se,draggableNodes:D,draggingNode:be,draggingNodeRect:we,droppableContainers:N,over:at,scrollableAncestors:ze,scrollAdjustedTranslate:nt},U.current={initial:we,translated:rt}}),[$,ce,it,rt,D,be,we,se,N,at,ze,nt]),function(e){let{acceleration:t,activator:n=xe.Pointer,canScroll:i,draggingRect:o,enabled:s,interval:l=5,order:u=Ee.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:h}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,a.usePrevious)(t);return(0,a.useLazyMemo)((e=>{if(n||!r||!e)return ke;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[V.Backward]:e.x[V.Backward]||-1===i,[V.Forward]:e.x[V.Forward]||1===i},y:{[V.Backward]:e.y[V.Backward]||-1===o,[V.Forward]:e.y[V.Forward]||1===o}}}),[n,t,r])}({delta:p,disabled:!s}),[g,v]=(0,a.useInterval)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case xe.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case xe.DraggableRect:return o}}),[n,o,c]),_=(0,r.useRef)(null),x=(0,r.useCallback)((()=>{const e=_.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>u===Ee.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of E){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:o,speed:a}=X(e,r,w,t,h);for(const e of["x","y"])m[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return v(),_.current=e,g(x,l),y.current=a,void(b.current=o)}y.current={x:0,y:0},b.current={x:0,y:0},v()}else v()}),[t,x,i,v,s,l,JSON.stringify(w),JSON.stringify(m),g,d,E,f,JSON.stringify(h)])}({...fe,delta:L,draggingRect:rt,pointerCoordinates:Qe,scrollableAncestors:ze,scrollableAncestorRects:qe});const ft=(0,r.useMemo)((()=>({active:$,activeNode:ce,activeNodeRect:he,activatorEvent:Q,collisions:it,containerNodeRect:me,dragOverlay:ye,draggableNodes:D,droppableContainers:N,droppableRects:se,over:at,measureDroppableContainers:le,scrollableAncestors:ze,scrollableAncestorRects:qe,measuringConfiguration:oe,measuringScheduled:ue,windowRect:Ue})),[$,ce,he,Q,it,me,ye,D,N,se,at,le,ze,qe,oe,ue,Ue]),pt=(0,r.useMemo)((()=>({activatorEvent:Q,activators:dt,active:$,activeNodeRect:he,ariaDescribedById:{draggable:re},dispatch:k,draggableNodes:D,over:at,measureDroppableContainers:le})),[Q,dt,$,he,k,re,D,at,le]);return i().createElement(d.Provider,{value:A},i().createElement(We.Provider,{value:pt},i().createElement($e.Provider,{value:ft},i().createElement(Ze.Provider,{value:lt},p)),i().createElement(Ve,{disabled:!1===(null==c?void 0:c.restoreFocus)})),i().createElement(m,{...c,hiddenTextDescribedById:re}))})),Qe=(0,r.createContext)(null),Je="button",et="Droppable";function tt(e){let{id:t,data:n,disabled:i=!1,attributes:o}=e;const s=(0,a.useUniqueId)(et),{activators:l,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:h}=(0,r.useContext)(We),{role:m=Je,roleDescription:g="draggable",tabIndex:v=0}=null!=o?o:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?Ze:Qe),[w,_]=(0,a.useNodeRef)(),[x,E]=(0,a.useNodeRef)(),k=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),C=(0,a.useLatestValue)(n);return(0,a.useIsomorphicLayoutEffect)((()=>(p.set(t,{id:t,key:s,node:w,activatorNode:x,data:C}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)})),[p,t]),{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:m,tabIndex:v,"aria-disabled":i,"aria-pressed":!(!y||m!==Je)||void 0,"aria-roledescription":g,"aria-describedby":f.draggable})),[i,m,v,y,g,f.draggable]),isDragging:y,listeners:i?void 0:k,node:w,over:h,setNodeRef:_,setActivatorNodeRef:E,transform:b}}function nt(){return(0,r.useContext)($e)}const rt="Droppable",it={timeout:25};function ot(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e;const s=(0,a.useUniqueId)(rt),{active:l,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(We),f=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),h=(0,r.useRef)(null),m=(0,r.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...it,...o},w=(0,a.useLatestValue)(null!=y?y:i),_=Oe({callback:(0,r.useCallback)((()=>{p.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),m.current=null}),b)):p.current=!0}),[b]),disabled:v||!l}),x=(0,r.useCallback)(((e,t)=>{_&&(t&&(_.unobserve(t),p.current=!1),e&&_.observe(e))}),[_]),[E,k]=(0,a.useNodeRef)(x),C=(0,a.useLatestValue)(t);return(0,r.useEffect)((()=>{_&&E.current&&(_.disconnect(),p.current=!1,_.observe(E.current))}),[E,_]),(0,a.useIsomorphicLayoutEffect)((()=>(u({type:g.RegisterDroppable,element:{id:i,key:s,disabled:n,node:E,rect:h,data:C}}),()=>u({type:g.UnregisterDroppable,key:s,id:i}))),[i]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:g.SetDroppableDisabled,id:i,key:s,disabled:n}),f.current.disabled=n)}),[i,s,n,u]),{active:l,rect:h,isOver:(null==c?void 0:c.id)===i,node:E,over:c,setNodeRef:k}}function at(e){let{animation:t,children:n}=e;const[o,s]=(0,r.useState)(null),[l,u]=(0,r.useState)(null),c=(0,a.usePrevious)(n);return n||o||!c||s(c),(0,a.useIsomorphicLayoutEffect)((()=>{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then((()=>{s(null)})):s(null)}),[t,o,l]),i().createElement(i().Fragment,null,n,o?(0,r.cloneElement)(o,{ref:u}):null)}const st={x:0,y:0,scaleX:1,scaleY:1};function lt(e){let{children:t}=e;return i().createElement(We.Provider,{value:qe},i().createElement(Ze.Provider,{value:st},t))}const ut={position:"fixed",touchAction:"none"},ct=e=>(0,a.isKeyboardEvent)(e)?"transform 250ms ease":void 0,dt=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:s,className:l,rect:u,style:c,transform:d,transition:f=ct}=e;if(!u)return null;const p=o?d:{...d,scaleX:1,scaleY:1},h={...ut,width:u.width,height:u.height,top:u.top,left:u.left,transform:a.CSS.Transform.toString(p),transformOrigin:o&&r?x(r,u):void 0,transition:"function"==typeof f?f(r):f,...c};return i().createElement(n,{className:l,style:h,ref:t},s)})),ft=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},pt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:a.CSS.Transform.toString(t)},{transform:a.CSS.Transform.toString(n)}]},sideEffects:ft({styles:{active:{opacity:"0"}}})};let ht=0;function mt(e){return(0,r.useMemo)((()=>{if(null!=e)return ht++,ht}),[e])}const gt=i().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:s,transition:l,modifiers:u,wrapperElement:c="div",className:d,zIndex:f=999}=e;const{activatorEvent:p,active:h,activeNodeRect:m,containerNodeRect:g,draggableNodes:v,droppableContainers:y,dragOverlay:b,over:w,measuringConfiguration:_,scrollableAncestors:x,scrollableAncestorRects:E,windowRect:k}=nt(),C=(0,r.useContext)(Ze),S=mt(null==h?void 0:h.id),A=Ke(u,{activatorEvent:p,active:h,activeNodeRect:m,containerNodeRect:g,draggingNodeRect:b.rect,over:w,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:E,transform:C,windowRect:k}),T=Te(m),O=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,a.useEvent)(((e,o)=>{if(null===t)return;const s=n.get(e);if(!s)return;const l=s.node.current;if(!l)return;const u=je(o);if(!u)return;const{transform:c}=(0,a.getWindow)(o).getComputedStyle(o),d=N(c);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...pt,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u=a.rect.left-o.rect.left,c=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-u,y:s.y-c,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,m=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return ee(l,i.draggable.measure),f({active:{id:e,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}({config:o,draggableNodes:v,droppableContainers:y,measuringConfiguration:_}),P=T?b.setRef:void 0;return i().createElement(lt,null,i().createElement(at,{animation:O},h&&S?i().createElement(dt,{key:S,id:h.id,ref:P,as:c,activatorEvent:p,adjustScale:t,className:d,transition:l,rect:T,style:{zIndex:f,...s},transform:A},n):null))}))},88366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSnapModifier:()=>i,restrictToFirstScrollableAncestor:()=>l,restrictToHorizontalAxis:()=>o,restrictToParentElement:()=>s,restrictToVerticalAxis:()=>u,restrictToWindowEdges:()=>c,snapCenterToCursor:()=>d});var r=n(82851);function i(e){return t=>{let{transform:n}=t;return{...n,x:Math.ceil(n.x/e)*e,y:Math.ceil(n.y/e)*e}}}const o=e=>{let{transform:t}=e;return{...t,y:0}};function a(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const s=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?a(r,n,t):r},l=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const i=r[0];return t&&i?a(n,t,i):n},u=e=>{let{transform:t}=e;return{...t,x:0}},c=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return n&&r?a(t,n,r):t},d=e=>{let{activatorEvent:t,draggingNodeRect:n,transform:i}=e;if(n&&t){const e=(0,r.getEventCoordinates)(t);if(!e)return i;const o=e.x-n.left,a=e.y-n.top;return{...i,x:i.x+o-n.width/2,y:i.y+a-n.height/2}}return i}},66548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SortableContext:()=>b,arrayMove:()=>s,arraySwap:()=>l,defaultAnimateLayoutChanges:()=>_,defaultNewIndexGetter:()=>w,hasSortableData:()=>A,horizontalListSortingStrategy:()=>f,rectSortingStrategy:()=>p,rectSwappingStrategy:()=>h,sortableKeyboardCoordinates:()=>O,useSortable:()=>S,verticalListSortingStrategy:()=>g});var r=n(12244),i=n.n(r),o=n(61540),a=n(82851);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t,n){const r=e.slice();return r[t]=e[n],r[n]=e[t],r}function u(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const d={scaleX:1,scaleY:1},f=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=null!=(t=n[i])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width):0}(n,a,i);if(a===i){const e=n[o];return e?{x:i<o?e.left+e.width-(s.left+s.width):e.left-s.left,y:0,...d}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...d}:a<i&&a>=o?{x:s.width+l,y:0,...d}:{x:0,y:0,...d}},p=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=s(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},h=e=>{let t,n,{activeIndex:r,index:i,rects:o,overIndex:a}=e;return i===r&&(t=o[i],n=o[a]),i===a&&(t=o[i],n=o[r]),n&&t?{x:n.left-t.left,y:n.top-t.top,scaleX:n.width/t.width,scaleY:n.height/t.height}:null},m={scaleX:1,scaleY:1},g=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){const e=o[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...m}:null}const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=a?{x:0,y:-s.height-l,...m}:i<n&&i>=a?{x:0,y:s.height+l,...m}:{x:0,y:0,...m}},v="Sortable",y=i().createContext({activeIndex:-1,containerId:v,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:p,disabled:{draggable:!1,droppable:!1}});function b(e){let{children:t,id:n,items:s,strategy:l=p,disabled:c=!1}=e;const{active:d,dragOverlay:f,droppableRects:h,over:m,measureDroppableContainers:g}=(0,o.useDndContext)(),b=(0,a.useUniqueId)(v,n),w=Boolean(null!==f.rect),_=(0,r.useMemo)((()=>s.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[s]),x=null!=d,E=d?_.indexOf(d.id):-1,k=m?_.indexOf(m.id):-1,C=(0,r.useRef)(_),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(_,C.current),A=-1!==k&&-1===E||S,T=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(c);(0,a.useIsomorphicLayoutEffect)((()=>{S&&x&&g(_)}),[S,_,x,g]),(0,r.useEffect)((()=>{C.current=_}),[_]);const O=(0,r.useMemo)((()=>({activeIndex:E,containerId:b,disabled:T,disableTransforms:A,items:_,overIndex:k,useDragOverlay:w,sortedRects:u(_,h),strategy:l})),[E,b,T.draggable,T.droppable,A,_,k,h,w,l]);return i().createElement(y.Provider,{value:O},t)}const w=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},_=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},x={duration:200,easing:"ease"},E="transform",k=a.CSS.Transition.toString({property:E,duration:0,easing:"linear"}),C={roleDescription:"sortable"};function S(e){let{animateLayoutChanges:t=_,attributes:n,disabled:i,data:s,getNewIndex:l=w,id:u,strategy:d,resizeObserverConfig:f,transition:p=x}=e;const{items:h,containerId:m,activeIndex:g,disabled:v,disableTransforms:b,sortedRects:S,overIndex:A,useDragOverlay:T,strategy:O}=(0,r.useContext)(y),P=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(i,v),R=h.indexOf(u),M=(0,r.useMemo)((()=>({sortable:{containerId:m,index:R,items:h},...s})),[m,s,R,h]),D=(0,r.useMemo)((()=>h.slice(h.indexOf(u))),[h,u]),{rect:I,node:L,isOver:j,setNodeRef:N}=(0,o.useDroppable)({id:u,data:M,disabled:P.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...f}}),{active:F,activatorEvent:B,activeNodeRect:U,attributes:z,setNodeRef:q,listeners:W,isDragging:$,over:H,setActivatorNodeRef:G,transform:V}=(0,o.useDraggable)({id:u,data:M,attributes:{...C,...n},disabled:P.draggable}),K=(0,a.useCombinedRefs)(N,q),Z=Boolean(F),Y=Z&&!b&&c(g)&&c(A),X=!T&&$,Q=X&&Y?V:null,J=Y?null!=Q?Q:(null!=d?d:O)({rects:S,activeNodeRect:U,activeIndex:g,overIndex:A,index:R}):null,ee=c(g)&&c(A)?l({id:u,items:h,activeIndex:g,overIndex:A}):R,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:h,newIndex:ee,containerId:m}),re=h!==ne.current.items,ie=t({active:F,containerId:m,isDragging:$,isSorting:Z,id:u,index:R,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),oe=function(e){let{disabled:t,index:n,node:i,rect:s}=e;const[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,a.useIsomorphicLayoutEffect)((()=>{if(!t&&n!==c.current&&i.current){const e=s.current;if(e){const t=(0,o.getClientRect)(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,i,s]),(0,r.useEffect)((()=>{l&&u(null)}),[l]),l}({disabled:!ie,index:R,node:L,rect:I});return(0,r.useEffect)((()=>{Z&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),m!==ne.current.containerId&&(ne.current.containerId=m),h!==ne.current.items&&(ne.current.items=h)}),[Z,ee,m,h]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:F,activeIndex:g,attributes:z,data:M,rect:I,index:R,newIndex:ee,items:h,isOver:j,isSorting:Z,isDragging:$,listeners:W,node:L,overIndex:A,over:H,setNodeRef:K,setActivatorNodeRef:G,setDroppableNodeRef:N,setDraggableNodeRef:q,transform:null!=oe?oe:J,transition:oe||re&&ne.current.newIndex===R?k:X&&!(0,a.isKeyboardEvent)(B)||!p?void 0:Z||ie?a.CSS.Transition.toString({...p,property:E}):void 0}}function A(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const T=[o.KeyboardCode.Down,o.KeyboardCode.Right,o.KeyboardCode.Up,o.KeyboardCode.Left],O=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:s,over:l,scrollableAncestors:u}}=t;if(T.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=i.get(n.id);if(a)switch(e.code){case o.KeyboardCode.Down:r.top<a.top&&t.push(n);break;case o.KeyboardCode.Up:r.top>a.top&&t.push(n);break;case o.KeyboardCode.Left:r.left>a.left&&t.push(n);break;case o.KeyboardCode.Right:r.left<a.left&&t.push(n)}}));const f=(0,o.closestCorners)({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let p=(0,o.getFirstCollision)(f,"id");if(p===(null==l?void 0:l.id)&&f.length>1&&(p=f[1].id),null!=p){const e=s.get(n.id),t=s.get(p),l=t?i.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&l&&e&&t){const n=(0,o.getScrollableAncestors)(f).some(((e,t)=>u[t]!==e)),i=P(e,t),s=(d=t,!(!A(c=e)||!A(d))&&!!P(c,d)&&c.data.current.sortable.index<d.data.current.sortable.index),p=n||!i?{x:0,y:0}:{x:s?r.width-l.width:0,y:s?r.height-l.height:0},h={x:l.left,y:l.top};return p.x&&p.y?h:(0,a.subtract)(h,p)}}}var c,d};function P(e,t){return!(!A(e)||!A(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},82851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSS:()=>O,add:()=>E,canUseDOM:()=>o,findFirstFocusableNode:()=>R,getEventCoordinates:()=>T,getOwnerDocument:()=>f,getWindow:()=>l,hasViewportRelativeCoordinates:()=>C,isDocument:()=>u,isHTMLElement:()=>c,isKeyboardEvent:()=>S,isNode:()=>s,isSVGElement:()=>d,isTouchEvent:()=>A,isWindow:()=>a,subtract:()=>k,useCombinedRefs:()=>i,useEvent:()=>h,useInterval:()=>m,useIsomorphicLayoutEffect:()=>p,useLatestValue:()=>g,useLazyMemo:()=>v,useNodeRef:()=>y,usePrevious:()=>b,useUniqueId:()=>_});var r=n(12244);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=l(e);return e instanceof t}function c(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?u(e)?e:c(e)?e.ownerDocument:document:document:document}const p=o?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function m(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=h(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function _(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const E=x(1),k=x(-1);function C(e){return"clientX"in e&&"clientY"in e}function S(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function A(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}function T(e){if(A(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return C(e)?{x:e.clientX,y:e.clientY}:null}const O=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),P="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function R(e){return e.matches(P)?e:e.querySelector(P)}},39721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,w="";function _(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:a,return:""}}function x(e,t){return a(_("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return b=y>0?c(w,--y):0,g--,10===b&&(g=1,m--),b}function k(){return b=y<v?c(w,y++):0,g++,10===b&&(g=1,m++),b}function C(){return c(w,y)}function S(){return y}function A(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return m=g=1,v=f(w=e),y=0,[]}function P(e){return w="",e}function R(e){return s(A(y-1,I(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(b=C())&&b<33;)k();return T(e)>2||T(b)>3?"":" "}function D(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,S()+(t<6&&32==C()&&32==k()))}function I(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:k()}return y}function L(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+A(t,y-1)+"*"+o(47===e?e:k())}function j(e){for(;!T(C());)k();return A(e,y)}var N="-ms-",F="-moz-",B="-webkit-",U="comm",z="rule",q="decl",W="@keyframes";function $(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case q:return e.return=e.return||e.value;case U:return"";case W:return e.return=e.value+"{"+$(e.children,r)+"}";case z:e.value=e.props.join(",")}return f(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function G(e){return P(V("",null,null,null,[""],e=O(e),0,[0],e))}function V(e,t,n,r,i,a,s,d,p){for(var m=0,g=0,v=s,y=0,b=0,w=0,_=1,x=1,A=1,T=0,O="",P=i,I=a,N=r,F=O;x;)switch(w=T,T=k()){case 40:if(108!=w&&58==c(F,v-1)){-1!=u(F+=l(R(T),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:F+=R(T);break;case 9:case 10:case 13:case 32:F+=M(w);break;case 92:F+=D(S()-1,7);continue;case 47:switch(C()){case 42:case 47:h(Z(L(k(),S()),t,n),p);break;default:F+="/"}break;case 123*_:d[m++]=f(F)*A;case 125*_:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+g:-1==A&&(F=l(F,/\f/g,"")),b>0&&f(F)-v&&h(b>32?Y(F+";",r,n,v-1):Y(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(N=K(F,t,n,m,g,i,d,O,P=[],I=[],v),a),123===T)if(0===g)V(F,t,N,N,P,a,v,d,I);else switch(99===y&&110===c(F,3)?100:y){case 100:case 108:case 109:case 115:V(e,N,N,r&&h(K(e,N,N,0,0,i,d,O,i,P=[],v),I),i,I,v,d,r?P:I);break;default:V(F,N,N,N,[""],I,0,d,I)}}m=g=b=0,_=A=1,O=F="",v=s;break;case 58:v=1+f(F),b=w;default:if(_<1)if(123==T)--_;else if(125==T&&0==_++&&125==E())continue;switch(F+=o(T),T*_){case 38:A=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*A,A=1;break;case 64:45===C()&&(F+=R(k())),y=C(),g=v=f(O=F+=j(S())),T++;break;case 45:45===w&&2==f(F)&&(_=0)}}return a}function K(e,t,n,r,o,a,u,c,f,h,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,x=0;b<r;++b)for(var E=0,k=d(e,g+1,g=i(w=u[b])),C=e;E<y;++E)(C=s(w>0?v[E]+" "+k:l(k,/&\f/g,v[E])))&&(f[x++]=C);return _(e,t,n,0===o?z:c,f,h,m)}function Z(e,t,n){return _(e,t,n,U,o(b),d(e,2,-2),0)}function Y(e,t,n,r){return _(e,t,n,q,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=C(),38===r&&12===i&&(t[n]=1),!T(i);)k();return A(e,y)},Q=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=k());return e}(O(e),t))}(t,i),s=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)e.props[u]=i[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+N+e+e;case 6828:case 4268:return B+e+N+e+e;case 6165:return B+e+N+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return B+e+N+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+N+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+N+l(e,"shrink","negative")+e;case 5292:return B+e+N+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+N+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===c(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+N+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=te(e.value,e.length);break;case W:return $([x(e,{value:l(e.value,"@","@"+B)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return $([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([x(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||ne,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var u,c,d,f,h=[H,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],m=(c=[J,ee].concat(a,h),d=p(c),function(e,t,n,r){for(var i="",o=0;o<d;o++)i+=c[o](e,t,n,r)||"";return i});o=function(e,t,n,r){u=n,$(G(e?e+"{"+t.styles+"}":t.styles),m),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(l),g}},86894:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},33895:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,E:()=>A,T:()=>b,_:()=>v,a:()=>x,b:()=>E,c:()=>C,h:()=>h,i:()=>p,u:()=>w,w:()=>y});var r=n(12244),i=n(39721),o=n(7896),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(73463),l=n.n(s),u=function(e,t){return l()(e,t)},c=n(82792),d=n(44188),f=n(82668),p=!0,h={}.hasOwnProperty,m=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),g=m.Provider,v=function(){return(0,r.useContext)(m)},y=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(m);return e(t,i,n)}))};p||(y=function(e){return function(t){var n=(0,r.useContext)(m);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(m.Provider,{value:n},e(t,n))):e(t,n)}});var b=r.createContext({}),w=function(){return r.useContext(b)},_=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)}(e,t)}))})),x=function(e){var t=r.useContext(b);return e.theme!==t&&(t=_(t)(e.theme)),r.createElement(b.Provider,{value:t},e.children)};function E(e){var t=e.displayName||e.name||"Component",n=function(t,n){var i=r.useContext(b);return r.createElement(e,(0,o.Z)({theme:i,ref:n},t))},i=r.forwardRef(n);return i.displayName="WithTheme("+t+")",u(i,e)}var k="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",C=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[k]=e,n},S=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,f.L)((function(){return(0,c.My)(t,n,r)})),null},A=y((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[k],a=[i],s="";"string"==typeof e.className?s=(0,c.fp)(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=(0,d.O)(a,void 0,r.useContext(b));s+=t.key+"-"+l.name;var u={};for(var f in e)h.call(e,f)&&"css"!==f&&f!==k&&(u[f]=e[f]);return u.ref=n,u.className=s,r.createElement(r.Fragment,null,r.createElement(S,{cache:t,serialized:l,isStringTag:"string"==typeof o}),r.createElement(o,u))}))},28165:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CacheProvider:()=>r.C,ClassNames:()=>h,Global:()=>u,ThemeContext:()=>r.T,ThemeProvider:()=>r.a,__unsafe_useEmotionCache:()=>r._,createElement:()=>l,css:()=>c,jsx:()=>l,keyframes:()=>d,useTheme:()=>r.u,withEmotionCache:()=>r.w,withTheme:()=>r.b});var r=n(33895),i=n(12244),o=n(82792),a=n(82668),s=n(44188),l=(n(39721),n(73463),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return i.createElement.apply(null,a)}),u=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.O)([n],void 0,i.useContext(r.T));if(!r.i){for(var u,c=l.name,d=l.styles,f=l.next;void 0!==f;)c+=" "+f.name,d+=f.styles,f=f.next;var p=!0===t.compat,h=t.insert("",{name:c,styles:d},t.sheet,p);return p?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:h},u.nonce=t.sheet.nonce,u))}var m=i.useRef();return(0,a.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),m.current=[n,r],function(){n.flush()}}),[t]),(0,a.j)((function(){var e=m.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var d=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},f=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i},p=function(e){var t=e.cache,n=e.serializedArr;return(0,a.L)((function(){for(var e=0;e<n.length;e++)(0,o.My)(t,n[e],!1)})),null},h=(0,r.w)((function(e,t){var n=[],a=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var a=(0,s.O)(r,t.registered);return n.push(a),(0,o.hC)(t,a,!1),t.key+"-"+a.name},l={css:a,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){var r=[],i=(0,o.fp)(e,r,n);return r.length<2?n:i+t(r)}(t.registered,a,f(n))},theme:i.useContext(r.T)},u=e.children(l);return i.createElement(i.Fragment,null,i.createElement(p,{cache:t,serializedArr:n}),u)}))},44188:(e,t,n)=>{"use strict";n.d(t,{O:()=>h});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(86894),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.Z)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=d(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":l(a)&&(r+=u(o)+":"+c(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(o){case"animation":case"animationName":r+=u(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var f=0;f<a.length;f++)l(a[f])&&(r+=u(o)+":"+c(o,a[f])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=f,o=n(e);return f=i,d(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var f,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g,h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";f=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=d(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=d(n,t,e[a]),r&&(i+=o[a]);p.lastIndex=0;for(var s,l="";null!==(s=p.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:f}}},70894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(7896),i=n(12244),o=n(86894),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(33895),u=n(82792),c=n(44188),d=n(82668),f=s,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.hC)(t,n,r),(0,d.L)((function(){return(0,u.My)(t,n,r)})),null},v=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=m(t,n,s),p=f||h(d),v=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,_=1;_<w;_++)b.push(y[_],y[0][_])}var x=(0,l.w)((function(e,t,n){var r=v&&e.as||d,o="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=i.useContext(l.T)}"string"==typeof e.className?o=(0,u.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var w=(0,c.O)(b.concat(s),t.registered,m);o+=t.key+"-"+w.name,void 0!==a&&(o+=" "+a);var _=v&&void 0===f?h(r):p,x={};for(var E in e)v&&"as"===E||_(E)&&(x[E]=e[E]);return x.className=o,x.ref=n,i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:w,isStringTag:"string"==typeof r}),i.createElement(r,x))}));return x.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=d,x.__emotion_styles=b,x.__emotion_forwardProp=f,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(t,i){return e(t,(0,r.Z)({},n,i,{shouldForwardProp:m(x,i,!0)})).apply(void 0,b)},x}}},82668:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,j:()=>a});var r=n(12244),i=!!r.useInsertionEffect&&r.useInsertionEffect,o=i||function(e){return e()},a=i||r.useLayoutEffect},82792:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:()=>o,fp:()=>r,hC:()=>i});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},55034:(e,t,n)=>{"use strict";const r=n(11976),i=n.g.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},59697:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}T${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},12446:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},70256:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},11976:e=>{"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},86056:e=>{"use strict";const t=1114112;class n extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class r{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class i{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new r(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=t;do{e=this.state.parser,this.runOne()}while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new n("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new r(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new n("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===t)throw this.error(new n("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new n("Must declare a parseStart method")}}i.END=t,i.Error=n,e.exports=i},77146:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=makeParserClass(__webpack_require__(86056)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(12446),createDateTimeFloat=__webpack_require__(59697),createDate=__webpack_require__(55034),createTime=__webpack_require__(70256),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}},66615:(e,t,n)=>{"use strict";e.exports=function(e,t){t||(t={});const n=t.blocksize||40960,o=new r;return new Promise(((e,t)=>{setImmediate(a,0,n,e,t)}));function a(t,n,r,s){if(t>=e.length)try{return r(o.finish())}catch(t){return s(i(t,e))}try{o.parse(e.slice(t,t+n)),setImmediate(a,t+n,n,r,s)}catch(t){s(i(t,e))}}};const r=n(77146),i=n(53146)},53146:e=>{"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length<i;)o+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let a=String(t+1);if(a.length<i&&(a=" "+a),e.line===t){n+=a+"> "+r[t]+"\n",n+=o+" ";for(let t=0;t<e.col;++t)n+=" ";n+="^\n"}else n+=a+": "+r[t]+"\n"}}return e.message=n+"\n",e}},24312:(e,t,n)=>{"use strict";e.exports=function(e){return e?function(e){const t=new i;return e.setEncoding("utf8"),new Promise(((n,r)=>{let i,o=!1,a=!1;function s(){if(o=!0,!i)try{n(t.finish())}catch(e){r(e)}}function l(e){a=!0,r(e)}e.once("end",s),e.once("error",l),function n(){let r;for(i=!0;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,o)return s();a||e.once("readable",n)}()}))}(e):function(){const e=new i;return new r.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}()};const r=n(54851),i=n(77146)},13475:(e,t,n)=>{"use strict";e.exports=function(e){n.g.Buffer&&n.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const t=new r;try{return t.parse(e),t.finish()}catch(t){throw i(t,e)}};const r=n(77146),i=n(53146)},53279:(e,t,n)=>{"use strict";e.exports=n(13475),e.exports.async=n(66615),e.exports.stream=n(24312),e.exports.prettyError=n(53146)},57573:e=>{"use strict";function t(e){return new Error("Can only stringify objects, not "+e)}function n(e){return Object.keys(e).filter((t=>o(e[t])))}function r(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&"function"==typeof e[n].toJSON&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function i(e,l,u){var d,f;d=n(u=r(u)),f=function(e){return Object.keys(e).filter((t=>!o(e[t])))}(u);var h=[],m=l||"";d.forEach((e=>{var t=a(u[e]);"undefined"!==t&&"null"!==t&&h.push(m+s(e)+" = "+c(u[e],!0))})),h.length>0&&h.push("");var g=e&&d.length>0?l+" ":"";return f.forEach((o=>{h.push(function(e,o,l,u){var c=a(u);if("array"===c)return function(e,n,o,l){p(l=r(l));var u=a(l[0]);if("table"!==u)throw t(u);var c=e+s(o),d="";return l.forEach((e=>{d.length>0&&(d+="\n"),d+=n+"[["+c+"]]\n",d+=i(c+".",n,e)})),d}(e,o,l,u);if("table"===c)return function(e,t,r,o){var a=e+s(r),l="";return n(o).length>0&&(l+=t+"["+a+"]\n"),l+i(a+".",t,o)}(e,o,l,u);throw t(c)}(e,g,o,u[o]))})),h.join("\n")}function o(e){switch(a(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==a(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function a(e){return void 0===e?"undefined":null===e?"null":"bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0)?"integer":"number"==typeof e?"float":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function s(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:l(t)}function l(e){return'"'+u(e).replace(/"/g,'\\"')+'"'}function u(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,(e=>"\\u"+function(e,t){for(;t.length<4;)t="0"+t;return t}(0,e.codePointAt(0).toString(16))))}function c(e,t){let n=a(e);return"string"===n&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),d(e,n)}function d(e,n){switch(n||(n=a(e)),n){case"string-multiline":return function(e){let t=e.split(/\n/).map((e=>u(e).replace(/"(?="")/g,'\\"'))).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""'}(e);case"string":return l(e);case"string-literal":return"'"+e+"'";case"integer":return f(e);case"float":return function(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],r=t[1]||0;return f(n)+"."+r}(e);case"boolean":return function(e){return String(e)}(e);case"datetime":return function(e){return e.toISOString()}(e);case"array":return function(e){const t=p(e=r(e));var n="[",i=e.map((e=>d(e,t)));return i.join(", ").length>60||/\n/.test(i)?n+="\n "+i.join(",\n ")+"\n":n+=" "+i.join(", ")+(i.length>0?" ":""),n+"]"}(e.filter((e=>"null"!==a(e)&&"undefined"!==a(e)&&"nan"!==a(e))));case"table":return function(e){e=r(e);var t=[];return Object.keys(e).forEach((n=>{t.push(s(n)+" = "+c(e[n],!1))})),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}(e);default:throw t(n)}}function f(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function p(e){const t=function(e){var t=a(e[0]);return e.every((e=>a(e)===t))?t:e.every((e=>{return"float"===(t=a(e))||"integer"===t;var t}))?"float":"mixed"}(e);if("mixed"===t)throw new Error("Array values can't have mixed types");return t}e.exports=function(e){if(null===e)throw t("null");if(void 0===e)throw t("undefined");if("object"!=typeof e)throw t(typeof e);if("function"==typeof e.toJSON&&(e=e.toJSON()),null==e)return null;const n=a(e);if("table"!==n)throw t(n);return i("","",e)},e.exports.value=d},6901:(e,t,n)=>{"use strict";t.parse=n(53279),t.stringify=n(57573)},47988:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(12244))&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(12244))&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},38229:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return l(e,t)}finally{a.clear()}}function l(e,t){if(e===t)return!0;var n=i.call(e);if(n!==i.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(u(e,t))return!0;var r=Object.keys(e),a=Object.keys(t),s=r.length;if(s!==a.length)return!1;for(var c=0;c<s;++c)if(!o.call(t,r[c]))return!1;for(c=0;c<s;++c){var d=r[c];if(!l(e[d],t[d]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(u(e,t))return!0;for(var f=e.entries(),p="[object Map]"===n;;){var h=f.next();if(h.done)break;var m=h.value,g=m[0],v=m[1];if(!t.has(g))return!1;if(p&&!l(v,t.get(g)))return!1}return!0}return!1}function u(e,t){var n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},70468:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HeuristicFragmentMatcher:()=>G,InMemoryCache:()=>pe,IntrospectionFragmentMatcher:()=>V,ObjectCache:()=>te,StoreReader:()=>X,StoreWriter:()=>oe,WriteError:()=>re,assertIdValue:()=>ee,defaultDataIdFromObject:()=>ce,defaultNormalizedCacheFactory:()=>ne,enhanceErrorWithDocument:()=>ie});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=n(44441);function s(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:l(e)}]}}function l(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return l(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:l(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var u,c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},d=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:(0,a.Yk)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:(0,a.Yk)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var o=null;try{o=this.read({rootId:r,optimistic:!1,query:c})}catch(e){}var a=o&&o.__typename||"__ClientData",u=Object.assign({__typename:a},i);this.writeFragment({id:r,fragment:(t=u,n=a,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:l(t)}]}),data:u})}else this.writeQuery({query:s(i),data:i})},e}();u||(u={});var f=n(38229),p=null,h={},m=1,g="@wry/context:Slot",v=Array,y=v[g]||function(){var e=function(){function e(){this.id=["slot",m++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=p;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===h)break;return e!==p&&(p.slots[this.id]=t),!0}return p&&(p.slots[this.id]=h),!1},e.prototype.getValue=function(){if(this.hasValue())return p.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=p;p={parent:a,slots:o};try{return t.apply(r,n)}finally{p=a}},e.bind=function(e){var t=p;return function(){var n=p;try{return p=t,e.apply(this,arguments)}finally{p=n}}},e.noContext=function(e,t,n){if(!p)return e.apply(n,t);var r=p;try{return p=null,e.apply(n,t)}finally{p=r}},e}();try{Object.defineProperty(v,g,{value:v[g]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function b(){}y.bind,y.noContext;var w=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=b),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),_=new y,x=[],E=[],k=100;function C(e,t){if(!e)throw new Error(t||"assertion failure")}function S(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var A=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(C(!this.recomputing,"already recomputing"),function(e){var t=_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),O(e)?M(t,e):D(t,e),t}(this)||!L(this))return O(this)?(t=j(e=this),_.withValue(e,T,[e]),function(e){if("function"==typeof e.subscribe)try{F(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,O(e)||R(e)}(e),t.forEach(L),S(e.value)):S(this.value);var e,t},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,P(this),F(this))},e.prototype.dispose=function(){var e=this;j(this).forEach(L),F(this),this.parents.forEach((function(t){t.setDirty(),N(t,e)}))},e.count=0,e}();function T(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function O(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function P(e){e.parents.forEach((function(t){return M(t,e)}))}function R(e){e.parents.forEach((function(t){return D(t,e)}))}function M(e,t){if(C(e.childValues.has(t)),C(O(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=E.pop()||new Set;e.dirtyChildren.add(t),P(e)}function D(e,t){C(e.childValues.has(t)),C(!O(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),I(e,t),O(e)||R(e)}function I(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(E.length<k&&E.push(n),e.dirtyChildren=null))}function L(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function j(e){var t=x;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){N(e,r),t.push(r)}))),C(null===e.dirtyChildren),t}function N(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}function F(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var B=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return e.forEach((function(e){return t=t.getChildTrie(e)})),t.data||(t.data=Object.create(null))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness)),r},e}(),U=new B("function"==typeof WeakMap);function z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U.lookupArray(e)}var q=new Set;function W(e,t){void 0===t&&(t=Object.create(null));var n=new w(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=!!t.disposable,i=t.makeCacheKey||z;function o(){if(!r||_.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return e.apply(null,arguments);var a=Array.prototype.slice.call(arguments),s=n.get(o);s?s.args=a:(s=new A(e,a),n.set(o,s),s.subscribe=t.subscribe,r&&(s.reportOrphan=function(){return n.delete(o)}));var l=s.recompute();return n.set(o,s),q.add(n),_.hasValue()||(q.forEach((function(e){return e.clean()})),q.clear()),r?void 0:l}}return o.dirty=function(){var e=i.apply(null,arguments),t=void 0!==e&&n.get(e);t&&t.setDirty()},o}var $=n(21726),H=!1;var G=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,s=void 0===o?i&&"Query":o;return s&&s===t||(!H,(0,a.Y8)()||(H=!0),"heuristic")},e}(),V=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){(0,$.kG)(this.isReady,1);var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;if((0,$.kG)(a,2),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),K=Object.prototype.hasOwnProperty,Z=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=W((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){K.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){K.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Y(e){return new Z(e)}var X=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new B(a.mr):r,o=n.freezeResults,s=void 0!==o&&o,l=this,u=l.executeStoreQuery,c=l.executeSelectionSet,d=l.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=W((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof Z)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=W((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof Z)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=W((function(e){return d.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof Z)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(o(o({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,s=void 0===o||o,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,c=e.fragmentMatcherFunction,d=e.config,p=(0,a.iW)(n);r=(0,a.f0)({},(0,a.O4)(p),r);var h={store:t,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},m=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:c}),g=m.missing&&m.missing.length>0;return g&&!s&&m.missing.forEach((function(e){if(!e.tolerable)throw new $.ej(8)})),i&&(0,f.D)(i,m.result)&&(m.result=i),{result:m.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,s=void 0===o?J:o,l=(0,a.p$)(t),u=(0,a.kU)(t),c={query:t,fragmentMap:(0,a.F)(u),contextValue:r,variableValues:i,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:l.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,s=i.fragmentMap,l=i.contextValue,u=i.variableValues,c={result:null},d=[],f=l.store.get(r.id),p=f&&f.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function h(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if((0,a.LZ)(e,u))if((0,a.My)(e)){var c=h(t.executeField(f,p,e,i));void 0!==c&&d.push(((n={})[(0,a.u2)(e)]=c,n))}else{var m=void 0;if((0,a.Ao)(e))m=e;else if(!(m=s[e.name.value]))throw new $.ej(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||i.fragmentMatcher(r,g,l);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:r,execContext:i});"heuristic"===v&&y.missing&&(y=o(o({},y),{missing:y.missing.map((function(e){return o(o({},e),{tolerable:!0})}))})),d.push(h(y))}}})),c.result=(0,a.bw)(d),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,s=function(e,t,n,r,i,o){var s=o.directives,l=n;(r||s)&&(l=(0,a.PT)(l,r,s));var u=void 0;if(e&&void 0===(u=e[l])&&i.cacheRedirects&&"string"==typeof t){var c=i.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&(0,a.aX)({id:t,typename:e.__typename})}}))}}return void 0===u?{result:u,missing:[{object:e,fieldName:l,tolerable:!1}]}:((0,a.v4)(u)&&(u=u.json),{result:u})}(e,t,n.name.value,(0,a.NC)(n,i),o,{resultKey:(0,a.u2)(n),directives:(0,a.Qy)(n,i)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:n,array:s.result,execContext:r})):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:r})):(Q(n,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)})),{result:t.pop().result,missing:e}},e.prototype.executeSubSelectedArray=function(e){var t,n=this,r=e.field,i=e.array,o=e.execContext;function a(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return i=i.map((function(e){return null===e?null:Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,execContext:o})):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:o})):(Q(r,e),e)})),this.freezeResults,{result:i,missing:t}},e}();function Q(e,t){if(!e.selectionSet&&(0,a.cQ)(t))throw new $.ej(10)}function J(){return!0}function ee(e){(0,$.kG)((0,a.cQ)(e),11)}var te=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}();function ne(e){return new te(e)}var re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return i(t,e),t}(Error);function ie(e,t){var n=new re("Error writing result to store for query:\n "+JSON.stringify(t));return n.message+="\n"+e.message,n.stack=e.stack,n}var oe=function(){function e(){}return e.prototype.writeQueryToStore=function(e){var t=e.query,n=e.result,r=e.store,i=void 0===r?Y():r,o=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:t,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},e.prototype.writeResultToStore=function(e){var t=e.dataId,n=e.result,r=e.document,i=e.store,o=void 0===i?Y():i,s=e.variables,l=e.dataIdFromObject,u=e.fragmentMatcherFunction,c=(0,a.$H)(r);try{return this.writeSelectionSetToStore({result:n,dataId:t,selectionSet:c.selectionSet,context:{store:o,processedData:{},variables:(0,a.f0)({},(0,a.O4)(c),s),dataIdFromObject:l,fragmentMap:(0,a.F)((0,a.kU)(r)),fragmentMatcherFunction:u}})}catch(e){throw ie(e,r)}},e.prototype.writeSelectionSetToStore=function(e){var t=this,n=e.result,r=e.dataId,i=e.selectionSet,o=e.context,s=o.variables,l=o.store,u=o.fragmentMap;return i.selections.forEach((function(e){var i;if((0,a.LZ)(e,s))if((0,a.My)(e)){var l=(0,a.u2)(e),c=n[l];if(void 0!==c)t.writeFieldToStore({dataId:r,value:c,field:e,context:o});else{var d=!1,f=!1;e.directives&&e.directives.length&&(d=e.directives.some((function(e){return e.name&&"defer"===e.name.value})),f=e.directives.some((function(e){return e.name&&"client"===e.name.value}))),!d&&!f&&o.fragmentMatcherFunction}}else{var p=void 0;(0,a.Ao)(e)?p=e:(p=(u||{})[e.name.value],(0,$.kG)(p,3));var h=!0;if(o.fragmentMatcherFunction&&p.typeCondition){var m=r||"self",g=(0,a.aX)({id:m,typename:void 0}),v={store:new te((i={},i[m]=n,i)),cacheRedirects:{}},y=o.fragmentMatcherFunction(g,p.typeCondition.name.value,v);(0,a.yv)(),h=!!y}h&&t.writeSelectionSetToStore({result:n,selectionSet:p.selectionSet,dataId:r,context:o})}})),l},e.prototype.writeFieldToStore=function(e){var t,n,r,i=e.field,s=e.value,l=e.dataId,u=e.context,c=u.variables,d=u.dataIdFromObject,p=u.store,h=(0,a.vf)(i,c);if(i.selectionSet&&null!==s)if(Array.isArray(s)){var m=l+"."+h;n=this.processArrayValue(s,m,i.selectionSet,u)}else{var g=l+"."+h,v=!0;if(ae(g)||(g="$"+g),d){var y=d(s);(0,$.kG)(!y||!ae(y),4),(y||"number"==typeof y&&0===y)&&(g=y,v=!1)}le(g,i,u.processedData)||this.writeSelectionSetToStore({dataId:g,result:s,selectionSet:i.selectionSet,context:u});var b=s.__typename;n=(0,a.aX)({id:g,typename:b},v);var w=(r=p.get(l))&&r[h];if(w!==n&&(0,a.cQ)(w)){var _=void 0!==w.typename,x=void 0!==b,E=_&&x&&w.typename!==b;(0,$.kG)(!v||w.generated||E,5),(0,$.kG)(!_||x,6),w.generated&&(E?v||p.delete(w.id):se(w.id,n.id,p))}}else n=null!=s&&"object"==typeof s?{type:"json",json:s}:s;(r=p.get(l))&&(0,f.D)(n,r[h])||p.set(l,o(o({},r),((t={})[h]=n,t)))},e.prototype.processArrayValue=function(e,t,n,r){var i=this;return e.map((function(e,o){if(null===e)return null;var s=t+"."+o;if(Array.isArray(e))return i.processArrayValue(e,s,n,r);var l=!0;if(r.dataIdFromObject){var u=r.dataIdFromObject(e);u&&(s=u,l=!1)}return le(s,n,r.processedData)||i.writeSelectionSetToStore({dataId:s,result:e,selectionSet:n,context:r}),(0,a.aX)({id:s,typename:e.__typename},l)}))},e}();function ae(e){return"$"===e[0]}function se(e,t,n){if(e===t)return!1;var r=n.get(e),i=n.get(t),s=!1;Object.keys(r).forEach((function(e){var t=r[e],o=i[e];(0,a.cQ)(t)&&ae(t.id)&&(0,a.cQ)(o)&&!(0,f.D)(t,o)&&se(t.id,o.id,n)&&(s=!0)})),n.delete(e);var l=o(o({},r),i);return(0,f.D)(l,i)?s:(n.set(t,l),!0)}function le(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var ue={fragmentMatcher:new G,dataIdFromObject:ce,addTypename:!0,resultCaching:!0,freezeResults:!1};function ce(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var de=Object.prototype.hasOwnProperty,fe=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return i(t,e),t.prototype.toObject=function(){return o(o({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return de.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(te),pe=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new B(a.mr),n.silenceBroadcast=!1,n.config=o(o({},ue),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new Z:new te,n.optimisticData=n.data,n.storeWriter=new oe,n.storeReader=new X({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=W((function(e){return i.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof Z?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return i(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new $.ej(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof fe;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new fe(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,a.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(d)},34600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloClient:()=>D,ApolloError:()=>_,FetchType:()=>w,NetworkStatus:()=>l,ObservableQuery:()=>x,default:()=>I,isApolloError:()=>b});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var l,u=n(44441),c=n(38229),d=n(45526),f=n(38249),p=n(7288),h=n(21726),m=n(82624);function g(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(l||(l={}));var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype[p.Z]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(d.Z);function y(e){return Array.isArray(e)&&e.length>0}function b(e){return e.hasOwnProperty("graphQLErrors")}var w,_=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",y((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return i(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(w||(w={}));var x=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=(0,u.$H)(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return i(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:l.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),a=i.data,s=i.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,d="network-only"===c||"no-cache"===c;if(u){var f=u.networkStatus;if(n=u,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&y(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:f,error:new _({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=o(o({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:a,loading:g(f),networkStatus:f},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var p=d||s&&"cache-only"!==c;t={data:a,loading:p,networkStatus:p?l.loading:l.ready}}return s||this.updateLastResult(o(o({},t),{stale:!1})),o(o({},t),{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,c.D)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new h.ej(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,c.D)(this.variables,e)||(this.variables=o(o({},this.variables),e)),(0,c.D)(this.options.variables,this.variables)||(this.options.variables=o(o({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,o(o({},this.options),{fetchPolicy:t}),w.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,h.kG)(e.updateQuery,2);var n=o(o({},e.query?e:o(o(o({},this.options),e),{variables:o(o({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,w.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=o(o({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,c.D)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=(0,u.XY)((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){C(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,u.Xh)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=E)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(C(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(o(o({},e.lastResult),{errors:t.graphQLErrors,networkStatus:l.error,loading:!1})),k(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,c.D)(a,i)?e.refetch():k(e.observers,"next",n)})):k(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(v);function E(e){}function k(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function C(e){var t=e.options.fetchPolicy;(0,h.kG)("cache-first"!==t&&"cache-only"!==t,3)}var S=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),A=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];(0,h.kG)(!t||t.document===e.document||(0,c.D)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==l.loading&&((0,c.D)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?l.setVariables:e.isPoll?l.poll:e.isRefetch?l.refetch:l.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=l.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=y(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=l.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=l.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=l.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=l.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=l.loading}))},e}(),T=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,u.Ee)(t.resolvers,e)})):this.resolvers=(0,u.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,l=e.onlyRunForcedResolvers,u=void 0!==l&&l;return a(this,void 0,void 0,(function(){return s(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,u).then((function(e){return o(o({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?(0,u.ob)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return o(o({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,h.kG)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),a(this,void 0,void 0,(function(){return s(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return o(o({},t),e.exportedVariables)}))]:[2,o({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,m.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return m.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,u.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,l){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===l&&(l=!1),a(this,void 0,void 0,(function(){var a,c,d,f,p,h,m,g,v;return s(this,(function(s){var y;return a=(0,u.p$)(e),c=(0,u.kU)(e),d=(0,u.F)(c),f=a.operation,p=f?(y=f).charAt(0).toUpperCase()+y.slice(1):"Query",m=(h=this).cache,g=h.client,v={fragmentMap:d,context:o(o({},n),{cache:m,client:g}),variables:r,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:l},[2,this.resolveSelectionSet(a.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,l,c,d=this;return s(this,(function(f){return r=n.fragmentMap,i=n.context,o=n.variables,l=[t],c=function(e){return a(d,void 0,void 0,(function(){var a,c;return s(this,(function(s){return(0,u.LZ)(e,o)?(0,u.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&l.push(((n={})[(0,u.u2)(e)]=t,n))}))]:((0,u.Ao)(e)?a=e:(a=r[e.name.value],(0,h.kG)(a,7)),a&&a.typeCondition&&(c=a.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(a.selectionSet,t,n).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return(0,u.bw)(l)}))]}))}))},e.prototype.resolveField=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,a,l,c,d,f,p,h=this;return s(this,(function(s){return r=n.variables,i=e.name.value,o=(0,u.u2)(e),a=i!==o,l=t[o]||t[i],c=Promise.resolve(l),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[a?i:o])&&(c=Promise.resolve(p(t,(0,u.NC)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=l),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function O(e){var t=new Set,n=null;return new v((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var P=Object.prototype.hasOwnProperty,R=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,d=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.mutationStore=new S,this.queryStore=new A,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(u.mr?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=d,this.localState=f||new T({cache:i.getCache()}),this.ssrMode=l,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,l=e.refetchQueries,c=void 0===l?[]:l,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,m=e.errorPolicy,g=void 0===m?"none":m,v=e.fetchPolicy,b=e.context,w=void 0===b?{}:b;return a(this,void 0,void 0,(function(){var e,a,l,d=this;return s(this,(function(s){switch(s.label){case 0:return(0,h.kG)(t,9),(0,h.kG)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,w)]:[3,2];case 1:n=s.sent(),s.label=2;case 2:return a=function(){var e={};return i&&d.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&P.call(i,o)&&(e[n]={updater:i[o],query:d.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:a(),update:p,optimisticResponse:r}),this.broadcastQueries(),l=this,[2,new Promise((function(i,s){var d,h;l.getObservableFromLink(t,o(o({},w),{optimisticResponse:r}),n,!1).subscribe({next:function(r){(0,u.d2)(r)&&"none"===g?h=new _({graphQLErrors:r.errors}):(l.mutationStore.markMutationResult(e),"no-cache"!==v&&l.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:a(),update:p}),d=r)},error:function(t){l.mutationStore.markMutationError(e,t),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),l.setQuery(e,(function(){return{document:null}})),s(new _({networkError:t}))},complete:function(){if(h&&l.mutationStore.markMutationError(e,h),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),h)s(h);else{"function"==typeof c&&(c=c(d));var t=[];y(c)&&c.forEach((function(e){if("string"==typeof e)l.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(l.query(n))}})),Promise.all(f?t:[]).then((function(){l.setQuery(e,(function(){return{document:null}})),"ignore"===g&&d&&(0,u.d2)(d)&&delete d.errors,i(d)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return a(this,void 0,void 0,(function(){var i,a,l,c,d,f,p,h,m,g,v,y,x,E,k,C,S,A,T=this;return s(this,(function(s){switch(s.label){case 0:return i=t.metadata,a=void 0===i?null:i,l=t.fetchPolicy,c=void 0===l?"cache-first":l,d=t.context,f=void 0===d?{}:d,p=this.transform(t.query).document,h=this.getVariables(p,t.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,h,f)]:[3,2];case 1:h=s.sent(),s.label=2;case 2:if(t=o(o({},t),{variables:h}),v=g="network-only"===c||"no-cache"===c,g||(y=this.dataStore.getCache().diff({query:p,variables:h,returnPartialData:!0,optimistic:!1}),x=y.complete,E=y.result,v=!x||"cache-and-network"===c,m=E),k=v&&"cache-only"!==c&&"standby"!==c,(0,u.FS)(["live"],p)&&(k=!0),C=this.idCounter++,S="no-cache"!==c?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,(function(){return{document:p,lastRequestId:C,invalidated:!0,cancel:S}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:k,variables:h,isPoll:n===w.poll,isRefetch:n===w.refetch,metadata:a,fetchMoreForQueryId:r}),this.broadcastQueries(),k){if(A=this.fetchRequest({requestId:C,queryId:e,document:p,options:t,fetchMoreForQueryId:r}).catch((function(t){throw b(t)?t:(C>=T.getQuery(e).lastRequestId&&(T.queryStore.markQueryError(e,t,r),T.invalidate(e),T.invalidate(r),T.broadcastQueries()),new _({networkError:t}))})),"cache-and-network"!==c)return[2,A];A.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!k),this.invalidate(e),this.invalidate(r),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:m},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(n){return T.markQueryResult(e,n,t,r),T.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:m}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=g(n.networkStatus),d=s&&s.getLastResult(),f=!(!d||d.networkStatus===n.networkStatus),p=t.returnPartialData||!o&&n.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||p){var h=y(n.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||n.networkError)return i("error",new _({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var v=void 0,b=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),v=o.result,b=!o.complete;else{var w=s&&s.getLastError(),x="none"!==m&&(w&&w.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!x)v=d.data,b=!1;else{var E=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});v=E.result,b=!E.complete}}var k=b&&!(t.returnPartialData||"cache-only"===u),C={data:k?d&&d.data:v,loading:c,networkStatus:n.networkStatus,stale:k};"all"===m&&h&&(C.errors=n.graphQLErrors),i("next",C)}catch(e){i("error",new _({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=(0,u.Fo)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),s={document:r,hasClientExports:(0,u.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,u.O4)((0,u.$H)(r))},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return o(o({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),(0,h.kG)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=o({},e);return new x({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return(0,h.kG)(e.query,12),(0,h.kG)("Document"===e.query.kind,13),(0,h.kG)(!e.returnPartialData,14),(0,h.kG)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;return i&&i(),this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),(0,u.d2)(i))throw new _({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new v((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;(0,h.kG)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a=this;void 0===r&&(r=this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,c=this.link,d={query:s,variables:n,operationName:(0,u.rY)(s)||void 0,context:this.prepareContext(o(o({},t),{forceFetch:!r}))};if(t=d.context,r){var p=l.get(s)||new Map;l.set(s,p);var h=JSON.stringify(n);if(!(i=p.get(h))){p.set(h,i=O((0,f.ht)(c,d)));var m=function(){p.delete(h),p.size||l.delete(s),g.unsubscribe()},g=i.subscribe({next:m,error:m,complete:m})}}else i=O((0,f.ht)(c,d))}else i=v.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(i=function(e,r){return new v((function(r){var i=r.next,o=r.error,s=r.complete,l=0,u=!1,c={next:function(e){++l,new Promise((function(r){var i;r((i=e,a.localState.runResolvers({document:y,remoteResult:i,context:t,variables:n})))})).then((function(e){--l,i&&i.call(r,e),u&&c.complete()}),(function(e){--l,o&&o.call(r,e)}))},error:function(e){o&&o.call(r,e)},complete:function(){u=!0,l||s&&s.call(r)}},d=e.subscribe(c);return function(){return d.unsubscribe()}}))}(i)),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,u=e.fetchMoreForQueryId,c=s.variables,d=s.errorPolicy,f=void 0===d?"none":d,p=s.fetchPolicy;return new Promise((function(e,d){var h=r.getObservableFromLink(a,s.context,c),m="fetchRequest:"+o;r.fetchQueryRejectFns.set(m,d);var g=function(){r.fetchQueryRejectFns.delete(m),r.setQuery(o,(function(e){e.subscriptions.delete(v)}))},v=h.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,u),r.queryStore.markQueryResult(o,e,u),r.invalidate(o),r.invalidate(u),r.broadcastQueries()),"none"===f&&y(e.errors))return d(new _({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),u||"no-cache"===p)t=e.data;else{var l=r.dataStore.getCache().diff({variables:c,query:a,optimistic:!1,returnPartialData:!0}),h=l.result;(l.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){g(),d(e)},complete:function(){g(),e({data:t,errors:n,loading:!1,networkStatus:l.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(v)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=o(o({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o(o({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==l.ready&&t.networkStatus!==l.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if((0,h.kG)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=o(o({},e),{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?l():r.fetchQuery(t,e.options,w.poll).then(l,l))},l=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),l()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),M=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!(0,u.d2)(e);i&&(0,u.d2)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){(0,u.d2)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!(0,u.d2)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,s=o.updater,l=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=l.result;if(l.complete){var d=(0,u.XY)((function(){return s(c,{mutationResult:e.result,queryName:(0,u.rY)(a.document)||void 0,queryVariables:a.variables})}));d&&n.push({result:d,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&(0,u.XY)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),D=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,l=e.queryDeduplication,u=void 0===l||l,c=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,m=e.resolvers,g=e.typeDefs,v=e.fragmentMatcher,y=e.name,b=e.version,w=e.link;if(!w&&m&&(w=f.i0.empty()),!w||!n)throw new h.ej(4);this.link=w,this.cache=n,this.store=new M(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=c||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new T({cache:n,client:this,resolvers:m,fragmentMatcher:v}),this.queryManager=new R({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=o(o({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=o(o({},this.defaultOptions.query),e)),(0,h.kG)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=o(o({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,f.ht)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();const I=D},96044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setContext:()=>o});var r=n(38249),i=n(45526);function o(e){return new r.i0((function(t,n){var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,[]);return new i.Z((function(i){var o;return Promise.resolve(r).then((function(n){return e(n,t.getContext())})).then(t.setContext).then((function(){o=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}},29206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpLink:()=>h,createHttpLink:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=n(38249),a=n(45526),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},l=n(33083),u=n(21726),c={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},d=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},f=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new u.ej(2);throw r.parseError=e,r}return n},p=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,p=e.includeExtensions,h=e.useGETForQueries,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch)throw new u.ej(1)}(r),r||(r=fetch);var g={http:{includeExtensions:p},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new o.i0((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),u=e.getContext(),p={};if(u.clientAwareness){var m=u.clientAwareness,v=m.name,y=m.version;v&&(p["apollographql-client-name"]=v),y&&(p["apollographql-client-version"]=y)}var b,w=i({},p,u.headers),_={http:u.http,options:u.fetchOptions,credentials:u.credentials,headers:w},x=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=s({},t.options,{headers:t.headers,credentials:t.credentials}),o=t.http;n.forEach((function(e){i=s({},i,e.options,{headers:s({},i.headers,e.headers)}),e.credentials&&(i.credentials=e.credentials),o=s({},o,e.http)}));var a=e.operationName,u=e.extensions,c=e.variables,d=e.query,f={operationName:a,variables:c};return o.includeExtensions&&(f.extensions=u),o.includeQuery&&(f.query=(0,l.S)(d)),{options:i,body:f}}(e,c,g,_),E=x.options,k=x.body;if(!E.signal){var C=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),S=C.controller,A=C.signal;(b=S)&&(E.signal=A)}if(h&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(E.method="GET"),"GET"===E.method){var T=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=f(t.variables)}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=f(t.extensions)}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,k),O=T.newURI,P=T.parseError;if(P)return(0,o.Qc)(P);t=O}else try{E.body=f(k)}catch(P){return(0,o.Qc)(P)}return new a.Z((function(n){var i;return r(t,E).then((function(t){return e.setContext({response:t}),t})).then((i=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;return n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,Promise.reject(n)}})).then((function(t){return e.status>=300&&d(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||d(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){b&&b.abort()}}))}))},h=function(e){function t(t){return e.call(this,p(t).request)||this}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(o.i0)},38249:(e,t,n)=>{"use strict";n.d(t,{i0:()=>v,ht:()=>y,Qc:()=>c});var r,i=n(45526),o=n(21726),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},l=n(44441);function u(e){return e.request.length<=1}function c(e){return new i.Z((function(t){t.error(e)}))}function d(e,t){return t?t(e):i.Z.of()}function f(e){return"function"==typeof e?new v(e):e}function p(){return new v((function(){return i.Z.of()}))}function h(e){return 0===e.length?p():e.map(f).reduce((function(e,t){return e.concat(t)}))}function m(e,t,n){var r=f(t),o=f(n||new v(d));return u(r)&&u(o)?new v((function(t){return e(t)?r.request(t)||i.Z.of():o.request(t)||i.Z.of()})):new v((function(t,n){return e(t)?r.request(t,n)||i.Z.of():o.request(t,n)||i.Z.of()}))}(function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})((function(e,t){var n=r.call(this,e)||this;return n.link=t,n}),r=Error);var g=function(e,t){var n=f(e);if(u(n))return n;var r=f(t);return u(r)?new v((function(e){return n.request(e,(function(e){return r.request(e)||i.Z.of()}))||i.Z.of()})):new v((function(e,t){return n.request(e,(function(e){return r.request(e,t)||i.Z.of()}))||i.Z.of()}))},v=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(m(t,n,r||new e(d)))},e.prototype.concat=function(e){return g(this,e)},e.prototype.request=function(e,t){throw new o.ej(1)},e.empty=p,e.from=h,e.split=m,e.execute=y,e}();function y(e,t){return e.request(function(e,t){var n=s({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=s({},n,"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return s({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,l.rY)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new o.ej(2)}return e}(t))))||i.Z.of()}},44441:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>z,NC:()=>p,f0:()=>S,aL:()=>H,mr:()=>V,Xh:()=>Z,F:()=>D,O4:()=>I,Qy:()=>w,kU:()=>P,Yk:()=>C,p$:()=>M,$H:()=>T,rY:()=>O,iW:()=>R,PT:()=>f,d2:()=>te,mj:()=>E,FS:()=>x,My:()=>m,cQ:()=>v,Ao:()=>g,v4:()=>b,yv:()=>Q,Y8:()=>J,Ee:()=>re,bw:()=>ie,ob:()=>G,Fo:()=>W,u2:()=>h,LZ:()=>_,vf:()=>c,aX:()=>y,XY:()=>ee});var r=n(82624),i=n(21726),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var s=n(85695),l=n.n(s);function u(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return u(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return u(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.ej(17);e[t.value]=null}}function c(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return u(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return u(r,n,i,t)}))),f(e.name.value,r,n)}n(38229);var d=["connection","include","skip","client","rest","export"];function f(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=l()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}function v(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function y(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function w(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=p(e,t)})),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(k).map((function(e){var t=e.arguments;e.name.value,(0,i.kG)(t&&1===t.length,14);var n=t[0];(0,i.kG)(n.name&&"if"===n.name.value,15);var r=n.value;return(0,i.kG)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],(0,i.kG)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function x(e,t){return function(e){var t=[];return(0,r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function E(e){return e&&x(["client"],e)&&x(["export"],e)}function k(e){var t=e.name.value;return"skip"===t||"include"===t}function C(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&((0,i.kG)(1===r.length,12),n=r[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function A(e){(0,i.kG)(e&&"Document"===e.kind,2);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.ej(3);return e}));return(0,i.kG)(t.length<=1,4),e}function T(e){return A(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function O(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function P(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function R(e){var t=T(e);return(0,i.kG)(t&&"query"===t.operation,6),t}function M(e){var t;A(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.ej(10)}function D(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function I(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,r={};return u(r,t.name,n),r}));return S.apply(void 0,a([{}],t))}return{}}function L(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var j={kind:"Field",name:{kind:"Name",value:"__typename"}};function N(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&N(t[e.name.value],t)}))}function F(e){return N(T(e)||function(e){(0,i.kG)("Document"===e.kind,7),(0,i.kG)(e.definitions.length<=1,8);var t=e.definitions[0];return(0,i.kG)("FragmentDefinition"===t.kind,9),t}(e),D(P(e)))?null:e}function B(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function U(e,t){var n=Object.create(null),i=[],a=Object.create(null),s=[],l=F((0,r.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(B(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&$(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(B(e)(t))return null}}}));return l&&L(i,(function(e){return!n[e.name]})).length&&(l=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return F((0,r.visit)(t,{OperationDefinition:{enter:function(t){return o(o({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,l)),l&&L(s,(function(e){return!a[e.name]})).length&&(l=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return F((0,r.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,l)),l}function z(e){return(0,r.visit)(A(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return m(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(m(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return o(o({},e),{selections:a(r,[j])})}}}}})}var q={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function W(e){return U([q],A(e))}function $(e){var t=[];return e.selections.forEach((function(e){(m(e)||g(e))&&e.selectionSet?$(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function H(e){return"query"===M(e).operation?e:(0,r.visit)(e,{OperationDefinition:{enter:function(e){return o(o({},e),{operation:"query"})}}})}function G(e){A(e);var t=U([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,r.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return m(e)&&"__typename"===e.name.value})))return null}}})),t}var V="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),K=Object.prototype.toString;function Z(e){return Y(e,new Map)}function Y(e,t){switch(K.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=Y(e,t)})),n;case"[object Object]":if(t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=Y(e[n],t)})),r;default:return e}}function X(e){return("undefined"!=typeof process?"production":"development")===e}function Q(){return!0===X("production")}function J(){return!0===X("test")}function ee(e){try{return e()}catch(e){console.error&&console.error(e)}}function te(e){return e.errors&&e.errors.length}var ne=Object.prototype.hasOwnProperty;function re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ie(e)}function ie(e){var t=e[0]||{},n=e.length;if(n>1){var r=[];t=se(t,r);for(var i=1;i<n;++i)t=ae(t,e[i],r)}return t}function oe(e){return null!==e&&"object"==typeof e}function ae(e,t,n){return oe(t)&&oe(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=se(e,n)),Object.keys(t).forEach((function(r){var i=t[r];if(ne.call(e,r)){var o=e[r];i!==o&&(e[r]=ae(se(o,n),i,n))}else e[r]=i})),e):t}function se(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):o({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})},79710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1eykva80",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"https://api.github.com/repo openid email"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="",app_id:t="",auth_endpoint:n="oauth2/authorize",auth_token_endpoint:r="oauth2/token"}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:n,app_id:t,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/x-www-form-urlencoded; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"link"})," ",n(e?"auth.loggingIn":"auth.login")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},43642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r)}(n(12244));var r,i=n(48638),o=(r=n(79710))&&r.__esModule?r:{default:r},a=n(28165);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}class u extends i.GitHubBackend{constructor(e,t={}){super(e,t),this.bypassWriteAccessCheckForAppTokens=!0,this.tokenKeyword="Bearer"}authComponent(){const e=e=>(0,a.jsx)(o.default,l({},e,{backend:this}));return e.displayName="AuthenticationPage",e}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=fetch(this.baseUrl+"/oauth2/userInfo",{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then((async e=>{if(401==e.status)return this.logout(),Promise.reject("Token expired");const t=await e.json(),n=this.originRepo.split("/")[1];return{name:t.email,login:n,avatar_url:`https://github.com/${n}.png`}}))),this._currentUserPromise}async getPullRequestAuthor(e){var t;return null===(t=e.user)||void 0===t?void 0:t.login}}t.default=u},59405:(e,t,n)=>{"use strict";Object.defineProperty(t,"ON",{enumerable:!0,get:function(){return i.default}});var r=n(48638),i=a(n(43642)),o=a(n(79710));function a(e){return e&&e.__esModule?e:{default:e}}i.default,r.API,o.default},96667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=c(n(93433)),i=c(n(5648)),o=c(n(36346)),a=c(n(83465)),s=n(95978),l=n(33806),u=n(21023);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=t.API_NAME="Azure DevOps",m="api-version";var g=function(e){return e.ERROR="error",e.FAILED="failed",e.NOT_APPLICABLE="notApplicable",e.NOT_SET="notSet",e.PENDING="pending",e.SUCCEEDED="succeeded",e}(g||{}),v=function(e){return e.ADD="add",e.DELETE="delete",e.RENAME="rename",e.EDIT="edit",e}(v||{}),y=function(e){return e.BASE64="base64encoded",e}(y||{}),b=function(e){return e.ACTIVE="active",e.COMPLETED="completed",e.ABANDONED="abandoned",e}(b||{}),w=function(e){return e.CONFLICTS="conflicts",e.FAILURE="failure",e.QUEUED="queued",e.REJECTED="rejectedByPolicy",e.SUCCEEDED="succeeded",e}(w||{}),_=function(e){return e.BLOB="blob",e.TREE="tree",e}(_||{});function x(e){return new Promise((t=>setTimeout(t,e)))}function E(e){switch(e.action){case v.ADD:return{changeType:v.ADD,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.EDIT:return{changeType:v.EDIT,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.DELETE:return{changeType:v.DELETE,item:{path:e.path}};case v.RENAME:return{changeType:v.RENAME,item:{path:e.path},sourceServerItem:e.oldPath};default:return{}}}t.default=class{constructor(e,t){p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"branch",void 0),p(this,"mergeStrategy",void 0),p(this,"endpointUrl",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"withHeaders",(e=>l.unsentRequest.withHeaders({Authorization:`Bearer ${this.token}`,"Content-Type":"application/json; charset=utf-8"},e))),p(this,"withAzureFeatures",(e=>e.hasIn(["params",m])?e:l.unsentRequest.withParams({[m]:`${this.apiVersion}`},e))),p(this,"buildRequest",(e=>{const t=this.withHeaders(e),n=this.withAzureFeatures(t);return n.has("cache")?n:l.unsentRequest.withNoCache(n)})),p(this,"request",(e=>{try{return(0,l.requestWithBackoff)(this,e)}catch(e){throw new l.APIError(e.message,null,h)}})),p(this,"responseToJSON",(0,l.responseParser)({format:"json",apiName:h})),p(this,"responseToBlob",(0,l.responseParser)({format:"blob",apiName:h})),p(this,"responseToText",(0,l.responseParser)({format:"text",apiName:h})),p(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),p(this,"requestText",(e=>this.request(e).then(this.responseToText))),p(this,"toBase64",(e=>Promise.resolve(s.Base64.encode(e)))),p(this,"fromBase64",(e=>s.Base64.decode(e))),p(this,"branchToRef",(e=>`refs/heads/${e}`)),p(this,"refToBranch",(e=>e.slice(11))),p(this,"user",(async()=>{var e,t,n,r,i,o,a;const s=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{[m]:"6.1-preview.2"}}),l=null===(e=s.coreAttributes)||void 0===e||null===(t=e.DisplayName)||void 0===t?void 0:t.value,u=null===(n=s.coreAttributes)||void 0===n||null===(r=n.EmailAddress)||void 0===r?void 0:r.value;return{name:l||u||"",avatar_url:`data:image/png;base64,${null===(i=s.coreAttributes)||void 0===i||null===(o=i.Avatar)||void 0===o||null===(a=o.value)||void 0===a?void 0:a.value}`,email:u}})),p(this,"readFile",((e,t,{parseText:n=!0,branch:r=this.branch}={})=>(0,l.readFile)(t,(()=>this.request({url:`${this.endpointUrl}/items/`,params:{version:r,path:e},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),l.localForage,n))),p(this,"listFiles",(async(e,t,n=this.branch)=>{try{const{value:i}=await this.requestJSON({url:`${this.endpointUrl}/items/`,params:{version:n,scopePath:e,recursionLevel:t?"full":"oneLevel"}});return i.filter((e=>e.gitObjectType===_.BLOB)).map((e=>({id:e.objectId,path:(0,r.default)(e.path,"/"),name:(0,u.basename)(e.path)})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}));const{repo:n}=e,o=(0,i.default)(e.apiRoot,"/");this.endpointUrl=`${o}/${n.org}/${n.project}/_apis/git/repositories/${n.repoName}`,this.token=t,this.branch=e.branch,this.mergeStrategy=e.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=e.initialWorkflowStatus,this.apiVersion=e.apiVersion,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t,{branch:n=this.branch}={}){return await(0,l.readFileMetadata)(t,(async()=>{try{const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/commits/`,params:{"searchCriteria.itemPath":e,"searchCriteria.itemVersion.version":n,"searchCriteria.$top":1}}),[r]=t;return{author:r.author.name||r.author.email,updatedOn:r.author.date}}catch(e){return{author:"",updatedOn:""}}}),l.localForage)}async getRef(e=this.branch){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/refs`,params:{$top:"1",filter:"heads/"+e}});return t.find((t=>t.name==this.branchToRef(e)))}async deleteRef(e){const t=[{name:e.name,oldObjectId:e.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:`${this.endpointUrl}/refs`,body:JSON.stringify(t)})}async uploadAndCommit(e,t,n,r){const i=await this.getRef(r?this.branch:n),o={refUpdates:[{name:this.branchToRef(n),oldObjectId:i.objectId}],commits:[{comment:t,changes:e.map((e=>E(e)))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(e){var t,n;const{collection:i,slug:o}=(0,l.parseContentKey)(e),a=(0,l.branchFromContentKey)(e),s=await this.getBranchPullRequest(a),u=await this.getDifferences(s.sourceRefName),c=await Promise.all(u.map((async e=>{const t=(0,r.default)(e.item.path,"/"),n=e.changeType===v.ADD;return{id:e.item.objectId,path:t,newFile:n}}))),d=s.labels.find((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))),f=d&&d.name?d.name:this.cmsLabelPrefix;return{collection:i,slug:o,status:(0,l.labelToStatus)(f,this.cmsLabelPrefix),diffs:c,updatedAt:s.closedDate?s.closedDate:s.creationDate,pullRequestAuthor:(null===(t=s.createdBy)||void 0===t?void 0:t.displayName)||(null===(n=s.createdBy)||void 0===n?void 0:n.uniqueName)}}async getPullRequestStatues(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${e.pullRequestId}/commits`,params:{$top:1}}),{value:n}=await this.requestJSON({url:`${this.endpointUrl}/commits/${t[0].commitId}/statuses`,params:{latestOnly:!0}});return n}async getStatuses(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);return(await this.getPullRequestStatues(i)).map((({context:e,state:t,targetUrl:n})=>({context:e.name,state:t===g.SUCCEEDED?l.PreviewState.Success:l.PreviewState.Other,target_url:n})))}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,r]=await Promise.all([(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]),i=e.newPath||e.path,s=e.path,l=i!==s?v.RENAME:v.EDIT;return{action:r?l:v.ADD,base64Content:n,path:i,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===v.RENAME))){const r=(0,u.dirname)(e.oldPath),i=(0,u.dirname)(e.path);(await this.listFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:v.RENAME,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,n.commitMessage,this.branch,!0)}}async deleteFiles(e,t){const n=await this.getRef(this.branch),r={refUpdates:[{name:n.name,oldObjectId:n.objectId}],commits:[{comment:t,changes:e.map((e=>E({action:v.DELETE,path:e})))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(r)})}async getPullRequests(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests`,params:f({"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1},e?{"searchCriteria.sourceRefName":this.branchToRef(e)}:{})});return t.filter((e=>e.labels.some((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return(await this.getPullRequests()).map((e=>this.refToBranch(e.sourceRefName)))}async isFileExists(e,t){try{return await this.requestText({url:`${this.endpointUrl}/items/`,params:{version:t,path:e},cache:"no-store"}),!0}catch(e){if(e instanceof l.APIError&&404===e.status)return!1;throw e}}async createPullRequest(e,t,n){const r={sourceRefName:this.branchToRef(e),targetRefName:this.branchToRef(this.branch),title:t,description:l.DEFAULT_PR_BODY,labels:[{name:(0,l.statusToLabel)(n,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:`${this.endpointUrl}/pullrequests`,params:{supportsIterations:!1},body:JSON.stringify(r)})}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new l.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){return(await this.requestJSON({url:`${this.endpointUrl}/diffs/commits`,params:{baseVersion:this.branch,targetVersion:this.refToBranch(e)}})).changes.filter((e=>e.item.gitObjectType===_.BLOB&&Object.values(v).includes(e.changeType)))}async editorialWorkflowGit(e,t,n){const r=(0,l.generateContentKey)(n.collectionName,t),i=(0,l.branchFromContentKey)(r);if(n.unpublished){const t=await this.getCommitItems(e,i);await this.uploadAndCommit(t,n.commitMessage,i,!1)}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,n.commitMessage,i,!0),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,l.generateContentKey)(e,t),i=(0,l.branchFromContentKey)(r),o=await this.getBranchPullRequest(i),a=[...o.labels.filter((e=>!(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,l.statusToLabel)(n,this.cmsLabelPrefix)];await this.updatePullRequestLabels(o,a)}async deleteUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.abandonPullRequest(i)}async publishUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.completePullRequest(i)}async updatePullRequestLabels(e,t){const n=e.labels.filter((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)));await Promise.all(n.map((t=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels/${encodeURIComponent(t.id)}`})))),await Promise.all(t.map((t=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels`,body:JSON.stringify({name:t})}))))}async completePullRequest(e){const t={status:b.COMPLETED,lastMergeSourceCommit:e.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:l.MERGE_COMMIT_MESSAGE,mergeStrategy:this.mergeStrategy}};let n=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),r=1;for(;n.mergeStatus===w.QUEUED&&r<=10;)await x(500),n=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`}),r+=1}async abandonPullRequest(e){const t={status:b.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),await this.deleteRef({name:e.sourceRefName,objectId:e.lastMergeSourceCommit.commitId})}}},61325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1n0346u0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){this.auth=new a.ImplicitAuthenticator({base_url:`https://login.microsoftonline.com/${this.props.config.backend.tenant_id}`,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?alert(e):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"azure"}),n(e?"auth.loggingIn":"auth.loginWithAzure")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},52141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(5648)),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=c(n(61325)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96667));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e,t={}){p(this,"lock",void 0),p(this,"api",void 0),p(this,"options",void 0),p(this,"repo",void 0),p(this,"branch",void 0),p(this,"apiRoot",void 0),p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"squashMerges",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"mediaFolder",void 0),p(this,"previewContext",void 0),p(this,"_mediaDisplayURLSem",void 0),this.options=f({initialWorkflowStatus:""},t),this.repo=function(e){const{repo:t}=e.backend;if("string"!=typeof t)throw new Error('The Azure backend needs a "repo" in the backend configuration.');const n=t.split("/");if(3!==n.length)throw new Error("The Azure backend must be in a the format of {org}/{project}/{repo}");const[r,i,o]=n;return{org:r,project:i,repoName:o}}(e),this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://dev.azure.com",this.apiVersion=e.backend.api_version||"6.1-preview",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=(0,r.default)(e.media_folder,"/"),this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){return{auth:{status:await this.api.user().then((e=>!!e)).catch((e=>(console.warn("Failed getting Azure user",e),!1)))||!1},api:{status:!0,statusPage:""}}}authComponent(){return s.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new l.default({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const t=await this.api.user();return f({token:e.token},t)}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){return await(0,a.entriesByFolder)((async()=>(await this.api.listFiles(e,n>1)).filter((e=>(0,a.filterByExtension)({path:e.path},t))).map((e=>({id:e.id,path:e.path})))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){return(0,a.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}async getEntry(e){return{file:{path:e},data:await this.api.readFile(e)}}async getMedia(){const e=await this.api.listFiles(this.mediaFolder,!1);return await Promise.all(e.map((async({id:e,path:t,name:n})=>({id:e,name:n,displayURL:await this.getMediaDisplayURL({id:e,path:t}),path:t}))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=new File([n],t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=e.assets;await this.api.persistFiles(e.dataFiles,n,t)}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,s=URL.createObjectURL(n);return{displayURL:s,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:s,id:r}}async deleteFiles(e,t){await this.api.deleteFiles(e,t)}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))),r=(0,a.basename)(t.path),i=new File([n],r);return{id:t.path,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},55281:(e,t,n)=>{"use strict";Object.defineProperty(t,"XK",{enumerable:!0,get:function(){return r.default}});var r=a(n(52141)),i=a(n(96667)),o=a(n(61325));function a(e){return e&&e.__esModule?e:{default:e}}r.default,i.default,o.default},84280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=u(n(72579)),i=u(n(85395)),o=n(33806),a=n(21023),s=n(13856),l=n(99776);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(f||{}),p=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(p||{});const h=t.API_NAME="Bitbucket",m="application/json; charset=utf-8";function g(e){return e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}t.default=class{constructor(e){d(this,"apiRoot",void 0),d(this,"branch",void 0),d(this,"repo",void 0),d(this,"requestFunction",void 0),d(this,"repoURL",void 0),d(this,"commitAuthor",void 0),d(this,"mergeStrategy",void 0),d(this,"initialWorkflowStatus",void 0),d(this,"cmsLabelPrefix",void 0),d(this,"buildRequest",(e=>{const t=o.unsentRequest.withRoot(this.apiRoot)(e);return t.has("cache")?t:o.unsentRequest.withNoCache(t)})),d(this,"request",(e=>{try{return(0,o.requestWithBackoff)(this,e)}catch(e){throw new o.APIError(e.message,null,h)}})),d(this,"responseToJSON",(0,o.responseParser)({format:"json",apiName:h})),d(this,"responseToBlob",(0,o.responseParser)({format:"blob",apiName:h})),d(this,"responseToText",(0,o.responseParser)({format:"text",apiName:h})),d(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),d(this,"requestText",(e=>this.request(e).then(this.responseToText))),d(this,"user",(()=>this.requestJSON("/user"))),d(this,"hasWriteAccess",(async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok})),d(this,"getBranch",(async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`))),d(this,"branchCommitSha",(async e=>{const{target:{hash:t}}=await this.getBranch(e);return t})),d(this,"defaultBranchCommitSha",(()=>this.branchCommitSha(this.branch))),d(this,"isFile",(({type:e})=>"commit_file"===e)),d(this,"getFileId",((e,t)=>`${e}/${t}`)),d(this,"processFile",(e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,type:e.type,path:e.path,name:(0,o.basename)(e.path)},e.commit&&e.commit.hash?{id:this.getFileId(e.commit.hash,e.path)}:{}))),d(this,"processFiles",(e=>e.filter(this.isFile).map(this.processFile))),d(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>await(0,o.readFile)(t,(async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)}),o.localForage,n))),d(this,"getEntriesAndCursor",(e=>{const{size:t,page:n,pagelen:r,next:i,previous:a,values:s}=e,l=r&&t?Math.ceil(t/r):void 0;return{entries:s,cursor:o.Cursor.create({actions:[...i?["next"]:[],...a?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:l},data:{links:{next:i,prev:a}}})}})),d(this,"listFiles",(async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:t,pagelen:n}}).catch(g),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}})),d(this,"traverseCursor",(async(e,t)=>(0,i.default)([this.requestJSON,(0,o.then)(this.getEntriesAndCursor),(0,o.then)((({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)})))])(e.data.getIn(["links",t])))),d(this,"listAllFiles",(async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)})),d(this,"deleteFiles",((e,t)=>{const n=new FormData;if(e.forEach((e=>{n.append("files",e)})),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return(0,i.default)([o.unsentRequest.withMethod("POST"),o.unsentRequest.withBody(n),this.request])(`${this.repoURL}/src`)})),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||o.unsentRequest.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){return await(0,o.readFileMetadata)(t,(async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}}),o.localForage)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:100}}).catch((t=>(console.log(`Failed getting commits for branch '${e}'`,t),[])));return n.some((e=>e.hash===t))}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:i}){const s=new FormData,l=[];e.forEach((e=>{if(e.delete)s.append("files",e.path);else if(e.newPath){const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));l.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));s.append(e.path,t,(0,o.basename)(e.path))}}));for(const{from:e,to:t,contentBlob:r}of l){const l=(0,a.dirname)(e),u=(0,a.dirname)(t),c=i?this.branch:n,d=await this.listAllFiles(l,100,c);for(const t of d){s.append("files",t.path);const n=t.path===e?r:await this.readFile(t.path,null,{branch:c,parseText:!1});s.append(t.path.replace(l,u),n,(0,o.basename)(t.path))}}if(t&&s.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;s.append("author",`${e} <${t}>`)}s.append("branch",n),i&&s.append("parents",i);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:s})}catch(e){const t=e.message||"";throw i&&t.includes("Something went wrong")&&await(0,o.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),h),e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":m},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map((e=>e.content.raw))[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests`,headers:{"Content-Type":m},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:o.DEFAULT_PR_BODY,close_source_branch:!0})});await this.addPullRequestComment(r,(0,o.statusToLabel)(n,this.cmsLabelPrefix))}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}});return(0,l.parse)(n).map((e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}}))}async editorialWorkflowGit(e,t,n){const r=(0,o.generateContentKey)(n.collectionName,t),i=(0,o.branchFromContentKey)(r);if(n.unpublished){const t=await this.getDifferences(i),r=[];for(const n of t.filter((e=>e.binary&&"deleted"!==e.status)))e.some((e=>e.path===n.path))||r.push({path:n.path,delete:!0});await this.uploadFiles([...e,...r],{commitMessage:n.commitMessage,branch:i})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:i,parentSha:t}),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${o.CMS_BRANCH_PREFIX}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:50,q:s.oneLine`
|
||
source.repository.full_name = "${this.repo}"
|
||
AND state = "${f.OPEN}"
|
||
AND destination.branch.name = "${this.branch}"
|
||
AND comment_count > 0
|
||
AND ${t}
|
||
`}}),r=await Promise.all(n.values.map((e=>this.getPullRequestLabel(e.id))));return n.values.filter(((e,t)=>(0,o.isCMSLabel)(r[t],this.cmsLabelPrefix)))}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new o.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getPullRequests()).map((e=>e.source.branch.name))}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,o.parseContentKey)(e),r=(0,o.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),a=await this.getDifferences(r),s=await this.getPullRequestLabel(i.id),l=(0,o.labelToStatus)(s,this.cmsLabelPrefix),u=i.updated_on,c=i.author.display_name;return{collection:t,slug:n,status:l,diffs:a.filter((e=>"deleted"!==e.status)).map((e=>({path:e.path,newFile:e.newFile,id:""}))),updatedAt:u,pullRequestAuthor:c}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,o.generateContentKey)(e,t),i=(0,o.branchFromContentKey)(r),a=await this.getBranchPullRequest(i);await this.addPullRequestComment(a,(0,o.statusToLabel)(n,this.cmsLabelPrefix))}async mergePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/merge`,headers:{"Content-Type":m},body:JSON.stringify({message:o.MERGE_COMMIT_MESSAGE,close_source_branch:!0,merge_strategy:this.mergeStrategy})})}async publishUnpublishedEntry(e,t){const n=(0,o.generateContentKey)(e,t),r=(0,o.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePullRequest(i)}async declinePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/decline`})}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/refs/branches/${e}`})}async deleteUnpublishedEntry(e,t){const n=(0,o.generateContentKey)(e,t),r=(0,o.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.declinePullRequest(i),await this.deleteBranch(r)}async getPullRequestStatuses(e){return(await this.requestJSON({url:`${this.repoURL}/pullrequests/${e.id}/statuses`,params:{pagelen:100}})).values}async getStatuses(e,t){const n=(0,o.generateContentKey)(e,t),r=(0,o.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);return(await this.getPullRequestStatuses(i)).map((({key:e,state:t,url:n})=>({context:e,state:t===p.Successful?o.PreviewState.Success:o.PreviewState.Other,target_url:n})))}async getUnpublishedEntrySha(e,t){const n=(0,o.generateContentKey)(e,t),r=(0,o.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).destination.commit.hash}}},8387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e15sc0jo0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate(this.authSettings,((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{auth_type:e=""}=this.props.config.backend;if("implicit"===e){const{base_url:e="https://bitbucket.org",auth_endpoint:t="site/oauth2/authorize",app_id:n=""}=this.props.config.backend;this.auth=new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})),this.authSettings={scope:"repository:write"}}else this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint}),this.authSettings={provider:"bitbucket",scope:"repo"}}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"bitbucket"}),n(e?"auth.loggingIn":"auth.loginWithBitbucket")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},88115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GitLfsClient=void 0;var r,i=(r=n(77339))&&r.__esModule?r:{default:r},o=n(33806);const a=["sha"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor(e,t,n,r){this.enabled=e,this.rootURL=t,this.patterns=n,this.makeAuthorizedRequest=r}matchPath(e){return this.patterns.some((t=>(0,i.default)(e,t,{matchBase:!0})))}async uploadResource(e,t){const n=await this.getResourceUploadRequests([e]);for(const e of n)await this.doUpload(e.actions.upload,t),e.actions.verify&&await this.doVerify(e.actions.verify,e);return e.sha}async doUpload(e,t){await o.unsentRequest.fetchWithTimeout(decodeURI(e.href),{method:"PUT",body:t,headers:e.header})}async doVerify(e,t){this.makeAuthorizedRequest({url:decodeURI(e.href),method:"POST",headers:l(l({},c.defaultContentHeaders),e.header),body:JSON.stringify({oid:t.oid,size:t.size})})}async getResourceUploadRequests(e){const t=await this.makeAuthorizedRequest({url:`${this.rootURL}/objects/batch`,method:"POST",headers:c.defaultContentHeaders,body:JSON.stringify({operation:"upload",transfers:["basic"],objects:e.map((e=>{let{sha:t}=e;return l(l({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a)),{},{oid:t})}))})});return(await t.json()).objects.filter((e=>"error"in e?(console.error(e.error),!1):e.actions))}}t.GitLfsClient=c,u(c,"defaultContentHeaders",{Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"})},28521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(93433)),i=f(n(63252)),o=n(13856),a=n(33806),s=n(76320),l=f(n(8387)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(84280)),c=n(88115);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://bitbucket.status.atlassian.com",v=`${g}/api/v2/components.json`,y=["API","Authentication and user management","Git LFS"],{fetchWithTimeout:b}=a.unsentRequest;t.default=class{constructor(e,t={}){if(m(this,"lock",void 0),m(this,"api",void 0),m(this,"updateUserCredentials",void 0),m(this,"options",void 0),m(this,"repo",void 0),m(this,"isBranchConfigured",void 0),m(this,"branch",void 0),m(this,"apiRoot",void 0),m(this,"baseUrl",void 0),m(this,"siteId",void 0),m(this,"token",void 0),m(this,"mediaFolder",void 0),m(this,"refreshToken",void 0),m(this,"refreshedTokenPromise",void 0),m(this,"authenticator",void 0),m(this,"_mediaDisplayURLSem",void 0),m(this,"squashMerges",void 0),m(this,"cmsLabelPrefix",void 0),m(this,"previewContext",void 0),m(this,"largeMediaURL",void 0),m(this,"_largeMediaClientPromise",void 0),m(this,"authType",void 0),m(this,"requestFunction",(async e=>{const t=await this.getToken(),n=a.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e);return a.unsentRequest.performRequest(n)})),m(this,"apiRequestFunction",(async e=>{const t=this.refreshedTokenPromise?await this.refreshedTokenPromise:this.token,n=a.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e),r=await a.unsentRequest.performRequest(n);if(401===r.status){const t=await r.json().catch((()=>null));if(t&&"error"===t.type&&/^access token expired/i.test(t.error.message)){const t=await this.getRefreshedAccessToken(),n=a.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e);return a.unsentRequest.performRequest(n)}}return r})),this.options=h({proxied:!1,API:null,updateUserCredentials:async()=>null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The BitBucket backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.updateUserCredentials=this.options.updateUserCredentials,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.isBranchConfigured=!!e.backend.branch,this.apiRoot=e.backend.api_root||"https://api.bitbucket.org/2.0",this.baseUrl=e.base_url||"",this.siteId=e.site_id||"",this.largeMediaURL=e.backend.large_media_url||`https://bitbucket.org/${e.backend.repo}/info/lfs`,this.token="",this.mediaFolder=e.media_folder,this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)(),this.authType=e.backend.auth_type||""}isGitBackend(){return!0}async status(){const e=await b(v).then((e=>e.json())).then((e=>e.components.filter((e=>y.includes(e.name))).every((e=>"operational"===e.status)))).catch((e=>(console.warn("Failed getting BitBucket status",e),!0)));let t=!1;var n;return e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.user().then((e=>!!e)).catch((e=>(console.warn("Failed getting Bitbucket user",e),!1))))||!1),{auth:{status:t},api:{status:e,statusPage:g}}}authComponent(){return l.default}setUser(e){this.token=e.token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus})}restoreUser(e){return this.authenticate(e)}async authenticate(e){if(this.token=e.token,!this.isBranchConfigured){const e=await b(`${this.apiRoot}/repositories/${this.repo}`,{headers:{Authorization:`token ${this.token}`}}).then((e=>e.json())).catch((()=>null));e&&(this.branch=e.mainbranch.name)}if(this.refreshToken=e.refresh_token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus}),!await this.api.hasWriteAccess().catch((e=>{throw e.message=o.stripIndent`
|
||
Repo "${this.repo}" not found.
|
||
|
||
Please ensure the repo information is spelled correctly.
|
||
|
||
If the repo is private, make sure you're logged into a Bitbucket account with access.
|
||
`,e})))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return h(h({},t),{},{name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token})}getRefreshedAccessToken(){if("implicit"===this.authType)throw new a.AccessTokenError("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new s.NetlifyAuthenticator(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then((({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),e))),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,n,20,this.branch).then((({entries:e,cursor:n})=>(r=n.mergeMeta({extension:t}),e.filter((e=>(0,a.filterByExtension)(e,t))))))),((e,t)=>this.api.readFile(e,t,{head:i})),this.api.readFileMetadata.bind(this.api),u.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter((e=>(0,a.filterByExtension)(e,t)))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha();return await(0,a.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:a.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>(0,a.filterByExtension)(e,t)})}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{head:t})),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e,1,this.branch).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,path:n}})))))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then((e=>(0,a.getLargeMediaPatternsFromGitAttributesFile)(e))).catch((e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[])));return new c.GitLfsClient(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,i.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,a.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(r),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=await this.getLargeMediaClient();return(0,a.runWithLock)(this.lock,(async()=>this.api.persistFiles(e.dataFiles,n.enabled?await(0,a.getLargeMediaFilteredMediaFiles)(n,e.assets):e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),s=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(s))return this._persistMedia(e,t);const l=await(0,a.getPointerFileForMediaFileObj)(o,n,r);return h(h({},await this._persistMedia(l,t)),{},{displayURL:i})}async _persistMedia(e,t){const n=e.fileObj,[i]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),o=URL.createObjectURL(n);return{displayURL:o,path:(0,r.default)(e.path,"/k"),name:n.name,size:n.size,id:i,file:n,url:o}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r;const i=null===(r=e.meta)||void 0===r?void 0:r.get("extension");i&&(t=t.filter((e=>(0,a.filterByExtension)(e,i))),n=n.mergeMeta({extension:i}));const o=await this.api.defaultBranchCommitSha();return{entries:await(0,a.entriesByFiles)(t,((e,t)=>this.api.readFile(e,t,{head:o})),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}async loadMediaFile(e,t,{branch:n}){const r=await(0,a.getMediaAsBlob)(e,t,(async(e,t,{parseText:r})=>await this.api.readFile(e,t,{branch:n,parseText:r}))),i=(0,a.basename)(e),o=(0,a.blobToFileObj)(i,r);return{id:e,displayURL:URL.createObjectURL(o),path:e,name:i,size:o.size,file:o}}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},17134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BitbucketBackend",{enumerable:!0,get:function(){return r.default}}),t.DecapCmsBackendBitbucket=void 0;var r=a(n(28521)),i=a(n(84280)),o=a(n(8387));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendBitbucket={BitbucketBackend:r.default,API:i.default,AuthenticationPage:o.default}},17930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(83465)),o=u(n(13980)),a=u(n(12244)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("button",{target:"e1fncu5t3",label:"LoginButton"})(s.buttons.button,";",s.shadows.dropDeep,";",s.buttons.default,";",s.buttons.gray,";padding:0 30px;display:block;margin-top:20px;margin-left:auto;"),h=(0,r.default)("form",{target:"e1fncu5t2",label:"AuthForm"})({name:"bjv45a",styles:"width:350px;margin-top:-80px"}),m=(0,r.default)("input",{target:"e1fncu5t1",label:"AuthInput"})("background-color:",s.colorsRaw.white,";border-radius:",s.lengths.borderRadius,";font-size:14px;padding:10px;margin-bottom:15px;margin-top:6px;width:100%;position:relative;z-index:",s.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",s.colors.active,";}"),g=(0,r.default)("p",{target:"e1fncu5t0",label:"ErrorMessage"})("color:",s.colors.errorText,";");let v=null;window.netlifyIdentity&&(window.netlifyIdentity.on("login",(e=>{v&&v.handleIdentityLogin(e)})),window.netlifyIdentity.on("logout",(()=>{v&&v.handleIdentityLogout()})),window.netlifyIdentity.on("error",(e=>{v&&v.handleIdentityError(e)})));class y extends a.default.Component{constructor(e){super(e),f(this,"handleIdentityLogin",(e=>{this.props.onLogin(e),window.netlifyIdentity.close()})),f(this,"handleIdentityLogout",(()=>{window.netlifyIdentity.open()})),f(this,"handleIdentityError",(e=>{var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.match(/^Failed to load settings from.+\.netlify\/identity$/)&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))})),f(this,"handleIdentity",(()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()})),f(this,"state",{email:"",password:"",errors:{}}),f(this,"handleChange",((e,t)=>{this.setState(d(d({},this.state),{},{[e]:t.target.value}))})),f(this,"handleLogin",(async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await y.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}})),v=this}componentDidMount(){!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){v=null}render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:o}=this.props;return window.netlifyIdentity?e.identity?(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>(0,l.jsx)("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>o("auth.loginWithNetlifyIdentity"),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,renderPageContent:()=>(0,l.jsx)(h,{onSubmit:this.handleLogin},t?(0,l.jsx)(g,null,t):null,e.server?(0,l.jsx)(g,null,String(e.server)):null,(0,l.jsx)(g,null,e.email||null),(0,l.jsx)(m,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:(0,i.default)(this.handleChange,"email")}),(0,l.jsx)(g,null,e.password||null),(0,l.jsx)(m,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:(0,i.default)(this.handleChange,"password")}),(0,l.jsx)(p,{disabled:n},o(n?"auth.loggingIn":"auth.login"))),t:o})}}t.default=y,f(y,"authClient",void 0),f(y,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool.isRequired,error:o.default.node,config:o.default.object.isRequired,t:o.default.func.isRequired})},25299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(48638),i=n(33806);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.API{constructor(e){super(a({getUser:()=>Promise.reject("Never used")},e)),s(this,"tokenPromise",void 0),s(this,"commitAuthor",void 0),s(this,"isLargeMedia",void 0),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.isLargeMedia=e.isLargeMedia,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then((()=>!0)).catch((e=>{if(401===e.status){if("Bad credentials"===e.message)throw new i.APIError("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new i.APIError("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")}))}requestHeaders(e={}){return this.tokenPromise().then((t=>a({Authorization:`Bearer ${t}`,"Content-Type":"application/json; charset=utf-8"},e)))}handleRequestError(e,t){throw new i.APIError(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve(a({login:""},this.commitAuthor))}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author=a(a({},this.commitAuthor),{},{date:(new Date).toISOString()})),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,`${this.apiRoot}/`)}async diffFromFile(e){const t=await super.diffFromFile(e);return a(a({},t),{},{binary:t.binary||await this.isLargeMedia(e.filename)})}}t.default=l},76749:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(34554),i=n(33806);function o(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.API{constructor(e){super(e),o(this,"tokenPromise",void 0),o(this,"withAuthorizationHeaders",(async e=>{const t=await this.tokenPromise();return i.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e)})),o(this,"hasWriteAccess",(()=>Promise.resolve(!0))),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}}t.default=a},77188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(30898)),i=v(n(13888)),o=v(n(72579)),a=v(n(28005)),s=v(n(51949)),l=v(n(52939)),u=n(33806),c=n(48638),d=n(34554),f=n(17134),p=v(n(25299)),h=v(n(76749)),m=v(n(17930)),g=n(71213);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="https://www.netlifystatus.com",x=`${_}/api/v2/components.json`,E=["Git Gateway"],k={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0};function C(e,t){if(k[document.location.host.split(":").shift()]&&t&&e.match(/^\/\.netlify\//)){const n=[];return t&&(n.push(t),t.match(/\/$/)||n.push("/")),n.push(e.replace(/^\//,"")),n.join("")}return e}let S=Promise.resolve();if(window.netlifyIdentity){let e=!1;S=Promise.race([new Promise((t=>{var n;null===(n=window.netlifyIdentity)||void 0===n||n.on("init",(()=>{e=!0,t()}))})),new Promise((e=>setTimeout(e,2500))).then((()=>{var t;e||(console.log("Manually initializing identity widget"),null===(t=window.netlifyIdentity)||void 0===t||t.init())}))])}async function A(e){return await fetch(`https://api.netlify.com/api/v1/sites/${e}`).then((e=>e.json()))}t.default=class{constructor(e,t={}){var n;w(this,"config",void 0),w(this,"api",void 0),w(this,"branch",void 0),w(this,"squashMerges",void 0),w(this,"cmsLabelPrefix",void 0),w(this,"mediaFolder",void 0),w(this,"transformImages",void 0),w(this,"gatewayUrl",void 0),w(this,"netlifyLargeMediaURL",void 0),w(this,"backendType",void 0),w(this,"apiUrl",void 0),w(this,"authClient",void 0),w(this,"backend",void 0),w(this,"acceptRoles",void 0),w(this,"tokenPromise",void 0),w(this,"_largeMediaClientPromise",void 0),w(this,"options",void 0),w(this,"requestFunction",(e=>this.tokenPromise().then((t=>u.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e))).then(u.unsentRequest.performRequest))),this.options=b({proxied:!0,API:null,initialWorkflowStatus:""},t),this.config=e,this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder;const{use_large_media_transforms_in_media_library:r=!0}=e.backend;this.transformImages=r;const i=localStorage.getItem("netlifySiteURL");this.apiUrl=C(e.backend.identity_url||"/.netlify/identity",i),this.gatewayUrl=C(e.backend.gateway_url||"/.netlify/git",i),this.netlifyLargeMediaURL=C(e.backend.large_media_url||"/.netlify/large-media",i);const o=/\/(github|gitlab|bitbucket)\/?$/,a=this.gatewayUrl.match(o);a?(this.backendType=a[1],this.gatewayUrl=this.gatewayUrl.replace(o,"")):this.backendType=null,this.backend=null,m.default.authClient=()=>this.getAuthClient()}isGitBackend(){return!0}async status(){const e=await fetch(x).then((e=>e.json())).then((e=>e.components.filter((e=>E.includes(e.name))).every((e=>"operational"===e.status)))).catch((e=>(console.warn("Failed getting Git Gateway status",e),!0)));let t=!1;var n;return e&&(t=await(null===(n=this.tokenPromise)||void 0===n?void 0:n.call(this).then((e=>!!e)).catch((e=>(console.warn("Failed getting Identity token",e),!1))))||!1),{auth:{status:t},api:{status:e,statusPage:_}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await S,window.netlifyIdentity)this.authClient={logout:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.logout()},currentUser:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.currentUser()},clearStore:()=>{var e;const t=null===(e=window.netlifyIdentity)||void 0===e?void 0:e.store;t&&(t.user=null,t.modal.page="login",t.saving=!1)}};else{const e=new a.default({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}authenticate(e){const t=e;return this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new u.AccessTokenError(`Failed getting access token: ${e.message}`)}},this.tokenPromise().then((async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await u.unsentRequest.fetchWithTimeout(`${this.gatewayUrl}/settings`,{headers:{Authorization:`Bearer ${e}`}}).then((async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new u.APIError("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new u.APIError(`Git Gateway Error: ${n.message?n.message:n}`,e.status,"Git Gateway");return n}));this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=(0,o.default)((0,s.default)(e),"app_metadata.roles",[]);if(!((0,r.default)(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Decap CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},a={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:(0,i.default)(n,["name","email"]),isLargeMedia:e=>this.isLargeMediaFile(e),squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new p.default(a),this.backend=new c.GitHubBackend(this.config,b(b({},this.options),{},{API:this.api}))):"gitlab"===this.backendType?(this.api=new h.default(a),this.backend=new d.GitLabBackend(this.config,b(b({},this.options),{},{API:this.api}))):"bitbucket"===this.backendType&&(this.api=new f.API(b(b({},a),{},{requestFunction:this.requestFunction,hasWriteAccess:async()=>!0})),this.backend=new f.BitbucketBackend(this.config,b(b({},this.options),{},{API:this.api}))),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Decap CMS");return{name:n.name,login:n.email,avatar_url:n.avatar_url}}))}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return m.default}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async isLargeMediaFile(e){const t=await this.getLargeMediaClient();return t.enabled&&t.matchPath(e)}async unpublishedEntryMediaFile(e,t,n,r){if(await this.isLargeMediaFile(n)){const i=this.backend.getBranch(e,t),{url:o,blob:a}=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:(0,u.basename)(n),path:n,url:o,displayURL:o,file:new File([a],(0,u.basename)(n)),size:a.size}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(e=this.mediaFolder){return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then((e=>l.default.decode(e))).then((({lfs:{url:e}})=>new URL(e))).then((e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")}))).catch((e=>({enabled:!1,err:e}))),t=this.api.readFile(".gitattributes").then((e=>(0,u.getLargeMediaPatternsFromGitAttributesFile)(e))).then((e=>({err:null,patterns:e}))).catch((e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]}));return Promise.all([e,t]).then((([{enabled:e},{patterns:t,err:n}])=>{const r=e&&!n;return e&&n&&console.error(n),(0,g.getClient)({enabled:r,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:t,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}})}))}async getLargeMediaDisplayURL({path:e,id:t},n=this.branch){const r=await(0,u.entriesByFiles)([{path:e,id:t}],((e,t,{parseText:r})=>this.api.readFile(e,t,{branch:n,parseText:r})),this.api.readFileMetadata.bind(this.api),"Git-Gateway"),i=r[0],o=(0,u.parsePointerFile)(i.data);if(!o.sha)return console.warn(`Failed parsing pointer file ${e}`),{url:e,blob:new Blob};const a=await this.getLargeMediaClient(),{url:s,blob:l}=await a.getDownloadURL(o);return{url:s,blob:l}}async getMediaDisplayURL(e){const{path:t,id:n}=e;if(await this.isLargeMediaFile(t)){const{url:e}=await this.getLargeMediaDisplayURL({path:t,id:n});return e}return"string"==typeof e?e:await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){if(await this.isLargeMediaFile(e)){const{url:t,blob:n}=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:(0,u.basename)(e),path:e,url:t,displayURL:t,file:new File([n],(0,u.basename)(e)),size:n.size}}return this.backend.getMediaFile(e)}async persistEntry(e,t){const n=await this.getLargeMediaClient();if(n.enabled){const r=await(0,u.getLargeMediaFilteredMediaFiles)(n,e.assets);return this.backend.persistEntry(b(b({},e),{},{assets:r}),t)}return this.backend.persistEntry(e,t)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(await this.isLargeMediaFile(a)){const e=await(0,u.getPointerFileForMediaFileObj)(o,n,r);return b(b({},await this.backend.persistMedia(e,t)),{},{displayURL:i})}return await this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await A(r),o=await A(`${i.id}/deploys?per_page=100`);if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find((e=>e.commit_ref===r));i&&(n={status:"ready"===i.state?u.PreviewState.Success:u.PreviewState.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry({id:e,collection:t,slug:n}){return this.backend.unpublishedEntry({id:e,collection:t,slug:n})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}},12318:(e,t,n)=>{"use strict";Object.defineProperty(t,"UU",{enumerable:!0,get:function(){return r.default}});var r=o(n(77188)),i=o(n(17930));function o(e){return e&&e.__esModule?e:{default:e}}r.default,i.default},71213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=function(e){return(0,s.default)([Object.keys,(0,o.default)((t=>{return[t,(n=e,r=b[t],(...e)=>r(n,...e))];var n,r})),a.default,t=>p(p({},t),{},{patterns:e.patterns,enabled:e.enabled})])(b)},t.matchPath=h;var r=d(n(45455)),i=d(n(97030)),o=d(n(65159)),a=d(n(23162)),s=d(n(10094)),l=d(n(77339)),u=n(33806);const c=["sha"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h({patterns:e},t){return e.some((e=>(0,l.default)(t,e,{matchBase:!0})))}const m={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};async function g({rootURL:e,makeAuthorizedRequest:t},{sha:n,size:r}){const i=await t({url:`${e}/verify`,method:"POST",headers:m,body:JSON.stringify({oid:n,size:r})});return!!i.ok||404!==i.status&&void 0}function v(e){return{operation:"upload",transfers:["basic"],objects:e.map((e=>{let{sha:t}=e;return p(p({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,c)),{},{oid:t})}))}}async function y({rootURL:e,makeAuthorizedRequest:t},n){const r=await t({url:`${e}/objects/batch`,method:"POST",headers:m,body:JSON.stringify(v(n))}),{objects:i}=await r.json();return i.map((e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href}))}const b={resourceExists:g,getResourceUploadURLs:y,getDownloadURL:async function({rootURL:e,transformImages:t,makeAuthorizedRequest:n},{sha:o}){try{const a=function(e){if((0,i.default)(e)&&!(0,r.default)(e)){const{nf_resize:t,w:n,h:r}=e;return`?nf_resize=${t}&w=${n}&h=${r}`}return""}(t),s=n(`${e}/origin/${o}${a}`),[l,u]=await Promise.all([s,a?n(`${e}/origin/${o}`):s]);if(!l.ok){const e=await l.json();throw new Error(`Failed getting large media for sha '${o}': '${e.code} - ${e.msg}'`)}const c=await l.blob();return{url:URL.createObjectURL(c),blob:a?await u.blob():c}}catch(e){return console.error(e),{url:"",blob:new Blob}}},uploadResource:async function(e,{sha:t,size:n},r){if(await g(e,{sha:t,size:n}))return t;const[i]=await y(e,[{sha:t,size:n}]);return await function(e,t){return u.unsentRequest.fetchWithTimeout(e,{method:"PUT",body:t})}(i,r),t},matchPath:h}},66141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=d(n(87613)),i=d(n(56974)),o=d(n(83465)),a=d(n(36346)),s=d(n(5648)),l=d(n(93433)),u=n(95978),c=n(33806);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=t.API_NAME="Gitea";var g=function(e){return e.CREATE="create",e.DELETE="delete",e.UPDATE="update",e}(g||{});class v{constructor(e){h(this,"apiRoot",void 0),h(this,"token",void 0),h(this,"branch",void 0),h(this,"repo",void 0),h(this,"originRepo",void 0),h(this,"repoOwner",void 0),h(this,"repoName",void 0),h(this,"originRepoOwner",void 0),h(this,"originRepoName",void 0),h(this,"repoURL",void 0),h(this,"originRepoURL",void 0),h(this,"_userPromise",void 0),h(this,"_metadataSemaphore",void 0),h(this,"commitAuthor",void 0),this.apiRoot=e.apiRoot||"https://try.gitea.io/api/v1",this.token=e.token||"",this.branch=e.branch||"master",this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1]}user(){return this._userPromise||(this._userPromise=this.getUser()),this._userPromise}getUser(){return this.request("/user")}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from Gitea"),e}}reset(){}requestHeaders(e={}){const t=p({"Content-Type":"application/json; charset=utf-8"},e);return this.token?(t.Authorization=`token ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}async parseJsonResponse(e){const t=await e.json();return e.ok?t:Promise.reject(t)}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new c.APIError(e.message,t,m)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=p({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=c.unsentRequest.fromFetchArguments(i,p(p({},t),{},{headers:r})),a=await(0,c.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=p({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,c.getAllResponses)(r,p(p({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){return(0,c.generateContentKey)(e,t)}parseContentKey(e){return(0,c.parseContentKey)(e)}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,c.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch,stat:"false"}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),c.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={},i){const o=(0,s.default)(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${encodeURIComponent(o)}`,{params:r>1?{recursive:1}:{}})).tree.filter((e=>(!!i||"blob"===e.type)&&decodeURIComponent(e.path).split("/").length<=r)).map((e=>({type:e.type,id:e.sha,name:(0,c.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.info("[StaticCMS] This 404 was expected and handled appropriately."),[];throw e}}async persistFiles(e,t,n){const r=t.concat(e),i=await this.getChangeFileOperations(r,this.branch);return this.changeFiles(i,n)}async changeFiles(e,t){return await this.request(`${this.repoURL}/contents`,{method:"POST",body:JSON.stringify({branch:this.branch,files:e,message:t.commitMessage})})}async getChangeFileOperations(e,t){return await Promise.all(e.map((async e=>{const n=await(0,a.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw));let r,i,s,u=(0,l.default)(e.path,"/");try{r=await this.getFileSha(e.path,{branch:t}),i=g.UPDATE,s=e.newPath&&u,u=e.newPath?(0,l.default)(e.newPath,"/"):u}catch{r=void 0,i=g.CREATE}return{operation:i,content:n,path:u,from_path:s,sha:r}})))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const o=e.split("/"),a=(0,i.default)(o),s=(0,r.default)(o).join("/"),l=`${t}/git/trees/${n}:${encodeURIComponent(s)}`,u=(await this.request(l)).tree.find((e=>e.path===a));if(u)return u.sha;throw new c.APIError("Not Found",404,m)}async deleteFiles(e,t){const n=await Promise.all(e.map((async e=>{const t=await this.getFileSha(e);return{operation:g.DELETE,path:e,sha:t}})));this.changeFiles(n,{commitMessage:t})}toBase64(e){return Promise.resolve(u.Base64.encode(e))}}t.default=v,h(v,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Static CMS")},29961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"es1j68m0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"repository"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="https://try.gitea.io",app_id:t=""}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:"login/oauth/authorize",app_id:t,auth_token_endpoint:"login/oauth/access_token",auth_token_endpoint_content_type:"application/json; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):t&&this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitea"})," ",n(e?"auth.loggingIn":"auth.loginWithGitea")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},83972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(13856),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(66141)),l=c(n(29961));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:p}=a.unsentRequest;t.default=class{constructor(e,t={}){var n;if(f(this,"lock",void 0),f(this,"api",void 0),f(this,"options",void 0),f(this,"originRepo",void 0),f(this,"repo",void 0),f(this,"branch",void 0),f(this,"apiRoot",void 0),f(this,"mediaFolder",void 0),f(this,"token",void 0),f(this,"_currentUserPromise",void 0),f(this,"_userIsOriginMaintainerPromises",void 0),f(this,"_mediaDisplayURLSem",void 0),f(this,"getCursorAndFiles",((e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last")),{cursor:a.Cursor.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}})),this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({proxied:!1,API:null,useWorkflow:!1},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The Gitea backend needs a "repo" in the backend configuration.');if(this.options.useWorkflow)throw new Error("The Gitea backend does not support editorial workflow.");this.api=this.options.API||null,this.repo=this.originRepo=e.backend.repo||"",this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.apiRoot=e.backend.api_root||"https://try.gitea.io/api/v1",this.token="",this.mediaFolder=e.media_folder,this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){var e;return{auth:{status:await(null===(e=this.api)||void 0===e?void 0:e.user().then((e=>!!e)).catch((e=>(console.warn("[StaticCMS] Failed getting Gitea user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=p(`${this.apiRoot}/user`,{headers:{Authorization:`token ${e}`}}).then((e=>e.json()))),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=p(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`token ${t}`}}).then((e=>e.json())).then((({permission:e})=>"admin"===e||"write"===e))),this._userIsOriginMaintainerPromises[n]}async authenticate(e){this.token=e.token;const t=s.default;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=r.stripIndent`
|
||
Repo "${this.repo}" not found.
|
||
|
||
Please ensure the repo information is spelled correctly.
|
||
|
||
If the repo is private, make sure you're logged into a Gitea account with access.
|
||
|
||
If your repo is under an organization, ensure the organization has granted access to Static
|
||
CMS.
|
||
`,e})))throw new Error("Your Gitea user account does not have access to this repo.");return{name:n.full_name,login:n.login,avatar_url:n.avatar_url,token:e.token}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>(0,a.filterByExtension)(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL;return await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>e.filter((e=>(0,a.filterByExtension)(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME)}entriesByFiles(e){const t=this.api.repoURL;return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then((e=>e.map((({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))))):[]}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:o}=e,a=URL.createObjectURL(o);return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}return{entries:await(0,a.entriesByFiles)(i.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME),cursor:i.cursor}}async unpublishedEntries(){return{}}async unpublishedEntry(){return{}}async unpublishedEntryDataFile(){return{}}async unpublishedEntryMediaFile(){return{}}async updateUnpublishedEntryStatus(){}async publishUnpublishedEntry(){}async deleteUnpublishedEntry(){}async getDeployPreview(){return{}}}},38589:(e,t,n)=>{"use strict";Object.defineProperty(t,"bu",{enumerable:!0,get:function(){return r.default}});var r=i(n(83972));i(n(66141)),i(n(29961));function i(e){return e&&e.__esModule?e:{default:e}}},33870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PullRequestState=t.MOCK_PULL_REQUEST=t.API_NAME=void 0;var r=h(n(5648)),i=h(n(93433)),o=h(n(36346)),a=h(n(83465)),s=h(n(56974)),l=h(n(87613)),u=n(95978),c=h(n(63252)),d=n(13856),f=n(33806),p=n(21023);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=t.API_NAME="GitHub",b=t.MOCK_PULL_REQUEST=-1;var w=function(e){return e.Error="error",e.Failure="failure",e.Pending="pending",e.Success="success",e}(w||{});let _=t.PullRequestState=function(e){return e.Open="open",e.Closed="closed",e.All="all",e}({});function x(e,t){return e.labels.some((e=>(0,f.isCMSLabel)(e.name,t)))}function E(e){return e.reduce(((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e)),[])}let k=!1;class C{constructor(e){v(this,"apiRoot",void 0),v(this,"token",void 0),v(this,"tokenKeyword",void 0),v(this,"branch",void 0),v(this,"useOpenAuthoring",void 0),v(this,"repo",void 0),v(this,"originRepo",void 0),v(this,"repoOwner",void 0),v(this,"repoName",void 0),v(this,"originRepoOwner",void 0),v(this,"originRepoName",void 0),v(this,"repoURL",void 0),v(this,"originRepoURL",void 0),v(this,"mergeMethod",void 0),v(this,"initialWorkflowStatus",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"baseUrl",void 0),v(this,"getUser",void 0),v(this,"_userPromise",void 0),v(this,"_metadataSemaphore",void 0),v(this,"commitAuthor",void 0),v(this,"filterOpenAuthoringBranches",(async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return t.number!==b&&n===_.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}})),this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.tokenKeyword=e.tokenKeyword||"token",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.cmsLabelPrefix=e.cmsLabelPrefix,this.initialWorkflowStatus=e.initialWorkflowStatus,this.baseUrl=e.baseUrl,this.getUser=e.getUser}user(){return this._userPromise||(this._userPromise=this.getUser({token:this.token})),this._userPromise}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(e={}){const t=g({"Content-Type":"application/json; charset=utf-8"},e);return this.token?(t.Authorization=`${this.tokenKeyword} ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}parseJsonResponse(e){return e.json().then((t=>e.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new f.APIError(e.message,t,y)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=g({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=f.unsentRequest.fromFetchArguments(i,g(g({},t),{},{headers:r})),a=await(0,f.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=g({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,f.getAllResponses)(r,g(g({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){const n=(0,f.generateContentKey)(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?(0,f.parseContentKey)(e.slice(this.repo.length+1)):(0,f.parseContentKey)(e)}checkMetadataRef(){return this.request(`${this.repoURL}/git/refs/meta/_decap_cms`).then((e=>e.object)).catch((()=>this.uploadBlob({raw:"# Decap CMS\n\nThis tree is used by the Decap CMS to store metadata information for specific files and branches."}).then((e=>this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})}))).then((e=>this.commit("First Commit",e))).then((e=>this.createRef("meta","_decap_cms",e.sha))).then((e=>e.object))))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise(((n,r)=>{var i;return null===(i=this._metadataSemaphore)||void 0===i?void 0:i.take((async()=>{try{var i;const r=await this.checkMetadataRef(),o={path:`${e}.json`,raw:JSON.stringify(t)};await this.uploadBlob(o);const a=await this.updateTree(r.sha,[o]),{sha:s}=await this.commit(`Updating “${e}” metadata`,a);await this.patchRef("meta","_decap_cms",s),await f.localForage.setItem(`gh.meta.${e}`,{expires:Date.now()+3e5,data:t}),null===(i=this._metadataSemaphore)||void 0===i||i.leave(),n()}catch(e){r(e)}}))}))}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise((t=>{var n;return null===(n=this._metadataSemaphore)||void 0===n?void 0:n.take((async()=>{try{var n;const r=await this.checkMetadataRef(),i={path:`${e}.json`,sha:null},o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Deleting “${e}” metadata`,o);await this.patchRef("meta","_decap_cms",a),null===(n=this._metadataSemaphore)||void 0===n||n.leave(),t()}catch(e){var r;null===(r=this._metadataSemaphore)||void 0===r||r.leave(),t()}}))}))}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_decap_cms"},headers:{Accept:"application/vnd.github.v3.raw"}};function n(t){throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t}if(!this.useOpenAuthoring)return await this.request(`${this.repoURL}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n);const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(`${this.originRepoURL}/pulls`,{params:g(g({},e?{head:await this.getHeadReference(e)}:{}),{},{base:this.branch,state:t,per_page:100})})).filter((e=>e.head.ref.startsWith(`${f.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch((()=>{throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)})),r=t.filter((e=>e.head.sha===n.commit.sha))[0];if(r){r.labels=r.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix)));const e=r.state===_.Closed?{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}:{name:(0,f.statusToLabel)("pending_review",this.cmsLabelPrefix)};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:b,labels:[{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}],state:_.Open}}catch(e){throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,_.All,(()=>!0));return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,_.Open,(e=>x(e,this.cmsLabelPrefix)));if(t.length<=0)throw new f.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(e===b)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async getPullRequestAuthor(e){var t;if(null!==(t=e.user)&&void 0!==t&&t.login)try{const t=await this.request(`/users/${e.user.login}`);return t.name||t.login}catch{return}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=(0,f.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),[{files:o},a]=await Promise.all([this.getDifferences(this.branch,i.head.sha),this.getPullRequestAuthor(i)]),s=await Promise.all(o.map((e=>this.diffFromFile(e)))),l=i.labels.find((e=>(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))),u=(0,f.labelToStatus)(l.name,this.cmsLabelPrefix),c=i.updated_at;return{collection:t,slug:n,status:u,diffs:s.map((e=>({path:e.path,newFile:e.newFile,id:e.sha}))),updatedAt:c,pullRequestAuthor:a}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,f.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),f.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:i=1}={}){const o=(0,r.default)(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${o}`,{params:i>1?{recursive:1}:{}})).tree.filter((e=>"blob"===e.type&&e.path.split("/").length<=i)).map((e=>({type:e.type,id:e.sha,name:(0,f.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}async migrateToVersion1(e,t){const n=e.head.ref.slice(4),r=`${t.collection}/${n}`,i=`cms/${r}`;await this.getBranch(i).catch((()=>{}))||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,_.All,(()=>!0)))[0]||await this.createPR(e.title,i),a=g(g({},t),{},{pr:{number:o.number,head:o.head.sha},branch:i,version:"1"});return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.slice(4);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=(0,f.contentKeyFromBranch)(e.head.ref);let i=await this.retrieveMetadataOld(r).catch((()=>{}));if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch((()=>[]))}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map((e=>e.ref.slice(11)));const t=await Promise.all(e.map((e=>this.filterOpenAuthoringBranches(e))));e=t.filter((e=>e.filter)).map((e=>e.branch))}else{const t=await this.getPullRequests(void 0,_.Open,(e=>!e.head.repo.fork&&function(e,t){return e.labels.every((e=>!(0,f.isCMSLabel)(e.name,t)))}(e,this.cmsLabelPrefix)));let n=0;for(const e of t)k||(k=!0,alert(d.oneLine`
|
||
Decap CMS is adding labels to ${t.length} of your Editorial Workflow
|
||
entries. The "Workflow" tab will be unavailable during this migration. You may use other
|
||
areas of the CMS during this time. Note that closing the CMS will pause the migration.
|
||
`)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,_.Open,(e=>x(e,this.cmsLabelPrefix)))).map((e=>e.head.ref))}return e}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${i}/status`)).statuses.map((e=>({context:e.context,target_url:e.target_url,state:e.state===w.Success?f.PreviewState.Success:f.PreviewState.Other})))}async persistFiles(e,t,n){const r=t.concat(e),o=r.map((e=>this.uploadBlob(e)));if(await Promise.all(o),n.useWorkflow){const o=t.map((({sha:e,path:t})=>({path:(0,i.default)(t,"/"),sha:e}))),a=e[0].slug;return this.editorialWorkflowGit(r,a,o,n)}return this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,r))).then((e=>this.commit(n.commitMessage,e))).then((e=>this.patchBranch(this.branch,e.sha)))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=(0,s.default)(r),o=(0,l.default)(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,u=(await this.request(a)).tree.find((e=>e.path===i));if(u)return u.sha;throw new f.APIError("Not Found",404,y)}async deleteFiles(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=await this.getDefaultBranch(),r=e.map((e=>({path:e,sha:null}))),i=await this.updateTree(n.commit.sha,r),o=await this.commit(t,i);await this.patchBranch(this.branch,o.sha)}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async diffFromFile(e){return{path:e.filename,newFile:"added"===e.status,sha:e.sha,binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")}}async editorialWorkflowGit(e,t,n,r){const i=this.generateContentKey(r.collectionName,t),o=(0,f.branchFromContentKey)(i);if(r.unpublished){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(o)),i=await Promise.all(t.map((e=>this.diffFromFile(e)))),a=[];for(const e of i.filter((e=>e.binary)))n.some((t=>t.path===e.path))||a.push({path:e.path,sha:null});const s=await this.rebaseBranch(o),l=a.concat(e),u=await this.updateTree(s.sha,l,o),c=await this.commit(r.commitMessage,u);return this.patchBranch(o,c.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e),i=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(o,i.sha);else{const e=await this.createBranchAndPullRequest(o,i.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise((e=>setTimeout(e,500*r)))}throw new f.APIError("Not Found",404,y)}async rebaseSingleCommit(e,t){const n=E((await this.getDifferences(t.parents[0].sha,t.sha)).files);if(n.length>0){const r=await this.updateTree(e.sha,n),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,r.sha,[e.sha],o,a)}return t}async rebaseCommits(e,t){return 0===t.length||t[0].parents[0].sha===e.sha?(0,s.default)(t):t.reduce(((e,t)=>e.then((e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}))),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,f.statusToLabel)(t,this.cmsLabelPrefix)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=(0,f.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(o.number!==b){const{state:e}=o;e===_.Open&&"draft"===n&&await this.closePR(o.number),e===_.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){var a,s;const e=(0,f.branchFromContentKey)(r),t=(null===(a=(await this.getDifferences(this.branch,await this.getHeadReference(e))).commits[0])||void 0===a||null===(s=a.commit)||void 0===s?void 0:s.message)||C.DEFAULT_COMMIT_MESSAGE;await this.createPR(t,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);i.number!==b&&await this.closePR(i.number),await this.deleteBranch(r)}async publishUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePR(i),await this.deleteBranch(r)}async createRef(e,t,n){return await this.request(`${this.repoURL}/git/refs`,{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n,r={}){const i=r.force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:i})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(`${f.CMS_BRANCH_PREFIX}/`),`${f.CMS_BRANCH_PREFIX}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await(0,f.throwOnConflictingBranches)(e,(e=>this.getBranch(e)),y);else if("Reference already exists"===r&&e.startsWith(`${f.CMS_BRANCH_PREFIX}/`))try{return await this.backupBranch(e),await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(`${f.CMS_BRANCH_PREFIX}/`)}patchBranch(e,t,n={}){const r=n.force||!1;if(r&&!this.assertCmsBranch(e))throw Error(`Only CMS branches can be force updated, cannot force update ${e}`);return this.patchRef("heads",e,t,{force:r})}deleteBranch(e){return this.deleteRef("heads",e).catch((e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e))))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(`${this.originRepoURL}/pulls`,{method:"POST",body:JSON.stringify({title:e,body:f.DEFAULT_PR_BODY,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){return console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Open})})}async closePR(e){return console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:f.MERGE_COMMIT_MESSAGE,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof f.APIError&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=E((await this.getDifferences(e.base.sha,e.head.sha)).files);let n="Automatically generated. Merged on Decap CMS\n\nForce merge of:";return t.forEach((e=>{n+=`\n* "${e.path}"`})),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,t))).then((e=>this.commit(n,e))).then((e=>this.patchBranch(this.branch,e.sha)))}toBase64(e){return Promise.resolve(u.Base64.encode(e))}async uploadBlob(e){const t=await(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),n=await this.request(`${this.repoURL}/git/blobs`,{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t,n=this.branch){const r=[],o=t.reduce(((e,t)=>{const n={path:(0,i.default)(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?r.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e}),[]);for(const{from:e,to:t,sha:i}of r){const r=(0,p.dirname)(e),a=(0,p.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,a),mode:"100644",type:"blob",sha:t.path===e?i:t.id})}return g(g({},await this.createTree(e,o)),{},{parentSha:e})}async createTree(e,t){return await this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(`${this.repoURL}/git/commits`,{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).head.sha}}t.default=C,v(C,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Decap CMS")},99312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)(s.Icon,{target:"e1ko648l2",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),p=(0,r.default)("div",{target:"e1ko648l1",label:"ForkApprovalContainer"})({name:"13alw87",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;flex-grow:0.2"}),h=(0,r.default)("div",{target:"e1ko648l0",label:"ForkButtonsContainer"})({name:"125bg8c",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;align-items:center"});class m extends i.default.Component{constructor(...e){super(...e),d(this,"state",{}),d(this,"getPermissionToFork",(()=>new Promise(((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})})))),d(this,"handleLogin",(e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new a.NetlifyAuthenticator(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},((e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then((()=>this.props.onLogin(t))):void this.props.onLogin(t);this.setState({loginError:e.toString()})}))})),d(this,"renderLoginButton",(()=>{const{inProgress:e,t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(f,{type:"github"}),t("auth.loginWithGitHub"))}))}loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch((e=>{throw this.setState({findingFork:!1}),console.error(e),e}))}getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:({LoginButton:n,TextButton:r,showAbortButton:i})=>(0,l.jsx)(p,null,(0,l.jsx)("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),(0,l.jsx)(h,null,(0,l.jsx)(n,{onClick:e},"Fork the repo"),i&&(0,l.jsx)(r,{onClick:t},"Don't fork the repo")))}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return(0,l.jsx)(s.AuthenticationPage,c({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}t.default=m,d(m,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},24759:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(93433)),i=g(n(5648)),o=n(34600),a=n(70468),s=n(29206),l=n(96044),u=n(33806),c=g(n(16336)),d=m(n(33870)),f=m(n(66654)),p=m(n(61526));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w="no-cache",_="cache-first",x=new a.IntrospectionFragmentMatcher({introspectionQueryResultData:c.default});function E(e){return y(y({},e),{},{labels:e.labels.nodes,head:{ref:e.headRefName,sha:e.headRefOid,repo:{fork:e.repository.isFork}},base:{ref:e.baseRefName,sha:e.baseRefOid}})}class k extends d.default{constructor(e){super(e),b(this,"client",void 0),this.client=this.getApolloClient()}getApolloClient(){const e=(0,l.setContext)(((e,{headers:t})=>({headers:y(y({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`${this.tokenKeyword} ${this.token}`:""})}))),t=(0,s.createHttpLink)({uri:`${this.apiRoot}/graphql`});return new o.ApolloClient({link:e.concat(t),cache:new a.InMemoryCache({fragmentMatcher:x}),defaultOptions:{watchQuery:{fetchPolicy:w,errorPolicy:"ignore"},query:{fetchPolicy:w,errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:f.repository,variables:{owner:e,name:t},fetchPolicy:_});return n.repository}query(e){return this.client.query(e).catch((e=>{throw new u.APIError(e.message,500,"GitHub")}))}async mutate(e){try{return await this.client.mutate(e)}catch(l){const c=l.graphQLErrors;if(Array.isArray(c)&&c.some((e=>"Ref cannot be created."===e.message))){var t,n;const i=(null==e||null===(t=e.variables)||void 0===t||null===(n=t.createRefInput)||void 0===n?void 0:n.name)||"",o=(0,r.default)(i,"refs/heads/");o&&await(0,u.throwOnConflictingBranches)(o,(e=>this.getBranch(e)),d.API_NAME)}else if(Array.isArray(c)&&c.some((e=>new RegExp(`A ref named "refs/heads/${u.CMS_BRANCH_PREFIX}/.+?" already exists in the repository.`).test(e.message)))){var i,o,a,s;const t=(null==e||null===(i=e.variables)||void 0===i||null===(o=i.createRefInput)||void 0===o?void 0:o.name)||"",n=(null==e||null===(a=e.variables)||void 0===a||null===(s=a.createRefInput)||void 0===s?void 0:s.oid)||"",l=(0,r.default)(t,"refs/heads/");if(l&&l.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n)try{return await this.backupBranch(l),await this.deleteBranch(l),await this.client.mutate(e)}catch(e){console.log(e)}}throw new u.APIError(l.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:f.repoPermission,variables:{owner:e,name:t},fetchPolicy:_}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:f.user,fetchPolicy:_});return e.viewer}async retrieveBlobObject(e,t,n,r={}){const{data:i}=await this.query(y({query:f.blob,variables:{owner:e,name:t,expression:n}},r));if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await(0,u.readFile)(t,(()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i})),u.localForage,i)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){if(!n)return super.fetchBlobContent({sha:e,repoURL:t,parseText:n});const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{isNull:o,isBinary:a,text:s}=await this.retrieveBlobObject(r,i,e,{fetchPolicy:_});if(o)throw new u.APIError("Not Found",404,"GitHub");return a?super.fetchBlobContent({sha:e,repoURL:t,parseText:n}):s}async getPullRequestAuthor(e){const t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.login)}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===d.PullRequestState.Open?["OPEN"]:t===d.PullRequestState.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:f.pullRequests,variables:y(y({owner:r,name:i},e?{head:e}:{}),{},{states:o})}),{pullRequests:s}=a.repository;return s.nodes.map(E).filter((e=>e.head.ref.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:f.openAuthoringBranches,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map((({name:e,prefix:t})=>({ref:`${t}${e}`})))}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha,{originRepoOwner:o,originRepoName:a}=this,{data:s}=await this.query({query:f.statues,variables:{owner:o,name:a,sha:i}});if(s.repository.object){const{status:e}=s.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce(((e,n)=>{if("tree"===n.type){var r;const i=(null===(r=n.object)||void 0===r?void 0:r.entries)||[];return[...e,...this.getAllFiles(i,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e}),[])}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const{owner:o,name:a}=this.getOwnerAndNameFromRepoUrl(t),s=(0,i.default)(e,"/"),{data:l}=await this.query({query:f.files(r),variables:{owner:o,name:a,expression:`${n}:${s}`}});return l.repository.object?this.getAllFiles(l.repository.object.entries,s):[]}getBranchQualifiedName(e){return`refs/heads/${e}`}getBranchQuery(e,t,n){return{query:f.branch,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query(y({},this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)));return e.repository.branch}async getBranch(e){const{data:t}=await this.query(y(y({},this.getBranchQuery(e,this.repoOwner,this.repoName)),{},{fetchPolicy:_}));if(!t.repository.branch)throw new u.APIError("Branch not found",404,d.API_NAME);return t.repository.branch}async patchRef(e,t,n,r={}){if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:p.updateBranch,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:p.deleteBranch,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete((0,a.defaultDataIdFromObject)(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:f.pullRequest,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query(y(y({},this.getPullRequestQuery(e)),{},{fetchPolicy:_})),n="OPEN"===t.repository.pullRequest.state?d.PullRequestState.Open:d.PullRequestState.Closed;return y(y({},t.repository.pullRequest),{},{state:n})}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:f.pullRequestAndBranch,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query(y(y({},this.getPullRequestAndBranchQuery(e,t)),{},{fetchPolicy:_})),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.reopenPullRequest,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.reopenPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.closePullRequest,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.closePullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);if(i.number!==d.MOCK_PULL_REQUEST){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(r,i.number),{data:n}=await this.mutate({mutation:p.closePullRequestAndDeleteBranch,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete((0,a.defaultDataIdFromObject)(e)),n.data.delete((0,a.defaultDataIdFromObject)(t))}});return n.closePullRequest}return await this.deleteBranch(r)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0){const e=t.some((e=>"NOT_FOUND"===e.type));if(e)return}throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:p.createPullRequest,variables:{createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:e,headRefName:r,repositoryId:n.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.createPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}}),{pullRequest:o}=i.createPullRequest;return y(y({},o),{},{head:{sha:o.headRefOid}})}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:p.createBranch,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,{data:i})=>{const{branch:o}=i.createRef,a={repository:y(y({},o.repository),{},{branch:o})};t.writeQuery(y(y({},this.getBranchQuery(e,n,r)),{},{data:a}))}}),{branch:a}=o.createRef;return y(y({},a),{},{ref:`${a.prefix}${a.name}`})}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:p.createBranchAndPullRequest,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:n,headRefName:e,repositoryId:o.id}},update:(t,{data:n})=>{const{branch:o}=n.createRef,{pullRequest:a}=n.createPullRequest,s={repository:y(y({},o.repository),{},{branch:o})},l={repository:y(y({},a.repository),{},{branch:o}),origin:y(y({},a.repository),{},{pullRequest:a})};t.writeQuery(y(y({},this.getBranchQuery(e,r,i)),{},{data:s})),t.writeQuery(y(y({},this.getPullRequestAndBranchQuery(e,a.number)),{},{data:l}))}}),{pullRequest:s}=a.createPullRequest;return E(s)}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:f.fileSha,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new u.APIError("Not Found",404,d.API_NAME)}}t.default=k},16336:e=>{"use strict";e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},16689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeEntry=t.repository=t.pullRequest=t.object=t.fileEntry=t.branch=t.blobWithText=void 0;var r=n(21488);const i=t.repository=r.gql`
|
||
fragment RepositoryParts on Repository {
|
||
id
|
||
isFork
|
||
}
|
||
`,o=(t.blobWithText=r.gql`
|
||
fragment BlobWithTextParts on Blob {
|
||
id
|
||
text
|
||
is_binary: isBinary
|
||
}
|
||
`,t.object=r.gql`
|
||
fragment ObjectParts on GitObject {
|
||
id
|
||
sha: oid
|
||
}
|
||
`);t.branch=r.gql`
|
||
fragment BranchParts on Ref {
|
||
commit: target {
|
||
...ObjectParts
|
||
}
|
||
id
|
||
name
|
||
prefix
|
||
repository {
|
||
...RepositoryParts
|
||
}
|
||
}
|
||
${o}
|
||
${i}
|
||
`,t.pullRequest=r.gql`
|
||
fragment PullRequestParts on PullRequest {
|
||
id
|
||
baseRefName
|
||
baseRefOid
|
||
body
|
||
headRefName
|
||
headRefOid
|
||
number
|
||
state
|
||
title
|
||
merged_at: mergedAt
|
||
updated_at: updatedAt
|
||
user: author {
|
||
login
|
||
... on User {
|
||
name
|
||
}
|
||
}
|
||
repository {
|
||
...RepositoryParts
|
||
}
|
||
labels(last: 100) {
|
||
nodes {
|
||
name
|
||
}
|
||
}
|
||
}
|
||
${i}
|
||
`,t.treeEntry=r.gql`
|
||
fragment TreeEntryParts on TreeEntry {
|
||
path: name
|
||
sha: oid
|
||
type
|
||
mode
|
||
}
|
||
`,t.fileEntry=r.gql`
|
||
fragment FileEntryParts on TreeEntry {
|
||
name
|
||
sha: oid
|
||
type
|
||
blob: object {
|
||
... on Blob {
|
||
size: byteSize
|
||
}
|
||
}
|
||
}
|
||
`},8400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,p(n(12244));var r=d(n(63252)),i=d(n(93433)),o=n(13856),a=n(33806),s=d(n(99312)),l=p(n(33870)),u=d(n(24759)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:y}=a.unsentRequest,b="https://www.githubstatus.com",w=`${b}/api/v2/components.json`,_=["API Requests","Issues, Pull Requests, Projects"];t.default=class{constructor(e,t={}){var n;if(v(this,"lock",void 0),v(this,"api",void 0),v(this,"options",void 0),v(this,"originRepo",void 0),v(this,"isBranchConfigured",void 0),v(this,"repo",void 0),v(this,"openAuthoringEnabled",void 0),v(this,"useOpenAuthoring",void 0),v(this,"alwaysForkEnabled",void 0),v(this,"branch",void 0),v(this,"apiRoot",void 0),v(this,"mediaFolder",void 0),v(this,"previewContext",void 0),v(this,"token",void 0),v(this,"tokenKeyword",void 0),v(this,"squashMerges",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"useGraphql",void 0),v(this,"baseUrl",void 0),v(this,"bypassWriteAccessCheckForAppTokens",!1),v(this,"_currentUserPromise",void 0),v(this,"_userIsOriginMaintainerPromises",void 0),v(this,"_mediaDisplayURLSem",void 0),v(this,"getCursorAndFiles",((e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last")),{cursor:a.Cursor.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}})),this.options=g({proxied:!1,API:null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitHub backend needs a "repo" in the backend configuration.');if(this.api=this.options.API||null,this.isBranchConfigured=!!e.backend.branch,this.openAuthoringEnabled=e.backend.open_authoring||!1,this.openAuthoringEnabled){if(!this.options.useWorkflow)throw new Error("backend.open_authoring is true but publish_mode is not set to editorial_workflow.");this.originRepo=e.backend.repo||""}else this.repo=this.originRepo=e.backend.repo||"";this.alwaysForkEnabled=e.backend.always_fork||!1,this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.apiRoot=e.backend.api_root||"https://api.github.com",this.token="",this.tokenKeyword="token",this.baseUrl=e.backend.base_url,this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.useGraphql=e.backend.use_graphql||!1,this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){const e=await y(w).then((e=>e.json())).then((e=>e.components.filter((e=>_.includes(e.name))).every((e=>"operational"===e.status)))).catch((e=>(console.warn("Failed getting GitHub status",e),!0)));let t=!1;var n,r;return e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.getUser({token:null!==(r=this.token)&&void 0!==r?r:""}).then((e=>!!e)).catch((e=>(console.warn("Failed getting GitHub user",e),!1))))||!1),{auth:{status:t},api:{status:e,statusPage:b}}}authComponent(){const e=e=>(0,c.jsx)(s.default,h({},e,{backend:this}));return e.displayName="AuthenticationPage",e}restoreUser(e){return this.openAuthoringEnabled?this.authenticateWithFork({userData:e,getPermissionToFork:()=>!0}).then((()=>this.authenticate(e))):this.authenticate(e)}async pollUntilForkExists({repo:e,token:t}){let n=!1;for(;!n;)n=await y(`${this.apiRoot}/repos/${e}`,{headers:{Authorization:`${this.tokenKeyword} ${t}`}}).then((()=>!0)).catch((e=>e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),!1):Promise.reject(e))),n||await new Promise((e=>setTimeout(e,250)));return Promise.resolve()}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=y(`${this.apiRoot}/user`,{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then((e=>e.json()))),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=y(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`${this.tokenKeyword} ${t}`}}).then((e=>e.json())).then((({permission:e})=>"admin"===e||"write"===e))),this._userIsOriginMaintainerPromises[n]}async forkExists({token:e}){try{const t=await this.currentUser({token:e}),n=this.originRepo.split("/")[1],r=await y(`${this.apiRoot}/repos/${t.login}/${n}`,{method:"GET",headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then((e=>e.json()));return!0===r.fork&&r.parent&&r.parent.full_name.toLowerCase()===this.originRepo.toLowerCase()}catch{return!1}}async authenticateWithFork({userData:e,getPermissionToFork:t}){if(!this.openAuthoringEnabled)throw new Error("Cannot authenticate with fork; Open Authoring is turned off.");const n=e.token;if(!this.alwaysForkEnabled&&await this.userIsOriginMaintainer({token:n}))return this.repo=this.originRepo,this.useOpenAuthoring=!1,Promise.resolve();const r=await this.currentUser({token:n}),i=this.originRepo.split("/")[1];if(this.repo=`${r.login}/${i}`,this.useOpenAuthoring=!0,await this.forkExists({token:n}))return y(`${this.apiRoot}/repos/${this.repo}/merge-upstream`,{method:"POST",headers:{Authorization:`${this.tokenKeyword} ${n}`},body:JSON.stringify({branch:this.branch})});{await t();const e=await y(`${this.apiRoot}/repos/${this.originRepo}/forks`,{method:"POST",headers:{Authorization:`${this.tokenKeyword} ${n}`}}).then((e=>e.json()));return this.pollUntilForkExists({repo:e.full_name,token:n})}}async authenticate(e){if(this.token=e.token,!this.isBranchConfigured){const e=await y(`${this.apiRoot}/repos/${this.originRepo}`,{headers:{Authorization:`token ${this.token}`}}).then((e=>e.json())).catch((()=>null));e&&e.default_branch&&(this.branch=e.default_branch)}const t=this.useGraphql?u.default:l.default;this.api=new t({token:this.token,tokenKeyword:this.tokenKeyword,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,useOpenAuthoring:this.useOpenAuthoring,initialWorkflowStatus:this.options.initialWorkflowStatus,baseUrl:this.baseUrl,getUser:this.currentUser});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=o.stripIndent`
|
||
Repo "${this.repo}" not found.
|
||
|
||
Please ensure the repo information is spelled correctly.
|
||
|
||
If the repo is private, make sure you're logged into a GitHub account with access.
|
||
|
||
If your repo is under an organization, ensure the organization has granted access to Decap CMS.
|
||
`,e}))&&!this.bypassWriteAccessCheckForAppTokens)throw new Error("Your GitHub user account does not have access to this repo.");return g(g({},n),{},{token:e.token,useOpenAuthoring:this.useOpenAuthoring})}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>(0,a.filterByExtension)(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),l.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n,r){const i=this.api.originRepoURL;return await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:i,depth:n}).then((e=>e.filter((e=>(!r||r.test(e.path))&&(0,a.filterByExtension)(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:i})),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){const t=this.useOpenAuthoring?this.api.originRepoURL:this.api.repoURL;return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),l.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}getMedia(e=this.mediaFolder){return this.api.listFiles(e).then((e=>e.map((({id:e,name:t,size:n,path:r})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r})))))}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,r.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:o}=e,a=o?URL.createObjectURL(o):"";return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}return{entries:await(0,a.entriesByFiles)(i.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),l.API_NAME),cursor:i.cursor}}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,t.id,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))),r=(0,a.basename)(t.path),i=(0,a.blobToFileObj)(r,n);return{id:t.id,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=this.api.generateContentKey(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=this.api.generateContentKey(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}}},48638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.DecapCmsBackendGithub=void 0,Object.defineProperty(t,"GitHubBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(8400)),i=a(n(33870)),o=a(n(99312));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGithub={GitHubBackend:r.default,API:i.default,AuthenticationPage:o.default}},61526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateBranch=t.reopenPullRequest=t.deleteBranch=t.createPullRequest=t.createBranchAndPullRequest=t.createBranch=t.closePullRequestAndDeleteBranch=t.closePullRequest=void 0;var r=n(21488),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(16689));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.updateBranch=r.gql`
|
||
mutation updateRef($input: UpdateRefInput!) {
|
||
updateRef(input: $input) {
|
||
branch: ref {
|
||
...BranchParts
|
||
}
|
||
}
|
||
}
|
||
${i.branch}
|
||
`;const a="\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n",s=(t.deleteBranch=r.gql`
|
||
mutation deleteRef($deleteRefInput: DeleteRefInput!) {
|
||
${a}
|
||
}
|
||
`,"\nclosePullRequest(input: $closePullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n"),l=(t.closePullRequest=r.gql`
|
||
mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!) {
|
||
${s}
|
||
}
|
||
${i.pullRequest}
|
||
`,t.closePullRequestAndDeleteBranch=r.gql`
|
||
mutation closePullRequestAndDeleteBranch(
|
||
$closePullRequestInput: ClosePullRequestInput!
|
||
$deleteRefInput: DeleteRefInput!
|
||
) {
|
||
${s}
|
||
${a}
|
||
}
|
||
${i.pullRequest}
|
||
`,"\n createPullRequest(input: $createPullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n ");t.createPullRequest=r.gql`
|
||
mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {
|
||
${l}
|
||
}
|
||
${i.pullRequest}
|
||
`,t.createBranch=r.gql`
|
||
mutation createBranch($createRefInput: CreateRefInput!) {
|
||
createRef(input: $createRefInput) {
|
||
branch: ref {
|
||
...BranchParts
|
||
}
|
||
}
|
||
}
|
||
${i.branch}
|
||
`,t.createBranchAndPullRequest=r.gql`
|
||
mutation createBranchAndPullRequest(
|
||
$createRefInput: CreateRefInput!
|
||
$createPullRequestInput: CreatePullRequestInput!
|
||
) {
|
||
createRef(input: $createRefInput) {
|
||
branch: ref {
|
||
...BranchParts
|
||
}
|
||
}
|
||
${l}
|
||
}
|
||
${i.branch}
|
||
${i.pullRequest}
|
||
`,t.reopenPullRequest=r.gql`
|
||
mutation reopenPullRequest($reopenPullRequestInput: ReopenPullRequestInput!) {
|
||
reopenPullRequest(input: $reopenPullRequestInput) {
|
||
clientMutationId
|
||
pullRequest {
|
||
...PullRequestParts
|
||
}
|
||
}
|
||
}
|
||
${i.pullRequest}
|
||
`},66654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileSha=t.branch=t.blob=void 0,t.files=function(e){return r.gql`
|
||
query files($owner: String!, $name: String!, $expression: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
object(expression: $expression) {
|
||
${function(e=1){const t="PLACE_HOLDER";let n=i.oneLine`
|
||
...ObjectParts
|
||
... on Tree {
|
||
entries {
|
||
...FileEntryParts
|
||
${t}
|
||
}
|
||
}
|
||
`;for(let r=0;r<e-1;r++)n=n.replace(t,i.oneLine`
|
||
object {
|
||
... on Tree {
|
||
entries {
|
||
...FileEntryParts
|
||
${t}
|
||
}
|
||
}
|
||
}
|
||
`);return n=n.replace(t,""),n}(e)}
|
||
}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.object}
|
||
${o.fileEntry}
|
||
`},t.user=t.statues=t.repository=t.repoPermission=t.pullRequests=t.pullRequestAndBranch=t.pullRequest=t.openAuthoringBranches=void 0;var r=n(21488),i=n(13856),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(16689));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.repoPermission=r.gql`
|
||
query repoPermission($owner: String!, $name: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
viewerPermission
|
||
}
|
||
}
|
||
${o.repository}
|
||
`,t.user=r.gql`
|
||
query {
|
||
viewer {
|
||
id
|
||
avatar_url: avatarUrl
|
||
name
|
||
login
|
||
}
|
||
}
|
||
`,t.blob=r.gql`
|
||
query blob($owner: String!, $name: String!, $expression: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
object(expression: $expression) {
|
||
... on Blob {
|
||
...BlobWithTextParts
|
||
}
|
||
}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.blobWithText}
|
||
`,t.statues=r.gql`
|
||
query statues($owner: String!, $name: String!, $sha: GitObjectID!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
object(oid: $sha) {
|
||
...ObjectParts
|
||
... on Commit {
|
||
status {
|
||
id
|
||
contexts {
|
||
id
|
||
context
|
||
state
|
||
target_url: targetUrl
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.object}
|
||
`;const s="\nbranch: ref(qualifiedName: $qualifiedName) {\n ...BranchParts\n}\n",l=(t.branch=r.gql`
|
||
query branch($owner: String!, $name: String!, $qualifiedName: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
${s}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.branch}
|
||
`,t.openAuthoringBranches=r.gql`
|
||
query openAuthoringBranches($owner: String!, $name: String!, $refPrefix: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
refs(refPrefix: $refPrefix, last: 100) {
|
||
nodes {
|
||
...BranchParts
|
||
}
|
||
}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.branch}
|
||
`,t.repository=r.gql`
|
||
query repository($owner: String!, $name: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
}
|
||
}
|
||
${o.repository}
|
||
`,"\npullRequest(number: $number) {\n ...PullRequestParts\n}\n");t.pullRequest=r.gql`
|
||
query pullRequest($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
id
|
||
${l}
|
||
}
|
||
}
|
||
${o.pullRequest}
|
||
`,t.pullRequests=r.gql`
|
||
query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {
|
||
repository(owner: $owner, name: $name) {
|
||
id
|
||
pullRequests(last: 100, headRefName: $head, states: $states) {
|
||
nodes {
|
||
...PullRequestParts
|
||
}
|
||
}
|
||
}
|
||
}
|
||
${o.pullRequest}
|
||
`,t.pullRequestAndBranch=r.gql`
|
||
query pullRequestAndBranch($owner: String!, $name: String!, $originRepoOwner: String!, $originRepoName: String!, $qualifiedName: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
${s}
|
||
}
|
||
origin: repository(owner: $originRepoOwner, name: $originRepoName) {
|
||
...RepositoryParts
|
||
${l}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.branch}
|
||
${o.pullRequest}
|
||
`,t.fileSha=r.gql`
|
||
query fileSha($owner: String!, $name: String!, $expression: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
...RepositoryParts
|
||
file: object(expression: $expression) {
|
||
...ObjectParts
|
||
}
|
||
}
|
||
}
|
||
${o.repository}
|
||
${o.object}
|
||
`},22026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0,t.getMaxAccess=C;var r=v(n(93433)),i=v(n(36346)),o=v(n(83465)),a=v(n(85395)),s=n(34600),l=n(70468),u=n(29206),c=n(96044),d=n(33806),f=n(95978),p=n(46670),h=n(21023),m=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(31183));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="no-cache",x=t.API_NAME="GitLab";var E=function(e){return e.CREATE="create",e.DELETE="delete",e.MOVE="move",e.UPDATE="update",e}(E||{}),k=function(e){return e.Pending="pending",e.Running="running",e.Success="success",e.Failed="failed",e.Canceled="canceled",e}(k||{});function C(e){return e.reduce(((e,t)=>t.group_access_level>e.group_access_level?t:e),e[0])}function S(e,t,n){for(let r=0;r<e.length;r+=t)n(e.slice(r,r+t))}t.default=class{constructor(e){w(this,"apiRoot",void 0),w(this,"graphQLAPIRoot",void 0),w(this,"token",void 0),w(this,"branch",void 0),w(this,"useOpenAuthoring",void 0),w(this,"repo",void 0),w(this,"repoURL",void 0),w(this,"commitAuthor",void 0),w(this,"squashMerges",void 0),w(this,"initialWorkflowStatus",void 0),w(this,"cmsLabelPrefix",void 0),w(this,"graphQLClient",void 0),w(this,"withAuthorizationHeaders",(e=>{const t=d.unsentRequest.withHeaders(this.token?{Authorization:`Bearer ${this.token}`}:{},e);return Promise.resolve(t)})),w(this,"buildRequest",(async e=>{const t=d.unsentRequest.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);return n.has("cache")?n:d.unsentRequest.withNoCache(n)})),w(this,"request",(async e=>{try{return(0,d.requestWithBackoff)(this,e)}catch(e){throw new d.APIError(e.message,null,x)}})),w(this,"responseToJSON",(0,d.responseParser)({format:"json",apiName:x})),w(this,"responseToBlob",(0,d.responseParser)({format:"blob",apiName:x})),w(this,"responseToText",(0,d.responseParser)({format:"text",apiName:x})),w(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),w(this,"requestText",(e=>this.request(e).then(this.responseToText))),w(this,"user",(()=>this.requestJSON("/user"))),w(this,"WRITE_ACCESS",30),w(this,"MAINTAINER_ACCESS",40),w(this,"hasWriteAccess",(async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=C(e);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}return!1})),w(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch}={})=>await(0,d.readFile)(t,(async()=>await this.request({url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:r},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),d.localForage,n))),w(this,"getCursorFromHeaders",(e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=(0,d.parseLinkHeader)(e.get("Link")),a=(0,p.Map)(o).keySeq().flatMap((e=>"prev"===e&&t>1||"next"===e&&t<n||"first"===e&&t>1||"last"===e&&t<n?[e]:[]));return d.Cursor.create({actions:a,meta:{page:t,count:i,pageSize:r,pageCount:n},data:{links:o}})})),w(this,"getCursor",(({headers:e})=>this.getCursorFromHeaders(e))),w(this,"fetchCursor",(e=>(0,a.default)([d.unsentRequest.withMethod("HEAD"),this.request,(0,d.then)(this.getCursor)])(e))),w(this,"fetchCursorAndEntries",(e=>(0,a.default)([d.unsentRequest.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch((e=>{if(404===e.status)return[];throw e}))]),(0,d.then)((([e,t])=>({cursor:e,entries:t})))])(e))),w(this,"listFiles",(async(e,t=!1)=>{const{entries:n,cursor:r}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:this.branch,recursive:t}});return{files:n.filter((({type:e})=>"blob"===e)),cursor:r}})),w(this,"traverseCursor",(async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter((({type:e})=>"blob"===e)),cursor:i}})),w(this,"listAllFilesGraphQL",(async(e,t,n)=>{const r=[];let i,o;do{i=await this.graphQLClient.query({query:m.files,variables:{repo:this.repo,branch:n,path:e,recursive:t,cursor:o}}),r.push(...i.data.project.repository.tree.blobs.nodes),o=i.data.project.repository.tree.blobs.pageInfo.endCursor}while(i.data.project.repository.tree.blobs.pageInfo.hasNextPage);return r})),w(this,"readFilesGraphQL",(async e=>{const t=e.map((({path:e})=>e)),n=[];S(t,90,(e=>{n.push(this.graphQLClient.query({query:m.blobs,variables:{repo:this.repo,branch:this.branch,paths:e},fetchPolicy:"cache-first"}))}));const r=[];S(t,8,(e=>{r.push(this.graphQLClient.query({query:m.lastCommits(e),variables:{repo:this.repo,branch:this.branch},fetchPolicy:"cache-first"}))}));const[i,o]=await Promise.all([(await Promise.all(n)).map((e=>e.data.project.repository.blobs.nodes)),(await Promise.all(r)).map((e=>Object.values(e.data.project.repository).map((({lastCommit:e})=>e)).filter(Boolean)))]),a=i.flat().map((e=>e.data)),s=o.flat().map((({author:e,authoredDate:t,authorName:n})=>({author:e?e.name||e.username||e.publicEmail:n,updatedOn:t})));return e.map(((e,t)=>({file:b(b({},e),s[t]),data:a[t]})))})),w(this,"listAllFiles",(async(e,t=!1,n=this.branch)=>{if(this.graphQLClient)return await this.listAllFilesGraphQL(e,t,n);const r=[];let{cursor:i,entries:o}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:n,per_page:100,recursive:t}});for(r.push(...o);i&&i.actions.has("next");){const e=i.data.getIn(["links","next"]),{cursor:t,entries:n}=await this.fetchCursorAndEntries(e);r.push(...n),i=t}return r.filter((({type:e})=>"blob"===e))})),w(this,"toBase64",(e=>Promise.resolve(f.Base64.encode(e)))),w(this,"fromBase64",(e=>f.Base64.decode(e))),w(this,"deleteFiles",((e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}const r=e.map((e=>({path:e,action:E.DELETE})));return this.uploadAndCommit(r,{commitMessage:t})})),this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.graphQLAPIRoot=e.graphQLAPIRoot||"https://gitlab.com/api/graphql",this.token=e.token||!1,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL=`/projects/${encodeURIComponent(this.repo)}`,this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix,!0===e.useGraphQL&&(this.graphQLClient=this.getApolloClient())}getApolloClient(){const e=(0,c.setContext)(((e,{headers:t})=>({headers:b(b({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`token ${this.token}`:""})}))),t=(0,u.createHttpLink)({uri:this.graphQLAPIRoot});return new s.ApolloClient({link:e.concat(t),cache:new l.InMemoryCache,defaultOptions:{watchQuery:{fetchPolicy:_,errorPolicy:"ignore"},query:{fetchPolicy:_,errorPolicy:"all"}}})}reset(){var e;return null===(e=this.graphQLClient)||void 0===e?void 0:e.resetStore()}async readFileMetadata(e,t){return await(0,d.readFileMetadata)(t,(async()=>{try{const t=(await this.requestJSON({url:`${this.repoURL}/repository/commits`,params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}}),d.localForage)}async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,{commitMessage:t="",branch:n=this.branch,newBranch:r=!1}){const i=e.map((e=>b(b({action:e.action,file_path:e.path},e.oldPath?{previous_path:e.oldPath}:{}),void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{}))),o=b({branch:n,commit_message:t,actions:i},r?{start_branch:this.branch}:{});if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;o.author_name=e,o.author_email=t}try{return await this.requestJSON({url:`${this.repoURL}/repository/commits`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)})}catch(e){const t=e.message||"";throw r&&t.includes(`Could not update ${n}`)&&await(0,d.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),x),e}}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,a]=await Promise.all([(0,i.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let s,l=E.CREATE,u=(0,r.default)(e.path,"/");return a&&(s=e.newPath&&u,l=e.newPath&&e.newPath!==s?E.MOVE:E.UPDATE,u=e.newPath?(0,r.default)(e.newPath,"/"):u),{action:l,base64Content:n,path:u,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===E.MOVE))){const r=(0,h.dirname)(e.oldPath),i=(0,h.dirname)(e.path);(await this.listAllFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:E.MOVE,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}async getMergeRequests(e){return(await this.requestJSON({url:`${this.repoURL}/merge_requests`,params:b({state:"opened",labels:"Any",per_page:100,target_branch:this.branch},e?{source_branch:e}:{})})).filter((e=>e.source_branch.startsWith(d.CMS_BRANCH_PREFIX)&&e.labels.some((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getMergeRequests()).map((e=>e.source_branch))}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then((()=>!0)).catch((e=>{if(e instanceof d.APIError&&404===e.status)return!1;throw e}))}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new d.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestJSON({url:`${this.repoURL}/repository/compare`,params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new d.APIError("Diff limit reached",null,x);return n.diffs.map((e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}}))}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,d.parseContentKey)(e),r=(0,d.branchFromContentKey)(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map((async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}}))),s=i.labels.find((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)));return{collection:t,slug:n,status:(0,d.labelToStatus)(s,this.cmsLabelPrefix),diffs:a,updatedAt:i.updated_at,pullRequestAuthor:i.author.name}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase?skip_ci=true`}),n=1;for(;t.rebase_in_progress&&(await new Promise((e=>setTimeout(e,1e3))),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>30));)n++;if(t.rebase_in_progress)throw new d.APIError("Timed out rebasing merge request",null,x);if(t.merge_error)throw new d.APIError(`Rebase error: ${t.merge_error}`,null,x)}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:`${this.repoURL}/merge_requests`,params:{source_branch:e,target_branch:this.branch,title:t,description:d.DEFAULT_PR_BODY,labels:(0,d.statusToLabel)(n,this.cmsLabelPrefix),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=(0,d.generateContentKey)(n.collectionName,t),i=(0,d.branchFromContentKey)(r);if(n.unpublished){const t=await this.getBranchMergeRequest(i);await this.rebaseMergeRequest(t);const[r,o]=await Promise.all([this.getCommitItems(e,i),this.getDifferences(i)]);for(const e of o.filter((e=>e.binary)))r.some((t=>t.path===e.path))||r.push({action:E.DELETE,path:e.newPath});await this.uploadAndCommit(r,{commitMessage:n.commitMessage,branch:i})}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:i,newBranch:!0}),await this.createMergeRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=(0,d.generateContentKey)(e,t),i=(0,d.branchFromContentKey)(r),o=await this.getBranchMergeRequest(i),a=[...o.labels.filter((e=>!(0,d.isCMSLabel)(e,this.cmsLabelPrefix))),(0,d.statusToLabel)(n,this.cmsLabelPrefix)];await this.updateMergeRequestLabels(o,a)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:d.MERGE_COMMIT_MESSAGE,squash_commit_message:d.MERGE_COMMIT_MESSAGE,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.mergeMergeRequest(i)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some((t=>t.name===e))}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.closeMergeRequest(i),await this.deleteBranch(r)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);return(await this.getMergeRequestStatues(i,r)).map((({name:e,status:t,target_url:n})=>({context:e,state:t===k.Success?d.PreviewState.Success:d.PreviewState.Other,target_url:n})))}async getUnpublishedEntrySha(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n);return(await this.getBranchMergeRequest(r)).sha}}},99449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e80yw6v0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),f={pkce:({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r})=>new a.PkceAuthenticator({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/json; charset=utf-8"}),implicit:({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})=>new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})};class p extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;f[e]?(this.auth=f[e]({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:"oauth/token",clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))):this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}t.default=p,c(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},37943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(5648)),i=d(n(93433)),o=d(n(63252)),a=n(13856),s=n(33806),l=d(n(99449)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(22026));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e,t={}){if(h(this,"lock",void 0),h(this,"api",void 0),h(this,"options",void 0),h(this,"repo",void 0),h(this,"isBranchConfigured",void 0),h(this,"branch",void 0),h(this,"apiRoot",void 0),h(this,"token",void 0),h(this,"squashMerges",void 0),h(this,"cmsLabelPrefix",void 0),h(this,"mediaFolder",void 0),h(this,"previewContext",void 0),h(this,"useGraphQL",void 0),h(this,"graphQLAPIRoot",void 0),h(this,"_mediaDisplayURLSem",void 0),this.options=p({proxied:!1,API:null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitLab backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.isBranchConfigured=!!e.backend.branch,this.apiRoot=e.backend.api_root||"https://gitlab.com/api/v4",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.useGraphQL=e.backend.use_graphql||!1,this.graphQLAPIRoot=e.backend.graphql_api_root||"https://gitlab.com/api/graphql",this.lock=(0,s.asyncLock)()}isGitBackend(){return!0}async status(){var e;return{auth:{status:await(null===(e=this.api)||void 0===e?void 0:e.user().then((e=>!!e)).catch((e=>(console.warn("Failed getting GitLab user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new u.default({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus,useGraphQL:this.useGraphQL,graphQLAPIRoot:this.graphQLAPIRoot});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=a.stripIndent`
|
||
Repo "${this.repo}" not found.
|
||
|
||
Please ensure the repo information is spelled correctly.
|
||
|
||
If the repo is private, make sure you're logged into a GitLab account with access.
|
||
`,e})))throw new Error("Your GitLab user account does not have access to this repo.");if(!this.isBranchConfigured){const e=await(0,s.getDefaultBranchName)({backend:"gitlab",repo:this.repo,token:this.token,apiRoot:this.apiRoot});e&&(this.branch=e)}return p(p({},t),{},{login:t.username,token:e.token})}async logout(){this.token=null}getToken(){return Promise.resolve(this.token)}filterFile(e,t,n,i){const o=(0,r.default)(t.path.split(e)[1]||"/","/");return(0,s.filterByExtension)(t,n)&&o.split("/").length<=i}async entriesByFolder(e,t,n){let r;const i=await(0,s.entriesByFolder)((()=>this.api.listFiles(e,n>1).then((({files:i,cursor:o})=>(r=o.mergeMeta({folder:e,extension:t,depth:n}),i.filter((r=>this.filterFile(e,r,t,n))))))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME);return i[s.CURSOR_COMPATIBILITY_SYMBOL]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter((r=>this.filterFile(e,r,t,n)))}async allEntriesByFolder(e,t,n){return await(0,s.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:s.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then((e=>({name:e.name,sha:e.commit.id}))),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n),customFetch:this.useGraphQL?e=>this.api.readFilesGraphQL(e):void 0})}entriesByFiles(e){return(0,s.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,name:t,path:n}})))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,s.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,s.basename)(e),n=await(0,s.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,s.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,s.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,s.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,a=URL.createObjectURL(n);return{displayURL:a,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:a,id:r}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r,i,o;const[a,l,c]=[null===(r=e.meta)||void 0===r?void 0:r.get("folder"),null===(i=e.meta)||void 0===i?void 0:i.get("depth"),null===(o=e.meta)||void 0===o?void 0:o.get("extension")];return a&&l&&c&&(t=t.filter((e=>this.filterFile(a,e,c,l))),n=n.mergeMeta({folder:a,extension:c,depth:l})),{entries:await(0,s.entriesByFiles)(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}loadMediaFile(e,t){return(0,s.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))).then((e=>{const n=(0,s.basename)(t.path),r=(0,s.blobToFileObj)(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}}))}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,s.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,s.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,s.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,s.generateContentKey)(e,t);return(0,s.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return(0,s.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,s.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},34554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.DecapCmsBackendGitlab=void 0,Object.defineProperty(t,"GitLabBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(37943)),i=a(n(22026)),o=a(n(99449));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGitlab={GitLabBackend:r.default,API:i.default,AuthenticationPage:o.default}},31183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.files=t.blobs=void 0,t.lastCommits=function(e){const t=e.map(((e,t)=>i.oneLine`
|
||
tree${t}: tree(ref: $branch, path: "${e}") {
|
||
lastCommit {
|
||
authorName
|
||
authoredDate
|
||
author {
|
||
id
|
||
username
|
||
name
|
||
publicEmail
|
||
}
|
||
}
|
||
}
|
||
`)).join("\n");return r.gql`
|
||
query lastCommits($repo: ID!, $branch: String!) {
|
||
project(fullPath: $repo) {
|
||
repository {
|
||
${t}
|
||
}
|
||
}
|
||
}
|
||
`};var r=n(21488),i=n(13856);t.files=r.gql`
|
||
query files($repo: ID!, $branch: String!, $path: String!, $recursive: Boolean!, $cursor: String) {
|
||
project(fullPath: $repo) {
|
||
repository {
|
||
tree(ref: $branch, path: $path, recursive: $recursive) {
|
||
blobs(after: $cursor) {
|
||
nodes {
|
||
type
|
||
id: sha
|
||
path
|
||
name
|
||
}
|
||
pageInfo {
|
||
endCursor
|
||
hasNextPage
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,t.blobs=r.gql`
|
||
query blobs($repo: ID!, $branch: String!, $paths: [String!]!) {
|
||
project(fullPath: $repo) {
|
||
repository {
|
||
blobs(ref: $branch, paths: $paths) {
|
||
nodes {
|
||
id
|
||
data: rawBlob
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`},60737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(12244)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e1ektlme1",label:"StyledAuthenticationPage"})({name:"8azftg",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh"}),d=(0,r.default)("button",{target:"e1ektlme0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class f extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,a.renderPageLogo)(e.logo_url),(0,s.jsx)(d,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=f,u(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},9189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(33806),o=(r=n(60737))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function u(e){const t=await e.toBase64();return{path:e.path,content:t,encoding:"base64"}}function c({id:e,content:t,encoding:n,path:r,name:o}){let a=new Uint8Array(0);if("base64"!==n)console.error(`Unsupported encoding '${n}' for file '${r}'`);else{const e=atob(t);a=new Uint8Array(e.length);for(let t=0;t<e.length;t++)a[t]=e.charCodeAt(t)}const s=new Blob([a]),l=(0,i.blobToFileObj)(o,s),u=URL.createObjectURL(l);return{id:e,name:o,path:r,file:l,size:l.size,url:u,displayURL:u}}t.default=class{constructor(e,t={}){if(l(this,"proxyUrl",void 0),l(this,"mediaFolder",void 0),l(this,"options",void 0),l(this,"branch",void 0),l(this,"cmsLabelPrefix",void 0),!e.backend.proxy_url)throw new Error('The Proxy backend needs a "proxy_url" in the backend configuration.');this.branch=e.backend.branch||"master",this.proxyUrl=e.backend.proxy_url,this.mediaFolder=e.media_folder,this.options=t,this.cmsLabelPrefix=e.backend.cms_label_prefix}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return o.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}async request(e){const t=await i.unsentRequest.fetchWithTimeout(this.proxyUrl,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(s({branch:this.branch},e))}),n=await t.json();if(t.ok)return n;throw new i.APIError(n.error,t.status,"Proxy")}entriesByFolder(e,t,n){return this.request({action:"entriesByFolder",params:{branch:this.branch,folder:e,extension:t,depth:n}})}entriesByFiles(e){return this.request({action:"entriesByFiles",params:{branch:this.branch,files:e}})}getEntry(e){return this.request({action:"getEntry",params:{branch:this.branch,path:e}})}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry({id:e,collection:t,slug:n}){try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:e,collection:t,slug:n,cmsLabelPrefix:this.cmsLabelPrefix}})}catch(e){if(404===e.status)throw new i.EditorialWorkflowError("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){return c(await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}}))}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async persistEntry(e,t){const n=await Promise.all(e.assets.map(u));return this.request({action:"persistEntry",params:{branch:this.branch,dataFiles:e.dataFiles,assets:n,options:s(s({},t),{},{status:t.status||this.options.initialWorkflowStatus}),cmsLabelPrefix:this.cmsLabelPrefix}})}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n,cmsLabelPrefix:this.cmsLabelPrefix}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async getMedia(e=this.mediaFolder){return(await this.request({action:"getMedia",params:{branch:this.branch,mediaFolder:e}})).map(c)}async getMediaFile(e){return c(await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}}))}async persistMedia(e,t){const n=await u(e);return c(await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}}))}deleteFiles(e,t){return this.request({action:"deleteFiles",params:{branch:this.branch,paths:e,options:{commitMessage:t}}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}},99307:(e,t,n)=>{"use strict";Object.defineProperty(t,"JZ",{enumerable:!0,get:function(){return r.default}});var r=o(n(9189)),i=o(n(60737));function o(e){return e&&e.__esModule?e:{default:e}}r.default,i.default},69730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(12244)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e141mjkc2",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)(a.Icon,{target:"e141mjkc1",label:"PageLogoIcon"})({name:"pit38s",styles:"height:auto"}),f=(0,r.default)("button",{target:"e141mjkc0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}componentDidMount(){!1===this.props.config.backend.login&&this.props.onLogin(this.state)}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"decap-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},57058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFolderFiles=b;var r=f(n(45455)),i=f(n(17195)),o=f(n(85701)),a=f(n(85121)),s=f(n(55027)),l=n(29987),u=n(33806),c=n(21023),d=f(n(69730));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function m(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function g(e,t){(0,i.default)(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const v=10;function y(e,t,n,r,i){const o=n.length,a=Math.floor(o/v);return u.Cursor.create({actions:[...r<a?["next","last"]:[],...r>0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:v,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function b(e,t,n,r,i=[],o=t){return r<=0||Object.keys(e[t]||{}).forEach((a=>{if(!(0,c.extname)(a))return b(e[t],a,n,r-1,i,`${o}/${a}`);{const r=e[t][a];n&&!a.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${a}`})}})),i}t.default=class{constructor(e,t={}){p(this,"mediaFolder",void 0),p(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return d.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=b(window.repoFiles,n,r,a).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),u=l.slice(s*v,s*v+v),c=y(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?b(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),i=y(e,t,r,0,n),a=(0,o.default)(r,v);return a[u.CURSOR_COMPATIBILITY_SYMBOL]=i,Promise.resolve(a)}entriesByFiles(e){return Promise.all(e.map((e=>({file:e,data:h(e.path,window.repoFiles).content}))))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:h(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(r):Promise.reject(new u.EditorialWorkflowError("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,i,o,a){const s=[];t.forEach((t=>{var n;const{path:i,newPath:o,raw:a}=t,l=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find((e=>e.path===i)),u=l?l.originalPath:i;s.push({originalPath:u,id:o||i,path:o||i,newFile:(0,r.default)(h(u,window.repoFiles)),status:"added",content:a})})),n.forEach((e=>{const t=this.normalizeAsset(e);s.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})})),window.repoFilesUnpublished[e]={slug:i,collection:o,status:a,diffs:s,updatedAt:(new Date).toISOString()}}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach((e=>{const{path:t,raw:n}=e;m(t,n,window.repoFiles)})),e.assets.forEach((e=>{m(e.path,e,window.repoFiles)})),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach((e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,c.dirname)(t),r=(0,c.dirname)(e.path);b(i,t.split("/")[0],"",100).filter((e=>e.path.startsWith(n))).forEach((e=>{g(e.path,i),m(e.path.replace(n,r),e.content,i)}))}m(e.path,e.content,i)})),Promise.resolve()}getMedia(e=this.mediaFolder){const t=b(window.repoFiles,e.split("/")[0],"",100).filter((t=>t.path.startsWith(e))).map((e=>this.normalizeAsset(e.content)));return Promise.resolve(t)}async getMediaFile(e){const t=h(e,window.repoFiles).content.toString(),n=(0,u.basename)(e),r=await fetch(t).then((e=>e.blob())),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=(0,s.default)(window.URL.createObjectURL,t),o=(0,a.default)(i)?"":i;return{id:(0,l.v4)(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return m(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach((e=>{g(e,window.repoFiles)})),Promise.resolve()}async getDeployPreview(){return null}}},58908:(e,t,n)=>{"use strict";Object.defineProperty(t,"$f",{enumerable:!0,get:function(){return r.default}});var r=o(n(57058)),i=o(n(69730));function o(e){return e&&e.__esModule?e:{default:e}}r.default,i.default},76167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USE_OPEN_AUTHORING=t.LOGOUT=t.AUTH_SUCCESS=t.AUTH_REQUEST_DONE=t.AUTH_REQUEST=t.AUTH_FAILURE=void 0,t.authError=p,t.authenticate=f,t.authenticateUser=function(){return(e,t)=>{const n=t(),i=(0,r.currentBackend)(n.config);return e(d()),Promise.resolve(i.currentUser()).then((t=>{t?(t.useOpenAuthoring&&e(m()),e(f(t))):e(h())})).catch((t=>{e(p(t)),e(v())}))}},t.authenticating=d,t.doneAuthenticating=h,t.loginUser=function(e){return(t,n)=>{const o=n(),a=(0,r.currentBackend)(o.config);return t(d()),a.authenticate(e).then((e=>{e.useOpenAuthoring&&t(m()),t(f(e))})).catch((e=>{console.error(e),t((0,i.addNotification)({message:{details:e.message,key:"ui.toast.onFailToAuth"},type:"error",dismissAfter:8e3})),t(p(e))}))}},t.logout=g,t.logoutUser=v,t.useOpenAuthoring=m;var r=n(2241),i=n(5690);const o=t.AUTH_REQUEST="AUTH_REQUEST",a=t.AUTH_SUCCESS="AUTH_SUCCESS",s=t.AUTH_FAILURE="AUTH_FAILURE",l=t.AUTH_REQUEST_DONE="AUTH_REQUEST_DONE",u=t.USE_OPEN_AUTHORING="USE_OPEN_AUTHORING",c=t.LOGOUT="LOGOUT";function d(){return{type:o}}function f(e){return{type:a,payload:e}}function p(e){return{type:s,error:"Failed to authenticate",payload:e}}function h(){return{type:l}}function m(){return{type:u}}function g(){return{type:c}}function v(){return(e,t)=>{const n=t(),o=(0,r.currentBackend)(n.config);Promise.resolve(o.logout()).then((()=>{e(g()),e((0,i.clearNotifications)())}))}}},1582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewEntry=function(e){r.history.push((0,i.getNewEntryUrl)(e))},t.searchCollections=function(e,t){t?r.history.push(`/collections/${t}/search/${e}`):r.history.push(`/search/${e}`)},t.showCollection=function(e){r.history.push((0,i.getCollectionUrl)(e))};var r=n(79278),i=n(9904)},54750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG_SUCCESS=t.CONFIG_REQUEST=t.CONFIG_FAILURE=void 0,t.applyDefaults=j,t.configFailed=U,t.configLoaded=F,t.configLoading=B,t.detectProxyServer=z,t.handleLocalBackend=q,t.loadConfig=function(e={},t){return window.CMS_CONFIG?F(window.CMS_CONFIG):async n=>{n(B());try{const i=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}(),o=!(0,r.default)(e),a=!1===e.load_config_file?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch((e=>e));if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:N(await n.text())}(i,o),s=(0,l.default)(a,e);(0,d.validateConfig)(s);n(F(j(L(await q(s))))),"function"==typeof t&&t()}catch(e){throw n(U(e)),e}}},t.normalizeConfig=L,t.parseConfig=N;var r=y(n(45455)),i=y(n(5648)),o=y(n(93433)),a=y(n(60155)),s=n(46670),l=y(n(39714)),u=n(30412),c=n(61928),d=n(35276),f=n(45624),p=n(487),h=n(2241),m=n(13943),g=n(48781);const v=["sortableFields"];function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _=t.CONFIG_REQUEST="CONFIG_REQUEST",x=t.CONFIG_SUCCESS="CONFIG_SUCCESS",E=t.CONFIG_FAILURE="CONFIG_FAILURE";function k(e){return"types"in e||"field"in e}function C(e,t){return e.map((e=>{const n=t(e);return function(e){return"fields"in e}(n)?w(w({},n),{},{fields:C(n.fields,t)}):k(n)&&n.field?w(w({},n),{},{field:C([n.field],t)[0]}):k(n)&&n.types?w(w({},n),{},{types:C(n.types,t)}):n}))}function S(e){return"media_folder"in e&&!("public_folder"in e)?w(w({},e),{},{public_folder:e.media_folder}):e}const A={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function T(e){const t=Object.keys(A).filter((t=>t in e)).map((t=>{const n=A[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}}));return Object.assign({},e,...t)}function O(e){return!0===e[m.I18N]?w(w({},e),{},{[m.I18N]:m.I18N_FIELD.TRANSLATE}):!1!==e[m.I18N]&&e[m.I18N]?e:w(w({},e),{},{[m.I18N]:m.I18N_FIELD.NONE})}function P(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],i=(0,l.default)(t,e);return i.locales=n,i.default_locale=r,D(i),i}}function R(e,t){return C(e,t?O:e=>{const t=w({},e);return delete t[m.I18N],t})}function M(e){if(e&&e.structure!==m.I18N_STRUCTURE.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${m.I18N_STRUCTURE.SINGLE_FILE} structure`)}function D(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function I(e,t){const n=(0,p.getIntegrations)((0,s.fromJS)(e));return!!(0,p.selectIntegration)(n,t.name,"listEntries")}function L(e){const{collections:t=[]}=e,n=t.map((e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=C(t,T);r=w(w({},r),{},{fields:e})}if(n){const e=n.map((e=>{const t=C(e.fields,T);return w(w({},e),{},{fields:t})}));r=w(w({},r),{},{files:e})}if(r.sortableFields){const{sortableFields:t}=r;r=w(w({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,v)),{},{sortable_fields:t}),console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}return r}));return w(w({},e),{},{collections:n})}function j(e){return(0,u.produce)(e,(e=>{e.publish_mode=e.publish_mode||c.SIMPLE,e.slug=e.slug||{},e.collections=e.collections||[],!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t=`/${(0,o.default)(e.media_folder,"/")}`;"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[m.I18N];n&&(n.default_locale=n.default_locale||n.locales[0]),D(n);const r=(0,h.resolveBackend)(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let a=t[m.I18N];n&&a?(a=P(a,n),t[m.I18N]=a):(a=void 0,delete t[m.I18N]),t.fields&&(t.fields=R(t.fields,Boolean(a)));const{folder:l,files:u,view_filters:c,view_groups:d,meta:p}=t;if(l&&(t.type=g.FOLDER,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=C(t.fields,S)),t.folder=(0,i.default)(l,"/"),p&&p.path)){const e=w({name:"path",meta:!0,required:!0},p.path);t.fields=[e,...t.fields||[]]}if(u){t.type=g.FILES,M(a),delete t.nested,delete t.meta;for(const e of u){e.file=(0,o.default)(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=C(e.fields,S));let t=e[m.I18N];t&&a?(t=P(t,a),e[m.I18N]=t):(t=void 0,delete e[m.I18N]),M(t),e.fields&&(e.fields=R(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=(0,f.selectDefaultSortableFields)((0,s.fromJS)(t),r,I(e,t))),t.view_filters=(c||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),t.view_groups=(d||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),e.editor&&!t.editor&&(t.editor={preview:e.editor.preview})}}))}function N(e){const t=a.default.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}function F(e){return{type:x,payload:e}}function B(){return{type:_}}function U(e){return{type:E,error:"Error loading config",payload:e}}async function z(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{console.log(`Looking for Decap CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.log(`Detected Decap CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.log(`Decap CMS Proxy Server not detected at '${n}'`),{})}catch{return console.log(`Decap CMS Proxy Server not detected at '${n}'`),{}}}async function q(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await z(e.local_backend);return t?(0,u.produce)(e,(e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))})):e}},66145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPLOY_PREVIEW_SUCCESS=t.DEPLOY_PREVIEW_REQUEST=t.DEPLOY_PREVIEW_FAILURE=void 0,t.loadDeployPreview=function(e,t,n,l,c){return async(d,f)=>{const p=f(),h=(0,r.currentBackend)(p.config),m=e.get("name"),g=(0,i.selectDeployPreview)(p,m,t);if(!g||!g.isFetching){d(function(e,t){return{type:a,payload:{collection:e,slug:t}}}(m,t));try{const r=l?h.getDeploy(e,t,n):await h.getDeployPreview(e,t,n,c);return d(r?function(e,t,n){const{url:r,status:i}=n;return{type:s,payload:{collection:e,slug:t,url:r,status:i}}}(m,t,r):u(m,t))}catch(e){console.error(e),d((0,o.addNotification)({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},type:"error",dismissAfter:8e3})),d(u(m,t))}}}};var r=n(2241),i=n(36642),o=n(5690);const a=t.DEPLOY_PREVIEW_REQUEST="DEPLOY_PREVIEW_REQUEST",s=t.DEPLOY_PREVIEW_SUCCESS="DEPLOY_PREVIEW_SUCCESS",l=t.DEPLOY_PREVIEW_FAILURE="DEPLOY_PREVIEW_FAILURE";function u(e,t){return{type:l,payload:{collection:e,slug:t}}}},91358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNPUBLISHED_ENTRY_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE=t.UNPUBLISHED_ENTRY_REQUEST=t.UNPUBLISHED_ENTRY_REDIRECT=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS=t.UNPUBLISHED_ENTRY_DELETE_REQUEST=t.UNPUBLISHED_ENTRY_DELETE_FAILURE=t.UNPUBLISHED_ENTRIES_SUCCESS=t.UNPUBLISHED_ENTRIES_REQUEST=t.UNPUBLISHED_ENTRIES_FAILURE=void 0,t.deleteUnpublishedEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,a.currentBackend)(i.config);return n(function(e,t){return{type:D,payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then((()=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:I,payload:{collection:e,slug:t}}}(e,t))})).catch((r=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:L,payload:{collection:e,slug:t}}}(e,t))}))}},t.loadUnpublishedEntries=z,t.loadUnpublishedEntry=U,t.persistUnpublishedEntry=function(e,t){return async(n,i)=>{const o=i(),l=o.entryDraft,u=l.get("fieldsErrors"),d=(0,s.selectUnpublishedSlugs)(o,e.get("name")),f=(0,s.selectPublishedSlugs)(o,e.get("name")).concat(d);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1)&&n(z(o.collections)),!u.isEmpty())return u.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&n((0,g.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const p=(0,a.currentBackend)(o.config),v=l.get("entry"),y=(0,c.getMediaAssets)({entry:v}),b=(0,c.getSerializedEntry)(e,v),w=l.set("entry",b);n(N(e,v.get("slug")));const _=t?p.persistUnpublishedEntry:p.persistEntry;try{const t=await _.call(p,{config:o.config,collection:e,entryDraft:w,assetProxies:y,usedSlugs:f});n((0,g.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),n(F(e,b)),v.get("slug")!==t&&(await n(U(e,t)),(0,m.navigateToEntry)(e.get("name"),t))}catch(t){return n((0,g.addNotification)({message:{key:"ui.toast.onFailToPersist",details:t},type:"error",dismissAfter:8e3})),Promise.reject(n(B(t,e,v.get("slug"))))}}},t.publishUnpublishedEntry=function(e,t){return async(n,r)=>{const i=r(),o=i.collections,u=(0,a.currentBackend)(i.config),d=(0,s.selectUnpublishedEntry)(i,e,t);n(function(e,t){return{type:P,payload:{collection:e,slug:t}}}(e,t));try{await u.publishUnpublishedEntry(d),n((0,p.loadMedia)()),n((0,g.addNotification)({message:{key:"ui.toast.entryPublished"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:R,payload:{collection:e,slug:t}}}(e,t));const r=o.get(e);if(!r.has("nested"))return n((0,c.loadEntry)(r,t));{n((0,c.loadEntries)(r));const e=(0,a.slugFromCustomPath)(r,d.get("path"));(0,c.loadEntry)(r,e),t!==e&&(0,l.selectEditingDraft)(i.entryDraft)&&(0,m.navigateToEntry)(r.get("name"),e)}}catch(r){n((0,g.addNotification)({message:{key:"ui.toast.onFailToPublishEntry",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:M,payload:{collection:e,slug:t}}}(e,t))}}},t.unpublishPublishedEntry=function(e,t){return(n,r)=>{const o=r(),l=(0,a.currentBackend)(o.config),d=(0,s.selectEntry)(o,e.get("name"),t),f=(0,i.Map)().set("entry",d);return n(N(e,t)),l.deleteEntry(o,e,t).then((()=>l.persistEntry({config:o.config,collection:e,entryDraft:f,assetProxies:[],usedSlugs:(0,i.List)(),status:u.status.get("PENDING_PUBLISH")}))).then((()=>{n(F(e,d)),n((0,c.entryDeleted)(e,t)),n(U(e,t)),n((0,g.addNotification)({message:{key:"ui.toast.entryUnpublished"},type:"success",dismissAfter:4e3}))})).catch((t=>{n((0,g.addNotification)({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},type:"error",dismissAfter:8e3})),n(B(t,e,d.get("slug")))}))}},t.updateUnpublishedEntryStatus=function(e,t,n,r){return(i,o)=>{if(n===r)return;const s=o(),l=(0,a.currentBackend)(s.config);i(function(e,t){return{type:A,payload:{collection:e,slug:t}}}(e,t)),l.updateUnpublishedEntryStatus(e,t,r).then((()=>{i((0,g.addNotification)({message:{key:"ui.toast.entryUpdated"},type:"success",dismissAfter:4e3})),i(function(e,t,n){return{type:T,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))})).catch((n=>{i((0,g.addNotification)({message:{key:"ui.toast.onFailToUpdateStatus",details:n},type:"error",dismissAfter:8e3})),i(function(e,t){return{type:O,payload:{collection:e,slug:t}}}(e,t))}))}};var r=v(n(72579)),i=n(46670),o=n(33806),a=n(2241),s=n(36642),l=n(58308),u=n(61928),c=n(50236),d=n(25606),f=n(71033),p=n(68104),h=v(n(1757)),m=n(79278),g=n(5690);function v(e){return e&&e.__esModule?e:{default:e}}const y=t.UNPUBLISHED_ENTRY_REQUEST="UNPUBLISHED_ENTRY_REQUEST",b=t.UNPUBLISHED_ENTRY_SUCCESS="UNPUBLISHED_ENTRY_SUCCESS",w=t.UNPUBLISHED_ENTRY_REDIRECT="UNPUBLISHED_ENTRY_REDIRECT",_=t.UNPUBLISHED_ENTRIES_REQUEST="UNPUBLISHED_ENTRIES_REQUEST",x=t.UNPUBLISHED_ENTRIES_SUCCESS="UNPUBLISHED_ENTRIES_SUCCESS",E=t.UNPUBLISHED_ENTRIES_FAILURE="UNPUBLISHED_ENTRIES_FAILURE",k=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST="UNPUBLISHED_ENTRY_PERSIST_REQUEST",C=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",S=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE="UNPUBLISHED_ENTRY_PERSIST_FAILURE",A=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",T=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",O=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",P=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",R=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",M=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",D=t.UNPUBLISHED_ENTRY_DELETE_REQUEST="UNPUBLISHED_ENTRY_DELETE_REQUEST",I=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS="UNPUBLISHED_ENTRY_DELETE_SUCCESS",L=t.UNPUBLISHED_ENTRY_DELETE_FAILURE="UNPUBLISHED_ENTRY_DELETE_FAILURE";function j(e,t){return{type:x,payload:{entries:e,pages:t}}}function N(e,t){return{type:k,payload:{collection:e.get("name"),slug:t}}}function F(e,t){return{type:C,payload:{collection:e.get("name"),entry:t}}}function B(e,t,n){return{type:S,payload:{error:e,collection:t.get("name"),slug:n},error:e}}function U(e,t){return async(n,i)=>{const s=i(),l=(0,a.currentBackend)(s.config);if(!(0,r.default)(s.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await l.unpublishedEntries(s.collections);n(j(e,t))}catch(e){}n(function(e,t){return{type:y,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await l.unpublishedEntry(s,e,t),i=await Promise.all(r.mediaFiles.filter((e=>e.draft)).map((({url:e,file:t,path:n})=>(0,d.createAssetProxy)({path:n,url:e,file:t}))));n((0,f.addAssets)(i)),n(function(e,t){return{type:b,payload:{collection:e.get("name"),entry:t}}}(e,r)),n((0,c.createDraftFromEntry)(r))}catch(r){r.name===o.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:w,payload:{collection:e.get("name"),slug:t}}}(e,t)),n((0,c.loadEntry)(e,t))):n((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:r},type:"error",dismissAfter:8e3}))}}}function z(e){return(t,n)=>{const i=n(),o=(0,a.currentBackend)(i.config),s=(0,r.default)(i.editorialWorkflow.toJS(),"pages.ids",!1);i.config.publish_mode!==u.EDITORIAL_WORKFLOW||s||(t({type:_}),o.unpublishedEntries(e).then((e=>t(j(e.entries,e.pagination)))).catch((e=>{t((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:e},type:"error",dismissAfter:8e3})),t(function(e){return{type:E,error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)})))}}},50236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORT_ENTRIES_SUCCESS=t.SORT_ENTRIES_REQUEST=t.SORT_ENTRIES_FAILURE=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE=t.GROUP_ENTRIES_SUCCESS=t.GROUP_ENTRIES_REQUEST=t.GROUP_ENTRIES_FAILURE=t.FILTER_ENTRIES_SUCCESS=t.FILTER_ENTRIES_REQUEST=t.FILTER_ENTRIES_FAILURE=t.ENTRY_SUCCESS=t.ENTRY_REQUEST=t.ENTRY_PERSIST_SUCCESS=t.ENTRY_PERSIST_REQUEST=t.ENTRY_PERSIST_FAILURE=t.ENTRY_FAILURE=t.ENTRY_DELETE_SUCCESS=t.ENTRY_DELETE_REQUEST=t.ENTRY_DELETE_FAILURE=t.ENTRIES_SUCCESS=t.ENTRIES_REQUEST=t.ENTRIES_FAILURE=t.DRAFT_VALIDATION_ERRORS=t.DRAFT_LOCAL_BACKUP_RETRIEVED=t.DRAFT_DISCARD=t.DRAFT_CREATE_FROM_LOCAL_BACKUP=t.DRAFT_CREATE_FROM_ENTRY=t.DRAFT_CREATE_EMPTY=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY=t.DRAFT_CLEAR_ERRORS=t.DRAFT_CHANGE_FIELD=t.CHANGE_VIEW_STYLE=t.ADD_DRAFT_ENTRY_MEDIA_FILE=void 0,t.addDraftEntryMediaFile=function(e){return{type:ie,payload:e}},t.changeDraftField=function({field:e,value:t,metadata:n,entries:r,i18n:i}){return{type:G,payload:{field:e,value:t,metadata:n,entries:r,i18n:i}}},t.changeDraftFieldValidation=function(e,t){return{type:V,payload:{uniquefieldId:e,errors:t}}},t.changeViewStyle=function(e){return{type:ae,payload:{style:e}}},t.clearFieldErrors=function(){return{type:K}},t.createDraftDuplicateFromEntry=function(e){return t=>{t((0,y.waitUntil)({predicate:({type:e})=>e===$,run:()=>t(Ee(e))}))}},t.createDraftFromEntry=xe,t.createEmptyDraft=function(e,t){return async(n,r)=>{new URLSearchParams(t).forEach(((t,n)=>{e=(0,s.updateFieldByKey)(e,n,(e=>{return e.set("default",!!["true","True","TRUE"].includes(n=t)||!["false","False","FALSE"].includes(n)&&function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}(n));var n}))}));const o=e.get("fields",(0,i.List)()),a=function(e){return e.filter((e=>!e.get("meta"))).toList()}(o),l=Pe(a),u=function(e){return e.filter((e=>!0===e.get("meta"))).toList()}(o),d=Pe(u),p=r(),h=(0,c.currentBackend)(p.config);e.has("media_folder")||await(0,v.waitForMediaLibraryToLoad)(n,r());const m=function(e,t){if(!(0,E.hasI18n)(e))return{};const n=Pe(t,(function(e){return e.get(E.I18N)!==E.I18N_FIELD.DUPLICATE&&e.get(E.I18N)!==E.I18N_FIELD.TRANSLATE}));return(0,E.duplicateDefaultI18nFields)(e,n)}(e,a);let g=(0,f.createEntry)(e.get("name"),"","",{data:l,i18n:m,mediaFiles:[],meta:d});g=await h.processEntry(p,e,g),n(_e(g))}},t.createEmptyDraftData=Pe,t.deleteEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,c.currentBackend)(i.config);return n(ye(e,t)),o.deleteEntry(i,e,t).then((()=>n(be(e,t)))).catch((r=>(n((0,k.addNotification)({message:{details:r,key:"ui.toast.onFailToDelete"},type:"error",dismissAfter:8e3})),console.error(r),Promise.reject(n(we(e,t,r))))))}},t.deleteLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).deleteLocalDraftBackup(e,t)}},t.discardDraft=function(){return{type:H}},t.draftDuplicateEntry=Ee,t.emptyDraftCreated=_e,t.entriesFailed=fe,t.entriesLoaded=de,t.entriesLoading=ce,t.entryDeleteFail=we,t.entryDeleted=be,t.entryDeleting=ye,t.entryLoadError=ue,t.entryLoaded=le,t.entryLoading=se,t.entryPersistFail=ve,t.entryPersisted=ge,t.entryPersisting=me,t.filterByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:N,payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await pe(i,e);n({type:F,payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:B,payload:{collection:e.get("name"),filter:t,error:r}})}}},t.getAllEntries=pe,t.getMediaAssets=Re,t.getSerializedEntry=Me,t.groupByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:U,payload:{collection:e.get("name"),group:t}}),!o)try{const r=await pe(i,e);n({type:z,payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:q,payload:{collection:e.get("name"),group:t,error:r}})}}},t.loadEntries=Oe,t.loadEntry=Ce,t.loadLocalBackup=function(){return{type:Y}},t.localBackupRetrieved=ke,t.persistEntry=function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),a=(0,l.selectPublishedSlugs)(r,e.get("name"));if(!o.isEmpty())return o.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&t((0,k.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const s=(0,c.currentBackend)(r.config),u=i.get("entry"),d=Re({entry:u}),f=Me(e,u),p=i.set("entry",f);return t(me(e,f)),s.persistEntry({config:r.config,collection:e,entryDraft:p,assetProxies:d,usedSlugs:a}).then((async n=>{t((0,k.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),d.length>0&&await t((0,v.loadMedia)()),t(ge(e,f,n)),e.has("nested")&&await t(Oe(e)),u.get("slug")!==n&&(await t(Ce(e,n)),(0,_.navigateToEntry)(e.get("name"),n))})).catch((n=>(console.error(n),t((0,k.addNotification)({message:{details:n,key:"ui.toast.onFailToPersist"},type:"error",dismissAfter:8e3})),Promise.reject(t(ve(e,f,n))))))}},t.persistLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).persistLocalDraftBackup(e,t)}},t.removeDraftEntryMediaFile=function({id:e}){return{type:oe,payload:{id:e}}},t.retrieveLocalBackup=function(e,t){return async(n,r)=>{const o=r(),a=(0,c.currentBackend)(o.config),{entry:s}=await a.getLocalDraftBackup(e,t);if(s){const t=s.mediaFiles||[],o=await Promise.all(t.map((t=>t.file||t.url?(0,p.createAssetProxy)({path:t.path,file:t.file,url:t.url,field:t.field}):(0,m.getAsset)({collection:e,entry:(0,i.fromJS)(s),path:t.path,field:t.field})(n,r))));return n((0,m.addAssets)(o)),n(ke(s))}}},t.sortByField=he,t.traverseCollectionCursor=function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",`${o}`,"isFetching"]))return;const s=(0,c.currentBackend)(i.config),{action:l,append:u}=Ae.has(t)?Ae.get(t).toJS():{action:t,append:!1},d=(0,a.selectCollectionEntriesCursor)(i.cursors,e.get("name"));if(d.meta.get("usingOldPaginationAPI",!1))return n(Oe(e,d.data.get("nextPage")));try{var f;n(ce(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(s,d,l),i=null===(f=r.meta)||void 0===f?void 0:f.get("page");return n(de(e,t,i,Te(r),u))}catch(t){return console.error(t),n((0,k.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}},t.tryLoadEntry=Se,t.validateMetaField=function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){var a;if(!r)return De(r,"invalidPath",o);const n=r.split("/").map((0,x.getProcessSegment)(e.config.slug)).join("/");if(r!==n)return De(r,"invalidPath",o);const s=(0,w.selectCustomPath)(t,(0,i.fromJS)({entry:{meta:{path:r}}})),l=s?(0,b.selectEntryByPath)(e.entries,t.get("name"),s):void 0,u=null==l?void 0:l.get("path"),c=null===(a=e.entryDraft)||void 0===a?void 0:a.getIn(["entry","path"]);if(u&&u!==c)return De(r,"pathExists",o)}return{error:!1}};var r=C(n(18149)),i=n(46670),o=n(33806),a=n(63647),s=n(45624),l=n(36642),u=n(766),c=n(2241),d=n(33188),f=n(15583),p=n(25606),h=C(n(1757)),m=n(71033),g=n(67964),v=n(68104),y=n(80110),b=n(58308),w=n(51748),_=n(79278),x=n(59311),E=n(13943),k=n(5690);function C(e){return e&&e.__esModule?e:{default:e}}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const T=t.ENTRY_REQUEST="ENTRY_REQUEST",O=t.ENTRY_SUCCESS="ENTRY_SUCCESS",P=t.ENTRY_FAILURE="ENTRY_FAILURE",R=t.ENTRIES_REQUEST="ENTRIES_REQUEST",M=t.ENTRIES_SUCCESS="ENTRIES_SUCCESS",D=t.ENTRIES_FAILURE="ENTRIES_FAILURE",I=t.SORT_ENTRIES_REQUEST="SORT_ENTRIES_REQUEST",L=t.SORT_ENTRIES_SUCCESS="SORT_ENTRIES_SUCCESS",j=t.SORT_ENTRIES_FAILURE="SORT_ENTRIES_FAILURE",N=t.FILTER_ENTRIES_REQUEST="FILTER_ENTRIES_REQUEST",F=t.FILTER_ENTRIES_SUCCESS="FILTER_ENTRIES_SUCCESS",B=t.FILTER_ENTRIES_FAILURE="FILTER_ENTRIES_FAILURE",U=t.GROUP_ENTRIES_REQUEST="GROUP_ENTRIES_REQUEST",z=t.GROUP_ENTRIES_SUCCESS="GROUP_ENTRIES_SUCCESS",q=t.GROUP_ENTRIES_FAILURE="GROUP_ENTRIES_FAILURE",W=t.DRAFT_CREATE_FROM_ENTRY="DRAFT_CREATE_FROM_ENTRY",$=t.DRAFT_CREATE_EMPTY="DRAFT_CREATE_EMPTY",H=t.DRAFT_DISCARD="DRAFT_DISCARD",G=t.DRAFT_CHANGE_FIELD="DRAFT_CHANGE_FIELD",V=t.DRAFT_VALIDATION_ERRORS="DRAFT_VALIDATION_ERRORS",K=t.DRAFT_CLEAR_ERRORS="DRAFT_CLEAR_ERRORS",Z=t.DRAFT_LOCAL_BACKUP_RETRIEVED="DRAFT_LOCAL_BACKUP_RETRIEVED",Y=t.DRAFT_CREATE_FROM_LOCAL_BACKUP="DRAFT_CREATE_FROM_LOCAL_BACKUP",X=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY="DRAFT_CREATE_DUPLICATE_FROM_ENTRY",Q=t.ENTRY_PERSIST_REQUEST="ENTRY_PERSIST_REQUEST",J=t.ENTRY_PERSIST_SUCCESS="ENTRY_PERSIST_SUCCESS",ee=t.ENTRY_PERSIST_FAILURE="ENTRY_PERSIST_FAILURE",te=t.ENTRY_DELETE_REQUEST="ENTRY_DELETE_REQUEST",ne=t.ENTRY_DELETE_SUCCESS="ENTRY_DELETE_SUCCESS",re=t.ENTRY_DELETE_FAILURE="ENTRY_DELETE_FAILURE",ie=t.ADD_DRAFT_ENTRY_MEDIA_FILE="ADD_DRAFT_ENTRY_MEDIA_FILE",oe=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE="REMOVE_DRAFT_ENTRY_MEDIA_FILE",ae=t.CHANGE_VIEW_STYLE="CHANGE_VIEW_STYLE";function se(e,t){return{type:T,payload:{collection:e.get("name"),slug:t}}}function le(e,t){return{type:O,payload:{collection:e.get("name"),entry:t}}}function ue(e,t,n){return{type:P,payload:{error:e,collection:t.get("name"),slug:n}}}function ce(e){return{type:R,payload:{collection:e.get("name")}}}function de(e,t,n,r,i=!0){return{type:M,payload:{collection:e.get("name"),entries:t,page:n,cursor:o.Cursor.create(r),append:i}}}function fe(e,t){return{type:D,error:"Failed to load entries",payload:t.toString(),meta:{collection:e.get("name")}}}async function pe(e,t){const n=(0,c.currentBackend)(e.config),r=(0,l.selectIntegration)(e,t.get("name"),"listEntries"),i=r?(0,u.getIntegrationProvider)(e.integrations,n.getToken,r):n;return await i.listAllEntries(t)}function he(e,t,n=g.SortDirection.Ascending){return async(r,i)=>{const o=i(),a=(0,b.selectIsFetching)(o.entries,e.get("name"));if(r({type:I,payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await pe(o,e);r({type:L,payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:j,payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function me(e,t){return{type:Q,payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}function ge(e,t,n){return{type:J,payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}function ve(e,t,n){return{type:ee,error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}function ye(e,t){return{type:te,payload:{collectionName:e.get("name"),entrySlug:t}}}function be(e,t){return{type:ne,payload:{collectionName:e.get("name"),entrySlug:t}}}function we(e,t,n){return{type:re,payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}function _e(e){return{type:$,payload:e}}function xe(e){return{type:W,payload:{entry:e}}}function Ee(e){return{type:X,payload:(0,f.createEntry)(e.get("collection"),"","",{data:e.get("data"),mediaFiles:e.get("mediaFiles").toJS()})}}function ke(e){return{type:Z,payload:{entry:e}}}function Ce(e,t){return async(n,r)=>{await(0,v.waitForMediaLibraryToLoad)(n,r()),n(se(e,t));try{const i=await Se(r(),e,t);n(le(e,i)),n(xe(i))}catch(r){n((0,k.addNotification)({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),n(ue(r,e,t))}}}async function Se(e,t,n){const r=(0,c.currentBackend)(e.config);return await r.getEntry(e,t,n)}const Ae=(0,i.fromJS)({append_next:{action:"next",append:!0}});function Te(e){return o.Cursor.create(e).updateStore("actions",(e=>e.union(Ae.filter((t=>e.has(t.get("action")))).keySeq())))}function Oe(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),a=(0,b.selectEntriesSortFields)(i.entries,e.get("name"));if(a&&a.length>0){const t=a[0];return n(he(e,t.get("key"),t.get("direction")))}const s=(0,c.currentBackend)(i.config),d=(0,l.selectIntegration)(i,e.get("name"),"listEntries"),f=d?(0,u.getIntegrationProvider)(i.integrations,s.getToken,d):s,p=!!(t&&!isNaN(t)&&t>0);n(ce(e));try{const r=e.has("nested")||(0,E.hasI18n)(e);let i=await(r?f.listAllEntries(e).then((e=>({entries:e}))):f.listEntries(e,t));i=A(A({},i),{},{cursor:d?o.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):o.Cursor.create(i.cursor)}),n(de(e,i.cursor.meta.get("usingOldPaginationAPI")?i.entries.reverse():i.entries,i.pagination,Te(i.cursor),p))}catch(t){return n((0,k.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}}function Pe(e,t=(()=>!1)){return e.reduce(((e,n)=>{const o=e,a=n;if(t(a))return o;const s=a.get("field")||a.get("fields"),l="list"==a.get("widget"),u=a.get("name"),c=a.get("default",null);if(i.List.isList(s)||i.Map.isMap(s)){if(l&&i.List.isList(c))o[u]=c;else{const e=i.List.isList(s)?s:(0,i.List)([s]),n=l?[Pe(e,t)]:Pe(e,t);d=n,[[{}],{}].some((e=>(0,r.default)(d,e)))||(o[u]=n)}return o}var d;return null!==c&&(o[u]=c),o}),{})}function Re({entry:e}){return e.get("mediaFiles").toArray().filter((e=>e.get("draft"))).map((e=>(0,p.createAssetProxy)({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")})))}function Me(e,t){const n=(0,s.selectFields)(e,t.get("slug"));function r(e){return(0,d.serializeValues)(e,n)}const i=r(t.get("data"));let o=t.set("data",i);return(0,E.hasI18n)(e)&&(o=(0,E.serializeI18n)(e,o,r)),o}function De(e,t,n){return{error:{type:h.default.CUSTOM,message:n(`editor.editorControlPane.widget.${t}`,{path:e})}}}},71033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOVE_ASSET=t.LOAD_ASSET_SUCCESS=t.LOAD_ASSET_REQUEST=t.LOAD_ASSET_FAILURE=t.ADD_ASSETS=t.ADD_ASSET=void 0,t.addAsset=h,t.addAssets=function(e){return{type:l,payload:e}},t.boundGetAsset=function(e,t,n){return function(r,i){return e(w({collection:t,entry:n,path:r,field:i}))}},t.getAsset=w,t.loadAsset=y,t.loadAssetFailure=v,t.loadAssetRequest=m,t.loadAssetSuccess=g,t.removeAsset=function(e){return{type:c,payload:e}};var r=n(33806),i=n(25606),o=n(58308),a=n(90694),s=n(68104);const l=t.ADD_ASSETS="ADD_ASSETS",u=t.ADD_ASSET="ADD_ASSET",c=t.REMOVE_ASSET="REMOVE_ASSET",d=t.LOAD_ASSET_REQUEST="LOAD_ASSET_REQUEST",f=t.LOAD_ASSET_SUCCESS="LOAD_ASSET_SUCCESS",p=t.LOAD_ASSET_FAILURE="LOAD_ASSET_FAILURE";function h(e){return{type:u,payload:e}}function m(e){return{type:d,payload:{path:e}}}function g(e){return{type:f,payload:{path:e}}}function v(e,t){return{type:p,payload:{path:e,error:t}}}function y(e){return async(t,n)=>{try{t(m(e)),await(0,s.waitForMediaLibraryToLoad)(t,n());const r=(0,a.selectMediaFileByPath)(n(),e);if(r){const o=await(0,s.getMediaDisplayURL)(t,n(),r);t(h((0,i.createAssetProxy)({path:e,url:o||e})))}else{const{url:r}=await(0,s.getMediaFile)(n(),e);t(h((0,i.createAssetProxy)({path:e,url:r})))}t(g(e))}catch(n){t(v(e,n))}}}const b=(0,i.createAssetProxy)({path:"empty.svg",file:new File(['<svg xmlns="http://www.w3.org/2000/svg"></svg>'],"empty.svg",{type:"image/svg+xml"})});function w({collection:e,entry:t,path:n,field:a}){return(s,l)=>{if(!n)return b;const u=l(),c=(0,o.selectMediaFilePath)(u.config,e,t,n,a);let{asset:d,isLoading:f,error:p}=u.medias[c]||{};return f?b:d||((0,r.isAbsolutePath)(c)||p?(d=(0,i.createAssetProxy)({path:c,url:n}),s(h(d))):(s(y(c)),d=b),d)}}},68104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_REMOVE_INSERTED=t.MEDIA_PERSIST_SUCCESS=t.MEDIA_PERSIST_REQUEST=t.MEDIA_PERSIST_FAILURE=t.MEDIA_LOAD_SUCCESS=t.MEDIA_LOAD_REQUEST=t.MEDIA_LOAD_FAILURE=t.MEDIA_LIBRARY_OPEN=t.MEDIA_LIBRARY_CREATE=t.MEDIA_LIBRARY_CLOSE=t.MEDIA_INSERT=t.MEDIA_DISPLAY_URL_SUCCESS=t.MEDIA_DISPLAY_URL_REQUEST=t.MEDIA_DISPLAY_URL_FAILURE=t.MEDIA_DELETE_SUCCESS=t.MEDIA_DELETE_REQUEST=t.MEDIA_DELETE_FAILURE=void 0,t.clearMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}},t.closeMediaLibrary=function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:b})}},t.createMediaLibrary=function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:w,payload:t}},t.deleteMedia=j,t.getMediaDisplayURL=async function(e,t,n){const r=(0,u.selectMediaDisplayURL)(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{var o;const t=n.id,a=(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e,payload:n})=>(e===D||e===I)&&n.key===t,run:(t,n,r)=>e(r.payload.url)})));r.get("isFetching")||e(N(n)),i=null!==(o=await a)&&void 0!==o?o:null}return i},t.getMediaFile=async function(e,t){const n=(0,o.currentBackend)(e.config),{url:r}=await n.getMediaFile(t);return{url:r}},t.insertMedia=function(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),u=i.collections.get(s);n(function(e){return{type:_,payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map((e=>(0,l.selectMediaFilePublicPath)(o,u,e,a,t))):(0,l.selectMediaFilePublicPath)(o,u,e,a,t)))}},t.loadMedia=function(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,a)=>{const l=a(),u=(0,o.currentBackend)(l.config),d=(0,s.selectIntegration)(l,null,"assetStore");if(d){const t=(0,c.getIntegrationProvider)(l.integrations,u.getToken,d);e(F(r));try{const o=await t.retrieve(n,r,i);return e(B(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(U({privateUpload:i}))}}function f(){return u.getMedia().then((t=>e(B(t)))).catch((t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(B([]))):e(U())}))}return e(F(r)),t>0?new Promise((e=>{setTimeout((()=>e(f())),t)})):f()}},t.loadMediaDisplayURL=N,t.mediaDeleteFailed=G,t.mediaDeleted=H,t.mediaDeleting=$,t.mediaDisplayURLFailure=Z,t.mediaDisplayURLRequest=V,t.mediaDisplayURLSuccess=K,t.mediaLoadFailed=U,t.mediaLoaded=B,t.mediaLoading=F,t.mediaPersistFailed=W,t.mediaPersisted=q,t.mediaPersisting=z,t.openMediaLibrary=function(e={}){return(t,n)=>{const i=n().mediaLibrary.get("externalLibrary");if(i){const{controlID:t,value:n,config:o=(0,r.Map)(),allowMultiple:a,forImage:s}=e;i.show({id:t,value:n,config:o.toJS(),allowMultiple:a,imagesOnly:s})}t(function(e){return{type:y,payload:e}}(e))}},t.persistMedia=function(e,t={}){const{privateUpload:n,field:r}=t;return async(t,h)=>{const g=h(),v=(0,o.currentBackend)(g.config),y=(0,s.selectIntegration)(g,null,"assetStore"),b=(0,u.selectMediaFiles)(g,r),w=(0,p.sanitizeSlug)(e.name.toLowerCase(),g.config.slug),_=b.find((e=>e.name.toLowerCase()===w)),x=(0,l.selectEditingDraft)(g.entryDraft);if(!y&&_){if(!window.confirm(`${_.name} already exists. Do you want to replace it?`))return;await t(j(_,{privateUpload:n}))}!y&&x||t(z());try{let o,s;if(y)try{const t=(0,c.getIntegrationProvider)(g.integrations,v.getToken,y),r=await t.upload(e,n);o=(0,a.createAssetProxy)({url:r.asset.url,path:r.asset.url})}catch(t){o=(0,a.createAssetProxy)({file:e,path:w})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=g.entryDraft.get("entry"),n=g.collections.get(null==t?void 0:t.get("collection")),i=(0,l.selectMediaFilePath)(g.config,n,t,w,r);o=(0,a.createAssetProxy)({file:e,path:i,field:r})}}if(t((0,d.addAsset)(o)),y)s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:!1});else{if(x)return s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:x}),t((0,f.addDraftEntryMediaFile)(s));s=await v.persistMedia(g.config,o)}return t(q(s,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to persist media: ${e}`,type:"error",dismissAfter:8e3})),t(W({privateUpload:n}))}}},t.removeInsertedMedia=function(e){return{type:x,payload:{controlID:e}}},t.removeMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}},t.waitForMediaLibraryToLoad=async function(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e})=>e===k||e===C,run:()=>e()})))};var r=n(46670),i=n(33806),o=n(2241),a=n(25606),s=n(36642),l=n(58308),u=n(90694),c=n(766),d=n(71033),f=n(50236),p=n(9904),h=n(80110),m=n(5690);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const y=t.MEDIA_LIBRARY_OPEN="MEDIA_LIBRARY_OPEN",b=t.MEDIA_LIBRARY_CLOSE="MEDIA_LIBRARY_CLOSE",w=t.MEDIA_LIBRARY_CREATE="MEDIA_LIBRARY_CREATE",_=t.MEDIA_INSERT="MEDIA_INSERT",x=t.MEDIA_REMOVE_INSERTED="MEDIA_REMOVE_INSERTED",E=t.MEDIA_LOAD_REQUEST="MEDIA_LOAD_REQUEST",k=t.MEDIA_LOAD_SUCCESS="MEDIA_LOAD_SUCCESS",C=t.MEDIA_LOAD_FAILURE="MEDIA_LOAD_FAILURE",S=t.MEDIA_PERSIST_REQUEST="MEDIA_PERSIST_REQUEST",A=t.MEDIA_PERSIST_SUCCESS="MEDIA_PERSIST_SUCCESS",T=t.MEDIA_PERSIST_FAILURE="MEDIA_PERSIST_FAILURE",O=t.MEDIA_DELETE_REQUEST="MEDIA_DELETE_REQUEST",P=t.MEDIA_DELETE_SUCCESS="MEDIA_DELETE_SUCCESS",R=t.MEDIA_DELETE_FAILURE="MEDIA_DELETE_FAILURE",M=t.MEDIA_DISPLAY_URL_REQUEST="MEDIA_DISPLAY_URL_REQUEST",D=t.MEDIA_DISPLAY_URL_SUCCESS="MEDIA_DISPLAY_URL_SUCCESS",I=t.MEDIA_DISPLAY_URL_FAILURE="MEDIA_DISPLAY_URL_FAILURE";function L({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:(0,i.basename)(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}function j(e,t={}){const{privateUpload:n}=t;return async(t,r)=>{const i=r(),a=(0,o.currentBackend)(i.config),u=(0,s.selectIntegration)(i,null,"assetStore");if(u){const r=(0,c.getIntegrationProvider)(i.integrations,a.getToken,u);t($());try{return await r.delete(e.id),t(H(e,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(G({privateUpload:n}))}}try{if(e.draft)t((0,d.removeAsset)(e.path)),t((0,f.removeDraftEntryMediaFile)({id:e.id}));else{const n=(0,l.selectEditingDraft)(i.entryDraft);t($()),t((0,d.removeAsset)(e.path)),await a.deleteMedia(i.config,e.path),t(H(e)),n&&t((0,f.removeDraftEntryMediaFile)({id:e.id}))}}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(G())}}}function N(e){return async(t,n)=>{const{displayURL:r,id:i}=e,a=n(),s=(0,u.selectMediaDisplayURL)(a,i);if(!i||!r||s.get("url")||s.get("isFetching")||s.get("err"))return Promise.resolve();if("string"==typeof r)return t(V(i)),void t(K(i,r));try{const e=(0,o.currentBackend)(a.config);t(V(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(K(i,n))}catch(e){console.error(e),t(Z(i,e))}}}function F(e){return{type:E,payload:{page:e}}}function B(e,t={}){return{type:k,payload:v({files:e},t)}}function U(e={}){const{privateUpload:t}=e;return{type:C,payload:{privateUpload:t}}}function z(){return{type:S}}function q(e,t={}){const{privateUpload:n}=t;return{type:A,payload:{file:e,privateUpload:n}}}function W(e={}){const{privateUpload:t}=e;return{type:T,payload:{privateUpload:t}}}function $(){return{type:O}}function H(e,t={}){const{privateUpload:n}=t;return{type:P,payload:{file:e,privateUpload:n}}}function G(e={}){const{privateUpload:t}=e;return{type:R,payload:{privateUpload:t}}}function V(e){return{type:M,payload:{key:e}}}function K(e,t){return{type:D,payload:{key:e,url:t}}}function Z(e,t){return{type:I,payload:{key:e,err:t}}}},5690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOTIFICATION_SEND=t.NOTIFICATION_DISMISS=t.NOTIFICATIONS_CLEAR=void 0,t.addNotification=function(e){return{type:n,payload:e}},t.clearNotifications=function(){return{type:i}},t.dismissNotification=function(e){return{type:r,id:e}};const n=t.NOTIFICATION_SEND="NOTIFICATION_SEND",r=t.NOTIFICATION_DISMISS="NOTIFICATION_DISMISS",i=t.NOTIFICATIONS_CLEAR="NOTIFICATION_CLEAR"},15207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEARCH_ENTRIES_SUCCESS=t.SEARCH_ENTRIES_REQUEST=t.SEARCH_ENTRIES_FAILURE=t.SEARCH_CLEAR=t.QUERY_SUCCESS=t.QUERY_REQUEST=t.QUERY_FAILURE=t.CLEAR_REQUESTS=void 0,t.clearRequests=x,t.clearSearch=function(){return{type:h}},t.query=function(e,t,n,r,i,l){return async(u,c)=>{const d=c(),f=(0,o.currentBackend)(d.config),p=(0,s.selectIntegration)(d,t,"search"),h=d.collections.find((e=>e.get("name")===t));u(x());const m=`${t}-${n.join()}-${r}-${i}-${l}`,g=d.search.requests.find((({id:e})=>e==m)),v=g?g.queryResponse:p?(0,a.getIntegrationProvider)(d.integrations,f.getToken,p).searchBy(n.map((e=>`data.${e}`)),t,r):f.query(h,n,r,i,l);u(b(r,g?void 0:{id:m,expires:new Date((new Date).getTime()+1e4),queryResponse:v}));try{const t=await v;return u(w(e,t.hits))}catch(e){return u(_(e))}}},t.queryFailure=_,t.querySuccess=w,t.querying=b,t.searchEntries=function(e,t,n=0){return async(r,l)=>{const u=l(),{search:c}=u,d=(0,o.currentBackend)(u.config),f=t||u.collections.keySeq().toArray(),p=f.filter((e=>(0,s.selectIntegration)(u,e,"search"))),h=(0,s.selectIntegration)(u,p[0],"search");if(c.isFetching&&c.term===e&&(0,i.default)(f,c.collections)&&(c.page===n||!h))return;r(g(e,f,n));const m=h?(0,a.getIntegrationProvider)(u.integrations,d.getToken,h).search(p,e,n):d.search(u.collections.filter(((e,t)=>-1!==f.indexOf(t))).valueSeq().toArray(),e);try{const e=await m;return r(v(e.entries,e.pagination))}catch(e){return r(y(e))}}},t.searchFailure=y,t.searchSuccess=v,t.searchingEntries=g;var r,i=(r=n(18149))&&r.__esModule?r:{default:r},o=n(2241),a=n(766),s=n(36642);const l=t.SEARCH_ENTRIES_REQUEST="SEARCH_ENTRIES_REQUEST",u=t.SEARCH_ENTRIES_SUCCESS="SEARCH_ENTRIES_SUCCESS",c=t.SEARCH_ENTRIES_FAILURE="SEARCH_ENTRIES_FAILURE",d=t.QUERY_REQUEST="QUERY_REQUEST",f=t.QUERY_SUCCESS="QUERY_SUCCESS",p=t.QUERY_FAILURE="QUERY_FAILURE",h=t.SEARCH_CLEAR="SEARCH_CLEAR",m=t.CLEAR_REQUESTS="CLEAR_REQUESTS";function g(e,t,n){return{type:l,payload:{searchTerm:e,searchCollections:t,page:n}}}function v(e,t){return{type:u,payload:{entries:e,page:t}}}function y(e){return{type:c,payload:{error:e}}}function b(e,t){return{type:d,payload:{searchTerm:e,request:t}}}function w(e,t){return{type:f,payload:{namespace:e,hits:t}}}function _(e){return{type:p,payload:{error:e}}}function x(){return{type:m}}},9687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_SUCCESS=t.STATUS_REQUEST=t.STATUS_FAILURE=void 0,t.checkBackendStatus=function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e(l());const o=(0,r.currentBackend)(n.config),a=await o.status(),s="ui.toast.onBackendDown",c=n.notifications.notifications.filter((e=>{var t;return"string"!=typeof e.message&&(null===(t=e.message)||void 0===t?void 0:t.key)===s}));if(!1===a.api.status)return 0===c.length&&e((0,i.addNotification)({message:{details:a.api.statusPage,key:"ui.toast.onBackendDown"},type:"error"})),e(u(a));if(!0===a.api.status&&c.length>0&&c.forEach((t=>{e((0,i.dismissNotification)(t.id))})),!1===a.auth.status){const t="ui.toast.onLoggedOut";n.notifications.notifications.find((e=>{var n;return"string"!=typeof e.message&&(null===(n=e.message)||void 0===n?void 0:n.key)===t}))||e((0,i.addNotification)({message:{key:"ui.toast.onLoggedOut"},type:"error"}))}e(u(a))}catch(t){e(c(t))}}},t.statusFailure=c,t.statusRequest=l,t.statusSuccess=u;var r=n(2241),i=n(5690);const o=t.STATUS_REQUEST="STATUS_REQUEST",a=t.STATUS_SUCCESS="STATUS_SUCCESS",s=t.STATUS_FAILURE="STATUS_FAILURE";function l(){return{type:o}}function u(e){return{type:a,payload:{status:e}}}function c(e){return{type:s,payload:{error:e}}}},80110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntil=i,t.waitUntilWithTimeout=async function(e,t,n=3e4){let r=!1;const o=new Promise((n=>{e(i(t(n)))})),a=new Promise((e=>{setTimeout((()=>{r?e():(console.warn("Wait Action timed out"),e(null))}),n)}));return await Promise.race([o.then((e=>(r=!0,e))).catch(null),a])};var r=n(89258);function i({predicate:e,run:t}){return{type:r.WAIT_UNTIL_ACTION,predicate:e,run:t}}},2241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.currentBackend=t.LocalStorageAuthStore=t.Backend=void 0,t.expandSearchEntries=q,t.extractSearchFields=z,t.mergeExpandedEntries=W,t.resolveBackend=Z,t.slugFromCustomPath=H;var r=R(n(16765)),i=R(n(72579)),o=R(n(829)),a=R(n(5648)),s=R(n(75652)),l=R(n(85121)),u=R(n(35676)),c=R(n(55027)),d=n(46670),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(14478)),p=n(33806),h=n(21023),m=n(1704),g=n(85575),v=n(23260),y=n(58308),b=n(487),w=n(45624),_=n(15583),x=n(9904),E=n(41891),k=n(59311),C=n(61928),S=n(48781),A=n(51748),T=n(13943);const O=["field"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{extractTemplateVars:L,dateParsers:j,expandPath:N}=m.stringTemplate;class F{constructor(){I(this,"storageKey","decap-cms-user")}retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function B(e,t){const n="backup";return e?`${n}.${e}${t?`.${t}`:""}`:n}function U(e,t){const n=(0,i.default)(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?t[n]:""}}function z(e){return t=>e.reduce(((e,n)=>{const r=U(n,t);return r?`${e} ${r}`:e}),"")}function q(e,t){return e.reduce(((e,n)=>{const r=t.reduce(((e,t)=>{const r=N({data:n.data,path:t});return e.push(...r),e}),[]);for(let t=0;t<r.length;t++)e.push(D(D({},n),{},{field:r[t]}));return e}),[])}function W(e){const t=e.map((e=>e.field)),n={},o=e.reduce(((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,O);e[t.slug]=i,n[t.slug]=(0,d.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e<r.length;e++)if(i=i[r[e]],Array.isArray(i)){const i=r.slice(0,e+1).join(".");n[t.slug]=n[t.slug].add(i)}return e}),{});return Object.keys(o).forEach((e=>{const a=o[e].data;for(const o of n[e].toArray()){const e=(0,i.default)(a,o),n=e.filter(((e,n)=>t.some((e=>`${e}.`.startsWith(`${o}.${n}.`)))));n.sort(((n,r)=>{const i=e.indexOf(n),a=e.indexOf(r),s=`${o}.${i}.`,l=`${o}.${a}.`;return t.findIndex((e=>`${e}.`.startsWith(s)))-t.findIndex((e=>`${e}.`.startsWith(l)))})),(0,r.default)(a,o,n)}})),Object.values(o)}function $(e,t){return e.score>t.score?-1:e.score<t.score?1:0}function H(e,t){const n=e.get("folder",""),r=t.toLowerCase().replace(n.toLowerCase(),"");return(0,h.join)((0,h.dirname)((0,a.default)(r,"/")),(0,h.basename)(r,(0,h.extname)(t)))}function G(e,t){return(0,w.selectHasMetaPath)(t)?(0,h.dirname)(e).slice(t.get("folder").length+1)||"/":e}function V(e){var t;let n;return n=(null===(t=e.get("nested"))||void 0===t?void 0:t.get("depth"))||(0,p.getPathDepth)(e.get("path","")),(0,T.hasI18n)(e)&&(n=(0,T.getI18nFilesDepth)(e,n)),n}t.LocalStorageAuthStore=F;class K{constructor(e,{backendName:t,authStore:n,config:r}){if(I(this,"implementation",void 0),I(this,"backendName",void 0),I(this,"config",void 0),I(this,"authStore",void 0),I(this,"user",void 0),I(this,"backupSync",void 0),I(this,"updateUserCredentials",(e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=D(D({},t),e),this.authStore.store(this.user),this.user})),I(this,"getToken",(()=>this.implementation.getToken())),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:(0,v.selectUseWorkflow)(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:C.status.first()}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,p.asyncLock)()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every((e=>!0===e.status)))return e;await new Promise((e=>setTimeout(e,1e3*t)))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then((e=>(this.user=D(D({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user))):Promise.resolve(null)}isGitBackend(){var e,t;return(null===(e=(t=this.implementation).isGitBackend)||void 0===e?void 0:e.call(t))||!1}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then((e=>(this.user=D(D({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user)))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch((e=>e.name===p.EDITORIAL_WORKFLOW_ERROR&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e)));return i||await this.implementation.getEntry(t).then((({data:e})=>e)).catch((()=>Promise.resolve(!1)))}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;a=i?H(e,i):(0,k.slugFormatter)(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,(0,w.selectEntryPath)(e,l),l,(0,v.selectUseWorkflow)(n));)l=`${a}${(0,x.sanitizeChar)(" ",o)}${s++}`;return l}processEntries(e,t){const n=e.map((e=>(0,_.createEntry)(t.get("name"),(0,w.selectEntrySlug)(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:G(e.file.path,t)}}))).map(this.entryWithFormat(t)),r=t.get("filter"),i=r?this.filterEntries({entries:n},r):n;if((0,T.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);return(0,T.groupEntries)(t,e,i)}return i}async listEntries(e){var t;const n=(0,w.selectFolderEntryExtension)(e);let r;const i=e.get("type");if(i===S.FOLDER)r=()=>{const t=V(e);return this.implementation.entriesByFolder(e.get("folder"),n,t)};else{if(i!==S.FILES)throw new Error(`Unknown collection type: ${i}`);{const t=e.get("files").map((e=>({path:e.get("file"),label:e.get("label")}))).toArray();r=()=>this.implementation.entriesByFiles(t)}}const o=await r(),a=p.Cursor.create(o[p.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:null===(t=a.meta)||void 0===t?void 0:t.get("page"),cursor:a}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){const t=V(e),n=(0,w.selectFolderEntryExtension)(e);return this.implementation.allEntriesByFolder(e.get("folder"),n,t,function(e){let t="";return e.get("path")&&(t=`${e.get("folder")}/${e.get("path")}`.replace(/{{.*}}/gm,"(.*)")),(0,T.hasI18n)(e)&&(t=function(e,{defaultLocale:t,structure:n}){return n===T.I18N_STRUCTURE.MULTIPLE_FOLDERS?`${t}\\/${e}`:n===T.I18N_STRUCTURE.MULTIPLE_FILES?`${e}\\.${t}\\..*`:e}(t,(0,T.getI18nInfo)(e))),t?new RegExp(t):void 0}(e)).then((t=>this.processEntries(t,e)))}const t=await this.listEntries(e),{entries:n}=t;let{cursor:r}=t;for(;r&&r.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(r,"next");n.push(...e),r=t}return n}async search(e,t){const n=[],r=e.map((async e=>{const n=e.get("summary",""),r=L(n);let i=[];var o;e.get("type")===S.FILES?null===(o=e.get("files"))||void 0===o||o.forEach((e=>{const t=e.get("fields").map((e=>e.get("name"))).toArray();i=[...i,...t]})):i=[(0,w.selectInferredField)(e,"title"),(0,w.selectInferredField)(e,"shortTitle"),(0,w.selectInferredField)(e,"author"),...r.map((t=>j[t]?(0,w.selectInferredField)(e,"date"):t))];const a=i.filter(Boolean),l=await this.listAllEntries(e);return f.filter(t,l,{extract:z((0,s.default)(a))})})).map((e=>e.catch((e=>(n.push(e),[]))))),i=await Promise.all(r).then((e=>(0,u.default)(e)));if(n.length>0)throw new Error({message:"Errors occurred while searching entries locally!",errors:n});return{entries:i.filter((({score:e})=>e>5)).sort($).map((e=>e.original))}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter((e=>e.slug===r)));const a=q(o,t);let s=f.filter(n,a,{extract:e=>U(e.field,e)}).sort($).map((e=>e.original));return void 0!==i&&i>0&&(s=s.slice(0,i)),{query:n,hits:W(s)}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then((async({entries:e,cursor:t})=>({entries:this.processEntries(e,i),cursor:p.Cursor.create(t).wrapData({cursorType:"collectionEntries",collection:i})})))}async getLocalDraftBackup(e,t){const n=B(e.get("name"),t),r=await p.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map((e=>e.file?D(D({},e),{},{url:URL.createObjectURL(e.file)}):e));const s=(0,w.selectFileEntryLabel)(e,t),l=n=>this.entryWithFormat(e)((0,_.createEntry)(e.get("name"),t,o,{raw:n,label:s,mediaFiles:a,meta:{path:G(o,e)}})),u=l(i);if((0,T.hasI18n)(e)&&r.i18n){const e=(0,T.formatI18nBackup)(r.i18n,l);u.i18n=e}return{entry:u}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=B(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map((async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then((e=>e.blob()));return D(D({},e),{},{file:(0,p.blobToFileObj)(e.name,t)})}return e})));let o;return(0,T.hasI18n)(t)&&(o=(0,T.getI18nBackup)(t,e,(e=>this.entryToRaw(t,e)))),await p.localForage.setItem(n,D({raw:r,path:e.get("path"),mediaFiles:i},o&&{i18n:o})),await p.localForage.setItem(B(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await p.localForage.removeItem(B(e.get("name"),t)),t&&await p.localForage.removeItem(B(e.get("name"))),await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return p.localForage.removeItem(B())}async getEntry(e,t,n){const r=(0,w.selectEntryPath)(t,n),i=(0,w.selectFileEntryLabel)(t,n),o=(0,w.selectFolderEntryExtension)(t),a=async r=>{const o=await this.implementation.getEntry(r);let a=(0,_.createEntry)(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:G(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=(0,T.hasI18n)(t)?await(0,T.getI18nEntry)(t,o,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=(0,g.resolveFormat)(e,t);if(t&&void 0!==t.raw){const e=n&&(0,c.default)(n.fromFile.bind(n,t.raw))||{};return(0,l.default)(e)&&console.error(e),Object.assign(t,{data:(0,l.default)(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===S.FILES){const t=e.get("files").find((e=>(null==e?void 0:e.get("name"))===r));i=(0,h.extname)(t.get("file"))}else i=(0,w.selectFolderEntryExtension)(e);const a=[];if(n){const n=t.diffs.filter((e=>!e.path.endsWith(i))),o=await Promise.all(n.map((t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id))));a.push(...o.map((e=>D(D({},e),{},{draft:!0}))))}const s=(0,o.default)(t.diffs.filter((e=>e.path.endsWith(i))),(e=>e.path.length)),l=(n,i,o)=>{const s=(0,_.createEntry)(e.get("name"),r,i,{raw:n,isModification:!o,label:e&&(0,w.selectFileEntryLabel)(e,r),mediaFiles:a,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:G(i,e)}});return this.entryWithFormat(e)(s)},u=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return l(r,n.path,n.newFile)};if(s.length<=0){const t=await this.implementation.getEntry((0,w.selectEntryPath)(e,r));return l(t.data,t.file.path,!1)}if((0,T.hasI18n)(e)){const t=(0,w.selectEntryPath)(e,r),n=(0,T.getI18nDataFiles)(e,i,t,r,s);let o=await Promise.all(n.map((e=>u(e).catch((()=>null)))));return o=o.filter(Boolean),(await(0,T.groupEntries)(e,i,o))[0]}return await u(s[0])}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map((async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find((e=>e.get("name")===r));return i?await this.processUnpublishedEntry(i,n,!1):(console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null)})))).filter(Boolean)}}async processEntry(e,t,n){const r=(0,b.selectIntegration)(e.integrations,null,"assetStore"),i=(0,w.selectMediaFolders)(e.config,t,(0,d.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map((e=>this.implementation.getMedia(e))));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:(0,k.previewUrlFormatter)(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:i=5e3}={}){if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let o,a=0;for(;!o&&a<r;)a++,o=await this.implementation.getDeployPreview(e.get("name"),t),o||await new Promise((e=>setTimeout((()=>e(void 0)),i)));return o?{url:(0,k.previewUrlFormatter)(o.url,e,t,n,this.config.slug),status:o.status?o.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:i,unpublished:o=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry"));let l;l=void 0===s.get("data")?s&&n.setIn(["entry","data"],s)||n:s&&n.setIn(["entry"],s)||n;const u=l.getIn(["entry","newRecord"])||!1,c=(0,v.selectUseWorkflow)(e),d=(0,A.selectCustomPath)(t,l);let f;if(u){if(!(0,w.selectAllowNewEntries)(t))throw new Error("Not allowed to create new entries in this collection");const n=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,i,d),o=d||(0,w.selectEntryPath)(t,n);f={path:o,slug:n,raw:this.entryToRaw(t,l.get("entry"))},function(e,t,n,r,i){e.map((e=>{const o=e.path,a=(0,y.selectMediaFilePath)(t,n,r.get("entry").set("path",i),o,e.field);e.path=a}))}(r,e,t,l,o)}else{const e=l.getIn(["entry","slug"]);f={path:l.getIn(["entry","path"]),slug:d&&!c?H(t,d):e,raw:this.entryToRaw(t,l.get("entry")),newPath:d}}const{slug:p,path:h,newPath:m}=f;let g=[f];if((0,T.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);g=(0,T.getI18nFiles)(t,e,l.get("entry"),(e=>this.entryToRaw(t,e)),h,p,m)}const b=await this.currentUser(),_=D({newEntry:u,commitMessage:(0,k.commitMessageFormatter)(u?"create":"update",e,{collection:t,slug:p,path:h,authorLogin:b.login,authorName:b.name},b.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:c},{unpublished:o,status:a});return c||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry({dataFiles:g,assets:r},_),await this.invokePostSaveEvent(l.get("entry")),c||await this.invokePostPublishEvent(l.get("entry")),p}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await(0,E.invokeEvent)({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:(0,k.commitMessageFormatter)("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config,i=(0,w.selectEntryPath)(t,n),o=(0,w.selectFolderEntryExtension)(t);if(!(0,w.selectAllowDeletion)(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=(0,k.commitMessageFormatter)("delete",r,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring),l=(0,y.selectEntry)(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let u=[i];(0,T.hasI18n)(t)&&(u=(0,T.getFilePaths)(t,o,i,n)),await this.implementation.deleteFiles(u,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=(0,k.commitMessageFormatter)("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry(D(D({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=(0,g.resolveFormat)(e,t.toJS()),r=this.fieldsOrder(e,t),i=(0,w.selectFieldsComments)(e,t);let o=n.toFile(t.get("data").toJS(),r,i);return"\n"!=o.slice(-1)&&(o+="\n"),o}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map((e=>e.get("name"))).toArray();const n=(e.get("files")||(0,d.List)()).filter((e=>e.get("name")===t.get("slug"))).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map((e=>e.get("name"))).toArray()}filterEntries(e,t){return e.entries.filter((e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")}))}}function Z(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new F,r=(0,E.getBackend)(t);if(r)return new K(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}t.Backend=K,t.currentBackend=function(){let e;return t=>e||(e=Z(t))}()},4342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(12244)),i=n(17029),o=n(57903),a=n(34752),s=n(30762),l=n(9316),u=n(21837),c=n(79278),d=n(54750),f=n(76167),p=n(99187),h=n(23260),m=n(50758),g=y(n(2436));n(29192),n(72649),n(35957);var v=n(28165);function y(e){return e&&e.__esModule?e:{default:e}}const b="nc-root",w=(0,o.connect)((function(e){return{locale:(0,h.selectLocale)(e.config),config:e.config}}))((function({locale:e,config:t}){return(0,v.jsx)(l.I18n,{locale:e,messages:(0,p.getPhrases)(e)},(0,v.jsx)(m.ErrorBoundary,{showBackup:!0,config:t},(0,v.jsx)(a.Router,{history:c.history},(0,v.jsx)(a.Route,{component:g.default}))))}));t.default=function(e={}){const{config:t}=e;console.log("decap-cms-core 3.4.2"),u.store.dispatch((0,d.loadConfig)(t,(function(){u.store.dispatch((0,f.authenticateUser)())}))),(0,i.createRoot)(function(){const e=document.getElementById(b);if(e)return e;const t=document.createElement("div");return t.id=b,document.body.appendChild(t),t}()).render((0,v.jsx)((function(){return(0,v.jsx)(r.default.Fragment,null,(0,v.jsx)(s.GlobalStyles,null),(0,v.jsx)(o.Provider,{store:u.store},(0,v.jsx)(w,null)))}),null))}},2436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(70894)),i=A(n(13980)),o=A(n(12244)),a=n(9316),s=A(n(19155)),l=n(57903),u=n(34752),c=A(n(75465)),d=n(30762),f=n(76167),p=n(2241),h=n(1582),m=n(68104),g=A(n(80306)),v=n(50758),y=n(79278),b=n(61928),w=A(n(65583)),_=A(n(33407)),x=A(n(15694)),E=A(n(27633)),k=A(n(19739)),C=n(28165);const S=["collections","render"];function A(e){return e&&e.__esModule?e:{default:e}}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}c.default.config({barColors:{0:d.colors.active,"1.0":d.colors.active},shadowBlur:0,barThickness:2});const O=(0,r.default)("div",{target:"eh2m33j2",label:"AppMainContainer"})({name:"y0stlg",styles:"min-width:800px;max-width:1440px;margin:0 auto"}),P=(0,r.default)("div",{target:"eh2m33j1",label:"ErrorContainer"})({name:"3zy121",styles:"margin:20px"}),R=(0,r.default)("pre",{target:"eh2m33j0",label:"ErrorCodeBlock"})({name:"1dps4tx",styles:"margin-left:20px;font-size:15px;line-height:1.5"});function M(e){const t=e.filter((e=>!0!==e.get("hide"))).first();if(t)return`/collections/${t.get("name")}`;throw new Error("Could not find a non hidden collection")}function D(e){let{collections:t,render:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,S);const i=M(t);return(0,C.jsx)(u.Route,T({},r,{render:e=>t.get(e.match.params.name)?n(e):(0,C.jsx)(u.Redirect,{to:i})}))}class I extends o.default.Component{configError(e){const t=this.props.t;return(0,C.jsx)(P,null,(0,C.jsx)("h1",null,t("app.app.errorHeader")),(0,C.jsx)("div",null,(0,C.jsx)("strong",null,t("app.app.configErrors"),":"),(0,C.jsx)(R,null,e.error),(0,C.jsx)("span",null,t("app.app.checkConfigYml"))))}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t}=this.props,n=(0,p.currentBackend)(this.props.config);return null==n?(0,C.jsx)("div",null,(0,C.jsx)("h1",null,t("app.app.waitingBackend"))):(0,C.jsx)("div",null,(0,C.jsx)(v.Notifications,null),o.default.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>y.history.replace("/"),t}))}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:f,showMediaButton:p}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return(0,C.jsx)(d.Loader,{active:!0},f("app.app.loadingConfig"));if(null==e)return this.authenticating(f);const m=M(n),y=a===b.EDITORIAL_WORKFLOW;return(0,C.jsx)(o.default.Fragment,null,(0,C.jsx)(v.Notifications,null),(0,C.jsx)(k.default,{user:e,collections:n,onCreateEntryClick:h.createNewEntry,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:y,displayUrl:t.display_url,isTestRepo:"test-repo"===t.backend.name,showMediaButton:p}),(0,C.jsx)(O,null,i&&(0,C.jsx)(c.default,null),(0,C.jsx)(u.Switch,null,(0,C.jsx)(u.Redirect,{exact:!0,from:"/",to:m}),(0,C.jsx)(u.Redirect,{exact:!0,from:"/search/",to:m}),(0,C.jsx)(D,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>(0,C.jsx)(u.Redirect,{to:`/collections/${e.params.name}`})}),(0,C.jsx)(u.Redirect,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:m}),y?(0,C.jsx)(u.Route,{path:"/workflow",component:_.default}):null,(0,C.jsx)(D,{exact:!0,collections:n,path:"/collections/:name",render:e=>(0,C.jsx)(w.default,e)}),(0,C.jsx)(D,{path:"/collections/:name/new",collections:n,render:e=>(0,C.jsx)(x.default,T({},e,{newRecord:!0}))}),(0,C.jsx)(D,{path:"/collections/:name/entries/*",collections:n,render:e=>(0,C.jsx)(x.default,e)}),(0,C.jsx)(D,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>(0,C.jsx)(w.default,T({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),(0,C.jsx)(D,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>(0,C.jsx)(w.default,e)}),(0,C.jsx)(u.Route,{path:"/search/:searchTerm",render:e=>(0,C.jsx)(w.default,T({},e,{isSearchResults:!0}))}),(0,C.jsx)(D,{path:"/edit/:name/:entryName",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return(0,C.jsx)(u.Redirect,{to:`/collections/${t}/entries/${n}`})}}),(0,C.jsx)(u.Route,{component:E.default})),s?(0,C.jsx)(g.default,null):null))}}var L,j,N,F;L=I,j="propTypes",N={auth:i.default.object.isRequired,config:i.default.object.isRequired,collections:s.default.map.isRequired,loginUser:i.default.func.isRequired,logoutUser:i.default.func.isRequired,user:i.default.object,isFetching:i.default.bool.isRequired,publishMode:i.default.oneOf([b.SIMPLE,b.EDITORIAL_WORKFLOW]),siteId:i.default.string,useMediaLibrary:i.default.bool,openMediaLibrary:i.default.func.isRequired,showMediaButton:i.default.bool,t:i.default.func.isRequired},(j="symbol"==typeof(F=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(j))?F:String(F))in L?Object.defineProperty(L,j,{value:N,enumerable:!0,configurable:!0,writable:!0}):L[j]=N;const B={openMediaLibrary:m.openMediaLibrary,loginUser:f.loginUser,logoutUser:f.logoutUser};t.default=(0,l.connect)((function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t.user,s=i.isFetching,l=n.publish_mode,u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}}),B)((0,a.translate)()(I))},19739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(70894)),i=h(n(13980)),o=h(n(12244)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(57903),f=n(50758),p=n(9687);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const v={buttonActive:(0,s.css)("color:",c.colors.active,";;label:buttonActive;")};function y(e){return(0,s.jsx)("header",g({css:(0,s.css)(c.shadows.dropMain,";position:sticky;width:100%;top:0;background-color:",c.colors.foreground,";z-index:",c.zIndex.zIndex300,";height:",c.lengths.topBarHeight,";;label:AppHeader;")},e))}const b=(0,r.default)("div",{target:"e1rbzf6g4",label:"AppHeaderContent"})({name:"jxf21e",styles:"display:flex;justify-content:space-between;min-width:800px;max-width:1440px;padding:0 12px;margin:0 auto"}),w=(0,r.default)("button",{target:"e1rbzf6g3",label:"AppHeaderButton"})(c.buttons.button,";background:none;color:#7b8290;font-family:inherit;font-size:16px;font-weight:500;display:inline-flex;padding:16px 20px;align-items:center;",c.Icon,"{margin-right:4px;color:#b3b9c4;}&:hover,&:active,&:focus-visible{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}}",(e=>(0,s.css)("&.",e.activeClassName,"{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}};label:AppHeaderButton;")),";"),_=w.withComponent(u.NavLink,{target:"e1rbzf6g5",label:"AppHeaderNavLink"}),x=(0,r.default)("div",{target:"e1rbzf6g2",label:"AppHeaderActions"})({name:"8irbms",styles:"display:inline-flex;align-items:center"}),E=(0,r.default)(c.StyledDropdownButton,{target:"e1rbzf6g1",label:"AppHeaderQuickNewButton"})(c.buttons.button,";",c.buttons.medium,";",c.buttons.gray,";margin-right:8px;&:after{top:11px;}"),k=(0,r.default)("ul",{target:"e1rbzf6g0",label:"AppHeaderNavList"})({name:"1vufzxm",styles:"display:flex;margin:0;list-style:none"});class C extends o.default.Component{constructor(...e){super(...e),m(this,"intervalId",void 0),m(this,"handleCreatePostClick",(e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)}))}componentDidMount(){this.intervalId=setInterval((()=>{this.props.checkBackendStatus()}),3e5)}componentWillUnmount(){clearInterval(this.intervalId)}render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,isTestRepo:a,t:l,showMediaButton:u}=this.props,d=t.filter((e=>e.get("create"))).toList();return(0,s.jsx)(y,null,(0,s.jsx)(b,null,(0,s.jsx)("nav",null,(0,s.jsx)(k,null,(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},(0,s.jsx)(c.Icon,{type:"page"}),l("app.header.content"))),i&&(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/workflow",activeClassName:"header-link-active"},(0,s.jsx)(c.Icon,{type:"workflow"}),l("app.header.workflow"))),u&&(0,s.jsx)("li",null,(0,s.jsx)(w,{onClick:r},(0,s.jsx)(c.Icon,{type:"media-alt"}),l("app.header.media"))))),(0,s.jsx)(x,null,d.size>0&&(0,s.jsx)(c.Dropdown,{renderButton:()=>(0,s.jsx)(E,null," ",l("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},d.map((e=>(0,s.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))})))),(0,s.jsx)(f.SettingsDropdown,{displayUrl:o,isTestRepo:a,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:n}))))}}m(C,"propTypes",{user:i.default.object.isRequired,collections:a.default.map.isRequired,onCreateEntryClick:i.default.func.isRequired,onLogoutClick:i.default.func.isRequired,openMediaLibrary:i.default.func.isRequired,hasWorkflow:i.default.bool.isRequired,displayUrl:i.default.string,isTestRepo:i.default.bool,t:i.default.func.isRequired,checkBackendStatus:i.default.func.isRequired});const S={checkBackendStatus:p.checkBackendStatus};t.default=(0,d.connect)(null,S)((0,l.translate)()(C))},27633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(12244)),n(9316)),o=n(30762),a=l(n(13980)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"ew40z3q0",label:"NotFoundContainer"})("margin:",o.lengths.pageMargin,";");function c({t:e}){return(0,s.jsx)(u,null,(0,s.jsx)("h2",null,e("app.notFoundPage.header")))}c.propTypes={t:a.default.func.isRequired},t.default=(0,i.translate)()(c)},65583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=void 0;var r=w(n(70894)),i=w(n(12244)),o=w(n(13980)),a=w(n(19155)),s=n(57903),l=n(9316),u=n(30762),c=n(9904),d=w(n(9381)),f=w(n(52777)),p=w(n(13352)),h=w(n(19232)),m=w(n(91785)),g=n(50236),v=n(45624),y=n(58308),b=n(28165);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=(0,r.default)("div",{target:"e1sogrfi3",label:"CollectionContainer"})("margin:",u.lengths.pageMargin,";"),C=(0,r.default)("main",{target:"e1sogrfi2",label:"CollectionMain"})({name:"tka7ew",styles:"padding-left:280px"}),S=(0,r.default)("div",{target:"e1sogrfi1",label:"SearchResultContainer"})(u.components.cardTop,";margin-bottom:22px;"),A=(0,r.default)("h1",{target:"e1sogrfi0",label:"SearchResultHeading"})(u.components.cardTopHeading,";");class T extends i.default.Component{constructor(...e){super(...e),E(this,"renderEntriesCollection",(()=>{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return(0,b.jsx)(p.default,{collection:e,viewStyle:n,filterTerm:t})})),E(this,"renderEntriesSearch",(()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return(0,b.jsx)(h.default,{collections:r?t.filter((e=>e===n)):t,searchTerm:e})}))}render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:o,isSingleSearchResult:a,searchTerm:s,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,filterTerm:v,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:E,onChangeViewStyle:T,viewStyle:O}=this.props;let P=e.get("create")?(0,c.getNewEntryUrl)(n):"";P&&v&&(P=(0,c.getNewEntryUrl)(n),v&&(P=`${P}?path=${v}`));const R="collection.collectionTop.searchResults"+(a?"InCollection":"");return(0,b.jsx)(k,null,(0,b.jsx)(d.default,{collections:t,collection:(!o||a)&&e,isSearchEnabled:r,searchTerm:s,filterTerm:v}),(0,b.jsx)(C,null,o?(0,b.jsx)(S,null,(0,b.jsx)(A,null,y(R,{searchTerm:s,collection:e.get("label")}))):(0,b.jsx)(i.default.Fragment,null,(0,b.jsx)(f.default,{collection:e,newEntryUrl:P}),(0,b.jsx)(m.default,{viewStyle:O,onChangeViewStyle:T,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:E})),o?this.renderEntriesSearch():this.renderEntriesCollection()))}}t.Collection=T,E(T,"propTypes",{searchTerm:o.default.string,collectionName:o.default.string,isSearchResults:o.default.bool,isSingleSearchResult:o.default.bool,collection:a.default.map.isRequired,collections:a.default.map.isRequired,sortableFields:o.default.array,sort:a.default.orderedMap,onSortClick:o.default.func.isRequired});const O={sortByField:g.sortByField,filterByField:g.filterByField,changeViewStyle:g.changeViewStyle,groupByField:g.groupByField},P=(0,s.connect)((function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:i,match:o,t:a}=t,{name:s,searchTerm:l="",filterTerm:u=""}=o.params,c=s?n.get(s):n.first(),d=(0,y.selectEntriesSort)(e.entries,c.get("name")),f=(0,v.selectSortableFields)(c,a),p=(0,v.selectViewFilters)(c),h=(0,v.selectViewGroups)(c),m=(0,y.selectEntriesFilter)(e.entries,c.get("name")),g=(0,y.selectEntriesGroup)(e.entries,c.get("name"));return{collection:c,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:i,searchTerm:l,filterTerm:u,sort:d,sortableFields:f,viewFilters:p,viewGroups:h,filter:m,group:g,viewStyle:(0,y.selectViewStyle)(e.entries)}}),O,(function(e,t,n){return x(x(x({},e),n),{},{onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)})}))(T);t.default=(0,l.translate)()(P)},91785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=(c(n(12244)),n(30762)),o=c(n(37058)),a=c(n(61450)),s=c(n(2796)),l=c(n(30686)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"emfmed70",label:"CollectionControlsContainer"})("display:flex;align-items:center;flex-direction:row-reverse;margin-top:22px;width:",i.lengths.topCardWidth,";max-width:100%;&>div{margin-left:6px;}");t.default=function({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:c,viewGroups:f,onFilterClick:p,onGroupClick:h,t:m,filter:g,group:v}){return(0,u.jsx)(d,null,(0,u.jsx)(o.default,{viewStyle:e,onChangeViewStyle:t}),f.length>0&&(0,u.jsx)(l.default,{viewGroups:f,onGroupClick:h,t:m,group:v}),c.length>0&&(0,u.jsx)(s.default,{viewFilters:c,onFilterClick:p,t:m,filter:g}),n.length>0&&(0,u.jsx)(a.default,{fields:n,sort:i,onSortClick:r}))}},98165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(12244)),o=n(30762),a=n(9316),s=c(n(13980)),l=c(n(19155)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)("div",{target:"e6w847r7",label:"SearchContainer"})("margin:0 12px;position:relative;",o.Icon,"{position:absolute;top:0;left:6px;z-index:",o.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),p=(0,r.default)("div",{target:"e6w847r6",label:"InputContainer"})({name:"1dbubah",styles:"display:flex;align-items:center;position:relative"}),h=(0,r.default)("input",{target:"e6w847r5",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 34px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colorsRaw.blue,";}"),m=(0,r.default)("div",{target:"e6w847r4",label:"SuggestionsContainer"})({name:"pw7jst",styles:"position:relative;width:100%"}),g=(0,r.default)("ul",{target:"e6w847r3",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",o.lengths.borderRadius,";border:1px solid ",o.colors.textFieldBorder,";z-index:",o.zIndex.zIndex1,";"),v=(0,r.default)("li",{target:"e6w847r2",label:"SuggestionHeader"})("padding:0 6px 6px 34px;font-size:12px;color:",o.colors.text,";"),y=(0,r.default)("li",{target:"e6w847r1",label:"SuggestionItem"})((({isActive:e})=>`\n color: ${e?o.colors.active:o.colorsRaw.grayDark};\n background-color: ${e?o.colors.activeBackground:"inherit"};\n padding: 6px 6px 6px 34px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: ${o.colors.active};\n background-color: ${o.colors.activeBackground};\n }\n`),""),b=(0,r.default)("div",{target:"e6w847r0",label:"SuggestionDivider"})({name:"1d3w5wq",styles:"width:100%"});class w extends i.default.Component{constructor(...e){super(...e),d(this,"state",{query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()}),d(this,"submitSearch",(()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)})),d(this,"handleKeyDown",(e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))})),d(this,"handleQueryChange",(e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()})),d(this,"handleSuggestionClick",((e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()}))}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}render(){const{collections:e,t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return(0,u.jsx)(f,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},(0,u.jsx)(p,null,(0,u.jsx)(o.Icon,{type:"search"}),(0,u.jsx)(h,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&(0,u.jsx)(m,null,(0,u.jsx)(g,null,(0,u.jsx)(v,null,t("collection.sidebar.searchIn")),(0,u.jsx)(y,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),(0,u.jsx)(b,null),e.toIndexedSeq().map(((e,t)=>(0,u.jsx)(y,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label")))))))}}d(w,"propTypes",{collections:l.default.map.isRequired,collection:l.default.map,searchTerm:s.default.string.isRequired,onSubmit:s.default.func.isRequired,t:s.default.func.isRequired}),t.default=(0,a.translate)()(w)},52777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(13980)),o=c(n(19155)),a=(c(n(12244)),n(9316)),s=n(34752),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"ei8nkzc4",label:"CollectionTopContainer"})(l.components.cardTop,";margin-bottom:22px;"),f=(0,r.default)("div",{target:"ei8nkzc3",label:"CollectionTopRow"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),p=(0,r.default)("h1",{target:"ei8nkzc2",label:"CollectionTopHeading"})(l.components.cardTopHeading,";"),h=(0,r.default)(s.Link,{target:"ei8nkzc1",label:"CollectionTopNewButton"})(l.buttons.button,";",l.shadows.dropDeep,";",l.buttons.default,";",l.buttons.gray,";padding:0 30px;"),m=(0,r.default)("p",{target:"ei8nkzc0",label:"CollectionTopDescription"})(l.components.cardTopDescription,";margin-bottom:0;");function g({collection:e,newEntryUrl:t,t:n}){const{collectionLabel:r,collectionLabelSingular:i,collectionDescription:o}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(e);return(0,u.jsx)(d,null,(0,u.jsx)(f,null,(0,u.jsx)(p,null,r),t?(0,u.jsx)(h,{to:t},n("collection.collectionTop.newButton",{collectionLabel:i||r})):null),o?(0,u.jsx)(m,null,o):null)}g.propTypes={collection:o.default.map.isRequired,newEntryUrl:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(g)},16108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlButton=function({active:e,title:t}){return(0,i.jsx)(s,{css:(0,i.css)("color:",e?o.colors.active:void 0,";;label:ControlButton;")},t)};var r=a(n(70894)),i=(a(n(12244)),n(28165)),o=n(30762);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)(o.StyledDropdownButton,{target:"e1obtllk0",label:"Button"})(o.buttons.button,";",o.buttons.medium,";",o.buttons.grayText,";font-size:14px;&:after{top:11px;}")},94497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(13980)),o=d(n(12244)),a=d(n(19155)),s=n(9316),l=n(30762),u=d(n(70660)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e1d0i3na1",label:"PaginationMessage"})("width:",l.lengths.topCardWidth,";padding:16px;text-align:center;"),p=(0,r.default)(f,{target:"e1d0i3na0",label:"NoEntriesMessage"})({name:"yz1nei",styles:"margin-top:16px"});function h({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:a,t:s,page:d}){var h;const m=[s("collection.entries.loadingEntries"),s("collection.entries.cachingEntries"),s("collection.entries.longerLoading")];return n&&void 0===d?(0,c.jsx)(l.Loader,{active:!0},m):t&&t.size>0||(null==i||null===(h=i.actions)||void 0===h?void 0:h.has("append_next"))?(0,c.jsx)(o.default.Fragment,null,(0,c.jsx)(u.default,{collections:e,entries:t,viewStyle:r,cursor:i,handleCursorActions:a,page:d}),n&&void 0!==d&&t.size>0?(0,c.jsx)(f,null,s("collection.entries.loadingEntries")):null):(0,c.jsx)(p,null,s("collection.entries.noEntries"))}h.propTypes={collections:a.default.iterable.isRequired,entries:a.default.list,page:i.default.number,isFetching:i.default.bool,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,t:i.default.func.isRequired},t.default=(0,s.translate)()(h)},13352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EntriesCollection=void 0,t.filterNestedEntries=E;var r=v(n(70894)),i=v(n(83465)),o=v(n(12244)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=n(33806),d=n(30762),f=n(50236),p=n(58308),h=n(63647),m=v(n(94497)),g=n(28165);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=(0,r.default)("h2",{target:"eucqz2q1",label:"GroupHeading"})("font-size:22px;font-weight:600;line-height:37px;padding-inline-start:20px;color:",d.colors.textLead,";"),w=(0,r.default)("div",{target:"eucqz2q0",label:"GroupContainer"})("");function _(e,t){return e.filter((e=>t.has(e.get("path"))))}class x extends o.default.Component{constructor(...e){super(...e),y(this,"handleCursorActions",((e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)}))}componentDidMount(){const{collection:e,entriesLoaded:t,loadEntries:n}=this.props;e&&!t&&n(e)}componentDidUpdate(e){const{collection:t,entriesLoaded:n,loadEntries:r}=this.props;t===e.collection||n||r(t)}render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:o,cursor:a,page:s,t:l}=this.props,u=({entries:t})=>(0,g.jsx)(m.default,{collections:e,entries:t,isFetching:r,collectionName:e.get("label"),viewStyle:o,cursor:a,handleCursorActions:(0,i.default)(this.handleCursorActions,a),page:s});return n&&n.length>0?function(e,t,n,r){return e.map((e=>{const i=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return(0,g.jsx)(w,{key:e.id,id:e.id},(0,g.jsx)(b,null,i),(0,g.jsx)(n,{entries:_(t,e.paths)}))}))}(n,t,u,l):(0,g.jsx)(u,{entries:t})}}function E(e,t,n){return n.filter((n=>{const r=n.get("path").slice(t.length+1);return!!r.startsWith(e)&&(e?2===r.slice(e.length+1).split("/").length:r.split("/").length<=2)}))}t.EntriesCollection=x,y(x,"propTypes",{collection:s.default.map.isRequired,page:a.default.number,entries:s.default.list,groups:a.default.array,isFetching:a.default.bool.isRequired,viewStyle:a.default.string,cursor:a.default.object.isRequired,loadEntries:a.default.func.isRequired,traverseCollectionCursor:a.default.func.isRequired,entriesLoaded:a.default.bool});const k={loadEntries:f.loadEntries,traverseCollectionCursor:f.traverseCollectionCursor},C=(0,l.connect)((function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]);let a=(0,p.selectEntries)(e.entries,n);const s=(0,p.selectGroups)(e.entries,n);n.has("nested")&&(a=E(i||"",n.get("folder"),a));const l=(0,p.selectEntriesLoaded)(e.entries,n.get("name")),u=(0,p.selectIsFetching)(e.entries,n.get("name")),d=(0,h.selectCollectionEntriesCursor)(e.cursors,n.get("name"));return{collection:n,page:o,entries:a,groups:s,entriesLoaded:l,isFetching:u,viewStyle:r,cursor:c.Cursor.create(d).clearData()}}),k)(x);t.default=(0,u.translate)()(C)},19232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(18149)),i=p(n(12244)),o=p(n(13980)),a=p(n(19155)),s=n(57903),l=n(33806),u=n(36642),c=n(15207),d=p(n(94497)),f=n(28165);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.default.Component{constructor(...e){super(...e),h(this,"getCursor",(()=>{const{page:e}=this.props;return l.Cursor.create({actions:isNaN(e)?[]:["append_next"]})})),h(this,"handleCursorActions",(e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;"append_next"===e&&r(n,i,t+1)}))}componentDidMount(){const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&(0,r.default)(e.collectionNames,n))return;const{searchEntries:i}=e;i(t,n)}componentWillUnmount(){this.props.clearSearch()}render(){const{collections:e,entries:t,isFetching:n}=this.props;return(0,f.jsx)(d.default,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n})}}h(m,"propTypes",{isFetching:o.default.bool,searchEntries:o.default.func.isRequired,clearSearch:o.default.func.isRequired,searchTerm:o.default.string.isRequired,collections:a.default.seq,collectionNames:o.default.array,entries:a.default.list,page:o.default.number});const g={searchEntries:c.searchEntries,clearSearch:c.clearSearch};t.default=(0,s.connect)((function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray();return{isFetching:e.search.isFetching,page:e.search.page,collections:r,collectionNames:i,entries:(0,u.selectSearchedEntries)(e,i),searchTerm:n}}),g)(m)},38440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(12244)),n(57903)),o=n(34752),a=n(30762),s=n(71033),l=n(78882),u=n(33474),c=n(45624),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=(0,r.default)("li",{target:"effeus48",label:"ListCard"})(a.components.card,";width:",a.lengths.topCardWidth,";margin-left:12px;margin-bottom:10px;overflow:hidden;"),g=(0,r.default)(o.Link,{target:"effeus47",label:"ListCardLink"})("display:block;max-width:100%;padding:16px 20px;&:hover{background-color:",a.colors.foreground,";}"),v=(0,r.default)("li",{target:"effeus46",label:"GridCard"})(a.components.card,";flex:0 0 335px;height:240px;overflow:hidden;margin-left:12px;margin-bottom:16px;"),y=(0,r.default)(o.Link,{target:"effeus45",label:"GridCardLink"})("display:block;height:100%;outline-offset:-2px;&,&:hover{background-color:",a.colors.foreground,";color:",a.colors.text,";}"),b=(0,r.default)("h2",{target:"effeus44",label:"CollectionLabel"})("font-size:12px;color:",a.colors.textLead,";text-transform:uppercase;"),w=(0,r.default)("h2",{target:"effeus43",label:"ListCardTitle"})({name:"1ykowef",styles:"margin-bottom:0"}),_=(0,r.default)("h2",{target:"effeus42",label:"CardHeading"})({name:"m483k0",styles:"margin:0 0 2px"}),x=(0,r.default)("div",{target:"effeus41",label:"CardBody"})("padding:16px 20px;height:90px;position:relative;margin-bottom:",(e=>e.hasImage&&0),";&:after{content:'';position:absolute;display:block;z-index:",a.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",a.colorsRaw.white,";}"),E=(0,r.default)("div",{target:"effeus40",label:"CardImage"})("background-image:url(",(e=>e.src),");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;"),k=(0,i.connect)((function(e,t){var n;const{entry:r,inferredFields:i,collection:o}=t,a=r.get("data"),s=(0,c.selectEntryCollectionTitle)(o,r);let l=a.get(i.imageField);l&&(l=encodeURI(l));const d=(0,u.selectIsLoadingAsset)(e.medias);return{summary:s,path:`/collections/${o.get("name")}/entries/${r.get("slug")}`,image:l,imageFolder:null===(n=o.get("fields"))||void 0===n?void 0:n.find((e=>e.get("name")===i.imageField&&"image"===e.get("widget"))),isLoadingAsset:d}}),(function(e){return{boundGetAsset:(t,n)=>(0,s.boundGetAsset)(e,t,n)}}),(function(e,t,n){return h(h(h(h({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))((function({path:e,summary:t,image:n,imageField:r,collectionLabel:i,viewStyle:o=l.VIEW_STYLE_LIST,getAsset:a}){return o===l.VIEW_STYLE_LIST?(0,d.jsx)(m,null,(0,d.jsx)(g,{to:e},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(w,null,t))):o===l.VIEW_STYLE_GRID?(0,d.jsx)(v,null,(0,d.jsx)(y,{to:e},(0,d.jsx)(x,{hasImage:n},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(_,null,t)),n?(0,d.jsx)(E,{src:a(n,r).toString()}):null)):void 0}));t.default=k},70660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(13980)),o=f(n(12244)),a=f(n(19155)),s=n(94076),l=n(46670),u=n(45624),c=f(n(38440)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=(0,r.default)("ul",{target:"etq0ss00",label:"CardsGrid"})({name:"1dbthoi",styles:"display:flex;flex-flow:row wrap;list-style-type:none;margin-left:-12px;margin-top:16px;margin-bottom:16px"});class g extends o.default.Component{constructor(...e){super(...e),h(this,"hasMore",(()=>{var e,t;return null===(e=this.props.cursor)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t.has("append_next")})),h(this,"handleLoadMore",(()=>{this.hasMore()&&this.props.handleCursorActions("append_next")})),h(this,"inferFields",(e=>{const t=(0,u.selectInferredField)(e,"title"),n=(0,u.selectInferredField)(e,"description"),r=(0,u.selectInferredField)(e,"image"),i=(0,u.selectFields)(e),o=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:i&&i.filter((e=>-1===o.indexOf(e.get("name"))))}})),h(this,"renderCardsForSingleCollection",(()=>{const{collections:e,entries:t,viewStyle:n}=this.props,r={collection:e,inferredFields:this.inferFields(e),viewStyle:n};return t.map(((e,t)=>(0,d.jsx)(c.default,p({},r,{entry:e,key:t}))))})),h(this,"renderCardsForMultipleCollections",(()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map(((t,r)=>{const i=t.get("collection"),o=e.find((e=>e.get("name")===i)),a=!n&&o.get("label"),s={collection:o,entry:t,inferredFields:this.inferFields(o),collectionLabel:a};return(0,d.jsx)(c.default,p({},s,{key:r}))}))}))}render(){const{collections:e,page:t}=this.props;return(0,d.jsx)("div",null,(0,d.jsx)(m,null,l.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&(0,d.jsx)(s.Waypoint,{key:t,onEnter:this.handleLoadMore})))}}t.default=g,h(g,"propTypes",{collections:a.default.iterable.isRequired,entries:a.default.list,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,page:i.default.number})},2796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(12244))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewFilters:e,t,onFilterClick:n,filter:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownCheckedItem,{key:e.id,label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)}))))}))},30686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(12244))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewGroups:e,t,onGroupClick:n,group:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownItem,{key:e.id,label:e.label,onClick:()=>n(e),isActive:r.getIn([e.id,"active"],!1)}))))}))},21147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NestedCollection=void 0,t.getTreeData=R,t.updateNode=M,t.walk=P;var r=v(n(70894)),i=v(n(829)),o=v(n(12244)),a=n(46670),s=n(28165),l=n(57903),u=n(34752),c=n(21023),d=n(1704),f=n(30762),p=v(n(13980)),h=v(n(19155)),m=n(58308),g=n(45624);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{addFileTemplateFields:_}=d.stringTemplate,x=(0,r.default)("div",{target:"eh84wlq5",label:"NodeTitleContainer"})({name:"1vcob1d",styles:"display:flex;justify-content:center;align-items:center"}),E=(0,r.default)("div",{target:"eh84wlq4",label:"NodeTitle"})({name:"qamjgr",styles:"margin-right:4px"}),k=(0,r.default)("div",{target:"eh84wlq3",label:"Caret"})({name:"1lo1a34",styles:"position:relative;top:2px"}),C=(0,r.default)(k,{target:"eh84wlq2",label:"CaretDown"})(f.components.caretDown,";color:currentColor;"),S=(0,r.default)(k,{target:"eh84wlq1",label:"CaretRight"})(f.components.caretRight,";color:currentColor;left:2px;"),A=(0,r.default)(u.NavLink,{target:"eh84wlq0",label:"TreeNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px;padding-left:",(e=>16*e.depth+18),"px;border-left:2px solid #fff;",f.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{color:",f.colors.active,";background-color:",f.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;")),";");function T(e){var t;return e.isRoot?e.title:(null===(t=e.children.find((e=>!e.isDir&&e.title)))||void 0===t?void 0:t.title)||e.title}function O(e){const{collection:t,treeData:n,depth:r=0,onToggle:a}=e,l=t.get("name");return(0,i.default)(n,T).map((e=>{var n;if(e.children.length<=1&&(null===(n=e.children[0])||void 0===n||!n.isDir)&&r>0)return null;let i=`/collections/${l}`;r>0&&(i=`${i}/filter${e.path}`);const u=T(e),c=0===r||e.children.some((e=>e.children.some((e=>e.isDir))));return(0,s.jsx)(o.default.Fragment,{key:e.path},(0,s.jsx)(A,{exact:!0,to:i,activeClassName:"sidebar-active",onClick:()=>a({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},(0,s.jsx)(f.Icon,{type:"write"}),(0,s.jsx)(x,null,(0,s.jsx)(E,null,u),c&&(e.expanded?(0,s.jsx)(C,null):(0,s.jsx)(S,null)))),e.expanded&&(0,s.jsx)(O,{collection:t,depth:r+1,treeData:e.children,onToggle:a}))}))}function P(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function R(e,t){const n=e.get("folder"),r=t.toJS().map((e=>b(b({},e),{},{path:e.path.slice(n.length)}))),i=r.reduce(((e,t)=>{let n=(0,c.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(c.sep);e[n]=t.pop(),n=t.length&&t.join(c.sep)}return e}),{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map((([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1}))),...r.map(((n,r)=>{let i=t.get(r);i=i.set("data",_(i.get("path"),i.get("data")));const o=(0,g.selectEntryCollectionTitle)(e,i);return b(b({},n),{},{title:o,isDir:!1,isRoot:!1})}))].reduce(((e,t)=>{const n="/"===t.path?"":(0,c.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e}),{});return o[""].reduce((function e(t,n){const r=n;let i=[];return o[r.path]&&(i=o[r.path].reduce(e,[])),t.push(b(b({},r),{},{children:i})),t}),[])}function M(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;e<i.length;e++)if(i[e].path===t.path)return i[e]=n(t),r=!0,i;return i.forEach((t=>e(t.children))),i}([...e])}O.propTypes={collection:h.default.map.isRequired,depth:p.default.number,treeData:p.default.array.isRequired,onToggle:p.default.func.isRequired};class D extends o.default.Component{constructor(e){super(e),w(this,"onToggle",(({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=M(this.state.treeData,e,(e=>b(b({},e),{},{expanded:t})));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})})),this.state={treeData:R(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};P(this.state.treeData,(t=>{t.expanded&&(e[t.path]=!0)}));const i=R(t,n),o=`/${r}`;P(i,(t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)})),this.setState({treeData:i})}}render(){const{treeData:e}=this.state,{collection:t}=this.props;return(0,s.jsx)(O,{collection:t,treeData:e,onToggle:this.onToggle})}}t.NestedCollection=D,w(D,"propTypes",{collection:h.default.map.isRequired,entries:h.default.list.isRequired,filterTerm:p.default.string}),t.default=(0,l.connect)((function(e,t){const{collection:n}=t;return{entries:(0,m.selectEntries)(e.entries,n)||(0,a.List)()}}),null)(D)},9381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Sidebar=void 0;var r=h(n(70894)),i=h(n(12244)),o=h(n(13980)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(1582),f=h(n(98165)),p=h(n(21147));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={sidebarNavLinkActive:(0,s.css)("color:",c.colors.active,";background-color:",c.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},v=(0,r.default)("aside",{target:"e1t18l343",label:"SidebarContainer"})(c.components.card,";width:250px;padding:8px 0 12px;position:fixed;max-height:calc(100vh - 112px);display:flex;flex-direction:column;"),y=(0,r.default)("h2",{target:"e1t18l342",label:"SidebarHeading"})("font-size:22px;font-weight:600;line-height:37px;padding:0;margin:10px 20px;color:",c.colors.textLead,";"),b=(0,r.default)("ul",{target:"e1t18l341",label:"SidebarNavList"})({name:"14vcqsr",styles:"margin:12px 0 0;list-style:none;overflow:auto"}),w=(0,r.default)(u.NavLink,{target:"e1t18l340",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 18px;border-left:2px solid #fff;z-index:-1;",c.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{",g.sidebarNavLinkActive,";};label:SidebarNavLink;")),";");class _ extends i.default.Component{constructor(...e){super(...e),m(this,"renderLink",((e,t)=>{const n=e.get("name");return e.has("nested")?(0,s.jsx)("li",{key:n},(0,s.jsx)(p.default,{collection:e,filterTerm:t,"data-testid":n})):(0,s.jsx)("li",{key:n},(0,s.jsx)(w,{to:`/collections/${n}`,activeClassName:"sidebar-active","data-testid":n},(0,s.jsx)(c.Icon,{type:"write"}),e.get("label")))}))}render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:i,filterTerm:o}=this.props;return(0,s.jsx)(v,null,(0,s.jsx)(y,null,i("collection.sidebar.collections")),n&&(0,s.jsx)(f.default,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>(0,d.searchCollections)(e,t)}),(0,s.jsx)(b,null,e.toList().filter((e=>!0!==e.get("hide"))).map((e=>this.renderLink(e,o)))))}}t.Sidebar=_,m(_,"propTypes",{collections:a.default.map.isRequired,collection:a.default.map,isSearchEnabled:o.default.bool,searchTerm:o.default.string,filterTerm:o.default.string,t:o.default.func.isRequired}),t.default=(0,l.translate)()(_)},61450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(12244))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(67964),s=n(16108),l=n(28165);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const c={[a.SortDirection.Ascending]:"up",[a.SortDirection.Descending]:"down"};t.default=(0,i.translate)()((function({t:e,fields:t,onSortClick:n,sort:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>e.direction!==a.SortDirection.None));return(0,l.jsx)(o.Dropdown,{renderButton:()=>(0,l.jsx)(s.ControlButton,{active:i,title:e("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map((e=>{const t=null==r?void 0:r.getIn([e.key,"direction"]),i=t&&t!==a.SortDirection.None,s=function(e){switch(e){case a.SortDirection.Ascending:return a.SortDirection.Descending;case a.SortDirection.Descending:return a.SortDirection.None;default:return a.SortDirection.Ascending}}(t);return(0,l.jsx)(o.DropdownItem,u({key:e.key,label:e.label,onClick:()=>n(e.key,s),isActive:i},i&&function(e){return{icon:"chevron",iconDirection:c[e],iconSmall:!0}}(t)))})))}))},37058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),n(30762)),o=n(78882),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"evv1i7c1",label:"ViewControlsSection"})({name:"k6mob8",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px"}),u=(0,r.default)("button",{target:"evv1i7c0",label:"ViewControlsButton"})(i.buttons.button,";color:",(e=>e.isActive?i.colors.active:"#b3b9c4"),";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",i.Icon,"{display:block;}");t.default=function({viewStyle:e,onChangeViewStyle:t}){return(0,a.jsx)(l,null,(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_LIST,onClick:()=>t(o.VIEW_STYLE_LIST)},(0,a.jsx)(i.Icon,{type:"list"})),(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_GRID,onClick:()=>t(o.VIEW_STYLE_GRID)},(0,a.jsx)(i.Icon,{type:"grid"})))}},15694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Editor=void 0;var r=_(n(54073)),i=_(n(13980)),o=_(n(12244)),a=_(n(19155)),s=n(57903),l=n(30762),u=n(9316),c=n(79278),d=n(76167),f=n(50236),p=n(91358),h=n(66145),m=n(36642),g=n(45624),v=n(61928),y=_(n(78767)),b=_(n(42531)),w=n(28165);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E extends o.default.Component{constructor(...e){super(...e),x(this,"createBackup",(0,r.default)((function(e,t){this.props.persistLocalBackup(e,t)}),2e3)),x(this,"handleChangeDraftField",((e,t,n,r)=>{const i=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:i,i18n:r})})),x(this,"handleChangeStatus",(e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=v.status.get(e);n(r.get("name"),i,o,s)})),x(this,"handlePersistEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:i,currentStatus:o,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:u,entryDraft:d}=this.props;await r(i),this.deleteBackup(),t?((0,c.navigateToNewEntry)(i.get("name")),n&&u(d.get("entry"))):l&&a&&!o&&s(i,l)})),x(this,"handlePublishEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:i,entryDraft:o,collection:a,slug:s,currentStatus:l,t:u}=this.props;l===v.status.last()?o.get("hasChanged")?window.alert(u("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(u("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&(0,c.navigateToNewEntry)(a.get("name")),n&&i(o.get("entry"))):window.alert(u("editor.editor.onPublishingNotReady"))})),x(this,"handleUnpublishEntry",(async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),(0,c.navigateToCollection)(t.get("name"))})),x(this,"handleDuplicateEntry",(()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;(0,c.navigateToNewEntry)(t.get("name")),e(n.get("entry"))})),x(this,"handleDeleteEntry",(()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return(0,c.navigateToCollection)(n.get("name"));setTimeout((async()=>(await r(n,i),this.deleteBackup(),(0,c.navigateToCollection)(n.get("name")))),0)})),x(this,"handleDeleteUnpublishedChanges",(async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):(0,c.navigateToCollection)(t.get("name")))}))}componentDidMount(){const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const d=c.history.block(((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0}));this.unlisten=c.history.listen(((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),d(),this.unlisten())})),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup&&(window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()),this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:m,deployPreview:g,loadDeployPreview:v,draftKey:b,slug:_,t:x,editorBackLink:E}=this.props,k=!f&&!d;return e&&e.get("error")?(0,w.jsx)("div",null,(0,w.jsx)("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?(0,w.jsx)(l.Loader,{active:!0},x("editor.editor.loadingEntry")):(0,w.jsx)(y.default,{draftKey:b,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,currentStatus:h,onLogoutClick:m,deployPreview:g,loadDeployPreview:t=>v(r,_,e,k,t),editorBackLink:E,t:x})}}t.Editor=E,x(E,"propTypes",{changeDraftField:i.default.func.isRequired,changeDraftFieldValidation:i.default.func.isRequired,collection:a.default.map.isRequired,createDraftDuplicateFromEntry:i.default.func.isRequired,createEmptyDraft:i.default.func.isRequired,discardDraft:i.default.func.isRequired,entry:a.default.map,entryDraft:a.default.map.isRequired,loadEntry:i.default.func.isRequired,persistEntry:i.default.func.isRequired,deleteEntry:i.default.func.isRequired,showDelete:i.default.bool.isRequired,fields:a.default.list.isRequired,slug:i.default.string,newEntry:i.default.bool.isRequired,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,unpublishedEntry:i.default.bool,isModification:i.default.bool,collectionEntriesLoaded:i.default.bool,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,logoutUser:i.default.func.isRequired,loadEntries:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,currentStatus:i.default.string,user:i.default.object,location:i.default.shape({pathname:i.default.string,search:i.default.string}),hasChanged:i.default.bool,t:i.default.func.isRequired,retrieveLocalBackup:i.default.func.isRequired,localBackup:a.default.map,loadLocalBackup:i.default.func,persistLocalBackup:i.default.func.isRequired,deleteLocalBackup:i.default.func});const k={changeDraftField:f.changeDraftField,changeDraftFieldValidation:f.changeDraftFieldValidation,loadEntry:f.loadEntry,loadEntries:f.loadEntries,loadDeployPreview:h.loadDeployPreview,loadLocalBackup:f.loadLocalBackup,retrieveLocalBackup:f.retrieveLocalBackup,persistLocalBackup:f.persistLocalBackup,deleteLocalBackup:f.deleteLocalBackup,createDraftDuplicateFromEntry:f.createDraftDuplicateFromEntry,createEmptyDraft:f.createEmptyDraft,discardDraft:f.discardDraft,persistEntry:f.persistEntry,deleteEntry:f.deleteEntry,updateUnpublishedEntryStatus:p.updateUnpublishedEntryStatus,publishUnpublishedEntry:p.publishUnpublishedEntry,unpublishPublishedEntry:p.unpublishPublishedEntry,deleteUnpublishedEntry:p.deleteUnpublishedEntry,logoutUser:d.logoutUser};t.default=(0,s.connect)((function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,f=(0,g.selectFields)(u,l),p=d?null:(0,m.selectEntry)(e,c,l),h=i.user,y=r.get("hasChanged"),b=o.display_url,w=o.publish_mode===v.EDITORIAL_WORKFLOW,_=s.useOpenAuthoring,x=r.getIn(["entry","isModification"]),E=!!a.getIn(["pages",c]),k=(0,m.selectUnpublishedEntry)(e,c,l),C=(0,m.selectEntry)(e,c,l),S=k&&k.get("status"),A=(0,m.selectDeployPreview)(e,c,l),T=r.get("localBackup"),O=r.get("key");let P=`/collections/${c}`;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(P="/workflow"),u.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:y,displayUrl:b,hasWorkflow:w,useOpenAuthoring:_,isModification:x,collectionEntriesLoaded:E,currentStatus:S,deployPreview:A,localBackup:T,draftKey:O,publishedEntry:C,unPublishedEntry:k,editorBackLink:P}}),k)((0,b.default)((0,u.translate)()(E)))},65886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ControlHint=void 0;var r=k(n(70894)),i=k(n(74930)),o=k(n(83465)),a=k(n(12244)),s=n(74081),l=k(n(13980)),u=k(n(19155)),c=n(9316),d=n(28165),f=n(57903),p=n(30762),h=k(n(88100)),m=k(n(40940)),g=n(41891),v=n(50236),y=n(71033),b=n(33474),w=n(15207),_=n(68104),x=k(n(57622));const E=["node"];function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}function T(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={widget:`\n display: block;\n width: 100%;\n padding: ${p.lengths.inputPadding};\n margin: 0;\n border: ${p.borders.textField};\n border-radius: ${p.lengths.borderRadius};\n border-top-left-radius: 0;\n outline: 0;\n box-shadow: none;\n background-color: ${p.colors.inputBackground};\n color: #444a57;\n transition: border-color ${p.transitions.main};\n position: relative;\n font-size: 15px;\n line-height: 1.5;\n\n select& {\n text-indent: 14px;\n height: 58px;\n }\n `,widgetActive:`\n border-color: ${p.colors.active};\n `,widgetError:`\n border-color: ${p.colors.errorText};\n `,disabled:"\n pointer-events: none;\n opacity: 0.5;\n background: #ccc;\n ",hidden:"\n visibility: hidden;\n "},P=(0,r.default)("div",{target:"ec1nk3l2",label:"ControlContainer"})({name:"gpgisz",styles:"margin-top:16px;&:first-of-type{margin-top:36px;}"}),R=(0,r.default)("ul",{target:"ec1nk3l1",label:"ControlErrorsList"})("list-style-type:none;font-size:12px;color:",p.colors.errorText,";margin-bottom:8px;text-align:right;font-weight:600;"),M=t.ControlHint=(0,r.default)("p",{target:"ec1nk3l0",label:"ControlHint"})("margin-bottom:0;padding:3px 0;font-size:12px;color:",(e=>e.error?p.colors.errorText:e.active?p.colors.active:p.colors.controlLabel),";transition:color ",p.transitions.main,";");function D({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const s=`${e.get("label",e.get("name"))}`;return(0,d.jsx)(p.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},i?(0,d.jsx)(a.default.Fragment,null,s,(0,d.jsx)("span",null,` (${o("editor.editorControl.field.optional")})`)):s)}class I extends a.default.Component{constructor(...e){super(...e),T(this,"state",{activeLabel:!1}),T(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),T(this,"isAncestorOfFieldError",(()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some((e=>e.some((e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))))}))}render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:a,fieldsErrors:s,mediaPaths:l,boundGetAsset:u,onChange:c,openMediaLibrary:f,clearMediaControl:p,removeMediaControl:v,addAsset:y,removeInsertedMedia:b,persistMedia:w,onValidate:_,processControlRef:k,controlRef:C,query:S,queryHits:T,isFetching:I,clearSearch:j,clearFieldErrors:N,loadEntry:F,className:B,isSelected:U,isEditorComponent:z,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isLoadingAsset:G,isDisabled:V,isHidden:K,isFieldDuplicate:Z,isFieldHidden:Y,locale:X,isParentListCollapsed:Q}=this.props,J=i.get("widget"),ee=(0,g.resolveWidget)(J),te=i.get("name"),ne=i.get("hint"),re=!1===i.get("required"),ie=_,oe=a&&a.get(te),ae=s&&s.get(this.uniqueFieldId),se=this.isAncestorOfFieldError(),le=!!ae||se;return(0,d.jsx)(d.ClassNames,null,(({css:a,cx:J})=>(0,d.jsx)(P,{className:B,css:a`
|
||
${K&&O.hidden};
|
||
`},ee.globalStyles&&(0,d.jsx)(d.Global,{styles:(0,d.css)(ee.globalStyles,";;label:EditorControl;")}),ae&&(0,d.jsx)(R,null,ae.map((e=>e.message&&"string"==typeof e.message&&(0,d.jsx)("li",{key:e.message.trim().replace(/[^a-z0-9]+/gi,"-")},e.message)))),(0,d.jsx)(D,{field:i,isActive:U||this.state.styleActive,hasErrors:le,uniqueFieldId:this.uniqueFieldId,isFieldOptional:re,t:$}),(0,d.jsx)(x.default,{classNameWrapper:J(a`
|
||
${O.widget};
|
||
`,{[a`
|
||
${O.widgetActive};
|
||
`]:U||this.state.styleActive},{[a`
|
||
${O.widgetError};
|
||
`]:le},{[a`
|
||
${O.disabled}
|
||
`]:V}),classNameWidget:a`
|
||
${O.widget};
|
||
`,classNameWidgetActive:a`
|
||
${O.widgetActive};
|
||
`,classNameLabel:a`
|
||
${O.label};
|
||
`,classNameLabelActive:a`
|
||
${O.labelActive};
|
||
`,controlComponent:ee.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:l,metadata:oe,onChange:(e,t)=>c(i,e,t),onValidate:_&&(0,o.default)(_,this.uniqueFieldId),onOpenMediaLibrary:f,onClearMediaControl:p,onRemoveMediaControl:v,onRemoveInsertedMedia:b,onPersistMedia:w,onAddAsset:y,getAsset:u,hasActiveStyle:U||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:g.resolveWidget,widget:ee,getEditorComponents:g.getEditorComponents,ref:k&&(0,o.default)(k,i),controlRef:C,editorControl:L,query:S,loadEntry:F,queryHits:T[this.uniqueFieldId]||[],clearSearch:j,clearFieldErrors:N,isFetching:I,fieldsErrors:s,onValidateObject:ie,isEditorComponent:z,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isDisabled:V,isFieldDuplicate:Z,isFieldHidden:Y,isLoadingAsset:G,locale:X,isParentListCollapsed:Q}),ne&&(0,d.jsx)(M,{active:U||this.state.styleActive,error:le},(0,d.jsx)(h.default,{remarkPlugins:[m.default],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,E);return(0,d.jsx)("a",A({},n,{target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}}))}}},ne)))))}}T(I,"propTypes",{value:l.default.oneOfType([l.default.node,l.default.object,l.default.string,l.default.bool]),field:u.default.map.isRequired,fieldsMetaData:u.default.map,fieldsErrors:u.default.map,mediaPaths:u.default.map.isRequired,boundGetAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,openMediaLibrary:l.default.func.isRequired,addAsset:l.default.func.isRequired,removeInsertedMedia:l.default.func.isRequired,persistMedia:l.default.func.isRequired,onValidate:l.default.func,processControlRef:l.default.func,controlRef:l.default.func,query:l.default.func.isRequired,queryHits:l.default.object,isFetching:l.default.bool,clearSearch:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,loadEntry:l.default.func.isRequired,t:l.default.func.isRequired,isEditorComponent:l.default.bool,isNewEditorComponent:l.default.bool,parentIds:l.default.arrayOf(l.default.string),entry:u.default.map.isRequired,collection:u.default.map.isRequired,isDisabled:l.default.bool,isHidden:l.default.bool,isFieldDuplicate:l.default.func,isFieldHidden:l.default.func,locale:l.default.string,isParentListCollapsed:l.default.bool}),T(I,"defaultProps",{parentIds:[]});const L=(0,f.connect)((function(e){const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=(0,b.selectIsLoadingAsset)(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async function(n,r){const i=t.get(n);if(i)return await(0,v.tryLoadEntry)(e,i,r);throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>(0,v.validateMetaField)(e,i,t,n,r)}}),(function(e){return S(S({},(0,s.bindActionCreators)({openMediaLibrary:_.openMediaLibrary,clearMediaControl:_.clearMediaControl,removeMediaControl:_.removeMediaControl,removeInsertedMedia:_.removeInsertedMedia,persistMedia:_.persistMedia,addAsset:y.addAsset,query:w.query,clearSearch:w.clearSearch,clearFieldErrors:v.clearFieldErrors},e)),{},{boundGetAsset:(t,n)=>(0,y.boundGetAsset)(e,t,n)})}),(function(e,t,n){return S(S(S(S({},e),t),n),{},{boundGetAsset:t.boundGetAsset(e.collection,e.entry)})}))((0,c.translate)()(I));t.default=L},46776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(12244)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(30762),u=d(n(65886)),c=n(13943);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11hw0lx4",label:"ControlPaneContainer"})({name:"1n0x6o4",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px"}),h=(0,r.default)(l.StyledDropdownButton,{target:"e11hw0lx3",label:"LocaleButton"})(l.buttons.button,";",l.buttons.medium,";color:",l.colors.controlLabel,";background:",l.colors.textFieldBorder,";height:100%;&:after{top:11px;}"),m=(0,r.default)("div",{target:"e11hw0lx2",label:"LocaleButtonWrapper"})({name:"zjik7",styles:"display:flex"}),g=(0,r.default)("div",{target:"e11hw0lx1",label:"LocaleRowWrapper"})({name:"zjik7",styles:"display:flex"}),v=(0,r.default)(l.Dropdown,{target:"e11hw0lx0",label:"StyledDropdown"})({name:"1hfmrg2",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px"});function y({locales:e,dropdownText:t,onLocaleChange:n}){return(0,s.jsx)(v,{renderButton:()=>(0,s.jsx)(m,null,(0,s.jsx)(h,null,t))},e.map((e=>(0,s.jsx)(l.DropdownItem,{css:(0,s.css)(l.text.fieldLabel,";;label:LocaleDropdown;"),key:e,label:e,onClick:()=>n(e)}))))}function b({field:e,entry:t,isTranslatable:n,locale:r}){if(e.get("meta"))return t.getIn(["meta",e.get("name")]);if(n){const n=(0,c.getLocaleDataPath)(r);return t.getIn([...n,e.get("name")])}return t.getIn(["data",e.get("name")])}class w extends i.default.Component{constructor(...e){super(...e),f(this,"state",{selectedLocale:this.props.locale}),f(this,"componentValidate",{}),f(this,"handleLocaleChange",(e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)})),f(this,"copyFromOtherLocale",(({targetLocale:e,t})=>n=>{if(!window.confirm(t("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:n.toUpperCase()})))return;const{entry:r,collection:i}=this.props,{locales:o,defaultLocale:a}=(0,c.getI18nInfo)(i),s=this.state.selectedLocale,l=o&&{currentLocale:s,locales:o,defaultLocale:a};this.props.fields.forEach((t=>{if((0,c.isFieldTranslatable)(t,e,n)){const e=b({field:t,entry:r,locale:n,isTranslatable:n!==a});e&&this.props.onChange(t,e,void 0,l)}}))})),f(this,"validate",(async()=>{this.props.fields.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),f(this,"switchToDefaultLocale",(()=>{if((0,c.hasI18n)(this.props.collection)){const{defaultLocale:e}=(0,c.getI18nInfo)(this.props.collection);return new Promise((t=>this.setState({selectedLocale:e},t)))}return Promise.resolve()}))}controlRef(e,t){var n;if(!t)return;const r=e.get("name");this.componentValidate[r]=(null===(n=t.innerWrappedControl)||void 0===n?void 0:n.validate)||t.validate}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,t:l}=this.props;if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:d,defaultLocale:f}=(0,c.getI18nInfo)(e),h=this.state.selectedLocale,m=d&&{currentLocale:h,locales:d,defaultLocale:f};return(0,s.jsx)(p,null,d&&(0,s.jsx)(g,null,(0,s.jsx)(y,{locales:d,dropdownText:l("editor.editorControlPane.i18n.writingInLocale",{locale:h.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),(0,s.jsx)(y,{locales:d.filter((e=>e!==h)),dropdownText:l("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:h,t:l})})),n.filter((e=>"hidden"!==e.get("widget"))).map(((n,l)=>{const d=(0,c.isFieldTranslatable)(n,h,f),p=(0,c.isFieldDuplicate)(n,h,f),g=(0,c.isFieldHidden)(n,h,f),v=m?`${h}_${l}`:l;return(0,s.jsx)(u.default,{key:v,field:n,value:b({field:n,entry:t,locale:h,isTranslatable:d}),fieldsMetaData:r,fieldsErrors:i,onChange:(e,t,n)=>{o(e,t,n,m)},onValidate:a,processControlRef:this.controlRef.bind(this),controlRef:this.controlRef,entry:t,collection:e,isDisabled:p,isHidden:g,isFieldDuplicate:e=>(0,c.isFieldDuplicate)(e,h,f),isFieldHidden:e=>(0,c.isFieldHidden)(e,h,f),locale:h})})))}}t.default=w,w.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:o.default.func.isRequired,onValidate:o.default.func.isRequired,locale:o.default.string}},57622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(13980)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),o=d(n(19155)),a=n(46670),s=n(13856),l=n(41891),u=d(n(1757));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return{error:!1}}function h(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||a.List.isList(e)&&0===e.size}class m extends i.Component{constructor(...e){super(...e),f(this,"processInnerControlRef",(e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||p;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl)})),f(this,"getValidateValue",(()=>{var e,t;let n=(null===(e=this.innerWrappedControl)||void 0===e||null===(t=e.getValidateValue)||void 0===t?void 0:t.call(e))||this.props.value;return a.List.isList(n)&&(n=n.join(",")),n})),f(this,"validate",((e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],i=[this.validatePresence,this.validatePattern];if(n.get("meta")&&i.push(this.props.validateMetaField),i.forEach((e=>{const i=e(n,t,this.props.t);i.error&&r.push(i.error)})),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)})),f(this,"validatePresence",((e,t)=>{const{t:n,parentIds:r}=this.props;return e.get("required",!0)&&h(t)?{error:{type:u.default.PRESENCE,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}:{error:!1}})),f(this,"validatePattern",((e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);return h(t)?{error:!1}:i&&!RegExp(i.first()).test(t)?{error:{type:u.default.PATTERN,parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}:{error:!1}})),f(this,"validateWrappedControl",(e=>{const{t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(s.oneLine`
|
||
this.wrappedControlValid is not a function. Are you sure widget
|
||
"${e.get("widget")}" is registered?
|
||
`);const r=this.wrappedControlValid();return"boolean"==typeof r?{error:!r}:Object.prototype.hasOwnProperty.call(r,"error")?r:r instanceof Promise?(r.then((()=>{this.validate({error:!1})}),(t=>{const n={type:u.default.CUSTOM,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})})),{error:{type:u.default.CUSTOM,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}):{error:!1}})),f(this,"getObjectValue",(()=>this.props.value||(0,a.Map)())),f(this,"onChangeObject",((e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})})),f(this,"setInactiveStyle",(()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!h(this.getValidateValue())&&this.validate()}))}shouldComponentUpdate(e){return(!this.props.isLoadingAsset||!e.isLoadingAsset)&&(this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle)}render(){const{controlComponent:e,entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onValidateObject:d,onOpenMediaLibrary:f,onRemoveMediaControl:p,onPersistMedia:h,onClearMediaControl:m,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:E,setActiveStyle:k,hasActiveStyle:C,editorControl:S,uniqueFieldId:A,resolveWidget:T,widget:O,getEditorComponents:P,query:R,queryHits:M,clearSearch:D,clearFieldErrors:I,isFetching:L,loadEntry:j,fieldsErrors:N,controlRef:F,isEditorComponent:B,isNewEditorComponent:U,parentIds:z,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:G,isParentListCollapsed:V}=this.props;return i.default.createElement(e,{entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onChangeObject:this.onChangeObject,onValidateObject:d,onOpenMediaLibrary:f,onClearMediaControl:m,onRemoveMediaControl:p,onPersistMedia:h,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,forID:A,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:E,setActiveStyle:k,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:C,editorControl:S,resolveWidget:T,widget:O,getEditorComponents:P,getRemarkPlugins:l.getRemarkPlugins,query:R,queryHits:M,clearSearch:D,clearFieldErrors:I,isFetching:L,loadEntry:j,isEditorComponent:B,isNewEditorComponent:U,fieldsErrors:N,controlRef:F,parentIds:z,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:G,isParentListCollapsed:V})}}t.default=m,f(m,"propTypes",{controlComponent:r.default.func.isRequired,field:o.default.map.isRequired,hasActiveStyle:r.default.bool,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,classNameWidget:r.default.string.isRequired,classNameWidgetActive:r.default.string.isRequired,classNameLabel:r.default.string.isRequired,classNameLabelActive:r.default.string.isRequired,value:r.default.oneOfType([r.default.node,r.default.object,r.default.string,r.default.bool]),mediaPaths:o.default.map.isRequired,metadata:o.default.map,fieldsErrors:o.default.map,onChange:r.default.func.isRequired,onValidate:r.default.func,onOpenMediaLibrary:r.default.func.isRequired,onClearMediaControl:r.default.func.isRequired,onRemoveMediaControl:r.default.func.isRequired,onPersistMedia:r.default.func.isRequired,onAddAsset:r.default.func.isRequired,onRemoveInsertedMedia:r.default.func.isRequired,getAsset:r.default.func.isRequired,resolveWidget:r.default.func.isRequired,widget:r.default.object.isRequired,getEditorComponents:r.default.func.isRequired,isFetching:r.default.bool,controlRef:r.default.func,query:r.default.func.isRequired,clearSearch:r.default.func.isRequired,clearFieldErrors:r.default.func.isRequired,queryHits:r.default.oneOfType([r.default.array,r.default.object]),editorControl:r.default.elementType.isRequired,uniqueFieldId:r.default.string.isRequired,loadEntry:r.default.func.isRequired,t:r.default.func.isRequired,onValidateObject:r.default.func,isEditorComponent:r.default.bool,isNewEditorComponent:r.default.bool,entry:o.default.map.isRequired,isDisabled:r.default.bool,isFieldDuplicate:r.default.func,isFieldHidden:r.default.func,locale:r.default.string,isParentListCollapsed:r.default.bool})},78767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),a=y(n(19155)),s=n(28165),l=y(n(31396)),u=n(30762),c=n(93232),d=y(n(46776)),f=y(n(75904)),p=y(n(6714)),h=n(13943),m=n(48781),g=n(45624);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="cms.preview-visible",x="cms.scroll-sync-enabled",E="cms.split-pane-position",k="cms.i18n-visible",C={splitPane:(0,s.css)(u.components.card,";border-radius:0;height:100%;;label:splitPane;"),pane:{name:"1yvxf4n-pane",styles:"height:100%;overflow-y:auto;label:pane;"}},S=(0,r.default)(u.IconButton,{target:"e1nx103k7",label:"EditorToggle"})({name:"cn3xcj",styles:"margin-bottom:12px"});function A(){return(0,s.jsx)(s.Global,{styles:(0,s.css)(".Resizer.vertical{width:2px;cursor:col-resize;position:relative;background:none;&:before{content:'';width:2px;height:100%;position:relative;background-color:",u.colors.textFieldBorder,";display:block;z-index:10;transition:background-color ",u.transitions.main,";}&:hover,&:active{&:before{width:4px;left:-1px;background-color:",u.colorsRaw.blue,";}}};label:ReactSplitPaneGlobalStyles;")})}const T=(0,r.default)(l.default,{target:"e1nx103k6",label:"StyledSplitPane"})(C.splitPane,";.Pane{height:100%;}"),O=(0,r.default)("div",{target:"e1nx103k5",label:"NoPreviewContainer"})(C.splitPane,";"),P=(0,r.default)("div",{target:"e1nx103k4",label:"EditorContainer"})("width:100%;min-width:800px;height:100%;position:absolute;top:0;left:0;overflow:hidden;padding-top:66px;background-color:",u.colors.background,";"),R=(0,r.default)("div",{target:"e1nx103k3",label:"Editor"})({name:"yd3x82",styles:"height:100%;margin:0 auto;position:relative"}),M=(0,r.default)("div",{target:"e1nx103k2",label:"PreviewPaneContainer"})("height:100%;pointer-events:",(e=>e.blockEntry?"none":"auto"),";overflow-y:",(e=>e.overFlow?"auto":"hidden"),";"),D=(0,r.default)(M,{target:"e1nx103k1",label:"ControlPaneContainer"})({name:"b2tic3",styles:"padding:0 16px;position:relative;overflow-x:hidden"}),I=(0,r.default)("div",{target:"e1nx103k0",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",u.zIndex.zIndex299,";");function L({i18nVisible:e,previewVisible:t,editor:n,editorWithEditor:r,editorWithPreview:i}){return e?r:t?i:(0,s.jsx)(O,null,n)}class j extends o.Component{constructor(...e){super(...e),w(this,"state",{showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem(_),scrollSyncEnabled:"false"!==localStorage.getItem(x),i18nVisible:"false"!==localStorage.getItem(k)}),w(this,"handleSplitPaneDragStart",(()=>{this.setState({showEventBlocker:!0})})),w(this,"handleSplitPaneDragFinished",(()=>{this.setState({showEventBlocker:!1})})),w(this,"handleOnPersist",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})})),w(this,"handleOnPublish",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})})),w(this,"handleTogglePreview",(()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem(_,e)})),w(this,"handleToggleScrollSync",(()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem(x,e)})),w(this,"handleToggleI18n",(()=>{const e=!this.state.i18nVisible;this.setState({i18nVisible:e}),localStorage.setItem(k,e)})),w(this,"handleLeftPanelLocaleChange",(e=>{this.setState({leftPanelLocale:e})}))}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,onPublish:y,unPublish:w,onDuplicate:_,onValidate:x,user:k,hasChanged:C,displayUrl:O,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:U,currentStatus:z,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,draftKey:H,editorBackLink:G,t:V}=this.props,{scrollSyncEnabled:K,showEventBlocker:Z}=this.state,Y=function(e,t){if(e.get("type")===m.FILES){const n=(0,g.getFileFromSlug)(e,t.get("slug")),r=null==n?void 0:n.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),{locales:X,defaultLocale:Q}=(0,h.getI18nInfo)(this.props.collection),J=(0,h.hasI18n)(e)&&X.length>1,ee={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:x},te=this.state.leftPanelLocale||(null==X?void 0:X[0]),ne=(0,s.jsx)(D,{overFlow:!0,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{ref:e=>this.controlPaneRef=e,locale:te,t:V,onLocaleChange:this.handleLeftPanelLocaleChange}))),re=(0,s.jsx)(D,{overFlow:!this.state.scrollSyncEnabled,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{locale:null==X?void 0:X[1],t:V}))),ie=J?(0,h.getPreviewEntry)(t,te,Q):t,oe=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(A,null),(0,s.jsx)(T,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(E),10)||"50%",onChange:e=>localStorage.setItem(E,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(M,{blockEntry:Z},(0,s.jsx)(f.default,{collection:e,entry:ie,fields:n,fieldsMetaData:r,locale:te}))))),ae=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(T,{maxSize:-100,defaultSize:parseInt(localStorage.getItem(E),10)||"50%",onChange:e=>localStorage.setItem(E,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(c.ScrollSyncPane,null,re)))),se=J&&this.state.i18nVisible,le=Y&&this.state.previewVisible,ue=se||le;return(0,s.jsx)(P,null,(0,s.jsx)(p.default,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,showDelete:a,onPublish:y,unPublish:w,onDuplicate:_,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:k,hasChanged:C,displayUrl:O,collection:e,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:U,currentStatus:z,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,editorBackLink:G}),(0,s.jsx)(R,{key:H},(0,s.jsx)(I,null,J&&(0,s.jsx)(S,{isActive:se,onClick:this.handleToggleI18n,size:"large",type:"page",title:V("editor.editorInterface.toggleI18n"),marginTop:"70px"}),Y&&(0,s.jsx)(S,{isActive:le,onClick:this.handleTogglePreview,size:"large",type:"eye",title:V("editor.editorInterface.togglePreview")}),ue&&(0,s.jsx)(S,{isActive:K,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:V("editor.editorInterface.toggleScrollSync")})),(0,s.jsx)(L,{i18nVisible:se,previewVisible:le,editor:ne,editorWithEditor:ae,editorWithPreview:oe})))}}j.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:i.default.func.isRequired,onValidate:i.default.func.isRequired,onPersist:i.default.func.isRequired,showDelete:i.default.bool.isRequired,onDelete:i.default.func.isRequired,onDeleteUnpublishedChanges:i.default.func.isRequired,onPublish:i.default.func.isRequired,unPublish:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onChangeStatus:i.default.func.isRequired,user:i.default.object,hasChanged:i.default.bool,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,hasUnpublishedChanges:i.default.bool,isNewEntry:i.default.bool,isModification:i.default.bool,currentStatus:i.default.string,onLogoutClick:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,draftKey:i.default.string.isRequired,t:i.default.func.isRequired},t.default=j},4488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(12244)),o=l(n(13980)),a=l(n(19155)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return"hidden"!==e.get("widget")}const c=(0,r.default)("div",{target:"e1iji6y40",label:"PreviewContainer"})({name:"9bq7s9",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif"});class d extends i.default.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?(0,s.jsx)(c,null,t.filter(u).map((e=>(0,s.jsx)("div",{key:e.get("name")},n(e.get("name")))))):null}}t.default=d,d.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,getAsset:o.default.func.isRequired,widgetFor:o.default.func.isRequired}},86545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(12244)),o=n(48570),a=n(93232),s=n(12693),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default.Component{render(){const{previewComponent:e,previewProps:t}=this.props;return(0,l.jsx)(s.FrameContextConsumer,null,(n=>(0,l.jsx)(a.ScrollSyncPane,{attachTo:n.document.scrollingElement},(0,o.isElement)(e)?i.default.cloneElement(e,t):i.default.createElement(e,t))))}}c.propTypes={previewComponent:r.default.func.isRequired,previewProps:r.default.object},t.default=c},75904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewPane=void 0;var r=E(n(70894)),i=E(n(13980)),o=E(n(12244)),a=n(46670),s=E(n(19155)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12693)),u=n(30762),c=n(57903),d=n(41891),f=n(50236),p=n(50758),h=n(45624),m=n(71033),g=n(33474),v=n(39010),y=E(n(86545)),b=E(n(16791)),w=E(n(4488)),_=n(28165);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A=(0,r.default)(l.default,{target:"enus48h0",label:"PreviewPaneFrame"})("width:100%;height:100%;border:none;background:#fff;border-radius:",u.lengths.borderRadius,";");class T extends o.default.Component{constructor(...e){super(...e),S(this,"getWidget",((e,t,n,r,i=null)=>{const{getAsset:o,entry:s}=r,l=(0,d.resolveWidget)(e.get("widget")),u=i?e.get("name")+"_"+i:e.get("name"),c=t&&!l.allowMapValue&&a.Map.isMap(t);return l.preview?(0,_.jsx)(b.default,{previewComponent:l.preview,key:u,field:e,getAsset:o,value:c?t.get(e.get("name")):t,entry:s,fieldsMetaData:n,resolveWidget:d.resolveWidget,getRemarkPlugins:d.getRemarkPlugins}):null})),S(this,"inferredFields",{}),S(this,"widgetFor",((e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let i=t&&t.find((t=>t.get("name")===e)),o=a.Map.isMap(n)&&n.get(i.get("name"));i.get("meta")&&(o=this.props.entry.getIn(["meta",i.get("name")]));const s=i.get("fields"),l=i.get("field"),u=r&&r.get(i.get("name"),(0,a.Map)());s&&(i=i.set("fields",this.getNestedWidgets(s,o,u))),l&&(i=i.set("field",this.getSingleNested(l,o,u)));const c=Object.entries(this.inferredFields).filter((([e])=>(0,h.selectField)(this.props.collection,e)===i)).map((([,e])=>e))[0];return c?o=c.defaultPreview(o):o&&-1!==["string","text","number"].indexOf(i.get("widget"))&&o.toString().length<50&&(o=(0,_.jsx)("div",null,(0,_.jsx)("strong",null,i.get("label",i.get("name")),":")," ",o)),o?this.getWidget(i,o,u,this.props):null})),S(this,"getNestedWidgets",((e,t,n)=>a.List.isList(t)?t.map((t=>this.widgetsForNestedFields(e,t,n))):this.widgetsForNestedFields(e,t,n))),S(this,"getSingleNested",((e,t,n)=>a.List.isList(t)?t.map(((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r))):this.getWidget(e,t,n.get(e.get("name")),this.props))),S(this,"widgetsForNestedFields",((e,t,n)=>e.map((r=>this.widgetFor(r.get("name"),e,t,n))))),S(this,"widgetsFor",(e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find((t=>t.get("name")===e)),o=i&&i.get("fields"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,a.Map)());return a.List.isList(s)?s.map((e=>{const t=o&&(0,a.Map)(o.map(((t,n)=>[t.get("name"),(0,_.jsx)("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))])));return(0,a.Map)({data:e,widgets:t})})):(0,a.Map)({data:s,widgets:o&&(0,a.Map)(o.map((e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)])))})})),S(this,"getCollection",(async(e,t)=>{const{state:n}=this.props,r=n.collections.get(e);if(void 0===t)return(await(0,f.getAllEntries)(n,r)).map((e=>(0,a.Map)().set("data",e.data)));const i=await(0,f.tryLoadEntry)(n,r,t);return(0,a.Map)().set("data",i.data)}))}inferFields(){const e=(0,h.selectInferredField)(this.props.collection,"title"),t=(0,h.selectInferredField)(this.props.collection,"shortTitle"),n=(0,h.selectInferredField)(this.props.collection,"author");this.inferredFields={},e&&(this.inferredFields[e]=v.INFERABLE_FIELDS.title),t&&(this.inferredFields[t]=v.INFERABLE_FIELDS.shortTitle),n&&(this.inferredFields[n]=v.INFERABLE_FIELDS.author)}render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=(0,d.getPreviewTemplate)((0,h.selectTemplateName)(t,e.get("slug")))||w.default;this.inferFields();const i=C(C({},this.props),{},{widgetFor:this.widgetFor,widgetsFor:this.widgetsFor,getCollection:this.getCollection}),o=(0,d.getPreviewStyles)().map(((e,t)=>e.raw?(0,_.jsx)("style",{key:t},e.value):(0,_.jsx)("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"})));return t||(0,_.jsx)(A,{id:"preview-pane",head:o}),(0,_.jsx)(p.ErrorBoundary,{config:n},(0,_.jsx)(A,{id:"preview-pane",head:o,initialContent:'\n<!DOCTYPE html>\n<html>\n <head><base target="_blank"/></head>\n <body><div></div></body>\n</html>\n'},(0,_.jsx)(l.FrameContextConsumer,null,(({document:e,window:t})=>(0,_.jsx)(y.default,{previewComponent:r,previewProps:C(C({},i),{},{document:e,window:t})})))))}}t.PreviewPane=T,T.propTypes={collection:s.default.map.isRequired,fields:s.default.list.isRequired,entry:s.default.map.isRequired,fieldsMetaData:s.default.map.isRequired,getAsset:i.default.func.isRequired},t.default=(0,c.connect)((function(e){return{isLoadingAsset:(0,g.selectIsLoadingAsset)(e.medias),config:e.config,state:e}}),(function(e){return{boundGetAsset:(t,n)=>(0,m.boundGetAsset)(e,t,n)}}),(function(e,t,n){return C(C(C(C({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))(T)},16791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(12244)),i=s(n(13980)),o=s(n(19155));const a=["previewComponent"];function s(e){return e&&e.__esModule?e:{default:e}}class l extends r.default.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const e=this.props,{previewComponent:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return r.default.createElement(t,n)}}l.propTypes={previewComponent:i.default.func.isRequired,field:o.default.map.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.string,i.default.bool])},t.default=l},6714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EditorToolbar=void 0;var r=p(n(70894)),i=p(n(12244)),o=p(n(13980)),a=p(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(61928),f=n(50758);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={noOverflow:{name:"1ctb18k-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;label:noOverflow;"},buttonMargin:{name:"bx8mhy-buttonMargin",styles:"margin:0 10px;label:buttonMargin;"},toolbarSection:(0,s.css)("height:100%;display:flex;align-items:center;border:0 solid ",c.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,s.css)("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.tealDark,";;label:publishedButton;")},g=(0,r.default)("div",{target:"e1d2l9mo26",label:"TooltipText"})({name:"1ykbu60",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s"}),v=(0,r.default)("div",{target:"e1d2l9mo25",label:"Tooltip"})("position:relative;display:inline-block;&:hover+",g,"{visibility:visible;opacity:0.9;}"),y=(0,r.default)("div",{target:"e1d2l9mo24",label:"TooltipContainer"})({name:"bjn8wh",styles:"position:relative"}),b=(0,r.default)(c.StyledDropdownButton,{target:"e1d2l9mo23",label:"DropdownButton"})(m.noOverflow,"@media (max-width: 1200px){padding-left:10px;}"),w=(0,r.default)("div",{target:"e1d2l9mo22",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1);position:absolute;top:0;left:0;width:100%;min-width:800px;z-index:",c.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),_=(0,r.default)("div",{target:"e1d2l9mo21",label:"ToolbarSectionMain"})(m.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),x=(0,r.default)("div",{target:"e1d2l9mo20",label:"ToolbarSubSectionFirst"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),E=(0,r.default)(x,{target:"e1d2l9mo19",label:"ToolbarSubSectionLast"})({name:"1f60if8",styles:"justify-content:flex-end"}),k=(0,r.default)(u.Link,{target:"e1d2l9mo18",label:"ToolbarSectionBackLink"})(m.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),C=(0,r.default)("div",{target:"e1d2l9mo17",label:"ToolbarSectionMeta"})(m.toolbarSection,";border-left-width:1px;padding:0 7px;"),S=(0,r.default)(c.Dropdown,{target:"e1d2l9mo16",label:"ToolbarDropdown"})(m.buttonMargin,";",c.Icon,"{color:",c.colorsRaw.teal,";}"),A=(0,r.default)("div",{target:"e1d2l9mo15",label:"BackArrow"})("color:",c.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),T=(0,r.default)("div",{target:"e1d2l9mo14",label:"BackCollection"})("color:",c.colors.textLead,";font-size:14px;"),O=(0,r.default)("div",{target:"e1d2l9mo13",label:"BackStatus"})({name:"j9a02z",styles:"margin-top:6px"}),P=(0,r.default)(O,{target:"e1d2l9mo12",label:"BackStatusUnchanged"})(c.components.textBadgeSuccess,";"),R=(0,r.default)(O,{target:"e1d2l9mo11",label:"BackStatusChanged"})(c.components.textBadgeDanger,";"),M=(0,r.default)("button",{target:"e1d2l9mo10",label:"ToolbarButton"})(c.buttons.button,";",c.buttons.default,";",m.buttonMargin,";",m.noOverflow,";display:block;@media (max-width: 1200px){padding:0 10px;}"),D=(0,r.default)(M,{target:"e1d2l9mo9",label:"DeleteButton"})(c.buttons.lightRed,";"),I=(0,r.default)(M,{target:"e1d2l9mo8",label:"SaveButton"})(c.buttons.lightBlue,";&[disabled]{",c.buttons.disabled,";}"),L=(0,r.default)(b,{target:"e1d2l9mo7",label:"PublishedToolbarButton"})(m.publishedButton,";"),j=(0,r.default)(M,{target:"e1d2l9mo6",label:"PublishedButton"})(m.publishedButton,";"),N=(0,r.default)(b,{target:"e1d2l9mo5",label:"PublishButton"})("background-color:",c.colorsRaw.teal,";"),F=(0,r.default)(b,{target:"e1d2l9mo4",label:"StatusButton"})("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.teal,";"),B=(0,r.default)("div",{target:"e1d2l9mo3",label:"PreviewButtonContainer"})("margin-right:12px;color:",c.colorsRaw.blue,";display:flex;align-items:center;a,",c.Icon,"{color:",c.colorsRaw.blue,";}",c.Icon,"{position:relative;top:1px;}"),U=(0,r.default)("button",{target:"e1d2l9mo2",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",c.colorsRaw.blue,";span{margin-right:6px;}"),z=U.withComponent("a",{target:"e1d2l9mo27",label:"PreviewLink"}),q=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo1",label:"PublishDropDownItem"})({name:"svxjwj",styles:"min-width:initial"}),W=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo0",label:"StatusDropdownItem"})(c.Icon,"{color:",c.colors.infoText,";}");class $ extends i.default.Component{constructor(...e){super(...e),h(this,"renderSimpleControls",(()=>{const{collection:e,hasChanged:t,isNewEntry:n,showDelete:r,onDelete:o,t:a}=this.props,l=e.get("create");return(0,s.jsx)(i.default.Fragment,null,n||t?this.renderNewEntrySimplePublishControls({canCreate:l}):this.renderExistingEntrySimplePublishControls({canCreate:l}),(0,s.jsx)("div",null,r?(0,s.jsx)(D,{onClick:o},a("editor.editorToolbar.deleteEntry")):null))})),h(this,"renderDeployPreviewControls",(e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:i,status:o,isFetching:a}=t;if(!o)return;const l="SUCCESS"===o&&!a;return(0,s.jsx)(B,null,l?(0,s.jsx)(z,{rel:"noopener noreferrer",target:"_blank",href:i},(0,s.jsx)("span",null,e),(0,s.jsx)(c.Icon,{type:"new-tab",size:"xsmall"})):(0,s.jsx)(U,{onClick:n},(0,s.jsx)("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),(0,s.jsx)(c.Icon,{type:"refresh",size:"xsmall"})))})),h(this,"renderStatusInfoTooltip",(()=>{const{t:e,currentStatus:t}=this.props,n={[d.status.get("DRAFT")]:"statusInfoTooltipDraft",[d.status.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find((e=>e===t));return(0,s.jsx)(y,null,(0,s.jsx)(v,null,(0,s.jsx)(c.Icon,{type:"info-circle",size:"small",className:"tooltip"})),r&&(0,s.jsx)(g,null,e(`editor.editorToolbar.${n[r]}`)))})),h(this,"renderWorkflowStatusControls",(()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:o}=this.props,a={[d.status.get("DRAFT")]:r("editor.editorToolbar.draft"),[d.status.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[d.status.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},l=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:a[n]});return(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>(0,s.jsx)(F,null,l)},(0,s.jsx)(W,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===d.status.get("DRAFT")?"check":null}),(0,s.jsx)(W,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===d.status.get("PENDING_REVIEW")?"check":null}),o?"":(0,s.jsx)(W,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===d.status.get("PENDING_PUBLISH")?"check":null})),o&&this.renderStatusInfoTooltip())})),h(this,"renderNewEntryWorkflowPublishControls",(({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:o,onPublishAndDuplicate:a,t:l}=this.props;return t?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"200px",renderButton:()=>(0,s.jsx)(N,null,l(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(q,{label:l("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:o}),(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:a})):null):""})),h(this,"renderExistingEntryWorkflowPublishControls",(({canCreate:e,canPublish:t,canDelete:n})=>{const{unPublish:r,onDuplicate:i,isPersisting:o,t:a}=this.props;return t||e?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",key:"td-publish-create",renderButton:()=>(0,s.jsx)(L,null,a(o?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},n&&t&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:r}),e&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.duplicate"),icon:"add",onClick:i})):""})),h(this,"renderExistingEntrySimplePublishControls",(({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(L,null,n("editor.editorToolbar.published"))},(0,s.jsx)(c.DropdownItem,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})):(0,s.jsx)(j,null,n("editor.editorToolbar.published"))})),h(this,"renderNewEntrySimplePublishControls",(({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:o,t:a}=this.props;return(0,s.jsx)("div",null,(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(N,null,a(o?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})):null))})),h(this,"renderSimpleDeployPreviewControls",(()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))})),h(this,"renderWorkflowControls",(()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:o,useOpenAuthoring:a,isPersisting:l,isDeleting:u,isNewEntry:c,isModification:d,currentStatus:f,collection:p,t:h}=this.props,m=p.get("create"),g=p.get("publish")&&!a,v=p.get("delete",!0),y=o&&d&&h("editor.editorToolbar.deleteUnpublishedChanges")||o&&(c||!d)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!o&&!d&&h("editor.editorToolbar.deletePublishedEntry");return[(0,s.jsx)(I,{disabled:!i,key:"save-button",onClick:()=>i&&e()},h(l?"editor.editorToolbar.saving":"editor.editorToolbar.save")),f?[this.renderWorkflowStatusControls(),this.renderNewEntryWorkflowPublishControls({canCreate:m,canPublish:g})]:!c&&this.renderExistingEntryWorkflowPublishControls({canCreate:m,canPublish:g,canDelete:v}),r&&!a||o||d?(0,s.jsx)(D,{key:"delete-button",onClick:o?n:t},u?h("editor.editorToolbar.deleting"):y):null]})),h(this,"renderWorkflowDeployPreviewControls",(()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))}))}componentDidMount(){const{isNewEntry:e,loadDeployPreview:t}=this.props;e||t({maxAttempts:3})}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||r({maxAttempts:3})}render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:l}=this.props;return(0,s.jsx)(w,null,(0,s.jsx)(k,{to:l},(0,s.jsx)(A,null,"←"),(0,s.jsx)("div",null,(0,s.jsx)(T,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?(0,s.jsx)(R,null,a("editor.editorToolbar.unsavedChanges")):(0,s.jsx)(P,null,a("editor.editorToolbar.changesSaved")))),(0,s.jsx)(_,null,(0,s.jsx)(x,null,i?this.renderWorkflowControls():this.renderSimpleControls()),(0,s.jsx)(E,null,i?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls())),(0,s.jsx)(C,null,(0,s.jsx)(f.SettingsDropdown,{displayUrl:n,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:o})))}}t.EditorToolbar=$,h($,"propTypes",{isPersisting:o.default.bool,isPublishing:o.default.bool,isUpdatingStatus:o.default.bool,isDeleting:o.default.bool,onPersist:o.default.func.isRequired,onPersistAndNew:o.default.func.isRequired,onPersistAndDuplicate:o.default.func.isRequired,showDelete:o.default.bool.isRequired,onDelete:o.default.func.isRequired,onDeleteUnpublishedChanges:o.default.func.isRequired,onChangeStatus:o.default.func.isRequired,onPublish:o.default.func.isRequired,unPublish:o.default.func.isRequired,onDuplicate:o.default.func.isRequired,onPublishAndNew:o.default.func.isRequired,onPublishAndDuplicate:o.default.func.isRequired,user:o.default.object,hasChanged:o.default.bool,displayUrl:o.default.string,collection:a.default.map.isRequired,hasWorkflow:o.default.bool,useOpenAuthoring:o.default.bool,hasUnpublishedChanges:o.default.bool,isNewEntry:o.default.bool,isModification:o.default.bool,currentStatus:o.default.string,onLogoutClick:o.default.func.isRequired,deployPreview:o.default.object,loadDeployPreview:o.default.func.isRequired,t:o.default.func.isRequired,editorBackLink:o.default.string.isRequired}),t.default=(0,l.translate)()($)},42531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.connect)(h,null,m)(class extends i.default.Component{render(){return(0,c.jsx)(e,this.props)}})};var r,i=(r=n(12244))&&r.__esModule?r:{default:r},o=n(57903),a=n(61928),s=n(36642),l=n(45624),u=n(91358),c=n(28165);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const{collections:n}=e,r=e.config.publish_mode===a.EDITORIAL_WORKFLOW,i=n.get(t.match.params.name),o={isEditorialWorkflow:r,showDelete:!t.newEntry&&(0,l.selectAllowDeletion)(i)};if(r){const n=t.match.params[0],r=(0,s.selectUnpublishedEntry)(e,i.get("name"),n);r&&(o.unpublishedEntry=!0,o.entry=r)}return o}function m(e,t,n){const{isEditorialWorkflow:r,unpublishedEntry:i}=e,{dispatch:o}=t,a={};return r&&(a.loadEntry=(e,t)=>o((0,u.loadUnpublishedEntry)(e,t)),a.persistEntry=e=>o((0,u.persistUnpublishedEntry)(e,i))),f(f(f({},n),e),a)}},93698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(12244));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",null,t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},86618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(12244));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",{className:"nc-widgetPreview"},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},29192:(e,t,n)=>{"use strict";var r=n(41891),i=a(n(93698)),o=a(n(86618));function a(e){return e&&e.__esModule?e:{default:e}}(0,r.registerWidget)("unknown",i.default,o.default)},52545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e156433y0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function u({content:e,isPrivate:t}){return(0,a.jsx)(l,{isPrivate:t},(0,a.jsx)("h1",null,e))}u.propTypes={content:i.default.string.isRequired,isPrivate:i.default.bool},t.default=u},80306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(16760)),i=v(n(34498)),o=v(n(12244)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=v(n(14478)),d=n(33806),f=n(68104),p=n(90694),h=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(94366)),m=n(28165);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=["jpg","jpeg","webp","gif","png","bmp","tiff","svg","avif"],x=[..._];class E extends o.default.Component{constructor(...e){super(...e),w(this,"state",{selectedFile:{},query:"",isPersisted:!1}),w(this,"loadDisplayURL",(e=>{const{loadMediaDisplayURL:t}=this.props;t(e)})),w(this,"filterImages",(e=>e.filter((e=>{const t=(0,d.fileExtension)(e.name).toLowerCase();return x.includes(t)})))),w(this,"toTableData",(e=>{const t=e&&e.map((({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s})=>{const l=(0,d.fileExtension)(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:l.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:x.includes(l),isViewableImage:_.includes(l)}})),{sortFields:n}=this.state,o=(0,r.default)(n,"fieldName").concat("queryOrder"),a=(0,r.default)(n,"direction").concat("asc");return(0,i.default)(t,o,a)})),w(this,"handleClose",(()=>{this.props.closeMediaLibrary()})),w(this,"handleAssetClick",(e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})})),w(this,"handlePersist",(async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({isPersisted:!0}),this.scrollToTop()),e.target.value=null})),w(this,"handleInsert",(()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()})),w(this,"handleDelete",(()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;window.confirm(i("mediaLibrary.mediaLibrary.onDelete"))&&n(t.find((t=>e.key===t.key)),{privateUpload:r}).then((()=>{this.setState({selectedFile:{}})}))})),w(this,"handleDownload",(()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})})),w(this,"handleLoadMore",(()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})})),w(this,"handleSearchKeyDown",(async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())})),w(this,"scrollToTop",(()=>{this.scrollContainerRef.scrollTop=0})),w(this,"handleSearchChange",(e=>{this.setState({query:e.target.value})})),w(this,"queryFilter",((e,t)=>{const n=e.replace(/ /g,"");return c.default.filter(n,t,{extract:e=>e.name}).map(((e,n)=>b(b({},t[e.index]),{},{queryIndex:n})))}))}componentDidMount(){this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""}),this.state.isPersisted&&this.setState({selectedFile:e.files[0],isPersisted:!1})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload}),this.state.isPersisted&&this.setState({selectedFile:this.props.files[0],isPersisted:!1})}render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:f,t:p}=this.props;return(0,m.jsx)(h.default,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}w(E,"propTypes",{isVisible:a.default.bool,loadMediaDisplayURL:a.default.func,displayURLs:s.default.map,canInsert:a.default.bool,files:a.default.arrayOf(a.default.shape(h.fileShape)).isRequired,dynamicSearch:a.default.bool,dynamicSearchActive:a.default.bool,forImage:a.default.bool,isLoading:a.default.bool,isPersisting:a.default.bool,isDeleting:a.default.bool,hasNextPage:a.default.bool,isPaginating:a.default.bool,privateUpload:a.default.bool,config:s.default.map,loadMedia:a.default.func.isRequired,dynamicSearchQuery:a.default.string,page:a.default.number,persistMedia:a.default.func.isRequired,deleteMedia:a.default.func.isRequired,insertMedia:a.default.func.isRequired,closeMediaLibrary:a.default.func.isRequired,t:a.default.func.isRequired}),w(E,"defaultProps",{files:[]});const k={loadMedia:f.loadMedia,persistMedia:f.persistMedia,deleteMedia:f.deleteMedia,insertMedia:f.insertMedia,loadMediaDisplayURL:f.loadMediaDisplayURL,closeMediaLibrary:f.closeMediaLibrary};t.default=(0,l.connect)((function(e){const{mediaLibrary:t}=e,n=t.get("field");return b({},{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:(0,p.selectMediaFiles)(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n})}),k)((0,u.translate)()(E))},69302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UploadButton=t.InsertButton=t.DownloadButton=t.DeleteButton=t.CopyToClipBoardButton=void 0;var r=d(n(70894)),i=d(n(12244)),o=d(n(13980)),a=n(28165),s=d(n(85411)),l=n(33806),u=n(30762),c=n(50758);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={button:(0,a.css)(u.buttons.button,";",u.buttons.default,";display:inline-block;margin-left:15px;margin-right:2px;&[disabled]{",u.buttons.disabled,";cursor:default;};label:button;")},h=(t.UploadButton=(0,r.default)(c.FileUploadButton,{target:"e288rjk3",label:"UploadButton"})(p.button,";",u.buttons.gray,";",u.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",u.zIndex.zIndex0,";outline:none;}"),t.DeleteButton=(0,r.default)("button",{target:"e288rjk2",label:"DeleteButton"})(p.button,";",u.buttons.lightRed,";"),t.InsertButton=(0,r.default)("button",{target:"e288rjk1",label:"InsertButton"})(p.button,";",u.buttons.green,";"),(0,r.default)("button",{target:"e288rjk0",label:"ActionButton"})(p.button,";",(e=>!e.disabled&&(0,a.css)(u.buttons.gray,";;label:ActionButton;")),";"));t.DownloadButton=h;class m extends i.default.Component{constructor(...e){super(...e),f(this,"mounted",!1),f(this,"timeout",void 0),f(this,"state",{copied:!1}),f(this,"handleCopy",(()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;(0,s.default)((0,l.isAbsolutePath)(e)||!t?e:n),this.setState({copied:!0}),this.timeout=setTimeout((()=>this.mounted&&this.setState({copied:!1})),1500)})),f(this,"getTitle",(()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?(0,l.isAbsolutePath)(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}render(){const{disabled:e}=this.props;return(0,a.jsx)(h,{disabled:e,onClick:this.handleCopy},this.getTitle())}}t.CopyToClipBoardButton=m,m.propTypes={disabled:o.default.bool.isRequired,draft:o.default.bool,path:o.default.string,name:o.default.string,t:o.default.func.isRequired}},93100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=u(n(19155)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e2etv5a5",label:"Card"})("width:",(e=>e.width),";height:",(e=>e.height),";margin:",(e=>e.margin),";border:",s.borders.textField,";border-color:",(e=>e.isSelected&&s.colors.active),";border-radius:",s.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";&:focus{outline:none;}"),d=(0,r.default)("div",{target:"e2etv5a4",label:"CardImageWrapper"})("height:",162,"px;",s.effects.checkerboard,";",s.shadows.inset,";border-bottom:solid ",s.lengths.borderWidth," ",s.colors.textFieldBorder,";position:relative;"),f=(0,r.default)("img",{target:"e2etv5a3",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),p=(0,r.default)("div",{target:"e2etv5a2",label:"CardFileIcon"})({name:"viljxp",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em"}),h=(0,r.default)("p",{target:"e2etv5a1",label:"CardText"})("color:",s.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3!important;"),m=(0,r.default)("p",{target:"e2etv5a0",label:"DraftText"})("color:",s.colors.mediaDraftText,";background-color:",s.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",s.lengths.borderRadius," 0 ",s.lengths.borderRadius," 0;");class g extends i.default.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,width:o,height:a,margin:s,isPrivate:u,type:g,isViewableImage:v,isDraft:y}=this.props,b=t.get("url");return(0,l.jsx)(c,{isSelected:e,onClick:r,width:o,height:a,margin:s,tabIndex:"-1",isPrivate:u},(0,l.jsx)(d,null,y?(0,l.jsx)(m,{"data-testid":"draft-text"},i):null,b&&v?(0,l.jsx)(f,{loading:"lazy",src:b}):(0,l.jsx)(p,{"data-testid":"card-file-icon"},g)),(0,l.jsx)(h,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}g.propTypes={isSelected:o.default.bool,displayURL:a.default.map.isRequired,text:o.default.string.isRequired,onClick:o.default.func.isRequired,draftText:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,isPrivate:o.default.bool,type:o.default.string,isViewableImage:o.default.bool.isRequired,loadDisplayURL:o.default.func.isRequired,isDraft:o.default.bool},t.default=g},63435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(12244)),f(n(13980))),o=n(94076),a=n(46670),s=n(30762),l=n(50166),u=f(n(6738)),c=f(n(93100)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){const{rowIndex:t,columnIndex:n,style:r,data:{mediaItems:i,isSelectedFile:o,onAssetClick:s,cardDraftText:l,cardWidth:u,cardHeight:f,isPrivate:p,displayURLs:m,loadDisplayURL:g,columnCount:v,gutter:y}}=e,b=t*v+n;if(b>=i.length)return null;const w=i[b];return(0,d.jsx)("div",{tabIndex:"0",style:h(h({},r),{},{left:r.left+y*n,top:r.top+y,width:r.width-y,height:r.height-y})},(0,d.jsx)(c.default,{key:w.key,isSelected:o(w),text:w.name,onClick:()=>s(w),isDraft:w.draft,draftText:l,width:u,height:f,margin:"0px",isPrivate:p,displayURL:m.get(w.id,w.url?(0,a.Map)({url:w.url}):(0,a.Map)()),loadDisplayURL:()=>g(w),type:w.type,isViewableImage:w.isViewableImage}))}function g(e){const{mediaItems:t,setScrollContainerRef:n}=e;return(0,d.jsx)(y,{ref:n},(0,d.jsx)(u.default,null,(({height:n,width:r})=>{const i=parseInt(e.cardWidth,10),o=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=i+a,u=o+a,c=Math.floor(r/s),f=Math.ceil(t.length/c);return(0,d.jsx)(l.FixedSizeGrid,{columnCount:c,columnWidth:s,rowCount:f,rowHeight:u,width:r,height:n,itemData:h(h({},e),{},{gutter:a,columnCount:c})},m)})))}function v({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:i,cardWidth:s,cardHeight:l,cardMargin:u,isPrivate:f,displayURLs:p,loadDisplayURL:h,canLoadMore:m,onLoadMore:g,isPaginating:v,paginatingMessage:_}){return(0,d.jsx)(y,{ref:e},(0,d.jsx)(b,null,t.map((e=>(0,d.jsx)(c.default,{key:e.key,isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:i,width:s,height:l,margin:u,isPrivate:f,displayURL:p.get(e.id,e.url?(0,a.Map)({url:e.url}):(0,a.Map)()),loadDisplayURL:()=>h(e),type:e.type,isViewableImage:e.isViewableImage}))),m?(0,d.jsx)(o.Waypoint,{onEnter:g}):null),v?(0,d.jsx)(w,{isPrivate:f},_):null)}const y=(0,r.default)("div",{target:"e1l5oka22",label:"CardGridContainer"})({name:"bv8zlo",styles:"overflow-y:auto;overflow-x:hidden"}),b=(0,r.default)("div",{target:"e1l5oka21",label:"CardGrid"})({name:"15jhlc1",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px"}),w=(0,r.default)("h1",{target:"e1l5oka20",label:"PaginatingMessage"})("color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";");function _(e){const{canLoadMore:t,isPaginating:n}=e;return t||n?(0,d.jsx)(v,e):(0,d.jsx)(g,e)}_.propTypes={setScrollContainerRef:i.default.func.isRequired,mediaItems:i.default.arrayOf(i.default.shape({displayURL:i.default.oneOfType([i.default.string,i.default.object]),id:i.default.string.isRequired,key:i.default.string.isRequired,name:i.default.string.isRequired,type:i.default.string.isRequired,draft:i.default.bool})).isRequired,isSelectedFile:i.default.func.isRequired,onAssetClick:i.default.func.isRequired,canLoadMore:i.default.bool,onLoadMore:i.default.func.isRequired,isPaginating:i.default.bool,paginatingMessage:i.default.string,cardDraftText:i.default.string.isRequired,cardWidth:i.default.string.isRequired,cardMargin:i.default.string.isRequired,loadDisplayURL:i.default.func.isRequired,isPrivate:i.default.bool,displayURLs:i.default.instanceOf(a.Map).isRequired},t.default=_},63298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"estf6121",label:"CloseButton"})(o.buttons.button,";",o.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;background-color:white;padding:0;display:flex;justify-content:center;align-items:center;"),u=(0,r.default)("h1",{target:"estf6120",label:"LibraryTitle"})("line-height:36px;font-size:22px;text-align:left;margin-bottom:25px;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function c({onClose:e,title:t,isPrivate:n}){return(0,a.jsx)("div",null,(0,a.jsx)(l,{onClick:e},(0,a.jsx)(o.Icon,{type:"close"})),(0,a.jsx)(u,{isPrivate:n},t))}c.propTypes={onClose:i.default.func.isRequired,title:i.default.string.isRequired,isPrivate:i.default.bool},t.default=c},94366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileShape=t.default=void 0;var r=h(n(70894)),i=h(n(45455)),o=(h(n(12244)),h(n(13980))),a=n(46670),s=n(9316),l=n(30762),u=n(50758),c=h(n(77951)),d=h(n(63435)),f=h(n(52545)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}const m="300px",g=(0,r.default)(u.Modal,{target:"e4d0svf0",label:"StyledModal"})("display:grid;grid-template-rows:120px auto;width:calc(",m," + 20px);background-color:",(e=>e.isPrivate&&l.colors.grayDark),";@media (min-width: 800px){width:calc(",m," * 2 + 20px);}@media (min-width: 1120px){width:calc(",m," * 3 + 20px);}@media (min-width: 1440px){width:calc(",m," * 4 + 20px);}@media (min-width: 1760px){width:calc(",m," * 5 + 20px);}@media (min-width: 2080px){width:calc(",m," * 6 + 20px);}h1{color:",(e=>e.isPrivate&&l.colors.textFieldBorder),";}button:disabled,label[disabled]{background-color:",(e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)"),";}");function v({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:a,isLoading:s,isPersisting:l,isDeleting:u,hasNextPage:h,isPaginating:m,privateUpload:v,query:y,selectedFile:b,handleFilter:w,handleQuery:_,toTableData:x,handleClose:E,handleSearchChange:k,handleSearchKeyDown:C,handlePersist:S,handleDelete:A,handleInsert:T,handleDownload:O,setScrollContainerRef:P,handleAssetClick:R,handleLoadMore:M,loadDisplayURL:D,displayURLs:I,t:L}){const j=a?w(n):n,N=!r&&y?_(y,j):j,F=x(N),B=n&&!!n.length,U=j&&!!j.length,z=N&&!!N.length,q=z,W=!q,$=s&&!q&&L("mediaLibrary.mediaLibraryModal.loading")||o&&L("mediaLibrary.mediaLibraryModal.noResults")||!B&&L("mediaLibrary.mediaLibraryModal.noAssetsFound")||!U&&L("mediaLibrary.mediaLibraryModal.noImagesFound")||!z&&L("mediaLibrary.mediaLibraryModal.noResults"),H=q&&!(0,i.default)(b);return(0,p.jsx)(g,{isOpen:e,onClose:E,isPrivate:v},(0,p.jsx)(c.default,{t:L,onClose:E,privateUpload:v,forImage:a,onDownload:O,onUpload:S,query:y,onSearchChange:k,onSearchKeyDown:C,searchDisabled:!o&&!U,onDelete:A,canInsert:t,onInsert:T,hasSelection:H,isPersisting:l,isDeleting:u,selectedFile:b}),W?(0,p.jsx)(f.default,{content:$,isPrivate:v}):null,(0,p.jsx)(d.default,{setScrollContainerRef:P,mediaItems:F,isSelectedFile:e=>b.key===e.key,onAssetClick:R,canLoadMore:h,onLoadMore:M,isPaginating:m,paginatingMessage:L("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:L("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:v,loadDisplayURL:D,displayURLs:I}))}const y=t.fileShape={displayURL:o.default.oneOfType([o.default.string,o.default.object]).isRequired,id:o.default.string.isRequired,key:o.default.string.isRequired,name:o.default.string.isRequired,queryOrder:o.default.number,size:o.default.number,path:o.default.string.isRequired};v.propTypes={isVisible:o.default.bool,canInsert:o.default.bool,files:o.default.arrayOf(o.default.shape(y)).isRequired,dynamicSearch:o.default.bool,dynamicSearchActive:o.default.bool,forImage:o.default.bool,isLoading:o.default.bool,isPersisting:o.default.bool,isDeleting:o.default.bool,hasNextPage:o.default.bool,isPaginating:o.default.bool,privateUpload:o.default.bool,query:o.default.string,selectedFile:o.default.oneOfType([o.default.shape(y),o.default.shape({})]),handleFilter:o.default.func.isRequired,handleQuery:o.default.func.isRequired,toTableData:o.default.func.isRequired,handleClose:o.default.func.isRequired,handleSearchChange:o.default.func.isRequired,handleSearchKeyDown:o.default.func.isRequired,handlePersist:o.default.func.isRequired,handleDelete:o.default.func.isRequired,handleInsert:o.default.func.isRequired,setScrollContainerRef:o.default.func.isRequired,handleAssetClick:o.default.func.isRequired,handleLoadMore:o.default.func.isRequired,loadDisplayURL:o.default.func.isRequired,t:o.default.func.isRequired,displayURLs:o.default.instanceOf(a.Map).isRequired},t.default=(0,s.translate)()(v)},96218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"el0uck02",label:"SearchContainer"})({name:"sycyb7",styles:"height:37px;display:flex;align-items:center;position:relative;width:400px"}),u=(0,r.default)("input",{target:"el0uck01",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colors.active,";}"),c=(0,r.default)(o.Icon,{target:"el0uck00",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",o.zIndex.zIndex2,";transform:translate(0, -50%);");function d({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}){return(0,a.jsx)(l,null,(0,a.jsx)(c,{type:"search",size:"small"}),(0,a.jsx)(u,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}))}d.propTypes={value:i.default.string,onChange:i.default.func.isRequired,onKeyDown:i.default.func.isRequired,placeholder:i.default.string.isRequired,disabled:i.default.bool},t.default=d},77951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(12244)),u(n(13980))),o=u(n(96218)),a=u(n(63298)),s=n(69302),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e1n0ky5z2",label:"LibraryTop"})({name:"16hjiy4",styles:"position:relative;display:flex;flex-direction:column"}),d=(0,r.default)("div",{target:"e1n0ky5z1",label:"RowContainer"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),f=(0,r.default)("div",{target:"e1n0ky5z0",label:"ButtonsContainer"})({name:"ozd7xs",styles:"flex-shrink:0"});function p({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:i,onUpload:u,query:p,onSearchChange:h,onSearchKeyDown:m,searchDisabled:g,onDelete:v,canInsert:y,onInsert:b,hasSelection:w,isPersisting:_,isDeleting:x,selectedFile:E}){const k=_||x,C=!k,S=!k&&w,A=e(_?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),T=e(x?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),O=e("mediaLibrary.mediaLibraryModal.download"),P=e("mediaLibrary.mediaLibraryModal.chooseSelected");return(0,l.jsx)(c,null,(0,l.jsx)(d,null,(0,l.jsx)(a.default,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n}),(0,l.jsx)(f,null,(0,l.jsx)(s.CopyToClipBoardButton,{disabled:!w,path:E.path,name:E.name,draft:E.draft,t:e}),(0,l.jsx)(s.DownloadButton,{onClick:i,disabled:!w},O),(0,l.jsx)(s.UploadButton,{label:A,imagesOnly:r,onChange:u,disabled:!C}))),(0,l.jsx)(d,null,(0,l.jsx)(o.default,{value:p,onChange:h,onKeyDown:m,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:g}),(0,l.jsx)(f,null,(0,l.jsx)(s.DeleteButton,{onClick:v,disabled:!S},T),y?(0,l.jsx)(s.InsertButton,{onClick:b,disabled:!w},P):null)))}p.propTypes={t:i.default.func.isRequired,onClose:i.default.func.isRequired,privateUpload:i.default.bool,forImage:i.default.bool,onDownload:i.default.func.isRequired,onUpload:i.default.func.isRequired,query:i.default.string,onSearchChange:i.default.func.isRequired,onSearchKeyDown:i.default.func.isRequired,searchDisabled:i.default.bool.isRequired,onDelete:i.default.func.isRequired,canInsert:i.default.bool,onInsert:i.default.func.isRequired,hasSelection:i.default.bool.isRequired,isPersisting:i.default.bool,isDeleting:i.default.bool,selectedFile:i.default.oneOfType([i.default.shape({path:i.default.string.isRequired,draft:i.default.bool.isRequired,name:i.default.string.isRequired}),i.default.shape({})])},t.default=p},12086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSource=p,t.DropTarget=h,t.HTML5DragDrop=function(e){return class extends o.default.Component{render(){return(0,s.jsx)(i.DndProvider,{backend:r.HTML5Backend},(0,s.jsx)(e,this.props))}}};var r=n(51092),i=n(99273),o=d(n(12244)),a=d(n(13980)),s=n(28165);const l=["namespace"],u=["children","isDragging","connectDragComponent"],c=["onDrop","namespace"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e){let{namespace:t}=e,n=f(e,l);const r=(0,i.DragSource)(t,{beginDrag(e){let{children:t,isDragging:n,connectDragComponent:r}=e;return f(e,u)}},(e=>({connectDragComponent:e.dragSource()})))((({children:e,connectDragComponent:t})=>e(t)));return o.default.createElement(r,n,n.children)}function h(e){let{onDrop:t,namespace:n}=e,r=f(e,c);const a=(0,i.DropTarget)(n,{drop(e,n){t(n.getItem())}},((e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()})))((({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n})));return o.default.createElement(a,r,r.children)}p.propTypes={namespace:a.default.any.isRequired,children:a.default.func.isRequired},h.propTypes={onDrop:a.default.func.isRequired,namespace:a.default.any.isRequired,children:a.default.func.isRequired}},55059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorBoundary=void 0;var r=h(n(70894)),i=h(n(36585)),o=h(n(12244)),a=h(n(13980)),s=n(9316),l=h(n(60155)),u=h(n(85411)),c=n(33806),d=n(30762),f=h(n(46994)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://github.com/decaporg/decap-cms/issues/new?";function v({title:e,config:t}){try{const n=function({config:e}){let t="";t="string"==typeof DECAP_CMS_VERSION?`decap-cms@${DECAP_CMS_VERSION}`:"decap-cms-app@3.3.3";const n=function({version:e,provider:t,browser:n,config:r}){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Decap CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}({version:t,provider:e.backend.name,browser:navigator.userAgent,config:l.default.stringify(e)});return n}({config:t}),r=new URLSearchParams;return r.append("title",(0,i.default)(e,{length:100})),r.append("body",(0,i.default)(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${g}${r.toString()}`}catch(e){return console.log(e),`${g}template=bug_report.md`}}const y=(0,r.default)("div",{target:"emw4gx72",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",d.colors.text,";}h2{font-size:20px;}strong{color:",d.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",d.colors.text,";}a{color:",d.colors.active,";}"),b=(0,r.default)("span",{target:"emw4gx71",label:"PrivacyWarning"})("color:",d.colors.text,";"),w=(0,r.default)("button",{target:"emw4gx70",label:"CopyButton"})(d.buttons.button,";",d.buttons.default,";",d.buttons.gray,";display:block;margin:12px 0;");function _({entry:e,t}){return console.log(e),(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),(0,p.jsx)("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),(0,p.jsx)(w,{onClick:()=>(0,u.default)(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),(0,p.jsx)("pre",null,(0,p.jsx)("code",null,e)))}class x extends o.default.Component{constructor(...e){super(...e),m(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:(0,f.default)(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await c.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:a}=this.props;return e?(0,p.jsx)(y,null,(0,p.jsx)("h1",null,a("ui.errorBoundary.title")),(0,p.jsx)("p",null,(0,p.jsx)("span",null,a("ui.errorBoundary.details")),(0,p.jsx)("a",{href:v({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},a("ui.errorBoundary.reportIt"))),(0,p.jsx)("p",null,a("ui.errorBoundary.privacyWarning").split("\n").map(((e,t)=>(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)(b,{key:t},e),(0,p.jsx)("br",null))))),(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,a("ui.errorBoundary.detailsHeading")),(0,p.jsx)("p",null,t),n&&i&&(0,p.jsx)(_,{entry:n,t:a})):this.props.children}}t.ErrorBoundary=x,m(x,"propTypes",{children:a.default.node,t:a.default.func.isRequired,config:a.default.object.isRequired}),t.default=(0,s.translate)()(x)},95921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadButton=a,o(n(12244));var r=o(n(13980)),i=n(28165);function o(e){return e&&e.__esModule?e:{default:e}}function a({label:e,imagesOnly:t,onChange:n,disabled:r,className:o}){return(0,i.jsx)("label",{tabIndex:"0",className:`nc-fileUploadButton ${o||""}`},(0,i.jsx)("span",null,e),(0,i.jsx)("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r}))}a.propTypes={className:r.default.string,label:r.default.string.isRequired,imagesOnly:r.default.bool,onChange:r.default.func.isRequired,disabled:r.default.bool}},21904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var r=l(n(12244)),i=l(n(13980)),o=n(28165),a=l(n(37149)),s=n(30762);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function c(){return(0,o.jsx)(o.Global,{styles:u})}const d=`\n ${s.shadows.dropDeep};\n background-color: #fff;\n border-radius: ${s.lengths.borderRadius};\n height: 80%;\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,f=`\n z-index: ${s.zIndex.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${s.transitions.main}, opacity ${s.transitions.main};\n `;class p extends r.default.Component{componentDidMount(){a.default.setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:i}=this.props;return(0,o.jsx)(r.default.Fragment,null,(0,o.jsx)(c,null),(0,o.jsx)(o.ClassNames,null,(({css:r,cx:s})=>(0,o.jsx)(a.default,{isOpen:e,onRequestClose:i,closeTimeoutMS:300,className:{base:s(r`
|
||
${d};
|
||
`,n),afterOpen:"",beforeClose:""},overlayClassName:{base:r`
|
||
${f};
|
||
`,afterOpen:r`
|
||
${"\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 1;\n "};
|
||
`,beforeClose:r`
|
||
${"\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n "};
|
||
`}},t))))}}var h,m,g,v;t.Modal=p,h=p,m="propTypes",g={children:i.default.node.isRequired,isOpen:i.default.bool.isRequired,className:i.default.string,onClose:i.default.func.isRequired},(m="symbol"==typeof(v=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(m))?v:String(v))in h?Object.defineProperty(h,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[m]=g},92458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),i=n(61116),o=n(48919),a=n(57903),s=n(9316),l=n(5690),u=n(28165);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,i.injectStyle)(),t.default=(0,a.connect)((function({notifications:e}){return{notifications:e.notifications}}))((function({notifications:e}){const t=(0,s.useTranslate)(),n=(0,a.useDispatch)(),[i,c]=r.default.useState({});return(0,r.useEffect)((()=>{e.filter((e=>!i[e.id])).forEach((e=>{const r=(0,o.toast)("string"==typeof e.message?e.message:t(e.message.key,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.message)),{autoClose:e.dismissAfter,type:e.type});i[e.id]=r,c(i),e.dismissAfter&&setTimeout((()=>{n((0,l.dismissNotification)(e.id))}),e.dismissAfter)})),Object.entries(i).forEach((([t,n])=>{e.find((e=>e.id===t))||(o.toast.dismiss(n),delete i[t],c(i))}))}),[e]),o.toast.onChange((e=>{if("removed"==e.status){var t;const r=null===(t=Object.entries(i).find((([,t])=>t===e.id)))||void 0===t?void 0:t[0];r&&n((0,l.dismissNotification)(r))}})),(0,u.jsx)(r.default.Fragment,null,(0,u.jsx)(o.ToastContainer,{position:"top-right",theme:"colored",className:"notif__container"}))}))},79708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(12244)),o=c(n(13980)),a=n(28165),s=n(9316),l=n(30762),u=n(9904);function c(e){return e&&e.__esModule?e:{default:e}}const d={name:"m2n7c1-avatarImage",styles:"width:32px;border-radius:32px;label:avatarImage;"},f=(0,r.default)(l.DropdownButton,{target:"e1gt62yu4",label:"AvatarDropdownButton"})({name:"dtukf8",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent"}),p=(0,r.default)("img",{target:"e1gt62yu3",label:"AvatarImage"})(d,";"),h=(0,r.default)(l.Icon,{target:"e1gt62yu2",label:"AvatarPlaceholderIcon"})(d,";height:32px;color:#1e2532;background-color:",l.colors.textFieldBorder,";"),m=(0,r.default)("a",{target:"e1gt62yu1",label:"AppHeaderSiteLink"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"}),g=(0,r.default)("a",{target:"e1gt62yu0",label:"AppHeaderTestRepoIndicator"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"});function v({imageUrl:e}){return e?(0,a.jsx)(p,{src:e}):(0,a.jsx)(h,{type:"user",size:"large"})}function y({displayUrl:e,isTestRepo:t,imageUrl:n,onLogoutClick:r,t:o}){return(0,a.jsx)(i.default.Fragment,null,t&&(0,a.jsx)(g,{href:"https://www.decapcms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),e?(0,a.jsx)(m,{href:e,target:"_blank"},(0,u.stripProtocol)(e)):null,(0,a.jsx)(l.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>(0,a.jsx)(f,null,(0,a.jsx)(v,{imageUrl:n}))},(0,a.jsx)(l.DropdownItem,{label:o("ui.settingsDropdown.logOut"),onClick:r})))}v.propTypes={imageUrl:o.default.string},y.propTypes={displayUrl:o.default.string,isTestRepo:o.default.bool,imageUrl:o.default.string,onLogoutClick:o.default.func.isRequired,t:o.default.func.isRequired},t.default=(0,s.translate)()(y)},50758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r.DragSource}}),Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r.DropTarget}}),Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"FileUploadButton",{enumerable:!0,get:function(){return o.FileUploadButton}}),Object.defineProperty(t,"HTML5DragDrop",{enumerable:!0,get:function(){return r.HTML5DragDrop}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return a.Modal}}),Object.defineProperty(t,"Notifications",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SettingsDropdown",{enumerable:!0,get:function(){return l.default}});var r=n(12086),i=u(n(55059)),o=n(95921),a=n(21904),s=u(n(92458)),l=u(n(79708));function u(e){return e&&e.__esModule?e:{default:e}}},33407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),a=y(n(19155)),s=n(46670),l=n(9316),u=n(57903),c=n(30762),d=n(1582),f=n(91358),p=n(36642),h=n(61928),m=y(n(91678)),g=n(28165);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,r.default)("div",{target:"e1t9l5ui4",label:"WorkflowContainer"})("padding:",c.lengths.pageMargin," 0;height:100vh;"),w=(0,r.default)("div",{target:"e1t9l5ui3",label:"WorkflowTop"})(c.components.cardTop,";"),_=(0,r.default)("div",{target:"e1t9l5ui2",label:"WorkflowTopRow"})("display:flex;justify-content:space-between;span[role='button']{",c.shadows.dropDeep,";}"),x=(0,r.default)("h1",{target:"e1t9l5ui1",label:"WorkflowTopHeading"})(c.components.cardTopHeading,";"),E=(0,r.default)("p",{target:"e1t9l5ui0",label:"WorkflowTopDescription"})(c.components.cardTopDescription,";");class k extends o.Component{componentDidMount(){const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return(0,g.jsx)(c.Loader,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,f=r.get("pending_publish").size;return(0,g.jsx)(b,null,(0,g.jsx)(w,null,(0,g.jsx)(_,null,(0,g.jsx)(x,null,l("workflow.workflow.workflowHeading")),(0,g.jsx)(c.Dropdown,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>(0,g.jsx)(c.StyledDropdownButton,null,l("workflow.workflow.newPost"))},s.filter((e=>e.get("create"))).toList().map((e=>(0,g.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label"),onClick:()=>(0,d.createNewEntry)(e.get("name"))}))))),(0,g.jsx)(E,null,l("workflow.workflow.description",{smart_count:u,readyCount:f}))),(0,g.jsx)(m.default,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}var C,S,A,T;C=k,S="propTypes",A={collections:a.default.map.isRequired,isEditorialWorkflow:i.default.bool.isRequired,isOpenAuthoring:i.default.bool,isFetching:i.default.bool,unpublishedEntries:a.default.map,loadUnpublishedEntries:i.default.func.isRequired,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,t:i.default.func.isRequired},(S="symbol"==typeof(T=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(S))?T:String(T))in C?Object.defineProperty(C,S,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[S]=A,t.default=(0,u.connect)((function(e){const{collections:t,config:n,globalUI:r}=e,i=n.publish_mode===h.EDITORIAL_WORKFLOW,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.useOpenAuthoring};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=h.status.reduce(((t,n)=>{const r=(0,p.selectUnpublishedEntriesByStatus)(e,n);return t.set(n,r)}),(0,s.OrderedMap)())),o}),{loadUnpublishedEntries:f.loadUnpublishedEntries,updateUnpublishedEntryStatus:f.updateUnpublishedEntryStatus,publishUnpublishedEntry:f.publishUnpublishedEntry,deleteUnpublishedEntry:f.deleteUnpublishedEntry})((0,l.translate)()(k))},69689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(12244)),u(n(13980))),o=n(28165),a=n(9316),s=n(34752),l=n(30762);function u(e){return e&&e.__esModule?e:{default:e}}const c={text:{name:"1lc6g5t-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;label:text;"},button:(0,o.css)(l.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px 0;;label:button;")},d=(0,r.default)(s.Link,{target:"ewffzyy8",label:"WorkflowLink"})({name:"am2158",styles:"display:block;padding:0 18px 18px;height:200px;overflow:hidden"}),f=(0,r.default)("div",{target:"ewffzyy7",label:"CardCollection"})("font-size:14px;color:",l.colors.textLead,";text-transform:uppercase;margin-top:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),p=(0,r.default)("h2",{target:"ewffzyy6",label:"CardTitle"})("margin:28px 0 0;color:",l.colors.textLead,";"),h=(0,r.default)("div",{target:"ewffzyy5",label:"CardDateContainer"})(c.text,";"),m=(0,r.default)("p",{target:"ewffzyy4",label:"CardBody"})(c.text,";color:",l.colors.text,";margin:24px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;"),g=(0,r.default)("div",{target:"ewffzyy3",label:"CardButtonContainer"})("background-color:",l.colors.foreground,";position:absolute;bottom:0;width:100%;padding:12px 18px;display:flex;opacity:0;transition:opacity ",l.transitions.main,";cursor:pointer;"),v=(0,r.default)("button",{target:"ewffzyy2",label:"DeleteButton"})(c.button,";background-color:",l.colorsRaw.redLight,";color:",l.colorsRaw.red,";margin-right:6px;"),y=(0,r.default)("button",{target:"ewffzyy1",label:"PublishButton"})(c.button,";background-color:",l.colorsRaw.teal,";color:",l.colors.textLight,";margin-left:6px;&[disabled]{",l.buttons.disabled,";}"),b=(0,r.default)("div",{target:"ewffzyy0",label:"WorkflowCardContainer"})(l.components.card,";margin-bottom:24px;position:relative;overflow:hidden;&:hover ",g,"{opacity:1;}"),w=(0,a.translate)()((({t:e,date:t,author:n})=>{const r=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(t,n);if(r)return(0,o.jsx)(h,null,e(`workflow.workflowCard.${r}`,{date:t,author:n}))}));function _({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:i,editLink:a,timestamp:s,onDelete:l,allowPublish:u,canPublish:c,onPublish:h,postAuthor:_,t:x}){return(0,o.jsx)(b,null,(0,o.jsx)(d,{to:a},(0,o.jsx)(f,null,e),_,(0,o.jsx)(p,null,t),(s||n)&&(0,o.jsx)(w,{date:s,author:n}),(0,o.jsx)(m,null,r)),(0,o.jsx)(g,null,(0,o.jsx)(v,{onClick:l},x(i?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),u&&(0,o.jsx)(y,{disabled:!c,onClick:h},x(i?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))))}_.propTypes={collectionLabel:i.default.string.isRequired,title:i.default.string,authorLastChange:i.default.string,body:i.default.string,isModification:i.default.bool,editLink:i.default.string.isRequired,timestamp:i.default.string.isRequired,onDelete:i.default.func.isRequired,allowPublish:i.default.bool.isRequired,canPublish:i.default.bool.isRequired,onPublish:i.default.func.isRequired,postAuthor:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(_)},91678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(70894)),i=m(n(13980)),o=m(n(12244)),a=m(n(19155)),s=n(28165),l=m(n(28879)),u=n(9316),c=n(30762),d=n(61928),f=n(50758),p=m(n(69689)),h=n(45624);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=(0,r.default)("div",{target:"e190xgae3",label:"WorkflowListContainer"})({name:"16oyyfa",styles:"min-height:60%;display:grid;grid-template-columns:33.3% 33.3% 33.3%"}),y=(0,r.default)("div",{target:"e190xgae2",label:"WorkflowListContainerOpenAuthoring"})({name:"1e70u5x",styles:"min-height:60%;display:grid;grid-template-columns:50% 50% 0%"});var b={name:"108sck7-columnPosition",styles:"margin-right:0;label:columnPosition;"},w={name:"l4owvh-columnPosition",styles:"margin-left:0;label:columnPosition;"};const _={columnPosition:e=>0===e&&w||2===e&&b||(0,s.css)("&:before,&:after{content:'';display:block;position:absolute;width:2px;height:80%;top:76px;background-color:",c.colors.textFieldBorder,";}&:before{left:-23px;}&:after{right:-23px;};label:columnPosition;"),column:{name:"m4x6w5-column",styles:"margin:0 20px;transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;label:column;"},columnHovered:(0,s.css)("border-color:",c.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"1woovtn-hiddenColumn",styles:"display:none;label:hiddenColumn;"},hiddenRightBorder:{name:"hg8806-hiddenRightBorder",styles:"&:not(:first-child):not(:last-child){&:after{display:none;}};label:hiddenRightBorder;"}},x=(0,r.default)("h2",{target:"e190xgae1",label:"ColumnHeader"})("font-size:20px;font-weight:normal;padding:4px 14px;border-radius:",c.lengths.borderRadius,";margin-bottom:28px;",(e=>"draft"===e.name&&(0,s.css)("background-color:",c.colors.statusDraftBackground,";color:",c.colors.statusDraftText,";;label:ColumnHeader;"))," ",(e=>"pending_review"===e.name&&(0,s.css)("background-color:",c.colors.statusReviewBackground,";color:",c.colors.statusReviewText,";;label:ColumnHeader;"))," ",(e=>"pending_publish"===e.name&&(0,s.css)("background-color:",c.colors.statusReadyBackground,";color:",c.colors.statusReadyText,";;label:ColumnHeader;")),";"),E=(0,r.default)("p",{target:"e190xgae0",label:"ColumnCount"})("font-size:13px;font-weight:500;color:",c.colors.text,";text-transform:uppercase;margin-bottom:6px;"),k="cms-workflow";class C extends o.default.Component{constructor(...e){super(...e),g(this,"handleChangeStatus",((e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)})),g(this,"requestDelete",((e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)})),g(this,"requestPublish",((e,t,n)=>{n===d.status.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))})),g(this,"renderColumns",((e,t)=>{const{isOpenAuthoring:n,collections:r,t:i}=this.props;return e?t?(0,s.jsx)("div",null,e.map((e=>{const t=(0,l.default)(e.get("updatedOn")).format(i("workflow.workflow.dateFormat")),n=e.get("slug"),o=e.get("collection"),a=`collections/${o}/entries/${n}?ref=workflow`,u=e.get("status"),c=r.find((e=>e.get("name")===o)),m=null==c?void 0:c.get("label"),g=e.get("isModification"),v=null==c?void 0:c.get("publish"),y=u===d.status.last()&&!e.get("isPersisting",!1),b=e.get("author");return(0,s.jsx)(f.DragSource,{namespace:k,key:`${o}-${n}`,slug:n,collection:o,ownStatus:u},(r=>r((0,s.jsx)("div",null,(0,s.jsx)(p.default,{collectionLabel:m||o,title:(0,h.selectEntryCollectionTitle)(c,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:g,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,o,n,u),allowPublish:v,canPublish:y,onPublish:this.requestPublish.bind(this,o,n,u),postAuthor:b})))))}))):e.entrySeq().map((([e,t],r)=>(0,s.jsx)(f.DropTarget,{namespace:k,key:e,onDrop:this.handleChangeStatus.bind(this,e)},((i,{isHovered:o})=>i((0,s.jsx)("div",{style:{height:"100%"}},(0,s.jsx)("div",{css:[_.column,_.columnPosition(r),o&&_.columnHovered,n&&"pending_publish"===e&&_.hiddenColumn,n&&"pending_review"===e&&_.hiddenRightBorder,";label:WorkflowList;"]},(0,s.jsx)(x,{name:e},function(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}(e,this.props.t)),(0,s.jsx)(E,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})),this.renderColumns(t,e)))))))):null}))}render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?y:v;return(0,s.jsx)(t,null,e)}}g(C,"propTypes",{entries:a.default.orderedMap,handleChangeStatus:i.default.func.isRequired,handlePublish:i.default.func.isRequired,handleDelete:i.default.func.isRequired,t:i.default.func.isRequired,isOpenAuthoring:i.default.bool,collections:a.default.map.isRequired}),t.default=(0,f.HTML5DragDrop)((0,u.translate)()(C))},48781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOLDER=t.FILES=void 0,t.FILES="file_based_collection",t.FOLDER="folder_based_collection"},78882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_STYLE_LIST=t.VIEW_STYLE_GRID=void 0,t.VIEW_STYLE_LIST="VIEW_STYLE_LIST",t.VIEW_STYLE_GRID="VIEW_STYLE_GRID"},93492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMIT_DATE=t.COMMIT_AUTHOR=void 0,t.COMMIT_AUTHOR="commit_author",t.COMMIT_DATE="commit_date"},35276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateConfig=function(e){const t=new r.default({allErrors:!0,$data:!0,strict:!1});if((0,i.uniqueItemProperties)(t),(0,i.select)(t),(0,i.instanceof)(t),(0,i.prohibited)(t),(0,o.default)(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:m,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow",""],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},fields:y()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string"},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:y(),sortable_fields:{type:"array",items:{type:"string"}},sortableFields:{type:"array",items:{type:"string"}},view_filters:b,view_groups:w,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget","index_file"]}},additionalProperties:!1,minProperties:1},i18n:g},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(s.extensionFormatters)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:s.frontmatterFormats}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map((e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n=f(f({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=f(f({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=f(f({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=f(f({},e),{},{message:"must be a regular expression"})),n}default:return e}}));throw console.error("Config Errors",e),new x(e)}};var r=c(n(96477)),i=n(66454),o=c(n(53521)),a=n(29987),s=n(85575),l=n(41891),u=n(13943);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p={type:"string",minLength:2,maxLength:10,pattern:"^[a-zA-Z-_]+$"},h={type:"object",properties:{structure:{type:"string",enum:Object.values(u.I18N_STRUCTURE)},locales:{type:"array",minItems:1,items:p,uniqueItems:!0},default_locale:p}},m=f(f({},h),{},{required:["structure","locales"]}),g={oneOf:[{type:"boolean"},h]},v={oneOf:[{type:"boolean"},{type:"string",enum:Object.values(u.I18N_FIELD)}]};function y(){const e=(0,a.v4)();return{$id:`fields_${e}`,type:"array",minItems:1,items:{$id:`field_${e}`,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:v,hint:{type:"string"},pattern:{type:"array",minItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:`field_${e}`},fields:{$ref:`fields_${e}`},types:{$ref:`fields_${e}`}},select:{$data:"0/widget"},selectCases:f({},_()),required:["name"]},uniqueItemProperties:["name"]}}const b={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"}]}},additionalProperties:!1,required:["label","field","pattern"]}},w={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},additionalProperties:!1,required:["label","field"]}};function _(){const e=(0,l.getWidgets)().map((e=>({[e.name]:e.schema})));return Object.assign(...e)}class x extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,...t){const n=e.map((({message:e,instancePath:t})=>{const n=t.slice(1).split("/").map((e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`)).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`})).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}},39010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORTABLE_FIELDS=t.INFERABLE_FIELDS=t.IDENTIFIER_FIELDS=void 0,(r=n(12244))&&r.__esModule;var r,i=n(28165);t.IDENTIFIER_FIELDS=["title","path"],t.SORTABLE_FIELDS=["title","date","author","description"],t.INFERABLE_FIELDS={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>(0,i.jsx)("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>(0,i.jsx)("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>(0,i.jsx)("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}}},61928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusDescriptions=t.status=t.Statues=t.SIMPLE=t.EDITORIAL_WORKFLOW=void 0;var r=n(46670);t.SIMPLE="simple",t.EDITORIAL_WORKFLOW="editorial_workflow";const i=t.Statues={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"},o=t.status=(0,r.OrderedMap)(i);t.statusDescriptions=(0,r.Map)({[o.get("DRAFT")]:"Draft",[o.get("PENDING_REVIEW")]:"Waiting for Review",[o.get("PENDING_PUBLISH")]:"Waiting to go live"})},1757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"}},85575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frontmatterFormats=t.formatExtensions=t.extensionFormatters=void 0,t.getFormatExtensions=function(){return f(f({},p),(0,u.getCustomFormatsExtensions)())},t.resolveFormat=function(e,t){const n=e.get("frontmatter_delimiter"),o=(s=n,i.List.isList(s)?n.toArray():n),a=e.get("format");var s;if(a)return m(a,o);const l=t&&t.path;if(l){const e=l.split(".").pop();if(e)return(0,r.default)(h,e)}const u=e.get("extension");return u?(0,r.default)(h,u):m("frontmatter",o)};var r=c(n(72579)),i=n(46670),o=c(n(45367)),a=c(n(94379)),s=c(n(93223)),l=n(43303),u=n(41891);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.frontmatterFormats=["yaml-frontmatter","toml-frontmatter","json-frontmatter"];const p=t.formatExtensions={yml:"yml",yaml:"yml",toml:"toml",json:"json",frontmatter:"md","json-frontmatter":"md","toml-frontmatter":"md","yaml-frontmatter":"md"},h=t.extensionFormatters={yml:o.default,yaml:o.default,toml:a.default,json:s.default,md:l.FrontmatterInfer,markdown:l.FrontmatterInfer,html:l.FrontmatterInfer};function m(e,t){const n=f({yml:o.default,yaml:o.default,toml:a.default,json:s.default,frontmatter:l.FrontmatterInfer,"json-frontmatter":(0,l.frontmatterJSON)(t),"toml-frontmatter":(0,l.frontmatterTOML)(t),"yaml-frontmatter":(0,l.frontmatterYAML)(t)},(0,u.getCustomFormatsFormatters)());if(e in n)return n[e];throw new Error(`No formatter available with name: ${e}`)}},43303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrontmatterInfer=t.FrontmatterFormatter=void 0,t.frontmatterJSON=function(e){return new m(f.JSON,e)},t.frontmatterTOML=function(e){return new m(f.TOML,e)},t.frontmatterYAML=function(e){return new m(f.YAML,e)},t.getFormatOpts=h;var r=l(n(61035)),i=l(n(94379)),o=l(n(45367)),a=l(n(93223));const s=["body"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={YAML:"yaml",TOML:"toml",JSON:"json"},p={toml:{parse:e=>i.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return i.default.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),a.default.fromFile(t)},stringify:e=>{let t=a.default.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>o.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return o.default.toFile(e,n,r)}}};function h(e,t){if(!e)return;const n={yaml:{language:f.YAML,delimiters:"---"},toml:{language:f.TOML,delimiters:"+++"},json:{language:f.JSON,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class m{constructor(e,t){d(this,"format",void 0),this.format=h(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return h(f.YAML);case"+++":return h(f.TOML);case"{":return h(f.JSON);default:console.warn("Unrecognized front-matter format.")}}(e),n=(0,r.default)(e,c({engines:p},t));return c(c({},n.data),n.content.trim()&&{body:n.content})}toFile(e,t,n){const{body:i=""}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,s),a=this.format||h(f.YAML),l="\n"!==i.slice(-1),u=r.default.stringify(i,o,c({engines:p,sortedKeys:t,comments:n},a));return l&&"\n"===u.slice(-1)?u.slice(0,-1):u}}t.FrontmatterFormatter=m,t.FrontmatterInfer=new m},67048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortKeys=function(e,t=(e=>e)){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i<o?-1:0}}},93223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)}},94379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(6901)),i=l(n(56330)),o=l(n(28879)),a=l(n(25606)),s=n(67048);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return o.default.isDayjs(t)?t.format(t._f):t instanceof a.default?`${t.path}`:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}t.default={fromFile:e=>r.default.parse(e),toFile:(e,t=[])=>i.default.toToml(e,{replace:u,sort:(0,s.sortKeys)(t)})}},45367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60155))&&r.__esModule?r:{default:r},o=n(67048);function a(e,t,n=""){e.forEach((e=>{if(void 0!==e.key){var r;const i=e.key.toString(),o=n?`${n}.${i}`:i;if(t[o]){const n=t[o].split("\\n").join("\n ");e.commentBefore=` ${n}`}Array.isArray(null===(r=e.value)||void 0===r?void 0:r.items)&&a(e.value.items,t,o)}}))}const s={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()};t.default={fromFile:e=>(e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),i.default.parse(e,{customTags:[s]})),toFile(e,t=[],n={}){const r=i.default.createNode(e);a(r.items,n),r.items.sort((0,o.sortKeys)(t,(e=>{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})));const s=new i.default.Document;return s.contents=r,s.toString()}}},84185:(e,t,n)=>{"use strict";t.Nw=void 0;var r=o(n(4342)),i=o(n(41891));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Nw=s(s({},i.default),{},{init:r.default})},766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntegrationProvider=void 0,t.resolveIntegrations=s;var r=n(46670),i=a(n(615)),o=a(n(99238));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(0,r.Map)({});return e.get("providers").forEach(((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new i.default(e));break;case"assetStore":n=n.set("assetStore",new o.default(e,t))}})),n}t.getIntegrationProvider=function(){let e=null;return(t,n,r)=>(e||(e=s(t,n)),e.get(r))}()},615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(35676))&&r.__esModule?r:{default:r},o=n(33806),a=n(15583),s=n(45624);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:d}=o.unsentRequest;t.default=class{constructor(e){if(this.config=e,null==e.get("applicationID")||null==e.get("apiKey"))throw"The Algolia search integration needs the credentials (applicationID and apiKey) in the integration configuration.";this.applicationID=e.get("applicationID"),this.apiKey=e.get("apiKey");const t=e.get("indexPrefix");this.indexPrefix=t?`${t}-`:"",this.searchURL=`https://${this.applicationID}-dsn.algolia.net/1`,this.entriesCache={collection:null,page:null,entries:[]}}requestHeaders(e={}){return u({"X-Algolia-API-Key":this.apiKey,"X-Algolia-Application-Id":this.applicationID,"Content-Type":"application/json"},e)}parseJsonResponse(e){return e.json().then((t=>e.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return d(r,u(u({},t),{},{headers:n})).then((e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()}))}search(e,t,n){const r=e.map((e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`})));return this.request(`${this.searchURL}/indexes/*/queries`,{method:"POST",body:JSON.stringify({requests:r})}).then((t=>{const r=t.results.map(((t,n)=>t.hits.map((t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return(0,a.createEntry)(e[n],r,t.path,{data:t.data,partial:!0})}))));return{entries:(0,i.default)(r),pagination:n}}))}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then((t=>{const n=t.hits.map((t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}));return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}}))}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:o}=n;for(o+=1;o<r;)n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:u(u({},t),{},{page:o})}),i=[...i,...n.hits],o+=1;return i.map((t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}))}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then((n=>{const r=n.hits.filter((e=>e.slug===t))[0];return(0,a.createEntry)(e.get("name"),t,r.path,{data:r.data,partial:!0})}))}}},99238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1573)),i=s(n(42208)),o=n(33806),a=n(9904);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const{fetchWithTimeout:c}=o.unsentRequest;t.default=class{constructor(e,t){if(this.config=e,null==e.get("getSignedFormURL"))throw"The AssetStore integration needs the getSignedFormURL in the integration configuration.";this.getToken=t,this.shouldConfirmUpload=e.get("shouldConfirmUpload",!1),this.getSignedFormURL=(0,r.default)(e.get("getSignedFormURL"),"/")}parseJsonResponse(e){return e.json().then((t=>e.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}requestHeaders(e={}){return u({},e)}confirmRequest(e){this.getToken().then((t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({state:"uploaded"})})))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await c(r,u(u({},t),{},{headers:n})),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=(0,i.default)({search:e,page:t,filter:n?"private":"public"},(e=>!!e)),o=(0,a.addParams)(this.getSignedFormURL,r),s={"Content-Type":"application/json",Authorization:`Bearer ${await this.getToken()}`};return(await this.request(o,{headers:s})).map((({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r,path:r})))}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then((e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}})))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;return Object.keys(o).forEach((e=>c.append(e,o[e]))),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a),{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u,path:u}}}catch(e){throw console.error(e),e}}}},54876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){console.error(`%c ⛔ ${e}\n%c${t}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")}},59311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitMessageFormatter=function(e,t,{slug:n,path:r,collection:i,authorLogin:o,authorName:a},s){const l=m(m({},_),t.backend.commit_messages||{}),u=l[e].replace(x,((e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.get("label_singular")||i.get("label"):"";case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}}));return s?l.openAuthoring.replace(x,((e,t)=>{switch(t){case"message":return u;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})):u},t.folderFormatter=function(e,t,n,r,i,o){if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=w(t.get("path"),a,n.get("folder"));const s=v(t,(0,u.selectInferredField)(n,"date"))||null,l=a.getIn(b((0,u.selectIdentifier)(n))),c=k(o,[r,a.get("dirname")]);return g(e,s,l,a,c)},t.getProcessSegment=k,t.prepareSlug=E,t.previewUrlFormatter=function(e,t,n,o,a){if(!e)return;const s=(0,i.default)(e,"/"),c=t.get("type")===d.FILES?(0,u.getFileFromSlug)(t,o.get("slug")):void 0,f=null!==(p=null==c?void 0:c.get("preview_path"))&&void 0!==p?p:t.get("preview_path");var p;if(!f)return e;let h=o.get("data");h=w(o.get("path"),h,t.get("folder"));const m=(null!==(x=null==c?void 0:c.get("preview_path_date_field"))&&void 0!==x?x:t.get("preview_path_date_field"))||(0,u.selectInferredField)(t,"date"),b=v(o,m),_=k(a,[h.get("dirname")]);var x;let E;try{E=g(f,b,n,h,_)}catch(e){if(e.name===y)return console.error(l.stripIndent`
|
||
Collection "${t.get("name")}" configuration error:
|
||
\`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`.
|
||
`),s;throw e}return`${s}/${(0,r.default)(E," /")}`},t.slugFormatter=function(e,t,n){const r=e.get("slug")||"{{slug}}",i=t.getIn(b((0,u.selectIdentifier)(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=k(n),a=new Date,s=g(r,a,i,t,o);if(e.has("path")){const n=E(e.get("path"));return g(n,a,s,t,(e=>e===s?e:o(e)))}return s},t.summaryFormatter=function(e,t,n){let r=t.get("data");const i=v(t,(0,u.selectInferredField)(n,"date"))||null,o=r.getIn(b((0,u.selectIdentifier)(n)));return r=w(t.get("path"),r,n.get("folder")),t.get("author")&&!(0,u.selectField)(n,f.COMMIT_AUTHOR)&&(r=r.set(f.COMMIT_AUTHOR,t.get("author"))),t.get("updatedOn")&&!(0,u.selectField)(n,f.COMMIT_DATE)&&(r=r.set(f.COMMIT_DATE,t.get("updatedOn"))),g(e,i,o,r)};var r=p(n(93433)),i=p(n(1573)),o=p(n(26434)),a=p(n(85395)),s=n(1704),l=n(13856),u=n(45624),c=n(9904),d=n(48781),f=n(93492);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const{compileStringTemplate:g,parseDateFromEntry:v,SLUG_MISSING_REQUIRED_DATE:y,keyToPathArray:b,addFileTemplateFields:w}=s.stringTemplate,_={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},x=/\{\{([^}]+)\}\}/g;function E(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function k(e,t){return n=>t&&t.includes(n)?n:(0,a.default)([e=>String(e),E,(0,o.default)(c.sanitizeSlug,e)])(n)}},13943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18N_STRUCTURE=t.I18N_FIELD=t.I18N=void 0,t.duplicateDefaultI18nFields=function(e,t){const{locales:n,defaultLocale:r}=m(e);return Object.fromEntries(n.filter((e=>e!==r)).map((e=>[e,{data:t}])))},t.duplicateI18nFields=function e(t,n,r,i,o=[n.get("name")]){const s=t.getIn(["entry","data",...o]);return n.get(d)===p.DUPLICATE&&r.filter((e=>e!==i)).forEach((e=>{t=t.setIn(["entry",...v(e,i),...o],s)})),n.has("field")&&!a.List.isList(s)?[n.get("field")].forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})):n.has("fields")&&!a.List.isList(s)&&n.get("fields").toArray().forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})),t},t.formatI18nBackup=function(e,t){return Object.entries(e).reduce(((e,[n,{raw:r}])=>{const i=t(r);return c(c({},e),{},{[n]:{data:i.data}})}),{})},t.getDataPath=v,t.getFilePath=y,t.getFilePaths=w,t.getI18nBackup=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).reduce(((e,r)=>{const o=v(r,i),a=t.getIn(o);if(!a)return e;const s=t.set("data",a);return c(c({},e),{},{[r]:{raw:n(s)}})}),{})},t.getI18nDataFiles=function(e,t,n,r,i){const{structure:o}=m(e);if(o===f.SINGLE_FILE)return i;return w(e,t,n,r).reduce(((e,t)=>{const n=i.find((e=>e.path===t));return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]}),[])},t.getI18nEntry=async function(e,t,n,r,i){const{structure:o,locales:a,defaultLocale:s}=m(e);let l;if(o===f.SINGLE_FILE)l=E(await i(n),s,a);else{const u=(await Promise.all(a.map((async e=>{const a=y(o,t,n,r,e);return{value:await i(a).catch((()=>null)),locale:e}})))).filter((e=>null!==e.value));l=x(e,o,s,u)}return l},t.getI18nFiles=function(e,t,n,r,i,o,s){const{structure:l,defaultLocale:u,locales:d}=m(e);if(l===f.SINGLE_FILE){const e=d.reduce(((e,t)=>{const r=v(t,u);return e.set(t,n.getIn(r))}),(0,a.Map)({})),f=n.set("data",e);return[c({path:y(l,t,i,o,d[0]),slug:o,raw:r(f)},s&&{newPath:y(l,t,s,o,d[0])})]}return d.map((e=>{const a=v(e,u),d=n.set("data",n.getIn(a));return c({path:y(l,t,i,o,e),slug:o,raw:d.get("data")?r(d):""},s&&{newPath:y(l,t,s,o,e)})})).filter((e=>e.raw))},t.getI18nFilesDepth=function(e,t){const{structure:n}=m(e);return n===f.MULTIPLE_FOLDERS?t+1:t},t.getI18nInfo=m,t.getLocaleDataPath=g,t.getLocaleFromPath=b,t.getPreviewEntry=function(e,t,n){return t===n?e:e.set("data",e.getIn([d,t,"data"]))},t.groupEntries=function(e,t,n){const{structure:r,defaultLocale:o,locales:a}=m(e);if(r===f.SINGLE_FILE)return n.map((e=>E(e,o,a)));const s=(0,i.default)(n.map((e=>({locale:b(r,t,e.path),value:e}))),(({locale:e,value:t})=>_(r,t.path,e)));return Object.values(s).reduce(((t,n)=>[...t,x(e,r,o,n)]),[])},t.hasI18n=h,t.isFieldDuplicate=function(e,t,n){return t!==n&&e.get(d)===p.DUPLICATE},t.isFieldHidden=function(e,t,n){return t!==n&&e.get(d)===p.NONE},t.isFieldTranslatable=function(e,t,n){return t!==n&&e.get(d)===p.TRANSLATE},t.normalizeFilePath=_,t.serializeI18n=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).forEach((e=>{const r=g(e);t=t.setIn(r,n(t.getIn(r)))})),t};var r=l(n(89166)),i=l(n(3440)),o=l(n(16765)),a=n(46670),s=n(45624);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=t.I18N="i18n";let f=t.I18N_STRUCTURE=function(e){return e.MULTIPLE_FOLDERS="multiple_folders",e.MULTIPLE_FILES="multiple_files",e.SINGLE_FILE="single_file",e}({}),p=t.I18N_FIELD=function(e){return e.TRANSLATE="translate",e.DUPLICATE="duplicate",e.NONE="none",e}({});function h(e){return e.has(d)}function m(e){if(!h(e))return{};const{structure:t,locales:n,default_locale:r}=e.get(d).toJS();return{structure:t,locales:n,defaultLocale:r}}function g(e){return[d,e,"data"]}function v(e,t){return e!==t?g(e):["data"]}function y(e,t,n,i,o){switch(e){case f.MULTIPLE_FOLDERS:return n.replace(`/${i}`,`/${o}/${i}`);case f.MULTIPLE_FILES:return n.replace(new RegExp(`${(0,r.default)(t)}$`),`${o}.${t}`);case f.SINGLE_FILE:default:return n}}function b(e,t,n){switch(e){case f.MULTIPLE_FOLDERS:{const e=n.split("/");return e.pop(),e.pop()}case f.MULTIPLE_FILES:return n.slice(0,-`.${t}`.length).split(".").pop();case f.SINGLE_FILE:default:return""}}function w(e,t,n,r){const{structure:i,locales:o}=m(e);return i===f.SINGLE_FILE?[n]:o.map((e=>y(i,t,n,r,e)))}function _(e,t,n){switch(e){case f.MULTIPLE_FOLDERS:return t.replace(`${n}/`,"");case f.MULTIPLE_FILES:return t.replace(`.${n}`,"");case f.SINGLE_FILE:default:return t}}function x(e,t,n,r){let i=r.find((e=>e.locale===n));i||(i=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const a=r.filter((e=>e.locale!==i.locale)).reduce(((e,{locale:t,value:n})=>{const r=g(t);return(0,o.default)(e,r,n.data)}),{}),l=_(t,i.value.path,n),u=(0,s.selectEntrySlug)(e,l);return c(c(c({},i.value),{},{raw:""},a),{},{path:l,slug:u})}function E(e,t,n){const r=e.data[t]||{},i=n.filter((e=>e!==t)).map((t=>({locale:t,value:e.data[t]}))).filter((e=>e.value)).reduce(((e,t)=>c(c({},e),{},{[t.locale]:{data:t.value}})),{});return c(c({},e),{},{data:r,i18n:i,raw:""})}},99187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPhrases=function(e){return(0,i.default)({},(0,o.getLocale)("en"),(0,o.getLocale)(e))};var r,i=(r=n(98537))&&r.__esModule?r:{default:r},o=n(41891)},41891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getBackend=P,t.getCustomFormats=z,t.getCustomFormatsExtensions=q,t.getCustomFormatsFormatters=W,t.getEditorComponents=k,t.getEventListeners=I,t.getFormatter=function(e){var t;return null===(t=h.formats[e])||void 0===t?void 0:t.formatter},t.getLocale=B,t.getMediaLibrary=M,t.getPreviewStyles=g,t.getPreviewTemplate=y,t.getRemarkPlugins=S,t.getWidget=w,t.getWidgetValueSerializer=T,t.getWidgets=_,t.invokeEvent=j,t.registerBackend=O,t.registerCustomFormat=U,t.registerEditorComponent=E,t.registerEventListener=L,t.registerLocale=F,t.registerMediaLibrary=R,t.registerPreviewStyle=m,t.registerPreviewTemplate=v,t.registerRemarkPlugin=C,t.registerWidget=b,t.registerWidgetValueSerializer=A,t.removeEventListener=N,t.resolveWidget=x;var r,i=n(46670),o=n(30412),a=n(13856),s=(r=n(57331))&&r.__esModule?r:{default:r};const l=["name","controlComponent","previewComponent","schema","allowMapValue","globalStyles"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=["prePublish","postPublish","preUnpublish","postUnpublish","preSave","postSave"],p={};f.forEach((e=>{p[e]=[]}));const h={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,i.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:p,formats:{}};function m(e,t){h.previewStyles.push(c(c({},t),{},{value:e}))}function g(){return h.previewStyles}function v(e,t){h.templates[e]=t}function y(e){return h.templates[e]}function b(e,t,n,r={}){if(Array.isArray(e))e.forEach((e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):b(e)}));else if("string"==typeof e){const i="string"==typeof t?h.widgets[t].control:t;h.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:o,globalStyles:s}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);if(h.widgets[t]&&console.warn(a.oneLine`
|
||
Multiple widgets registered with name "${t}". Only the last widget registered with
|
||
this name will be used.
|
||
`),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);h.widgets[t]=c({control:n,preview:r,schema:i,globalStyles:s,allowMapValue:o},u)}else console.error("`registerWidget` failed, called with incorrect arguments.")}function w(e){return h.widgets[e]}function _(){return(0,o.produce)(Object.entries(h.widgets),(e=>e.map((([e,t])=>c({name:e},t)))))}function x(e){return w(e||"string")||w("unknown")}function E(e){const t=(0,s.default)(e);if("code-block"===t.type){const e=h.editorComponents.find((e=>"code-block"===e.type));e&&(console.warn(a.oneLine`
|
||
Only one editor component of type "code-block" may be registered. Previously registered code
|
||
block component(s) will be overwritten.
|
||
`),h.editorComponents=h.editorComponents.delete(e.id))}h.editorComponents=h.editorComponents.set(t.id,t)}function k(){return h.editorComponents}function C(e){h.remarkPlugins.push(e)}function S(){return h.remarkPlugins}function A(e,t){h.widgetValueSerializers[e]=t}function T(e){return h.widgetValueSerializers[e]}function O(e,t){e&&t?h.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):h.backends[e]={init:(...e)=>new t(...e)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function P(e){return h.backends[e]}function R(e,t){if(h.mediaLibraries.find((t=>e.name===t.name)))throw new Error(`A media library named ${e.name} has already been registered.`);h.mediaLibraries.push(c(c({},e),{},{options:t}))}function M(e){return h.mediaLibraries.find((t=>t.name===e))}function D(e){if(!f.includes(e))throw new Error(`Invalid event name '${e}'`)}function I(e){return D(e),[...h.eventHandlers[e]]}function L({name:e,handler:t},n={}){D(e),h.eventHandlers[e].push({handler:t,options:n})}async function j({name:e,data:t}){D(e);const n=h.eventHandlers[e];let r=c({},t);for(const{handler:e,options:i}of n){const n=await e(r,i);if(void 0!==n){const e=r.entry.set("data",n);r=c(c({},t),{},{entry:e})}}return r.entry.get("data")}function N({name:e,handler:t}){D(e),h.eventHandlers[e]=t?h.eventHandlers[e].filter((e=>e.handler!==t)):[]}function F(e,t){e&&t?h.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function B(e){return h.locales[e]}function U(e,t,n){h.formats[e]={extension:t,formatter:n}}function z(){return h.formats}function q(){return Object.entries(h.formats).reduce((function(e,[t,{extension:n}]){return c(c({},e),{},{[t]:n})}),{})}function W(){return Object.entries(h.formats).reduce((function(e,[t,{formatter:n}]){return c(c({},e),{},{[t]:n})}),{})}t.default={registerPreviewStyle:m,getPreviewStyles:g,registerPreviewTemplate:v,getPreviewTemplate:y,registerWidget:b,getWidget:w,getWidgets:_,resolveWidget:x,registerEditorComponent:E,getEditorComponents:k,registerRemarkPlugin:C,getRemarkPlugins:S,registerWidgetValueSerializer:A,getWidgetValueSerializer:T,registerBackend:O,getBackend:P,registerMediaLibrary:R,getMediaLibrary:M,registerLocale:F,getLocale:B,registerEventListener:L,removeEventListener:N,getEventListeners:I,invokeEvent:j,registerCustomFormat:U,getCustomFormats:z,getCustomFormatsExtensions:q,getCustomFormatsFormatters:W}},33188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeValues=function(e,t){return s(e,t,"deserialize")},t.serializeValues=function(e,t){return s(e,t,"serialize")};var r,i=(r=n(1842))&&r.__esModule?r:{default:r},o=n(46670),a=n(41891);function s(e,t,n){let r=t.reduce(((t,r)=>{const l=r.get("name"),u=e.get(l),c=(0,a.getWidgetValueSerializer)(r.get("widget")),d=r.get("fields");return d&&o.List.isList(u)?t.set(l,u.map((e=>s(e,d,n)))):d&&o.Map.isMap(u)?t.set(l,s(u,d,n)):c&&!(0,i.default)(u)?t.set(l,c[n](u)):(0,i.default)(u)?t:t.set(l,u)}),(0,o.Map)());return r=e.mergeDeep(r),r}},9904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addParams=function(e,t){const n=s.default.parse(e,!0);return n.query=p(p({},n.query),t),s.default.format(n)},t.getCharReplacer=b,t.getCollectionUrl=function(e,t){return h(`/collections/${e}`,t)},t.getNewEntryUrl=function(e,t){return h(`/collections/${e}/new`,t)},t.joinUrlPath=function(e,...t){return(0,l.default)(e,...t)},t.sanitizeChar=function(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return b(n,r)(e)},t.sanitizeSlug=function(e,t){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:s,sanitize_replacement:l}=t||{},d=(0,i.default)([...s?[u.default.remove]:[],(0,r.default)(w,{replacement:l,encoding:n}),(0,r.default)(c.default,{replacement:l})])(e),f=new RegExp(`(?:${(0,o.default)(l)})+`,"g"),p=new RegExp(`${(0,o.default)(l)}$`),h=new RegExp(`^${(0,o.default)(l)}`);return d.replace(f,l).replace(h,"").replace(p,"")},t.sanitizeURI=w,t.stripProtocol=function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e};var r=d(n(26434)),i=d(n(85395)),o=d(n(89166)),a=d(n(85505)),s=d(n(883)),l=d(n(49705)),u=d(n(63449)),c=d(n(17826));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return`${t?"/#":""}${e}`}const m=/[\w\-.~]/i,g=/[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u;function v(e){return m.test(e)}function y(e){return m.test(e)||g.test(e)}function b(e,t){let n;if("unicode"===e)n=y;else{if("ascii"!==e)throw new Error('`options.encoding` must be "unicode" or "ascii".');n=v}if(!Array.from(t).every(n))throw new Error("The replacement character(s) (options.replacement) is itself unsafe.");return e=>n(e)?e:t}function w(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!(0,a.default)(e))throw new Error("The input slug must be a string.");if(!(0,a.default)(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(b(r,n)).join("")}},72649:(e,t,n)=>{"use strict";var r,i=(r=n(25291))&&r.__esModule?r:{default:r},o=n(41891),a=n(21837),s=n(54750),l=n(68104);function u(e){return a.store.dispatch((0,l.insertMedia)(e,void 0))}const c=(0,i.default)((async function(e,t){const n=(0,o.getMediaLibrary)(e);if(n){const e=await n.init({options:t,handleInsert:u});a.store.dispatch((0,l.createMediaLibrary)(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);a.store.dispatch((0,s.configFailed)(t))}}));a.store.subscribe((()=>{const e=a.store.getState();if(e){var t;const n=null===(t=e.config.media_library)||void 0===t?void 0:t.name;if(n&&!e.mediaLibrary.get("externalLibrary")){const t=e.config.media_library;c(n,t)}}}))},11449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=t.default=void 0;var r=n(30412),i=n(76167);const o=t.defaultState={isFetching:!1,user:void 0,error:void 0},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.AUTH_REQUEST:e.isFetching=!0;break;case i.AUTH_SUCCESS:e.user=t.payload;break;case i.AUTH_FAILURE:e.error=t.payload&&t.payload.toString();break;case i.AUTH_REQUEST_DONE:e.isFetching=!1;break;case i.LOGOUT:e.user=void 0,e.isFetching=!1}}),o);t.default=a},45624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFieldsNames=C,t.getFileFromSlug=x,t.selectAllowDeletion=function(e){return w[e.get("type")].allowDeletion(e)},t.selectAllowNewEntries=function(e){return w[e.get("type")].allowNewEntries(e)},t.selectDefaultSortableFields=function(e,t,n){let r=d.SORTABLE_FIELDS.map((r=>{const i=O(e,r);return!t.isGitBackend()||"author"!==r||i||n?i:c.COMMIT_AUTHOR})).filter(Boolean);return t.isGitBackend()&&!n&&(r=[c.COMMIT_DATE,...r]),r},t.selectEntryCollectionTitle=function(e,t){const n=e.get("summary");if(n)return(0,h.summaryFormatter)(n,t,e);if(e.get("type")==u.FILES){const n=k(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=O(e,"title"),o=i&&r.getIn(y(i));return o||"title"===i?o:r.getIn(y("title"))},t.selectEntryPath=function(e,t){return w[e.get("type")].entryPath(e,t)},t.selectEntrySlug=function(e,t){return w[e.get("type")].entrySlug(e,t)},t.selectField=S,t.selectFields=function(e,t){return w[e.get("type")].fields(e,t)},t.selectFieldsComments=function(e,t){let n=[];e.has("folder")?n=e.get("fields").toArray():e.has("files")&&(n=e.get("files").find((e=>(null==e?void 0:e.get("name"))===t.get("slug"))).get("fields").toArray());const r={};return C(n).forEach((t=>{const n=S(e,t);null!=n&&n.has("comment")&&(r[t]=n.get("comment"))})),r},t.selectFieldsWithMediaFolders=E,t.selectFileEntryLabel=k,t.selectFolderEntryExtension=function(e){return w[u.FOLDER].entryExtension(e)},t.selectHasMetaPath=function(e){var t;return e.has("folder")&&e.get("type")===u.FOLDER&&e.has("meta")&&(null===(t=e.get("meta"))||void 0===t?void 0:t.has("path"))},t.selectIdentifier=T,t.selectInferredField=O,t.selectMediaFolders=function(e,t,n){const r=E(t,n.get("slug")).map((r=>(0,p.selectMediaFolder)(e,t,n,r)));return t.has("files")&&x(t,n.get("slug"))&&r.unshift((0,p.selectMediaFolder)(e,t,n,void 0)),t.has("media_folder")&&(t=t.delete("files"),r.unshift((0,p.selectMediaFolder)(e,t,n,void 0))),(0,o.Set)(r).toArray()},t.selectSortDataPath=function(e,t){return t===c.COMMIT_DATE?"updatedOn":t!==c.COMMIT_AUTHOR||S(e,t)?`data.${t}`:"author"},t.selectSortableFields=function(e,t){return e.get("sortable_fields").toArray().map((n=>{if(n===c.COMMIT_DATE)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=S(e,n);return n!==c.COMMIT_AUTHOR||r?{key:n,field:null==r?void 0:r.toJS()}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}})).filter((e=>!!e.field)).map((e=>v(v({},e.field),{},{key:e.key})))},t.selectTemplateName=function(e,t){return w[e.get("type")].templateName(e,t)},t.selectViewFilters=function(e){return e.get("view_filters").toJS()},t.selectViewGroups=function(e){return e.get("view_groups").toJS()},t.traverseFields=A,t.updateFieldByKey=function(e,t,n){const r=S(e,t);if(!r)return e;let i=!1;return e.set("fields",A(e.get("fields",(0,o.List)()),(function(e){const t=e;return t===r?(i=!0,n(t)):t}),(()=>i)))};var r=m(n(89166)),i=m(n(72579)),o=n(46670),a=n(1704),s=m(n(54876)),l=n(54750),u=n(48781),c=n(93492),d=n(39010),f=n(85575),p=n(58308),h=n(59311);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const{keyToPathArray:y}=a.stringTemplate,b=(0,o.fromJS)({}),w={[u.FOLDER]:{entryExtension(e){const t=e.get("extension")||(0,i.default)((0,f.getFormatExtensions)(),e.get("format")||"frontmatter");if(!t)throw new Error(`No extension found for format ${e.get("format")}`);return t.replace(/^\./,"")},fields:e=>e.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){var n;const i=e.get("folder").replace(/\/$/,"");return null===(n=t.split(i+"/").pop())||void 0===n?void 0:n.replace(new RegExp(`\\.${(0,r.default)(this.entryExtension(e))}$`),"")},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[u.FILES]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter((e=>(null==e?void 0:e.get("name"))===t)).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter((e=>(null==e?void 0:e.get("file"))===t)).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function _(e){return e.reduce(((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){var n;const r=null===(n=t.get("fields"))||void 0===n?void 0:n.toArray();e=[...e,..._(r)]}else if(t.has("field")){const n=t.get("field");e=[...e,..._([n])]}else if(t.has("types")){var r;const n=null===(r=t.get("types"))||void 0===r?void 0:r.toArray();e=[...e,..._(n)]}return e}),[])}function x(e,t){var n;return null===(n=e.get("files"))||void 0===n?void 0:n.toArray().find((e=>e.get("name")===t))}function E(e,t){return e.has("folder")?_(e.get("fields").toArray()):e.has("files")?_((null===(n=x(e,t))||void 0===n?void 0:n.get("fields").toArray())||[]):[];var n}function k(e,t){return w[u.FILES].entryLabel(e,t)}function C(e,t=""){let n=e.map((e=>`${t}${e.get("name")}`));return e.forEach(((e,t)=>{if(e.has("fields")){var r;const i=null===(r=e.get("fields"))||void 0===r?void 0:r.toArray();n=[...n,...C(i,`${n[t]}.`)]}else if(e.has("field")){const r=e.get("field");n=[...n,...C([r],`${n[t]}.`)]}else if(e.has("types")){var i;const r=null===(i=e.get("types"))||void 0===i?void 0:i.toArray();n=[...n,...C(r,`${n[t]}.`)]}})),n}function S(e,t){const n=y(t);let r,i,a=e.get("fields",(0,o.List)()).toArray();for(;(r=n.shift())&&a;){var s,l,u,c,d;if(i=a.find((e=>e.get("name")===r)),null!==(s=i)&&void 0!==s&&s.has("fields"))a=null===(c=i)||void 0===c||null===(d=c.get("fields"))||void 0===d?void 0:d.toArray();else if(null!==(l=i)&&void 0!==l&&l.has("field")){var f;a=[null===(f=i)||void 0===f?void 0:f.get("field")]}else if(null!==(u=i)&&void 0!==u&&u.has("types")){var p,h;a=null===(p=i)||void 0===p||null===(h=p.get("types"))||void 0===h?void 0:h.toArray()}}return i}function A(e,t,n=(()=>!1)){return n()?e:e=e.map((e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",A(r.get("fields"),t,n)):r.has("field")?r.set("field",A((0,o.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",A(r.get("types"),t,n)):r})).toList()}function T(e){const t=e.get("identifier_field"),n=t?[t,...d.IDENTIFIER_FIELDS]:[...d.IDENTIFIER_FIELDS],r=C(e.get("fields",(0,o.List)()).toArray());return n.find((e=>r.find((t=>t.toLowerCase().trim()===e.toLowerCase().trim()))))}function O(e,t){if("title"===t&&e.get("identifier_field"))return T(e);const n=d.INFERABLE_FIELDS[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter((e=>(null==e?void 0:e.get("widget","string"))===n.type)).map((e=>null==e?void 0:e.get("name")));return i=o.filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():(i=r.filter((e=>-1!==n.secondaryTypes.indexOf(null==e?void 0:e.get("widget","string")))).map((e=>null==e?void 0:e.get("name"))).filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(0,s.default)(`The Field ${t} is missing for the collection “${e.get("name")}”`,`Decap CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`),null))}t.default=function(e=b,t){if(t.type===l.CONFIG_SUCCESS){const e=t.payload.collections;let n=(0,o.OrderedMap)({});return e.forEach((e=>{n=n.set(e.name,(0,o.fromJS)(e))})),n}return e}},16797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(74081),o=(r=n(36642))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){return(0,i.combineReducers)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.default))}},23260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectLocale=function(e){return e.locale||"en"},t.selectUseWorkflow=function(e){return e.publish_mode===o.EDITORIAL_WORKFLOW};var r=n(30412),i=n(54750),o=n(61928);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=(0,r.produce)(((e,t)=>{switch(t.type){case i.CONFIG_REQUEST:e.isFetching=!0;break;case i.CONFIG_SUCCESS:return s(s({},t.payload),{},{isFetching:!1,error:void 0});case i.CONFIG_FAILURE:e.isFetching=!1,e.error=t.payload.toString()}}),{isFetching:!0});t.default=l},63647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCollectionEntriesCursor=function(e,t){return new i.Cursor(e.getIn(["cursorsByType","collectionEntries",t]))};var r=n(46670),i=n(33806),o=n(50236);t.default=function(e=(0,r.fromJS)({cursorsByType:{collectionEntries:{}}}),t){switch(t.type){case o.ENTRIES_SUCCESS:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],i.Cursor.create(t.payload.cursor).store);case o.FILTER_ENTRIES_SUCCESS:case o.GROUP_ENTRIES_SUCCESS:case o.SORT_ENTRIES_SUCCESS:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}}},54989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return e[`${t}.${n}`]};var r=n(30412),i=n(66145);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.DEPLOY_PREVIEW_REQUEST:{const{collection:n,slug:r}=t.payload,i=`${n}.${r}`;e[i]=e[i]||{},e[i].isFetching=!0;break}case i.DEPLOY_PREVIEW_SUCCESS:{const{collection:n,slug:r,url:i,status:o}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=i,e[a].status=o;break}case i.DEPLOY_PREVIEW_FAILURE:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`].isFetching=!1;break}}}),{});t.default=o},94778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectUnpublishedEntriesByStatus=function(e,t){return e?e.get("entities").filter((e=>e.get("status")===t)).valueSeq():null},t.selectUnpublishedEntry=function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])},t.selectUnpublishedSlugs=function(e,t){return e.get("entities")?e.get("entities").filter(((e,n)=>(0,i.default)(n,`${t}.`))).map((e=>e.get("slug"))).valueSeq():null};var r,i=(r=n(37994))&&r.__esModule?r:{default:r},o=n(46670),a=n(61928),s=n(91358),l=n(54750);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e=(0,o.Map)(),t){switch(t.type){case l.CONFIG_SUCCESS:return(t.payload&&t.payload.publish_mode)===a.EDITORIAL_WORKFLOW?(0,o.Map)({entities:(0,o.Map)(),pages:(0,o.Map)()}):e;case s.UNPUBLISHED_ENTRY_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isFetching"],!0);case s.UNPUBLISHED_ENTRY_REDIRECT:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_SUCCESS:return e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.slug}`],(0,o.fromJS)(t.payload.entry));case s.UNPUBLISHED_ENTRIES_REQUEST:return e.setIn(["pages","isFetching"],!0);case s.UNPUBLISHED_ENTRIES_SUCCESS:return e.withMutations((e=>{t.payload.entries.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,o.fromJS)(t).set("isFetching",!1)))),e.set("pages",(0,o.Map)(c(c({},t.payload.pages),{},{ids:(0,o.List)(t.payload.entries.map((e=>e.slug)))})))}));case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,o.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,o.List)(),(e=>e.push(t.payload.entry.get("slug"))))}));case s.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)}));case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case s.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case s.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case s.UNPUBLISHED_ENTRY_DELETE_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:default:return e}}},58308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectEditingDraft=function(e){const t=e.get("entry");return t&&!t.isEmpty()},t.selectEntries=function(e,t){const n=t.get("name");let r=q(e,n);const o=F(e,n);if(o&&o.length>0){const e=o.map((e=>(0,m.selectSortDataPath)(t,e.get("key")))),n=o.map((e=>e.get("direction")===p.SortDirection.Ascending?"asc":"desc"));r=(0,u.fromJS)((0,i.default)(r.toJS(),e,n))}const a=B(e,n);return a&&a.length>0&&(r=r.filter((e=>a.every((t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,u.Map)()).getIn(E(r));return void 0!==i&&new RegExp(String(n)).test(String(i))})))).toList()),r},t.selectEntriesFilter=L,t.selectEntriesFilterFields=B,t.selectEntriesGroup=j,t.selectEntriesGroupField=N,t.selectEntriesLoaded=function(e,t){return!!e.getIn(["pages",t])},t.selectEntriesSort=I,t.selectEntriesSortFields=F,t.selectEntry=U,t.selectEntryByPath=function(e,t,n){const r=z(e,t),i=r&&r.map((n=>U(e,t,n)));return i&&i.find((e=>(null==e?void 0:e.get("path"))===n))},t.selectGroups=function(e,t){const n=t.get("name"),i=q(e,n),o=N(e,n);if(void 0===o)return[];let a={};const s=(0,r.default)(i.toArray(),(e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),i=e.getIn(["data",...E(r)]);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.has("pattern")){const e=t.get("pattern");let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(e,o);return a=x(x({},a),{},{[t.id]:t}),t.id})),l=Object.entries(s).map((([e,t])=>x(x({},a[e]),{},{paths:(0,u.Set)(t.map((e=>e.get("path"))))})));return l},t.selectIsFetching=function(e,t){return e.getIn(["pages",t,"isFetching"],!1)},t.selectMediaFilePath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(r))return r;const o=K(e,t,n,i);return(0,c.join)(o,(0,d.basename)(r))},t.selectMediaFilePublicPath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(n))return n;const o="public_folder";let a=e[o];return H(o,t,null==r?void 0:r.get("slug"),i)&&(a=V(o,e,t,r,i)),(0,d.isAbsolutePath)(a)?(0,b.joinUrlPath)(a,(0,d.basename)(n)):(0,c.join)(a,(0,d.basename)(n))},t.selectMediaFolder=K,t.selectPublishedSlugs=z,t.selectViewStyle=function(e){return e.get("viewStyle")};var r=w(n(3440)),i=w(n(34498)),o=w(n(16765)),a=w(n(829)),s=w(n(25291)),l=w(n(5648)),u=n(46670),c=n(21023),d=n(33806),f=n(1704),p=n(67964),h=n(59311),m=n(45624),g=n(15207),v=n(50236),y=n(78882),b=n(9904);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const{keyToPathArray:E}=f.stringTemplate;let k,C,S,A,T;const O="decap-cms.entries.sort",P="decap-cms.entries.viewStyle",R=(0,s.default)((()=>{const e=localStorage.getItem(O);if(e)try{const t=JSON.parse(e);let n=(0,u.Map)();return Object.entries(t).forEach((([e,t])=>{let r=(0,u.OrderedMap)();(0,a.default)(Object.values(t),["index"]).forEach((e=>{const{key:t,direction:n}=e;r=r.set(t,(0,u.fromJS)({key:t,direction:n}))})),n=n.set(e,r)})),n}catch(e){return(0,u.Map)()}return(0,u.Map)()}));function M(e){if(e){const t={};e.keySeq().forEach((n=>{const r=n;e.get(r).valueSeq().toJS().map(((e,t)=>x(x({},e),{},{index:t}))).forEach((e=>{(0,o.default)(t,[r,e.key],e)}))})),localStorage.setItem(O,JSON.stringify(t))}else localStorage.removeItem(O)}const D=(0,s.default)((()=>localStorage.getItem(P)||(localStorage.setItem(P,y.VIEW_STYLE_LIST),y.VIEW_STYLE_LIST)));function I(e,t){const n=e.get("sort");return null==n?void 0:n.get(t)}function L(e,t){const n=e.get("filter");return(null==n?void 0:n.get(t))||(0,u.Map)()}function j(e,t){const n=e.get("group");return(null==n?void 0:n.get(t))||(0,u.Map)()}function N(e,t){const n=j(e,t);return null==n?void 0:n.valueSeq().find((e=>!0===(null==e?void 0:e.get("active"))))}function F(e,t){const n=I(e,t);return(null==n?void 0:n.valueSeq().filter((e=>(null==e?void 0:e.get("direction"))!==p.SortDirection.None)).toArray())||[]}function B(e,t){const n=L(e,t);return(null==n?void 0:n.valueSeq().filter((e=>!0===(null==e?void 0:e.get("active")))).toArray())||[]}function U(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function z(e,t){return e.getIn(["pages",t,"ids"],(0,u.List)())}function q(e,t){const n=z(e,t),r=n&&n.map((n=>U(e,t,n)));return r}const W="DRAFT_MEDIA_FILES";function $(e,t){return e.find((e=>(null==e?void 0:e.get("name"))===t))}function H(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=$(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function G(e,t,n,r,i,o,a){const s=o.filter((e=>e===i))[0];if(s)return(0,h.folderFormatter)(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=(0,h.folderFormatter)(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=G(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=G(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=G(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null}function V(e,t,n,r,i){let o=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug);let a=$(n.get("files"),null==r?void 0:r.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=(0,h.folderFormatter)(a.get(e),r,n,o,e,t.slug),i)){const s=G(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug),i){const a=G(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o}function K(e,t,n,r){const i="media_folder";let o=e[i];if(H(i,t,null==n?void 0:n.get("slug"),r)){const a=V(i,e,t,n,r);if(a.startsWith("/"))o=(0,c.join)(a);else{const e=null==n?void 0:n.get("path");o=e?(0,c.join)((0,c.dirname)(e),a):(0,c.join)(t.get("folder"),W)}}return(0,l.default)(o,"/")}t.default=function(e=(0,u.Map)({entities:(0,u.Map)(),pages:(0,u.Map)(),sort:R(),viewStyle:D()}),t){switch(t.type){case v.ENTRY_REQUEST:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case v.ENTRY_SUCCESS:{const n=t.payload;return k=n.collection,T=n.entry.slug,e.withMutations((e=>{e.setIn(["entities",`${k}.${T}`],(0,u.fromJS)(n.entry));const t=e.getIn(["pages",k,"ids"],(0,u.List)());t.includes(T)||e.setIn(["pages",k,"ids"],t.unshift(T))}))}case v.ENTRIES_REQUEST:{const n=t.payload;return e.withMutations((e=>{e.setIn(["pages",n.collection,"isFetching"],!0)}))}case v.ENTRIES_SUCCESS:{const n=t.payload;return k=n.collection,C=n.entries,S=n.append,A=n.page,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${k}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))));const t=(0,u.List)(C.map((e=>e.slug)));e.setIn(["pages",k],(0,u.Map)({page:A,ids:S?e.getIn(["pages",k,"ids"],(0,u.List)()).concat(t):t}))}))}case v.ENTRIES_FAILURE:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case v.ENTRY_FAILURE:{const n=t.payload;return e.withMutations((e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)}))}case g.SEARCH_ENTRIES_SUCCESS:{const n=t.payload;return C=n.entries,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))))}))}case v.ENTRY_DELETE_SUCCESS:{const n=t.payload;return e.withMutations((e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],(e=>e.filter((e=>e!==n.entrySlug))))}))}case v.SORT_ENTRIES_REQUEST:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations((e=>{const t=(0,u.OrderedMap)({[i]:(0,u.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])}));return M(a.get("sort")),a}case v.GROUP_ENTRIES_SUCCESS:case v.FILTER_ENTRIES_SUCCESS:case v.SORT_ENTRIES_SUCCESS:{const n=t.payload,{collection:r,entries:i}=n;return C=i,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1)))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,u.List)(C.map((e=>e.slug)));e.setIn(["pages",r],(0,u.Map)({page:1,ids:t}))}))}case v.SORT_ENTRIES_FAILURE:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations((e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)}));return M(o.get("sort")),o}case v.FILTER_ENTRIES_REQUEST:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{const t=e.getIn(["filter",r,i.id],(0,u.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.FILTER_ENTRIES_FAILURE:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.GROUP_ENTRIES_REQUEST:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{const t=e.getIn(["group",r,i.id],(0,u.fromJS)(i));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.GROUP_ENTRIES_FAILURE:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{e.deleteIn(["group",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.CHANGE_VIEW_STYLE:{const r=t.payload,{style:i}=r,o=e.withMutations((e=>{e.setIn(["viewStyle"],i)}));return(n=o.get("viewStyle"))?localStorage.setItem(P,n):localStorage.removeItem(P),o}default:return e}var n}},51748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCustomPath=function(e,t){if(!(0,c.selectHasMetaPath)(e))return;const n=t.getIn(["entry","meta"]),r=n&&n.get("path"),o=(0,i.default)(e.toJS(),["meta","path","index_file"]),a=(0,c.selectFolderEntryExtension)(e);return r&&(0,s.join)(e.get("folder"),r,`${o}.${a}`)};var r,i=(r=n(72579))&&r.__esModule?r:{default:r},o=n(46670),a=n(29987),s=n(21023),l=n(50236),u=n(91358),c=n(45624),d=n(13943);const f=(0,o.Map)({entry:(0,o.Map)(),fieldsMetaData:(0,o.Map)(),fieldsErrors:(0,o.Map)(),hasChanged:!1,key:""});t.default=function(e=(0,o.Map)(),t){switch(t.type){case l.DRAFT_CREATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_EMPTY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_FROM_LOCAL_BACKUP:return e.withMutations((e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_DUPLICATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,o.List)()),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0)}));case l.DRAFT_DISCARD:return f;case l.DRAFT_LOCAL_BACKUP_RETRIEVED:{const{entry:n}=t.payload,r=new o.Map({entry:(0,o.fromJS)(n)});return e.set("localBackup",r)}case l.DRAFT_CHANGE_FIELD:return e.withMutations((e=>{const{field:n,value:r,metadata:i,entries:a,i18n:s}=t.payload,l=n.get("name"),u=n.get("meta"),c=s&&(0,d.getDataPath)(s.currentLocale,s.defaultLocale)||["data"];u?e.setIn(["entry","meta",l],r):(e.setIn(["entry",...c,l],r),s&&(e=(0,d.duplicateI18nFields)(e,n,s.locales,s.defaultLocale))),e.mergeDeepIn(["fieldsMetaData"],(0,o.fromJS)(i));const f=e.getIn(["entry",...c]),p=e.getIn(["entry","meta"]);e.set("hasChanged",!a.some((e=>f.equals(e.get(...c))))||!a.some((e=>p.equals(e.get("meta")))))}));case l.DRAFT_VALIDATION_ERRORS:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case l.DRAFT_CLEAR_ERRORS:return e.set("fieldsErrors",(0,o.Map)());case l.ENTRY_PERSIST_REQUEST:case u.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entry","isPersisting"],!0);case l.ENTRY_PERSIST_FAILURE:case u.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.deleteIn(["entry","isPersisting"]);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entry","isUpdatingStatus"],!0);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.deleteIn(["entry","isUpdatingStatus"]);case u.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entry","isPublishing"],!0);case u.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case u.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:return e.deleteIn(["entry","isPublishing"]);case l.ENTRY_PERSIST_SUCCESS:case u.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)}));case l.ENTRY_DELETE_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)}));case l.ADD_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id)).insert(0,(0,o.fromJS)(t.payload))),e.set("hasChanged",!0)}));case l.REMOVE_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id))),e.set("hasChanged",!0)}));default:return e}}},3661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(76167);const o=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function a(e){return o.some((t=>e.type.includes(t)))}const s=(0,r.produce)(((e,t)=>{!a(t)&&t.type.includes("REQUEST")?e.isFetching=!0:a(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===i.USE_OPEN_AUTHORING&&(e.useOpenAuthoring=!0):e.isFetching=!1}),{isFetching:!1,useOpenAuthoring:!1});t.default=s},36642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return b.selectDeployPreview(e.deploys,t,n)},t.selectEntries=function(e,t){return u.selectEntries(e.entries,t)},t.selectEntry=function(e,t,n){return u.selectEntry(e.entries,t,n)},t.selectIntegration=function(e,t,n){return s.selectIntegration(e.integrations,t,n)},t.selectPublishedSlugs=function(e,t){return u.selectPublishedSlugs(e.entries,t)},t.selectSearchedEntries=function(e,t){return(0,r.List)(e.search.entryIds).filter((e=>-1!==t.indexOf(e.collection))).map((t=>u.selectEntry(e.entries,t.collection,t.slug)))},t.selectUnpublishedEntriesByStatus=function(e,t){return f.selectUnpublishedEntriesByStatus(e.editorialWorkflow,t)},t.selectUnpublishedEntry=function(e,t,n){return f.selectUnpublishedEntry(e.editorialWorkflow,t,n)},t.selectUnpublishedSlugs=function(e,t){return f.selectUnpublishedSlugs(e.editorialWorkflow,t)};var r=n(46670),i=C(n(11449)),o=C(n(23260)),a=k(n(487)),s=a,l=k(n(58308)),u=l,c=C(n(63647)),d=k(n(94778)),f=d,p=C(n(51748)),h=C(n(45624)),m=C(n(56863)),g=C(n(33474)),v=C(n(90694)),y=k(n(54989)),b=y,w=C(n(3661)),_=C(n(18259)),x=C(n(85594));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}const S={auth:i.default,config:o.default,collections:h.default,search:m.default,integrations:a.default,entries:l.default,cursors:c.default,editorialWorkflow:d.default,entryDraft:p.default,medias:g.default,mediaLibrary:v.default,deploys:y.default,globalUI:w.default,status:_.default,notifications:x.default};t.default=S},487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getIntegrations=s,t.selectIntegration=function(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)};var r=n(46670),i=n(54750);const o=["hooks","collections","provider"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){const t=(e.integrations||[]).reduce(((t,n)=>{const{hooks:r,collections:i,provider:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,o);return t.providers[s]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l),i?(("*"===i?e.collections.map((e=>e.name)):i).forEach((e=>{r.forEach((n=>{t.hooks[e]?t.hooks[e][n]=s:t.hooks[e]={[n]:s}}))})),t):(r.forEach((e=>{t.hooks[e]=s})),t)}),{providers:{},hooks:{}});return(0,r.fromJS)(t)}const l=(0,r.fromJS)({providers:{},hooks:{}});t.default=function(e=l,t){return t.type===i.CONFIG_SUCCESS?s(t.payload):e}},90694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectMediaDisplayURL=function(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,r.Map)())},t.selectMediaFileByPath=function(e,t){return f(e).find((e=>e.path===t))},t.selectMediaFiles=f;var r=n(46670),i=n(29987),o=n(21023),a=n(68104),s=n(58308),l=n(36642);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d={isVisible:!1,showMediaButton:!0,controlMedia:(0,r.Map)(),displayURLs:(0,r.Map)(),config:(0,r.Map)()};function f(e,t){const{mediaLibrary:n,entryDraft:i}=e,a=(0,s.selectEditingDraft)(e.entryDraft),u=(0,l.selectIntegration)(e,null,"assetStore");let d;if(a&&!u){const n=i.getIn(["entry","mediaFiles"],(0,r.List)()).toJS(),a=i.get("entry"),l=e.collections.get(null==a?void 0:a.get("collection")),u=(0,s.selectMediaFolder)(e.config,l,a,t);d=n.filter((e=>(0,o.dirname)(e.path)===u)).map((e=>c({key:e.id},e)))}else d=n.get("files")||[];return d}t.default=function(e=(0,r.Map)(d),t){switch(t.type){case a.MEDIA_LIBRARY_CREATE:return e.withMutations((e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())}));case a.MEDIA_LIBRARY_OPEN:{const{controlID:n,forImage:i,privateUpload:o,config:a,field:s,value:l,replaceIndex:u}=t.payload,c=a||(0,r.Map)();return e.get("privateUpload")!==o?(0,r.Map)({isVisible:!0,forImage:i,controlID:n,canInsert:!!n,privateUpload:o,config:c,controlMedia:(0,r.Map)(),displayURLs:(0,r.Map)(),field:s,value:l,replaceIndex:u}):e.withMutations((e=>{e.set("isVisible",!0),e.set("forImage",null!=i&&i),e.set("controlID",null!=n?n:""),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",c),e.set("field",null!=s?s:""),e.set("value",""==l&&c.get("multiple")?[]:null!=l?l:""),e.set("replaceIndex",null!=u&&u)}))}case a.MEDIA_LIBRARY_CLOSE:return e.set("isVisible",!1);case a.MEDIA_INSERT:{const{mediaPath:n}=t.payload,r=e.get("controlID"),i=e.get("value");if(!Array.isArray(i))return e.withMutations((e=>{e.setIn(["controlMedia",r],n)}));const o=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=i;return"number"==typeof o?s[o]=a[0]:s.push(...a),e.withMutations((e=>{e.setIn(["controlMedia",r],s)}))}case a.MEDIA_REMOVE_INSERTED:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case a.MEDIA_LOAD_REQUEST:return e.withMutations((e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)}));case a.MEDIA_LOAD_SUCCESS:{const{files:n=[],page:r,canPaginate:o,dynamicSearch:a,dynamicSearchQuery:s,privateUpload:l}=t.payload;if(e.get("privateUpload")!==l)return e;const u=n.map((e=>c(c({},e),{},{key:(0,i.v4)()})));return e.withMutations((e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",null!=r?r:1),e.set("hasNextPage",!!(o&&n.length>0)),e.set("dynamicSearch",null!=a&&a),e.set("dynamicSearchQuery",null!=s?s:""),e.set("dynamicSearchActive",!!s),r&&r>1){const t=e.get("files").concat(u);e.set("files",t)}else e.set("files",u)}))}case a.MEDIA_LOAD_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case a.MEDIA_PERSIST_REQUEST:return e.set("isPersisting",!0);case a.MEDIA_PERSIST_SUCCESS:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=[c(c({},n),{},{key:(0,i.v4)()}),...e.get("files")];e.set("files",t),e.set("isPersisting",!1)}))}case a.MEDIA_PERSIST_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case a.MEDIA_DELETE_REQUEST:return e.set("isDeleting",!0);case a.MEDIA_DELETE_SUCCESS:{const{file:n,privateUpload:r}=t.payload,{key:i,id:o}=n;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=e.get("files").filter((e=>i?e.key!==i:e.id!==o));e.set("files",t),e.deleteIn(["displayURLs",o]),e.set("isDeleting",!1)}))}case a.MEDIA_DELETE_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case a.MEDIA_DISPLAY_URL_REQUEST:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case a.MEDIA_DISPLAY_URL_SUCCESS:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case a.MEDIA_DISPLAY_URL_FAILURE:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}}},33474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectIsLoadingAsset=function(e){return Object.values(e).some((e=>e.isLoading))};var r=n(30412),i=n(71033);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.ADD_ASSETS:t.payload.forEach((t=>{e[t.path]={asset:t,isLoading:!1,error:null}}));break;case i.ADD_ASSET:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case i.REMOVE_ASSET:{const n=t.payload;delete e[n];break}case i.LOAD_ASSET_REQUEST:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case i.LOAD_ASSET_SUCCESS:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case i.LOAD_ASSET_FAILURE:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}}),{});t.default=o},85594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(29987),o=n(5690);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=(0,r.produce)(((e,t)=>{switch(t.type){case o.NOTIFICATIONS_CLEAR:e.notifications=[];break;case o.NOTIFICATION_DISMISS:e.notifications=e.notifications.filter((e=>e.id!==t.id));break;case o.NOTIFICATION_SEND:e.notifications=[...e.notifications,s({id:(0,i.v4)()},t.payload)]}}),{notifications:[]});t.default=l},56863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(15207);const o={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0,requests:[]},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.SEARCH_CLEAR:return o;case i.SEARCH_ENTRIES_REQUEST:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;e.isFetching=!0,e.term=r,e.collections=i,e.page=n;break}case i.SEARCH_ENTRIES_SUCCESS:{const{entries:n,page:r}=t.payload,i=n.map((e=>({collection:e.collection,slug:e.slug})));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?i:e.entryIds.concat(i);break}case i.SEARCH_ENTRIES_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case i.QUERY_REQUEST:{const{searchTerm:n,request:r}=t.payload;e.isFetching=!0,e.term=n,r&&e.requests.push(r);break}case i.CLEAR_REQUESTS:e.requests=e.requests.filter((e=>e.expires>=new Date));break;case i.QUERY_SUCCESS:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case i.QUERY_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}}),o);t.default=a},18259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(9687);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.STATUS_REQUEST:e.isFetching=!0;break;case i.STATUS_SUCCESS:e.isFetching=!1,e.status=t.payload.status;break;case i.STATUS_FAILURE:e.isFetching=!1,e.error=t.payload.error}}),{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0});t.default=o},21837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;var r=n(74081),i=n(58267),o=l(n(43292)),a=n(89258),s=l(n(16797));function l(e){return e&&e.__esModule?e:{default:e}}t.store=(0,r.createStore)((0,s.default)(),(0,i.composeWithDevTools)((0,r.applyMiddleware)(o.default,a.waitUntilAction)))},89258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilAction=t.WAIT_UNTIL_ACTION=void 0;const n=t.WAIT_UNTIL_ACTION="WAIT_UNTIL_ACTION";t.waitUntilAction=({dispatch:e,getState:t})=>{let r=[];return i=>o=>{if(o.type===n)return r.push(o),null;const a=i(o);return function(n){const i=[],o=[];for(const e of r)e.predicate(n)?i.push(e):o.push(e);r=o;for(const r of i)r.run(e,t,n)}(o),a}}},79278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0,t.navigateToCollection=function(e){return i.push(`/collections/${e}`)},t.navigateToEntry=function(e,t){return i.replace(`/collections/${e}/entries/${t}`)},t.navigateToNewEntry=function(e){return i.replace(`/collections/${e}/new`)};var r=n(70809);const i=t.history=(0,r.createHashHistory)()},67964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,t.SortDirection=function(e){return e.Ascending="Ascending",e.Descending="Descending",e.None="None",e}({})},25606:(e,t)=>{"use strict";function n(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAssetProxy=function({url:e,file:t,path:n,field:i}){return new r({url:e,file:t,path:n,field:i})},t.default=void 0;class r{constructor({url:e,file:t,path:r,field:i}){n(this,"url",void 0),n(this,"fileObj",void 0),n(this,"path",void 0),n(this,"field",void 0),this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=r,this.field=i}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then((e=>e.blob()));return e.size<=0?"":await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)}))}}t.default=r},57331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:d="object",pattern:f=u,fields:p=[],fromBlock:h,toBlock:m,toPreview:g}=e,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:t||n.replace(/[^A-Z0-9]+/gi,"_"),label:n,type:i,icon:r,widget:d,pattern:f,fromBlock:c(h)||(()=>({})),toBlock:c(m)||(()=>"Plugin"),toPreview:c(g)||!d&&(c(m)||(()=>"Plugin")),fields:(0,o.fromJS)(p)},v)};var r,i=(r=n(61049))&&r.__esModule?r:{default:r},o=n(46670);const a=["id","label","icon","type","widget","pattern","fields","fromBlock","toBlock","toPreview"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=/.^/;function c(e){return(0,i.default)(e)&&e.bind(null)}},15583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=function(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:(0,i.default)(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}}};var r,i=(r=n(4335))&&r.__esModule?r:{default:r}},40299:(e,t,n)=>{"use strict";t.ZP=void 0,(r=n(12244))&&r.__esModule;var r,i=n(28165);const o={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:({alt:e,image:t,title:n})=>`}"`:""})`,toPreview:({alt:e,image:t,title:n},r,o)=>{const a=r(t,null==o?void 0:o.find((e=>"image"===e.get("widget"))));return(0,i.jsx)("img",{src:a||"",alt:e||"",title:n||""})},pattern:/^!\[(.*)\]\((.*?)(\s"(.*)")?\)$/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]};t.ZP=o},84299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=l(n(5648)),o=l(n(1573)),a=n(85555);const s=["access_token"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=class{constructor(e={}){const t=(0,o.default)(e.base_url,"/"),n=(0,i.default)(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if((0,a.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:(0,a.createNonce)()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,r.Map)(t.entries()),{nonce:i}=JSON.parse(n.get("state"));if(!(0,a.validateNonce)(i))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const t=n.toJS(),{access_token:r}=t;e(null,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({token:r},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,s)))}}}},76320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecapCmsLibAuth=void 0,Object.defineProperty(t,"ImplicitAuthenticator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NetlifyAuthenticator",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"PkceAuthenticator",{enumerable:!0,get:function(){return o.default}});var r=a(n(55746)),i=a(n(84299)),o=a(n(76814));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibAuth={NetlifyAuthenticator:r.default,ImplicitAuthenticator:i.default,PkceAuthenticator:o.default}},55746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(5648)),i=o(n(1573));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const s={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}};t.default=class{constructor(e={}){this.site_id=e.site_id||null,this.base_url=(0,i.default)(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=(0,r.default)(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new a(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"demo.decapcms.org":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new a({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=s[n]||s.github,o=screen.width/2-i.width/2,l=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let u=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(u+="&scope="+e.scope),!0===e.login&&(u+="&login=true"),e.beta_invite&&(u+="&beta_invite="+e.beta_invite),e.invite_code&&(u+="&invite_code="+e.invite_code),this.authWindow=window.open(u,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${l}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new a({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const s=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,l=fetch(s,{method:"POST",body:""}).then((e=>e.json()));if(!t)return l;l.then((e=>t(null,e))).catch(t)}}},76814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(5648)),i=a(n(1573)),o=n(85555);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l="decap-cms-pkce-verifier-code";t.default=class{constructor(e={}){const t=(0,i.default)(e.base_url,"/"),n=(0,r.default)(e.auth_endpoint,"/"),o=(0,r.default)(e.auth_token_endpoint,"/");this.auth_url=`${t}/${n}`,this.auth_token_url=`${t}/${o}`,this.auth_token_endpoint_content_type=e.auth_token_endpoint_content_type,this.appID=e.app_id}async authenticate(e,t){if((0,o.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","code"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"pkce",nonce:(0,o.createNonce)()});n.searchParams.set("state",r),n.searchParams.set("code_challenge_method","S256");const i=function(){const e=Array.from(window.crypto.getRandomValues(new Uint8Array(128))).map((e=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64])).join("");return window.sessionStorage.setItem(l,e),e}(),a=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",a),document.location.assign(n.href)}async completeAuth(e){const t=new URLSearchParams(document.location.search);if(window.history.replaceState(null,"",document.location.pathname),!t.has("code")&&!t.has("error"))return;let n;try{n=JSON.parse(t.get("state")).nonce}catch(e){n=JSON.parse(t.get("state").replace(/\\"/g,'"')).nonce}if(!(0,o.validateNonce)(n))return e(new Error("Invalid nonce"));if(t.has("error"))return e(new Error(`${t.get("error")}: ${t.get("error_description")}`));if(t.has("code")){const n=t.get("code"),r=new URL(this.auth_token_url),i={client_id:this.appID,code:n,grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:window.sessionStorage.getItem(l)},o=await fetch(r.href,{method:"POST",body:this.auth_token_endpoint_content_type.startsWith("application/x-www-form-urlencoded")?new URLSearchParams(Object.entries(i)).toString():JSON.stringify(i),headers:{"Content-Type":this.auth_token_endpoint_content_type}}),a=await o.json();window.sessionStorage.removeItem(l),e(null,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({token:a.access_token},a))}}}},85555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNonce=function(){const e=(0,r.v4)();return window.sessionStorage.setItem("decap-cms-auth",JSON.stringify({nonce:e})),e},t.isInsecureProtocol=function(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname},t.validateNonce=function(e){const t=window.sessionStorage.getItem("decap-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("decap-cms-auth"),e===n};var r=n(29987)},65727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewState=void 0,t.apiRequest=g,t.endpointConstants=t.apiRoots=void 0,t.getDefaultBranchName=async function(e){let t;const{token:n,backend:r,repo:i,apiRoot:o}=e;switch(r){case"gitlab":t=`/projects/${encodeURIComponent(i)}`;break;case"bitbucket":t=`/repositories/${i}`;break;default:t=`/repos/${i}`}const a=await g(t,{token:n,backend:r,apiRoot:o});let s;if("bitbucket"===r){const{mainbranch:{name:e}}=a;s=e}else{const{default_branch:e}=a;s=e}return s},t.getPreviewStatus=function(e,t){return e.find((({context:e})=>y(e,t)))},t.isPreviewContext=y,t.parseResponse=f,t.readFile=async function(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a},t.readFileMetadata=async function(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o},t.requestWithBackoff=p,t.throwOnConflictingBranches=async function(e,t,n){const r=function(e){const t=e.split("/");t.pop();return t.reduce(((e,n,r)=>[...e,t.slice(0,r+1).join("/")]),[])}(e),i=(await Promise.all(r.map((e=>t(e).then((e=>e.name)).catch((()=>"")))))).filter(Boolean)[0];if(i)throw new o.default(`Failed creating branch '${e}' since there is already a branch named '${i}'. Please delete the '${i}' branch and try again`,500,n)};var r=n(87131),i=s(n(25664)),o=s(n(67026));const a=["token","backend"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),c(this,"resetSeconds",void 0),this.resetSeconds=t<0?1:t>3600?3600:t}}function f(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?async function(e){const t=await e.json();return e.ok?t:Promise.reject(t)}(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}async function p(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),r=e.requestFunction||i.default.performRequest,o=await r(n);if(429===o.status){const e=await o.text().catch((()=>"Too many requests"));throw new Error(e)}if(403===o.status){const e=await o.json().catch((()=>({message:""})));if(e.message.match("API rate limit exceeded")){const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(o.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new d(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(i){if(n>5||"Can't refresh access token when using implicit auth"===i.message)throw i;if(!e.rateLimiter){const t=i.resetSeconds||n*n;console.log(`Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,i.message),e.rateLimiter=(0,r.asyncLock)(),e.rateLimiter.acquire(),setTimeout((()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.log("Done pausing requests")}),1e3*t)}return p(e,t,n+1)}}const h=t.apiRoots={github:"https://api.github.com",gitlab:"https://gitlab.com/api/v4",bitbucket:"https://api.bitbucket.org/2.0"},m=(t.endpointConstants={singleRepo:{bitbucket:"/repositories",github:"/repos",gitlab:"/projects"}},{buildRequest:e=>e});async function g(e,t,n=(e=>f(e))){var r;const{token:s,backend:l}=t,c=u({cache:"no-cache"},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,a)),d=await async function(e){const{token:t,headers:n}=e,r=u({"Content-Type":"application/json; charset=utf-8"},n);return t&&(r.Authorization=`Bearer ${t}`),Promise.resolve(r)}({headers:c.headers||{},token:s}),g=function(e,t){if(t){const n=[];for(const e in t)n.push(`${e}=${encodeURIComponent(t[e])}`);n.length&&(e+=`?${n.join("&")}`)}return e}(`${null!==(r=t.apiRoot)&&void 0!==r?r:h[l]}${e}`,c.params);let v=500;try{const e=i.default.fromFetchArguments(g,u(u({},c),{},{headers:d})),t=await p(m,e);return v=t.status,await n(t)}catch(e){return function(e,t,n){throw new o.default(e.message,t,n)}(e,v,l)}}const v=["deploy"];function y(e,t){return t?e===t:v.some((t=>e.includes(t)))}t.PreviewState=function(e){return e.Other="other",e.Success="success",e}({})},67026:(e,t)=>{"use strict";function n(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_ERROR=void 0;const r=t.API_ERROR="API_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,i,o={}){super(e),n(this,"message",void 0),n(this,"status",void 0),n(this,"api",void 0),n(this,"meta",void 0),this.message=e,this.status=t,this.api=i,this.name=r,this.meta=o}}t.default=i},97478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_COMMIT_MESSAGE=t.DEFAULT_PR_BODY=t.CMS_BRANCH_PREFIX=void 0,t.branchFromContentKey=function(e){return`${n}/${e}`},t.contentKeyFromBranch=function(e){return e.slice(`${n}/`.length)},t.generateContentKey=function(e,t){return`${e}/${t}`},t.isCMSLabel=function(e,t){return e.startsWith(i(t))},t.labelToStatus=function(e,t){return e.slice(i(t).length)},t.parseContentKey=function(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}},t.statusToLabel=function(e,t){return`${i(t)}${e}`};const n=t.CMS_BRANCH_PREFIX="cms",r=(t.DEFAULT_PR_BODY="Automatically generated by Decap CMS",t.MERGE_COMMIT_MESSAGE="Automatically generated. Merged on Decap CMS.","decap-cms/");function i(e){return e||r}},6137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCESS_TOKEN_ERROR=void 0;const n=t.ACCESS_TOKEN_ERROR="ACCESS_TOKEN_ERROR";class r extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){var t,r,i,o;super(e),t=this,i=void 0,(r="symbol"==typeof(o=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r="message"))?o:String(o))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,this.message=e,this.name=n}}t.default=r},68075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CURSOR_COMPATIBILITY_SYMBOL=void 0;var r=n(46670);function i(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(void 0===e)return(0,r.Map)();const t=(0,r.fromJS)(e);if(!r.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t}const a=(0,r.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]);function s(e){return e.filter(((e,t)=>a.has(t)))}class l{static create(...e){return new l(...e)}constructor(...e){if(i(this,"store",void 0),i(this,"actions",void 0),i(this,"data",void 0),i(this,"meta",void 0),e[0]instanceof l)return e[0];this.store=function(...e){const{actions:t,data:n,meta:i}=1===e.length?o(e[0]).toObject():{actions:e[0],data:e[1],meta:e[2]};return(0,r.Map)({actions:(0,r.Set)(t),data:o(n),meta:o(i).update(s)})}(...e),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(...e){return new l(this.store.update(...e))}updateInStore(...e){return new l(this.store.updateIn(...e))}hasAction(e){return function(e,t){return e.hasIn(["actions",t])}(this.store,e)}addAction(e){return this.updateStore("actions",(t=>t.add(e)))}removeAction(e){return this.updateStore("actions",(t=>t.delete(e)))}setActions(e){return this.updateStore((t=>t.set("actions",(0,r.Set)(e))))}mergeActions(e){return this.updateStore("actions",(t=>t.union(e)))}getActionHandlers(e){return function(e,t){return e.get("actions",(0,r.Set)()).toMap().map((e=>t(e)))}(this.store,e)}setData(e){return new l(this.store.set("data",o(e)))}mergeData(e){return new l(this.store.mergeIn(["data"],o(e)))}wrapData(e){return this.updateStore("data",(t=>o(e).set("wrapped_cursor_data",t)))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",(e=>e.get("wrapped_cursor_data")))]}clearData(){return this.updateStore("data",(()=>(0,r.Map)()))}setMeta(e){return this.updateStore((t=>t.set("meta",o(e))))}mergeMeta(e){return this.updateStore((t=>t.update("meta",(t=>t.merge(o(e))))))}}t.default=l,t.CURSOR_COMPATIBILITY_SYMBOL=Symbol("cursor key for compatibility with old backends")},67097:(e,t)=>{"use strict";function n(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EDITORIAL_WORKFLOW_ERROR=void 0;const r=t.EDITORIAL_WORKFLOW_ERROR="EDITORIAL_WORKFLOW_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),n(this,"message",void 0),n(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name=r}}t.default=i},87131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncLock=function(){let e=(0,i.default)(1);return{acquire:function(t=15e3){return new Promise((n=>{const r=setTimeout((()=>{e=(0,i.default)(1),n(!1)}),t);e.take((()=>{clearTimeout(r),n(!0)}))}))},release:function(){try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=(0,i.default)(1)}}}};var r,i=(r=n(63252))&&r.__esModule?r:{default:r}},47021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterByExtension=function(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:`.${t}`)},t.getAllResponses=async function(e,t={},n,r){let i=1,o=s.default.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await s.default.performRequest(o),l=e.headers.get("Link"),u=l&&p(l)[n],{headers:c={}}=t;o=u&&s.default.fromFetchArguments(r(u),{headers:c}),a.push(e),i++}return a},t.getPathDepth=function(e){return e.split("/").length},t.parseLinkHeader=p,t.parseResponse=f,t.responseParser=function(e){return t=>f(t,e)};var r=u(n(65159)),i=u(n(10017)),o=u(n(85395)),a=n(46670),s=u(n(25664)),l=u(n(67026));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}}}const d=(0,a.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries((([e,t])=>[e,c(e,t)]));async function f(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{const t=d.get(n,!1);if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new l.default(t.message,e.status,r)}if(t&&!e.ok){var o;const t="json"===n,a=t?i.message||i.msg||(null===(o=i.error)||void 0===o?void 0:o.message):i;throw new l.default(t&&a?a:i,e.status,r)}return i}function p(e){return e?(0,o.default)([e=>e.split(","),(0,r.default)((e=>e.trim().split(";"))),(0,r.default)((([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")])),i.default])(e):{}}},44951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(91965);t.default=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=({target:e})=>t((0,r.sha256)((null==e?void 0:e.result)||"")),i.onerror=e=>{i.abort(),n(e)},i.readAsArrayBuffer(e)}))},80120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPointerFile=y,t.getLargeMediaFilteredMediaFiles=async function(e,t){return await Promise.all(t.map((async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await b(e,n,r);return d(d({},t),o)})))},t.getLargeMediaPatternsFromGitAttributesFile=void 0,t.getPointerFileForMediaFileObj=b,t.parsePointerFile=void 0;var r=u(n(65159)),i=u(n(23162)),o=u(n(10094)),a=u(n(58072)),s=u(n(44951));const l=["size","oid"];function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return e.split("\n")}function p(e){return e.split(/\s+/g)}const h=(0,o.default)([(0,r.default)((e=>e.trim())),(0,a.default)((function(e){return""!==e}))]);t.parsePointerFile=(0,o.default)([f,h,(0,r.default)(p),i.default,e=>{let{size:t,oid:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return d({size:parseInt(t),sha:null==n?void 0:n.split(":")[1]},r)}]);const m=(0,o.default)([(0,r.default)((function(e){return e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]})),i.default]),g=(0,o.default)([p,([e,...t])=>[e,m(t)]]),v=(0,o.default)([f,(0,r.default)((function(e){return e.split("#")[0]})),h,(0,r.default)(g)]);function y({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}async function b(e,t,n){const{name:r,size:i}=t,o=await(0,s.default)(t);await e.uploadResource({sha:o,size:i},t);const a=y({sha:o,size:i}),l=new Blob([a]),u=new File([l],r,{type:"text/plain"}),c=await(0,s.default)(u);return{fileObj:u,size:l.size,sha:c,raw:a,path:n}}t.getLargeMediaPatternsFromGitAttributesFile=(0,o.default)([v,(0,a.default)((([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge)),(0,r.default)((([e])=>e))])},86314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allEntriesByFolder=async function({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:o,branch:s,localForage:l,folder:c,extension:f,depth:p,getDefaultBranch:h,isShaExistsInBranch:v,getDifferences:y,getFileId:b,filterFile:w,customFetch:_}){async function x(){const t=await e(c,f,p),n=await h();return await m({localForage:l,localTree:{head:n.sha,files:t.map((e=>({id:e.id,path:e.path,name:(0,a.basename)(e.path)})))},branch:n.name,depth:p,extension:f,folder:c}),t}const E=await async function(){const e=await g({localForage:l,branch:s,folder:c,extension:f,depth:p});if(e){const t=await h();if(!await v(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),x();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const s=(await r(e.sha,t.head)).filter((e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))})).reduce(((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:(0,a.basename)(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:(0,a.basename)(t.newPath||t.oldPath),deleted:!1}),e)),[]).filter(i);return await Promise.all(s.map((async e=>{if(e.deleted)return u(u({},e),{},{id:""});{const t=await o(e.path);return u(u({},e),{},{id:t})}})))}({branch:t,localTree:e,folder:c,extension:f,depth:p,getDifferences:y,getFileId:b,filterFile:w}).catch((e=>(console.log("Failed getting diff from local tree:",e),null)));if(!n)return console.log("Diff is null, rebuilding local tree"),x();if(0===n.length)return e.files;{const o=n.reduce(((e,t)=>(e[t.path]=t.deleted,e)),{}),a=(0,r.default)((0,i.default)(n.filter((e=>!o[e.path])),e.files.filter((e=>!o[e.path])),(e=>e.path)),(e=>e.path));return await m({localForage:l,localTree:{head:t.sha,files:a},branch:t.name,depth:p,extension:f,folder:c}),a}}return x()}();return _?await _(E):await d(E,t,n,o)},t.blobToFileObj=function(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)},t.entriesByFiles=async function(e,t,n,r){return d(e,t,n,r)},t.entriesByFolder=async function(e,t,n,r){return d(await e(),t,n,r)},t.getLocalTree=g,t.getMediaAsBlob=f,t.getMediaDisplayURL=async function(e,t,n){const{path:r,id:i}=e;return new Promise(((e,o)=>n.take((()=>f(r,i,t).then((e=>URL.createObjectURL(e))).then(e,o).finally((()=>n.leave()))))))},t.persistLocalTree=m,t.runWithLock=async function(e,t,n){try{return await e.acquire()||console.warn(n),await t()}finally{e.release()}},t.unpublishedEntries=async function(e){try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}};var r=s(n(829)),i=s(n(15316)),o=s(n(63252)),a=n(92478);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c=10;async function d(e,t,n,r){const i=(0,o.default)(c),a=[];return e.forEach((e=>{a.push(new Promise((o=>i.take((async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:u(u({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))))})),Promise.all(a).then((e=>e.filter((e=>!e.error))))}async function f(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}const p="git.local";function h({branch:e,folder:t,extension:n,depth:r}){return`${p}.${e}.${t}.${n}.${r}`}async function m({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(h({branch:n,folder:r,extension:i,depth:o}),t)}async function g({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(h({branch:t,folder:n,extension:r,depth:i}))}},33806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AccessTokenError",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CMS_BRANCH_PREFIX",{enumerable:!0,get:function(){return v.CMS_BRANCH_PREFIX}}),Object.defineProperty(t,"CURSOR_COMPATIBILITY_SYMBOL",{enumerable:!0,get:function(){return i.CURSOR_COMPATIBILITY_SYMBOL}}),Object.defineProperty(t,"Cursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DEFAULT_PR_BODY",{enumerable:!0,get:function(){return v.DEFAULT_PR_BODY}}),t.DecapCmsLibUtil=void 0,Object.defineProperty(t,"EDITORIAL_WORKFLOW_ERROR",{enumerable:!0,get:function(){return o.EDITORIAL_WORKFLOW_ERROR}}),Object.defineProperty(t,"EditorialWorkflowError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MERGE_COMMIT_MESSAGE",{enumerable:!0,get:function(){return v.MERGE_COMMIT_MESSAGE}}),Object.defineProperty(t,"PreviewState",{enumerable:!0,get:function(){return g.PreviewState}}),Object.defineProperty(t,"allEntriesByFolder",{enumerable:!0,get:function(){return m.allEntriesByFolder}}),Object.defineProperty(t,"asyncLock",{enumerable:!0,get:function(){return h.asyncLock}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return l.basename}}),Object.defineProperty(t,"blobToFileObj",{enumerable:!0,get:function(){return m.blobToFileObj}}),Object.defineProperty(t,"branchFromContentKey",{enumerable:!0,get:function(){return v.branchFromContentKey}}),Object.defineProperty(t,"contentKeyFromBranch",{enumerable:!0,get:function(){return v.contentKeyFromBranch}}),Object.defineProperty(t,"createPointerFile",{enumerable:!0,get:function(){return y.createPointerFile}}),Object.defineProperty(t,"entriesByFiles",{enumerable:!0,get:function(){return m.entriesByFiles}}),Object.defineProperty(t,"entriesByFolder",{enumerable:!0,get:function(){return m.entriesByFolder}}),Object.defineProperty(t,"fileExtension",{enumerable:!0,get:function(){return l.fileExtension}}),Object.defineProperty(t,"fileExtensionWithSeparator",{enumerable:!0,get:function(){return l.fileExtensionWithSeparator}}),Object.defineProperty(t,"filterByExtension",{enumerable:!0,get:function(){return d.filterByExtension}}),Object.defineProperty(t,"flowAsync",{enumerable:!0,get:function(){return u.flowAsync}}),Object.defineProperty(t,"generateContentKey",{enumerable:!0,get:function(){return v.generateContentKey}}),Object.defineProperty(t,"getAllResponses",{enumerable:!0,get:function(){return d.getAllResponses}}),Object.defineProperty(t,"getBlobSHA",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getDefaultBranchName",{enumerable:!0,get:function(){return g.getDefaultBranchName}}),Object.defineProperty(t,"getLargeMediaFilteredMediaFiles",{enumerable:!0,get:function(){return y.getLargeMediaFilteredMediaFiles}}),Object.defineProperty(t,"getLargeMediaPatternsFromGitAttributesFile",{enumerable:!0,get:function(){return y.getLargeMediaPatternsFromGitAttributesFile}}),Object.defineProperty(t,"getMediaAsBlob",{enumerable:!0,get:function(){return m.getMediaAsBlob}}),Object.defineProperty(t,"getMediaDisplayURL",{enumerable:!0,get:function(){return m.getMediaDisplayURL}}),Object.defineProperty(t,"getPathDepth",{enumerable:!0,get:function(){return d.getPathDepth}}),Object.defineProperty(t,"getPointerFileForMediaFileObj",{enumerable:!0,get:function(){return y.getPointerFileForMediaFileObj}}),Object.defineProperty(t,"getPreviewStatus",{enumerable:!0,get:function(){return g.getPreviewStatus}}),Object.defineProperty(t,"isAbsolutePath",{enumerable:!0,get:function(){return l.isAbsolutePath}}),Object.defineProperty(t,"isCMSLabel",{enumerable:!0,get:function(){return v.isCMSLabel}}),Object.defineProperty(t,"isPreviewContext",{enumerable:!0,get:function(){return g.isPreviewContext}}),Object.defineProperty(t,"labelToStatus",{enumerable:!0,get:function(){return v.labelToStatus}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"localForage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"onlySuccessfulPromises",{enumerable:!0,get:function(){return u.onlySuccessfulPromises}}),Object.defineProperty(t,"parseContentKey",{enumerable:!0,get:function(){return v.parseContentKey}}),Object.defineProperty(t,"parseLinkHeader",{enumerable:!0,get:function(){return d.parseLinkHeader}}),Object.defineProperty(t,"parsePointerFile",{enumerable:!0,get:function(){return y.parsePointerFile}}),Object.defineProperty(t,"parseResponse",{enumerable:!0,get:function(){return d.parseResponse}}),Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return g.readFile}}),Object.defineProperty(t,"readFileMetadata",{enumerable:!0,get:function(){return g.readFileMetadata}}),Object.defineProperty(t,"requestWithBackoff",{enumerable:!0,get:function(){return g.requestWithBackoff}}),Object.defineProperty(t,"responseParser",{enumerable:!0,get:function(){return d.responseParser}}),Object.defineProperty(t,"runWithLock",{enumerable:!0,get:function(){return m.runWithLock}}),Object.defineProperty(t,"statusToLabel",{enumerable:!0,get:function(){return v.statusToLabel}}),Object.defineProperty(t,"then",{enumerable:!0,get:function(){return u.then}}),Object.defineProperty(t,"throwOnConflictingBranches",{enumerable:!0,get:function(){return g.throwOnConflictingBranches}}),Object.defineProperty(t,"unpublishedEntries",{enumerable:!0,get:function(){return m.unpublishedEntries}}),Object.defineProperty(t,"unsentRequest",{enumerable:!0,get:function(){return c.default}});var r=_(n(67026)),i=w(n(68075)),o=w(n(67097)),a=_(n(6137)),s=_(n(55538)),l=n(92478),u=n(44486),c=_(n(25664)),d=n(47021),f=_(n(73209)),p=_(n(44951)),h=n(87131),m=n(86314),g=n(65727),v=n(97478),y=n(80120);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function _(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibUtil={APIError:r.default,Cursor:i.default,CURSOR_COMPATIBILITY_SYMBOL:i.CURSOR_COMPATIBILITY_SYMBOL,EditorialWorkflowError:o.default,EDITORIAL_WORKFLOW_ERROR:o.EDITORIAL_WORKFLOW_ERROR,localForage:s.default,basename:l.basename,fileExtensionWithSeparator:l.fileExtensionWithSeparator,fileExtension:l.fileExtension,onlySuccessfulPromises:u.onlySuccessfulPromises,flowAsync:u.flowAsync,then:u.then,unsentRequest:c.default,filterByExtension:d.filterByExtension,parseLinkHeader:d.parseLinkHeader,parseResponse:d.parseResponse,responseParser:d.responseParser,loadScript:f.default,getBlobSHA:p.default,getPathDepth:d.getPathDepth,entriesByFiles:m.entriesByFiles,entriesByFolder:m.entriesByFolder,unpublishedEntries:m.unpublishedEntries,getMediaDisplayURL:m.getMediaDisplayURL,getMediaAsBlob:m.getMediaAsBlob,readFile:g.readFile,readFileMetadata:g.readFileMetadata,CMS_BRANCH_PREFIX:v.CMS_BRANCH_PREFIX,generateContentKey:v.generateContentKey,isCMSLabel:v.isCMSLabel,labelToStatus:v.labelToStatus,statusToLabel:v.statusToLabel,DEFAULT_PR_BODY:v.DEFAULT_PR_BODY,MERGE_COMMIT_MESSAGE:v.MERGE_COMMIT_MESSAGE,isPreviewContext:g.isPreviewContext,getPreviewStatus:g.getPreviewStatus,runWithLock:m.runWithLock,PreviewState:g.PreviewState,parseContentKey:v.parseContentKey,createPointerFile:y.createPointerFile,getLargeMediaFilteredMediaFiles:y.getLargeMediaFilteredMediaFiles,getLargeMediaPatternsFromGitAttributesFile:y.getLargeMediaPatternsFromGitAttributesFile,parsePointerFile:y.parsePointerFile,getPointerFileForMediaFileObj:y.getPointerFileForMediaFileObj,branchFromContentKey:v.branchFromContentKey,contentKeyFromBranch:v.contentKeyFromBranch,blobToFileObj:m.blobToFileObj,requestWithBackoff:g.requestWithBackoff,getDefaultBranchName:g.getDefaultBranchName,allEntriesByFolder:m.allEntriesByFolder,AccessTokenError:a.default,throwOnConflictingBranches:g.throwOnConflictingBranches}},73209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise(((t,n)=>{let r=!1;const i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=e,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?n():(r=!0,t())},o.onerror=e=>n(e),i.appendChild(o)}))}},55538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(75486))&&r.__esModule?r:{default:r};!function(){const e="localForageTest";i.default.setItem(e,{expires:Date.now()+3e5}).then((()=>{i.default.removeItem(e)})).catch((e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)}))}(),t.default=i.default},92478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basename=function(e,t=""){if(""===e)return e;const n=(e=r(e)).split("/"),i=n[n.length-1];return""===i&&n.length>1?n[n.length-2]:t.length>0&&i.slice(-t.length)===t?i.slice(0,-t.length):i},t.fileExtension=function(e){const t=i(e);return""===t?t:t.slice(1)},t.fileExtensionWithSeparator=i,t.isAbsolutePath=function(e){return n.test(e)};const n=new RegExp("^(?:[a-z]+:)?//","i");function r(e){return e.replace(/[\\/]+/g,"/")}function i(e){const t=(e=r(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}},44486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowAsync=function(e){return(0,i.default)(e.map((e=>function(e){return async t=>e(await t)}(e))))},t.onlySuccessfulPromises=function(e){return Promise.all(e.map((e=>e.catch((()=>o))))).then((e=>e.filter((e=>e!==o))))},t.then=function(e){return t=>Promise.resolve(t).then(e)};var r,i=(r=n(85395))&&r.__esModule?r:{default:r};const o=Symbol("filterPromiseSymbol")},25664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=s(n(12957)),o=s(n(85395)),a=s(n(85505));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(t&&t.signal||"undefined"==typeof window||!window.AbortController)return fetch(e,t);const n=new AbortController,r=setTimeout((()=>n.abort()),6e4);return fetch(e,u(u({},t),{},{signal:n.signal})).then((e=>(clearTimeout(r),e))).catch((e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e}))}function d(e){const[t,n]=e.split("?");return(0,r.Map)(u({url:t},n?{params:(i=n,(0,r.List)(i.split("&")).map((e=>(0,r.List)(e.split("=")).map(decodeURIComponent))).update(r.Map))}:{}));var i}function f(e){return`${e.get("url")}${e.get("params")?`?${t=e.get("params"),t.entrySeq().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`:""}`;var t}function p(e){return(0,a.default)(e)?d(e):e?(0,r.fromJS)(e):(0,r.Map)()}const h=(m=e=>{const t=function(e){return[f(e),e.remove("url").remove("params").toJS()]}(e);return c(...t)},e=>m(p(e)));var m;const g=(0,o.default)([function(e){return(t,n)=>e(t,p(n))},i.default]);function v(e){return g(((t,n)=>n.setIn(e,t)))}function y(e){return g(((t,n)=>n.updateIn(e,((e=(0,r.Map)())=>e.merge(t)))))}const b=v(["method"]),w=v(["body"]),_=v(["cache"])("no-cache"),x=y(["params"]),E=y(["headers"]),k=new RegExp("^(?:[a-z]+:)?//","i"),C=g(((e,t)=>t.update("url",(t=>k.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`))));t.default={toURL:f,fromURL:d,fromFetchArguments:function(e,t){return d(e).merge((t?(0,r.fromJS)(t):(0,r.Map)()).remove("url").remove("params"))},performRequest:h,withMethod:b,withBody:w,withHeaders:E,withParams:x,withRoot:C,withNoCache:_,fetchWithTimeout:c}},1704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validations=t.stringTemplate=t.DecapCmsLibWidgets=void 0;var r=a(n(34635));t.stringTemplate=r;var i=a(n(13433));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.validations=i,t.DecapCmsLibWidgets={stringTemplate:r,validations:i}},34635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLUG_MISSING_REQUIRED_DATE=void 0,t.addFileTemplateFields=function(e,t,n=""){if(!e)return t;const r=(0,l.extname)(e),i=(0,l.basename)(e,r),o=(0,l.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return t.withMutations((e=>{e.set("dirname",o),e.set("filename",i),e.set("extension",""===r?r:r.slice(1))}))},t.compileStringTemplate=function(e,t,n="",r=(0,a.Map)(),i){let o;const s=null!==t,l=e.replace(RegExp(p,"g"),((e,a,s,l)=>{let u;const f=function(e,t){if(!e.startsWith(d))return;const n=e.slice(d.length),r=t.getIn(v(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}(a,r);if(f)u=f;else{if(m[a]&&!t)return o=!0,"";u=m[a]?m[a](t):"slug"===a?n:r.getIn(v(a),"")}if(i)return i(u);{const e=function(e){if(e){let t=null;const n=c.find((n=>(t=e.match(n.pattern),!!t)));if(n)return e=>n.transform(e,t)}return null}(l);e&&(u=e(u))}return u}));if(s&&o){const e=new Error;throw e.name=g,e}return l},t.dateParsers=void 0,t.expandPath=function e({data:t,path:n,paths:r=[]}){n.endsWith(".*")&&(n+=".");const a=n.split(".*.");if(1===a.length)r.push(n);else{const n=a[0],s=(0,o.default)(t,n);Array.isArray(s)&&s.forEach(((o,s)=>{e({data:t,path:(0,i.default)(`${n}.${s}.${a.slice(1).join(".*.")}`,"."),paths:r})}))}return r},t.extractTemplateVars=function(e){const t=RegExp(p,"g"),n=RegExp(f,"g");return(e.match(t)||[]).map((e=>{const t=e.match(n);return t?t[0]:""}))},t.keyToPathArray=v,t.parseDateFromEntry=function(e,t){if(!t)return;const n=e.getIn(["data",t]),r=n&&(0,s.default)(n);return r&&r.isValid()?r.toDate():void 0};var r=u(n(36585)),i=u(n(1573)),o=u(n(72579)),a=n(46670),s=u(n(28879)),l=n(21023);function u(e){return e&&e.__esModule?e:{default:e}}const c=[{pattern:/^upper$/,transform:e=>e.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t)=>(0,s.default)(e).format(t[1])},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",i=parseInt(t[1])+n.length;return(0,r.default)(e,{length:i,omission:n})}}],d="fields.",f="([^}{|]+)",p=`{{${f}( \\| ([^}{]+))?}}`;function h(e){return`0${e}`.slice(-2)}const m=t.dateParsers={year:e=>`${e.getUTCFullYear()}`,month:e=>h(e.getUTCMonth()+1),day:e=>h(e.getUTCDate()),hour:e=>h(e.getUTCHours()),minute:e=>h(e.getUTCMinutes()),second:e=>h(e.getUTCSeconds())},g=t.SLUG_MISSING_REQUIRED_DATE="SLUG_MISSING_REQUIRED_DATE";function v(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}},13433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinMax=function(e,t,n,r,o){function a(n){return{type:"RANGE",message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:o,count:r})}}return[r,o,null==n?void 0:n.size].every(i.default)&&(n.size<r||n.size>o)?a(r===o?"rangeCountExact":"rangeCount"):(0,i.default)(r)&&r>0&&null!=n&&n.size&&n.size<r?a("rangeMin"):(0,i.default)(o)&&null!=n&&n.size&&n.size>o?a("rangeMax"):void 0};var r,i=(r=n(80537))&&r.__esModule?r:{default:r}},63379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithAzure:"Вход с Azure",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}}},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",minCount:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",maxCount:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува"},i18n:{writingInLocale:"Писане на %{locale}"}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReady:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishing:"Наистина ли искате да публикувате този запис?",onUnpublishing:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChanges:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntry:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChanges:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис...",confirmLoadBackup:"За този запис беше възстановен локален архив, бихте ли искали да го използвате?"},editorInterface:{toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед"},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",code:"Код",link:"Връзка",linkPrompt:"Моля, въведете URL на връзката",headings:"Заглавия",quote:"Цитат",bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown"},image:{choose:"Избери изображение",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",remove:"Премахни изображение"},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",remove:"Премахни файл"},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",clear:"Изчисти"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDelete:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLarge:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB."},mediaLibraryModal:{loading:"Зареждане...",noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани"}},ui:{default:{goBackToSite:"Обратно към сайта"},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",pubChanges:"Публикуване на промени",objavNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draftHeader:"Чернови",inReviewHeader:"В Ревю",readyHeader:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}}},20026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix"},i18n:{writingInLocale:"Escriure en %{locale}"}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReady:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishing:"Estàs segur que vols publicar aquesta entrada?",onUnpublishing:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorInterface:{toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",code:"Codi",link:"Enllaç",linkPrompt:"Introdueix l'URL de l'enllaç",headings:"Encapçalaments",bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar arxiu"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",clear:"Netejar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}}},47775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithAzure:"Přihlásit pomocí Azure",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje."},i18n:{writingInLocale:"Psát v %{locale}"}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishing:"Chcete opravdu publikovat tento záznam?",onUnpublishing:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChanges:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntry:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublivkoané změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…",confirmLoadBackup:"Lokální kopie tohoto záznamu byla nalezena, chcete ji použít?"},editorInterface:{toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",code:"Kód",link:"Odkaz",linkPrompt:"Zadejte URL odkazu",headings:"Nadpisy",quote:"Citovat",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Vyberte obrázek",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",remove:"Odstranit obrázek"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",remove:"Odebrat soubor"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",clear:"Vymazat"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{default:{goBackToSite:"Vrátit se na stránku"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"}}}},49312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithAzure:"Log ind med Azure",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}}},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede"},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReady:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishing:"Er du sikker på at du vil publicere dette dokument?",onUnpublishing:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument...",confirmLoadBackup:"En lokal sikkerhedskopi blev gendannet for dette dokument, vil du anvende denne?"},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live"},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",code:"Kode",link:"Link",linkPrompt:"Indtast URL for link",headings:"Overskrifter",quote:"Citat",bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown"},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",clear:"Ryd"},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette det valgte medie?",fileTooLarge:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB."},mediaLibraryModal:{loading:"Indlæser...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte"}},ui:{default:{goBackToSite:"Tilbage til hjemmesiden"},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draftHeader:"Kladder",inReviewHeader:"Til gennemsyn",readyHeader:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"}}}},36407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithAzure:"Mit Azure einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorInterface:{toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",code:"Code",link:"Link",linkPrompt:"Link-URL eingeben",headings:"Überschriften",quote:"Zitat",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Wähle ein Bild",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",clear:"Löschen"},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{default:{goBackToSite:"Zurück zur Seite"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}}},95590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithAzure:"Login with Azure",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must be at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorInterface:{toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to ‘In review’",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",linkPrompt:"Enter the URL of the link",headings:"Headings",quote:"Quote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",clear:"Clear"},list:{add:"Add %{item}",addType:"Add %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},33321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todas"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",clear:"Limpiar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},86187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"وارد شدن",loggingIn:"ورود به سیستم در...",loginWithNetlifyIdentity:"با Netlify Identity وارد شوید",loginWithAzure:"با Azure وارد شوید",loginWithBitbucket:"با Bitbucket وارد شوید",loginWithGitHub:"با GitHub وارد شوید",loginWithGitLab:"با GitLab وارد شوید",loginWithGitea:"با Gitea وارد شوید",errors:{email:"ایمیل خود را حتما وارد کنید.",password:"لطفا رمز عبور خود را وارد کنید.",identitySettings:"دسترسی به تنظیمات هویت امکان پذیر نیست. هنگام استفاده از باطن git-gateway، حتماً سرویس Identity و Git Gateway را فعال کنید."}},app:{header:{content:"فهرست",workflow:"جریان کار",media:"رسانه ها",quickAdd:"اضافه کردن سریع"},app:{errorHeader:"خطا در بارگیری پیکربندی CMS",configErrors:"خطاهای پیکربندی",checkConfigYml:"فایل config.yml خود را بررسی کنید.",loadingConfig:"در حال بارگیری پیکربندی...",waitingBackend:"در انتظار باطن..."},notFoundPage:{header:"پیدا نشد"}},collection:{sidebar:{collections:"مجموعه ها",allCollections:"همه مجموعه ها",searchAll:"جستجو در همه",searchIn:"جستجو در"},collectionTop:{sortBy:"مرتب سازی بر اساس",viewAs:"نمایش به صورت",newButton:"%{collectionLabel} جدید",ascending:"صعودی",descending:"نزولی",searchResults:'نتایج جستجو برای "%{searchTerm}"',searchResultsInCollection:'نتایج جستجو برای "%{searchTerm}" در %{collection}',filterBy:"محدود شده توسط",groupBy:"دسته بندی بر اساس"},entries:{loadingEntries:"در حال بارگیری ورودی ها...",cachingEntries:"ذخیره ورودی ها...",longerLoading:"این ممکن است چند دقیقه طول بکشد",noEntries:"بدون ورودی"},groups:{other:"دیگر",negateLabel:"نه %{label}"},defaultFields:{author:{label:"نویسنده"},updatedOn:{label:"به روز شد"}}},editor:{editorControl:{field:{optional:"اختیاری"}},editorControlPane:{widget:{required:"%{fieldLabel} مورد نیاز است.",regexPattern:"%{fieldLabel} با الگوی %{pattern} مطابقت نداشت.",processing:"%{fieldLabel} در حال پردازش است.",range:"%{fieldLabel} باید بین %{minValue} و %{maxValue} باشد.",min:"%{fieldLabel} باید حداقل %{minValue} باشد.",max:"%{fieldLabel} باید %{maxValue} یا کمتر باشد.",rangeCount:"%{fieldLabel} باید بین %{minCount} و %{maxCount} مورد (ها) داشته باشد.",rangeCountExact:"%{fieldLabel} باید دقیقا %{count} مورد(ها) داشته باشد.",rangeMin:"%{fieldLabel} باید حداقل %{minCount} مورد(ها) باشد.",rangeMax:"%{fieldLabel} باید %{maxCount} یا کمتر از موارد باشد.",invalidPath:"'%{path}' یک مسیر معتبر نیست",pathExists:"مسیر '%{path}' از قبل وجود دارد"},i18n:{writingInLocale:"نوشتن به %{locale}",copyFromLocale:"از محلی دیگر پر کنید",copyFromLocaleConfirm:"آیا می خواهید داده ها را از %{locale} محلی پر کنید؟\nتمام محتوای موجود رونویسی خواهد شد."}},editor:{onLeavePage:"آیا مطمئن هستید که می خواهید این صفحه را ترک کنید؟",onUpdatingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفا قبل از به روز رسانی وضعیت را ذخیره کنید.",onPublishingNotReady:'لطفاً قبل از انتشار وضعیت را به "آماده" به روز کنید.',onPublishingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفاً قبل از انتشار ذخیره کنید.",onPublishing:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",onUnpublishing:"آیا مطمئن هستید که می خواهید این ورودی را لغو انتشار کنید؟",onDeleteWithUnsavedChanges:"آیا مطمئن هستید که می خواهید این ورودی منتشر شده و همچنین تغییرات ذخیره نشده خود را از جلسه فعلی حذف کنید؟",onDeletePublishedEntry:"آیا مطمئنید که می خواهید این ورودی منتشر شده را حذف کنید؟",onDeleteUnpublishedChangesWithUnsavedChanges:"با این کار همه تغییرات منتشر نشده در این ورودی و همچنین تغییرات ذخیره نشده شما از جلسه فعلی حذف می شود. آیا هنوز می خواهید حذف کنید؟",onDeleteUnpublishedChanges:"همه تغییرات منتشر نشده در این ورودی حذف خواهند شد. آیا هنوز می خواهید حذف کنید؟",loadingEntry:"در حال بارگیری ورودی...",confirmLoadBackup:"یک نسخه پشتیبان محلی برای این ورودی بازیابی شد، آیا می خواهید از آن استفاده کنید؟"},editorInterface:{toggleI18n:"i18n را تغییر دهید",togglePreview:"پیش نمایش را تغییر دهید",toggleScrollSync:"همگام سازی پیمایش"},editorToolbar:{publishing:"در حال انتشار...",publish:"انتشار",published:"منتشر شده",unpublish:"لغو انتشار",duplicate:"تکراری",unpublishing:"در حال لغو انتشار...",publishAndCreateNew:"انتشار و ایجاد جدید",publishAndDuplicate:"انتشار و تکثیر",deleteUnpublishedChanges:"حذف تغییرات منتشر نشده",deleteUnpublishedEntry:"حذف ورودی منتشر نشده",deletePublishedEntry:"حذف ورودی منتشر شده",deleteEntry:"حذف ورودی",saving:"صرفه جویی در...",save:"صرفه جویی",statusInfoTooltipDraft:"وضعیت ورودی روی پیش نویس تنظیم شده است. برای نهایی کردن و ارسال آن برای بررسی، وضعیت را روی «در حال بررسی» تنظیم کنید",statusInfoTooltipInReview:"ورودی در حال بررسی است، هیچ اقدام دیگری لازم نیست. با این حال، همچنان میتوانید در حین بررسی، تغییرات بیشتری ایجاد کنید.",deleting:"در حال حذف...",updating:"در حال بروز رسانی...",status:"وضعیت: %{status}",backCollection:"نوشتن در مجموعه %{collectionLabel}",unsavedChanges:"تغییرات ذخیره نشده",changesSaved:"تغییرات ذخیره شد",draft:"پیش نویس",inReview:"در بررسی",ready:"آماده",publishNow:"اکنون منتشر کنید",deployPreviewPendingButtonLabel:"پیش نمایش را بررسی کنید",deployPreviewButtonLabel:"مشاهده پیش نمایش",deployButtonLabel:"مشاهده زنده"},editorWidgets:{markdown:{bold:"پررنگ",italic:"کج",code:"کد",link:"ارتباط دادن",linkPrompt:"آدرس لینک را وارد کنید",headings:"سرفصل ها",quote:"نقل قول",bulletedList:"لیست گلوله شده",numberedList:"لیست شماره گذاری شده",addComponent:"افزودن کامپوننت",richText:"متن غنی",markdown:"مارک داون"},image:{choose:"یک تصویر را انتخاب کنید",chooseMultiple:"تصاویر را انتخاب کنید",chooseUrl:"درج از URL",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس تصویر را وارد کنید",chooseDifferent:"تصویر متفاوت را انتخاب کنید",addMore:"تصاویر بیشتری اضافه کنید",remove:"حذف تصویر",removeAll:"حذف همه تصاویر"},file:{choose:"یک فایل را انتخاب کنید",chooseUrl:"درج از URL",chooseMultiple:"فایل ها را انتخاب کنید",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس فایل را وارد کنید",chooseDifferent:"فایل های مختلف را انتخاب کنید",addMore:"فایل های بیشتری اضافه کنید",remove:"حذف فایل",removeAll:"تمام فایل ها را حذف کنید"},unknownControl:{noControl:'هیچ کنترلی برای ویجت "%{widget}" وجود ندارد.'},unknownPreview:{noPreview:'هیچ پیش نمایشی برای ویجت "%{widget}" وجود ندارد.'},headingOptions:{headingOne:"سرفصل 1",headingTwo:"سرفصل 2",headingThree:"سرفصل 3",headingFour:"سرفصل 4",headingFive:"سرفصل 5",headingSix:"سرفصل 6"},datetime:{now:"اکنون"},list:{add:"این مورد را اضافه کنید}",addType:"این مورد را اضافه کنید}"}}},mediaLibrary:{mediaLibraryCard:{draft:"پیش نویس",copy:"کپی",copyUrl:"URL را کپی کنید",copyPath:"مسیر را کپی کنید",copyName:"کپی نام",copied:"کپی شده است"},mediaLibrary:{onDelete:"آیا مطمئن هستید که می خواهید رسانه انتخابی را حذف کنید؟",fileTooLarge:"فایل خیلی بزرگ است.\nپیکربندی شده است تا فایل های بزرگتر از %{size} کیلوبایت مجاز نباشد."},mediaLibraryModal:{loading:"بارگذاری...",noResults:"هیچ نتیجه ای.",noAssetsFound:"هیچ دارایی یافت نشد.",noImagesFound:"هیچ تصویری یافت نشد",private:"خصوصی",images:"تصاویر",mediaAssets:"دارایی های رسانه ای",search:"جستجو کردن...",uploading:"در حال آپلود...",upload:"بارگذاری",download:"دانلود",deleting:"در حال حذف...",deleteSelected:"انتخاب شده را پاک کن",chooseSelected:"انتخاب شده را انتخاب کنید"}},ui:{default:{goBackToSite:"به سایت برگردید"},errorBoundary:{title:"خطا",details:"خطایی رخ داده است - لطفا",reportIt:"یک مسئله را در GitHub باز کنید.",detailsHeading:"جزئیات",privacyWarning:"باز کردن یک مشکل، آن را با پیام خطا و دادههای اشکالزدایی از قبل پر میکند.\nلطفاً صحت اطلاعات را تأیید کنید و در صورت وجود داده های حساس را حذف کنید.",recoveredEntry:{heading:"سند بازیابی شده",warning:"لطفاً قبل از حرکت، این را در جایی کپی/پیست کنید!",copyButtonLabel:"کپی به کلیپ بورد"}},settingsDropdown:{logOut:"خروج"},toast:{onFailToLoadEntries:"ورودی بارگیری نشد: %{details}",onFailToLoadDeployPreview:"پیش نمایش بارگیری نشد: %{details}",onFailToPersist:"ادامه ورود ناموفق بود: %{details}",onFailToDelete:"ورودی حذف نشد: %{details}",onFailToUpdateStatus:"وضعیت بهروزرسانی نشد: %{details}",missingRequiredField:"اوه، شما یک قسمت الزامی را از دست داده اید. لطفاً قبل از ذخیره تکمیل کنید.",entrySaved:"ورودی ذخیره شد",entryPublished:"مدخل منتشر شد",entryUnpublished:"ورودی منتشر نشده است",onFailToPublishEntry:"منتشر نشد: %{details}",onFailToUnpublishEntry:"لغو انتشار ورودی انجام نشد: %{details}",entryUpdated:"وضعیت ورودی به روز شد",onDeleteUnpublishedChanges:"تغییرات منتشر نشده حذف شد",onFailToAuth:"%{details}",onLoggedOut:"شما از سیستم خارج شده اید، لطفاً از داده ها نسخه پشتیبان تهیه کنید و دوباره وارد شوید",onBackendDown:"سرویس باطن در حال تجربه قطعی است. جهت اطلاعات بیشتر جزئیات را ببینید"}},workflow:{workflow:{loading:"در حال بارگیری ورودی های گردش کار ویرایشی",workflowHeading:"گردش کار تحریریه",newPost:"مطلب جدید",description:"%{smart_count} ورودی در انتظار بررسی، %{readyCount} آماده انتشار است. |||| %{smart_count} ورودی در انتظار بازبینی، %{readyCount} آماده انتشار است.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} توسط %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"توسط %{author}",deleteChanges:"حذف تغییرات",deleteNewEntry:"حذف ورودی جدید",publishChanges:"انتشار تغییرات",publishNewEntry:"مطلب جدید را منتشر کنید"},workflowList:{onDeleteEntry:"آیا مطمئن هستید که می خواهید این ورودی را حذف کنید؟",onPublishingNotReadyEntry:'فقط مواردی با وضعیت "آماده" قابل انتشار هستند. لطفاً کارت را به ستون "آماده" بکشید تا انتشار فعال شود.',onPublishEntry:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",draftHeader:"پیش نویس",inReviewHeader:"در بررسی",readyHeader:"آماده",currentEntries:"%{smart_count} ورودی |||| %{smart_count} ورودی"}}}},97421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithAzure:"Se connecter avec Azure",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"},i18n:{writingInLocale:"Écrire en %{locale}"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onUnpublishing:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser ?"},editorInterface:{toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",code:"Code",link:"Lien",linkPrompt:"Entrer l'adresse web du lien",headings:"Titres",quote:"Citation",bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisir une image",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",remove:"Supprimer l'image"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",clear:"Effacer"},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}}},1107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}}},8102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithAzure:"התחברות עם Azure",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}}},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים"},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}"}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReady:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishing:"האם ברצונך לפרסם את האייטם?",onUnpublishing:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChanges:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntry:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChanges:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChanges:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם...",confirmLoadBackup:"קיים עותק מקומי שמור של האייטם. האם ברצונך לטעון אותו?"},editorInterface:{toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר"},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",code:"קוד",link:"קישור",linkPrompt:"נא להקליד את הכתובת לקישור",headings:"כותרת",quote:"ציטוט",bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown"},image:{choose:"בחירת תמונה",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",remove:"הסרת תמונה"},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",remove:"הסרת קובץ"},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",clear:"ניקוי"},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDelete:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLarge:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט."},mediaLibraryModal:{loading:"טעינה...",noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן"}},ui:{default:{goBackToSite:"בחזרה לאתר"},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draftHeader:"טיוטות",inReviewHeader:"ממתין לאישור",readyHeader:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"}}}},62827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithAzure:"Prijava za Azure računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",loginWithGitea:"Prijava sa Gitea računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}}},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji"},i18n:{writingInLocale:"Pisanje na %{locale}"}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReady:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishing:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishing:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChanges:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntry:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChanges:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChanges:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa...",confirmLoadBackup:"Lokalna kopija je dohvaćena za ovaj unos, želite li ju koristiti?"},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji"},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",code:"Kod",link:"Link",linkPrompt:"Unesi URL linka",headings:"Naslovi",quote:"Citat",bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown"},image:{choose:"Odaberi sliku",chooseDifferent:"Odaberi drugu sliku",remove:"Izbriši sliku"},file:{choose:"Odaberi datoteku",chooseDifferent:"Odaberi drugu datoteku",remove:"Obriši datoteku"},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",clear:"Očisti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica"},mediaLibrary:{onDelete:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLarge:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB."},mediaLibraryModal:{loading:"Učitavanje...",noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno"}},ui:{default:{goBackToSite:"Povratak na stranicu"},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draftHeader:"Skice",inReviewHeader:"U osvrtu",readyHeader:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"}}}},9169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"Új %{collectionLabel}"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},list:{add:"Új %{item}",addType:"Új típus %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}}},92035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bg",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"da",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"de",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"en",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"es",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"fa",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"he",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"hr",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"it",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"nb_no",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"nn_no",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ro",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"sl",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"th",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"ua",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"zh_Hans",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"zh_Hant",{enumerable:!0,get:function(){return T.default}});var r=j(n(47775)),i=j(n(49312)),o=j(n(36407)),a=j(n(95590)),s=j(n(33321)),l=j(n(20026)),u=j(n(97421)),c=j(n(86187)),d=j(n(1107)),f=j(n(9169)),p=j(n(60062)),h=j(n(36221)),m=j(n(18694)),g=j(n(79791)),v=j(n(65954)),y=j(n(37277)),b=j(n(62423)),w=j(n(49968)),_=j(n(64425)),x=j(n(57312)),E=j(n(10869)),k=j(n(15340)),C=j(n(95093)),S=j(n(72872)),A=j(n(3409)),T=j(n(15029)),O=j(n(42221)),P=j(n(62827)),R=j(n(48821)),M=j(n(63379)),D=j(n(61522)),I=j(n(8102)),L=j(n(57722));function j(e){return e&&e.__esModule?e:{default:e}}},60062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",searchAll:"Cerca su tutto"},collectionTop:{viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}"},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti"}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno."}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReady:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Sei sicuro di voler pubblicare questa voce?",onUnpublishing:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChanges:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntry:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{image:{choose:"Scegli un'immagine",chooseDifferent:"Scegli un'immagine diversa",remove:"Rimuovi immagine"},file:{choose:"Scegli un file",chooseDifferent:"Scegli un altro file",remove:"Rimuovi il file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza"},mediaLibrary:{onDelete:"Sei sicuro di voler cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In Revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}}},18694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithAzure:"Azure でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"},i18n:{writingInLocale:"言語: %{locale}"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorInterface:{toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{bold:"太字",italic:"斜体",code:"コード",link:"リンク",linkPrompt:"リンクのURLを入力してください",headings:"見出し",quote:"引用",bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",clear:"クリア"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}}},42221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithAzure:"Azure 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}}},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다."},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReady:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishing:"이 항목을 게시하시곘습니까?",onUnpublishing:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChanges:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntry:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChanges:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChanges:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중...",confirmLoadBackup:"이 항목에 대한 로컬 백업이 복구되었습니다, 복구된 것으로 사용하시겠습니까?"},editorInterface:{toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기"},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",code:"코드",link:"링크",linkPrompt:"링크의 URL을 입력하세요",headings:"제목",quote:"인용",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운"},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",clear:"지우기"},list:{add:"%{item} 추가",addType:"%{item} 추가"}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDelete:"선택하신 미디어를 삭제하시겠습니까?",fileTooLarge:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다."},mediaLibraryModal:{loading:"불러오는 중...",noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정"}},ui:{default:{goBackToSite:"사이트로 돌아가기"},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToDelete:"항목 삭제 실패: %{details}",onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draftHeader:"초안",inReviewHeader:"검토 진행중",readyHeader:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"}}}},36221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithAzure:"Prisijungti su Azure",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}}},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja"},i18n:{writingInLocale:"Rašome %{locale} kalboje"}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChanges:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReady:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChanges:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishing:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishing:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChanges:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntry:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChanges:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas...",confirmLoadBackup:"Radome Jūsų įrenginyje išsaugota juodraštį šiam įrašui, ar norite jį atgaivinti ir naudoti?"},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje"},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",code:"Kodo šriftas",link:"Nuoroda (adresas)",linkPrompt:"Įveskite adresą čia",headings:"Antraštės",quote:"Citata",bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)"},image:{choose:"Pasirinkti vaizdą",chooseDifferent:"Pasirinkti skirtingą vaizdą",remove:"Panaikinti vaizdą"},file:{choose:"Pasirinkti failą",chooseDifferent:"Pasirinkti kitą failą",remove:"Panaikinti failą"},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",clear:"Išvalyti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis"},mediaLibrary:{onDelete:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLarge:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB."},mediaLibraryModal:{loading:"Kraunama...",noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus"}},ui:{default:{goBackToSite:"Grįžti atgal į tinklalapį"},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draftHeader:"Juodraščiai",inReviewHeader:"Peržiūrima redakcijoje",readyHeader:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"}}}},65954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},79791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithAzure:"Inloggen met Azure",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."},i18n:{writingInLocale:"%{locale} aan het bewerken"}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onUnpublishing:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorInterface:{toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",code:"Code",link:"Link",linkPrompt:"Voer de URL in",headings:"Hoofdtekst",quote:"Quote",bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",clear:"Wissen"},list:{add:"Voeg %{item} toe"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}}},37277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},62423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithAzure:"Zaloguj przez konto Azure",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje"},i18n:{writingInLocale:"Pisz w języku %{locale}"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorInterface:{toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",code:"Kod",link:"Link",linkPrompt:"Dodaj adres URL",headings:"Nagłówki",quote:"Cytat",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",clear:"Wyczyść"},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}}},49968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithAzure:"Entrar com o Azure",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"},i18n:{writingInLocale:"Escrevendo em %{locale}"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorInterface:{toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",code:"Código",link:"Link",linkPrompt:"Insira a URL do link",headings:"Cabeçalho",quote:"Citação",bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",clear:"Limpar"},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},64425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithAzure:"Autentifică-te cu Azure",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}}},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",minCount:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",maxCount:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja."},i18n:{writingInLocale:"Scrii în limba %{locale}"}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChanges:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReady:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChanges:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishing:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishing:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChanges:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntry:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChanges:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChanges:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă...",confirmLoadBackup:"Un backup local a fost recuperat pentru această intrare, dorești să îl folosești?"},editorInterface:{toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Cod sursă",link:"Link",linkPrompt:"Scrie URL-ul",headings:"Titluri",quote:"Citat",bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Alege o imagine",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",remove:"Șterge imaginea"},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",remove:"Șterge fișier"},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",clear:"Șterge"}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDelete:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLarge:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB."},mediaLibraryModal:{loading:"Se încarcă...",noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate"}},ui:{default:{goBackToSite:"Înapoi la site"},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draftHeader:"Ciorne",inReviewHeader:"În revizuire",readyHeader:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"}}}},57312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithAzure:"Войти через Azure",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует"},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorInterface:{toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении."},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",code:"Код",link:"Ссылка",linkPrompt:"Укажите URL ссылки",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown"},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",clear:"Очистить"},list:{add:"Добавить %{item}",addType:"Добавить %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLarge:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB."},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{default:{goBackToSite:"Вернуться на сайт"},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},48821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithAzure:"Prijavi se z Azure računom",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"Nov %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}}},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja"},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReady:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishing:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishing:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChanges:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntry:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChanges:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChanges:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ...",confirmLoadBackup:"Za ta vnos je bila povrnjena lokalna varnostna kopija, ali bi jo radi uporabili?"},editorInterface:{toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo"},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",code:"Koda",link:"Povezava",linkPrompt:"Vnesite URL povezave",headings:"Naslovi",quote:"Citat",bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown"},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",clear:"Počisti"},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDelete:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLarge:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb."},mediaLibraryModal:{loading:"Nalaganje...",noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano"}},ui:{default:{goBackToSite:"Vrni se na spletno mesto"},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draftHeader:"Osnutki",inReviewHeader:"V pregledu",readyHeader:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"}}}},10869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithAzure:"Logga in med Azure",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan"},i18n:{writingInLocale:"Skriver i %{locale}"}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorInterface:{toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",code:"Kod",link:"Länk",linkPrompt:"Ange en URL för länken",headings:"Rubriker",quote:"Citat",bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",clear:"Rensa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}}},15340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithAzure:"เข้าสู่ระบบด้วย Azure",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลแล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway แล้ว"}},app:{header:{content:"เนื้อหา",workflow:"กระแสงาน",media:"ไฟล์สื่อ",quickAdd:"เพิ่มเนื้อหาด่วน"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ผลลัพธ์การค้นหา "%{searchTerm}"',searchResultsInCollection:'ผลลัพธ์การค้นหา "%{searchTerm}" ในกลุ่ม %{collection}',filterBy:"กรองตาม",groupBy:"จัดกลุ่มตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},groups:{other:"อื่น ๆ",negateLabel:"ไม่ใช่ %{label}"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"เวลาที่อัปเดต"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"จำเป็นต้องระบุ %{fieldLabel}",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' ไม่ใช่พาทที่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว"},i18n:{writingInLocale:"กำลังเขียนด้วยภาษา %{locale}",copyFromLocale:"คัดลอกจากภาษาอื่น",copyFromLocaleConfirm:"คุณต้องการคัดลอกข้อมูลจากภาษา %{locale} หรือไม่?\nเนื้อหาทั้งหมดจะถูกแทนที่"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"มีการกู้คืนข้อมูลสำรองสำหรับเนื้อหานี้ คุณต้องการใช้มันหรือไม่?"},editorInterface:{toggleI18n:"เปิด/ปิด i18n",togglePreview:"เปิด/ปิดการแสดงตัวอย่าง",toggleScrollSync:"เปิด/ปิดการเลื่อนพร้อมกัน"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"กำยังยกเลิกการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และสร้างใหม่",publishAndDuplicate:"เผยแพร่ และทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่แล้ว",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",statusInfoTooltipDraft:"เนื้อหาอยู่ในสถานะร่าง หากเนื้อหาเสร็จสมบูรณ์แล้วและต้องการส่งเพื่อตรวจสอบ ให้ปรับเปลี่ยนสถานะเป็น ‘อยู่ระหว่างการตรวจสอบ’",statusInfoTooltipInReview:"เนื้อหาอยู่ระหว่างการตรวจสอบ ไม่จำเป็นต้องทำอะไรเพิ่มเติม อย่างไรก็ตาม คุณสามารถแก้ไขเนื้อหาเพิ่มเติมได้ระหว่างการตรวจสอบ",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{bold:"ตัวหนา",italic:"ตัวเอียง",code:"โคด",link:"ลิงก์",linkPrompt:"ระบุ URL ของลิงก์",headings:"หัวข้อ",quote:"ยกคำพูดมา",bulletedList:"รายการแบบไม่มีหมายเลข",numberedList:"รายการแบบมีหมายเลข",addComponent:"เพิ่มองค์ประกอบ",richText:"ข้อความฟอร์แมต",markdown:"มาร์คดาวน์"},image:{choose:"เลือกรูปภาพ",chooseMultiple:"เลือกรูปภาพหลายรูป",chooseUrl:"แทรกจาก URL",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",addMore:"เพิ่มรูปภาพ",remove:"เอารูปภาพออก",removeAll:"เอารูปภาพออกทั้งหมด"},file:{choose:"เลือกไฟล์",chooseUrl:"แทรกจาก URL",chooseMultiple:"เลือกหลายไฟล์",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของไฟล์",chooseDifferent:"เลือกไฟล์อื่น",addMore:"เพิ่มไฟล์",remove:"เอาไฟล์ออก",removeAll:"เอาไฟล์ออกทั้งหมด"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"หัวข้อ 1",headingTwo:"หัวข้อ 2",headingThree:"หัวข้อ 3",headingFour:"หัวข้อ 4",headingFive:"หัวข้อ 5",headingSix:"หัวข้อ 6"},datetime:{now:"เวลาตอนนี้",clear:"ล้าง"},list:{add:"เพิ่ม %{item}",addType:"เพิ่ม %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง",copy:"คัดลอก",copyUrl:"คัดลอก URL",copyPath:"คัดลอกพาท",copyName:"คัดลอกชื่อ",copied:"คัดลอกแล้ว"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบไฟล์สื่อที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลไฟล์สื่อ",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่จำเป็น กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาถูกยกเลิกการเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการยกเลิกการเผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหากระแสงานของบรรณาธิการ",workflowHeading:"กระแสงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"เนื้อหา %{smart_count} รายการอยู่ระหว่างการตรวจสอบ, %{readyCount} รายการพร้อมที่จะเผยแพร่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'สามารถเผยแพร่เฉพาะรายการที่มีสถานะ "พร้อม" โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อให้เผยแพร่ได้',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ระหว่างการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"เนื้อหา %{smart_count} รายการ"}}}},95093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithAzure:"Azure ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}}},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var"},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorInterface:{toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",code:"Kod",link:"Bağlantı",linkPrompt:"Bağlantının URL'sini girin",headings:"Başlıklar",quote:"Alıntı",bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",clear:"Temizle"},list:{add:"%{item} Ekle",addType:"%{item} Ekle"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLarge:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış."},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan"}},ui:{default:{goBackToSite:"Siteye geri git"},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}}},57722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть ваш email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Записи",workflow:"Документообіг",media:"Медіафайли",quickAdd:"Швидке додавання"},app:{errorHeader:"Помилка завантаження конфігурації CMS",configErrors:"Помилки конфігурації",checkConfigYml:"Перевірте свій config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування відповіді від бекенду..."},notFoundPage:{header:"Не знайдено"}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Шукати всюди",searchIn:"Шукати в"},collectionTop:{sortBy:"Сортувати за",viewAs:"Вигляд",newButton:"Створити %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти деякий час",noEntries:"Немає записів"},groups:{other:"Інша",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Оновлено"}}},editor:{editorControl:{field:{optional:"необов’язковий"}},editorControlPane:{widget:{required:"Необхідно вказати значення поля %{fieldLabel}.",regexPattern:"Значення поля %{fieldLabel} не відповідає шаблону: %{pattern}.",processing:"Значення поля %{fieldLabel} обробляється…",range:"Значення поля %{fieldLabel} повинно бути між %{minValue} і %{maxValue}.",min:"Значення поля %{fieldLabel} повинно бути не менше %{minValue}.",max:"Значення поля %{fieldLabel} повинно бути %{maxValue} або менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити строго %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки",pathExists:"Шлях '%{path}' вже існує"},i18n:{writingInLocale:"Пишемо на %{locale}"}},editor:{onLeavePage:"Ви впевнені, що хочете залишити цю сторінку?",onUpdatingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед оновленням статусу.",onPublishingNotReady:"Будь ласка, змініть статус на «Готово» перед публікацією.",onPublishingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед публікацією.",onPublishing:"Ви впевнені, що хочете опублікувати цей запис?",onUnpublishing:"Ви впевнені, що хочете скасувати публікацію цієї записи?",onDeleteWithUnsavedChanges:"Ви впевнені, що хочете видалити цю опубліковану запис, а також незбережені зміни з поточного сеансу?",onDeletePublishedEntry:"Ви впевнені, що хочете видалити цю опубліковану запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Це видалить всі неопубліковані зміни в цій записі, а також ваші незбережені зміни з поточного сеансу. Ви все ще хочете видалити?",onDeleteUnpublishedChanges:"Всі неопубліковані зміни в цій записі будуть видалені. Ви все ще хочете видалити?",loadingEntry:"Завантаження запису ...",confirmLoadBackup:"Для цієї запису була відновлена локальна резервна копія, хочете використовувати її?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Дублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:"Опублікувати і дублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану запис",deletePublishedEntry:"Видалити опубліковану запис",deleteEntry:"Видалити запис",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Статус: %{status}",backCollection:"Запис в колекцію %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережені",draft:"Чернетка",inReview:"На розгляді",ready:"Готово до публікації",publishNow:"Опублікувати зараз",deployPreviewPendingButtonLabel:"Перевірити попередній перегляд",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Перегляд"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"Форматований текст",markdown:"Markdown"},image:{choose:"Обрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",remove:"Видалити зображення"},file:{choose:"Обрати файл",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Обрати інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Немає контролу для віджета '%{widget}'."},unknownPreview:{noPreview:"Немає попереднього перегляду для віджета '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чорновик",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви впевнені, що хочете видалити вибраний медіафайл?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження медіафайлів…",noResults:"Немає результатів.",noAssetsFound:"Ресурси не знайдені.",noImagesFound:"Зображення не знайдені.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіаресурси",search:"Йде пошук…",uploading:"Завантаження…",upload:"Завантажити новий",download:"Завантажити",deleting:"Видалення…",deleteSelected:"Видалити позначені",chooseSelected:"Вибрати позначені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлений документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати до буферу обміну"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапилися збої в роботі бекенду. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження записів редакційного документообігу",workflowHeading:"Редакційний документообіг",newPost:"Новий запис",description:"Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}. |||| Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви впевнені, що хочете видалити цей запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Схвалено", щоб дозволити публікацію.',onPublishEntry:"Ви впевнені, що хочете опублікувати цей запис?",draftHeader:"Чернетки",inReviewHeader:"На розгляді",readyHeader:"Схвалено",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}}},72872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіафайли",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Пошук всюди",searchIn:"Шукати в"},collectionTop:{viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',sortBy:"Сортувати за",filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти певний час",noEntries:"Немає записів"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"Поле %{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"Обробляється %{fieldLabel}...",range:"Значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"Значення %{fieldLabel} має бути від %{minValue}.",max:"Значення %{fieldLabel} має бути %{maxValue} та менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити чітко %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки.",pathExists:"Шлях '%{path}' вже існує."},i18n:{writingInLocale:"Мова запису %{locale}",copyFromLocale:"Заповнити з іншої мови",copyFromLocaleConfirm:"Дійсно бажаєте заповнити дані з мови %{locale}?\nУсі наявні дані буде перезаписано."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorInterface:{toggleI18n:"Порівняння записів",togglePreview:"Попередній перегляд",toggleScrollSync:"Синхронна прокрутка"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Продублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати та створити нову",publishAndDuplicate:"Опублікувати та продублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:"Колекція %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"RichText",markdown:"Markdown"},image:{choose:"Вибрати зображення",chooseMultiple:"Вибрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",addMore:"Додати більше зображень",remove:"Видалити",removeAll:"Видалити всі"},file:{choose:"Вибрати файл",chooseUrl:"Вставити з URL",chooseMultiple:"Вибрати файли",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Виберіть інший файл",addMore:"Додати більше",remove:"Видалити",removeAll:"Видалити всі"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз",clear:"Скинути"},list:{add:"Додати %{item}",addType:"Додати %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіафайли",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",download:"Отримати",deleting:"Видалення...",deleteSelected:"Видалити",chooseSelected:"Обрати виділені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапився збій у роботі серверу. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} запис очікує розгляду, %{readyCount} до публікації. |||| %{smart_count} записи очікують розгляду, %{readyCount} до публікації. |||| %{smart_count} записів очікують розгляду, %{readyCount} до публікації.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"— %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Готово", щоб дозволити публікацію.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записи |||| %{smart_count} записів"}}}},3409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",clear:"Xóa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}}},61522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithAzure:"使用 Azure 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}}},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",minCount:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",maxCount:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在"},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:"用其他语言进行填充",copyFromLocaleConfirm:"你确定要用“%{locale}”进行填充吗?\n这将会覆盖所有现有的内容。"}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChanges:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReady:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChanges:"你有尚未保存的修改,请在发布前进行保存",onPublishing:"你确定要发布此内容吗?",onUnpublishing:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChanges:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntry:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChanges:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChanges:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容...",confirmLoadBackup:"发现了一个对应此内容的本地备份,你要加载它吗?"},editorInterface:{toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布"},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",code:"代码",link:"链接",linkPrompt:"输入链接的 URL",headings:"标题",quote:"引用",bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown"},image:{choose:"选择图片",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择文件",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",remove:"移除文件"},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDelete:"你确定要删除此媒体项目吗?",fileTooLarge:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB"},mediaLibraryModal:{loading:"正在加载...",noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目"}},ui:{default:{goBackToSite:"返回主页"},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToDelete:"删除内容失败: %{details}",onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draftHeader:"草稿",inReviewHeader:"审查中",readyHeader:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"}}}},15029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}}},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在"},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:"用其他語言進行填充",copyFromLocaleConfirm:"你確定要用“%{locale}”進行填充嗎?\n這將會覆蓋所有現有的內容。"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntry:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChanges:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChanges:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中...",confirmLoadBackup:"此內容的本地備份已經還原,你想要使用嗎?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",code:"程式碼",link:"連結",linkPrompt:"輸入連結網址",headings:"標題",quote:"引言",bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown"},image:{choose:"選擇一張圖片",chooseDifferent:"選擇其他圖片",remove:"刪除圖片"},file:{choose:"選擇一個檔案",chooseDifferent:"選擇其他檔案",remove:"刪除檔案"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?",fileTooLarge:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{default:{goBackToSite:"回到網站"},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}}},54530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y,t.renderPageLogo=m;var r=u(n(70894)),i=(u(n(12244)),u(n(13980))),o=u(n(10304)),a=n(29309),s=u(n(98718)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("section",{target:"exus10f5",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)("span",{target:"exus10f4",label:"CustomIconWrapper"})({name:"1hhl19u",styles:"width:300px;height:auto"}),f=(0,r.default)(o.default,{target:"exus10f3",label:"DecapLogoIcon"})({name:"pit38s",styles:"height:auto"}),p=(0,r.default)(o.default,{target:"exus10f2",label:"NetlifyCreditIcon"})({name:"iy5sn8",styles:"color:#c4c6d2;position:absolute;bottom:10px"});function h({url:e}){return(0,l.jsx)(d,null,(0,l.jsx)("img",{src:e,alt:"Logo"}))}function m(e){return e?(0,l.jsx)(h,{url:e}):(0,l.jsx)(f,{size:"300px",type:"decap-cms"})}const g=(0,r.default)("button",{target:"exus10f1",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";&[disabled]{",a.buttons.disabled,";}padding:0 12px;margin-top:0;display:flex;align-items:center;position:relative;"),v=(0,r.default)("button",{target:"exus10f0",label:"TextButton"})(a.buttons.button,";",a.buttons.default,";",a.buttons.grayText,";margin-top:0;display:flex;align-items:center;position:relative;");function y({onLogin:e,loginDisabled:t,loginErrorMessage:n,renderButtonContent:r,renderPageContent:i,logoUrl:o,siteUrl:a,t:u}){return(0,l.jsx)(c,null,m(o),n?(0,l.jsx)("p",null,n):null,i?i({LoginButton:g,TextButton:v,showAbortButton:!a}):null,r?(0,l.jsx)(g,{disabled:t,onClick:e},r()):null,a&&(0,l.jsx)(s.default,{href:a,t:u}),o?(0,l.jsx)(p,{size:"100px",type:"decap-cms"}):null)}y.propTypes={onLogin:i.default.func,logoUrl:i.default.string,siteUrl:i.default.string,loginDisabled:i.default.bool,loginErrorMessage:i.default.node,renderButtonContent:i.default.func,renderPageContent:i.default.func,t:i.default.func.isRequired}},87509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return a.Button}}),t.DropdownCheckedItem=w,t.DropdownItem=v,t.StyledDropdownButton=void 0,t.default=g;var r=c(n(70894)),i=(c(n(12244)),c(n(13980))),o=n(28165),a=n(6448),s=n(29309),l=c(n(10304));const u=["isActive","isCheckedItem"];function c(e){return e&&e.__esModule?e:{default:e}}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f=(0,r.default)(a.Wrapper,{target:"efqlgsg3",label:"StyledWrapper"})({name:"dzgz3x",styles:"position:relative;font-size:14px;user-select:none"}),p=(t.StyledDropdownButton=(0,r.default)(a.Button,{target:"efqlgsg2",label:"StyledDropdownButton"})(s.buttons.button,";",s.buttons.default,";display:block;padding-left:20px;padding-right:40px;position:relative;&:after{",s.components.caretDown,";content:'';display:block;position:absolute;top:16px;right:10px;color:currentColor;}"),(0,r.default)("ul",{target:"efqlgsg1",label:"DropdownList"})(s.components.dropdownList,";margin:0;position:absolute;top:0;left:0;min-width:100%;z-index:",s.zIndex.zIndex299,";",(e=>(0,o.css)("width:",e.width,";top:",e.top,";left:","left"===e.position?0:"auto",";right:","right"===e.position?0:"auto",";;label:DropdownList;")),";"));function h(e){let{isActive:t,isCheckedItem:n=!1}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u);return(0,o.jsx)(a.MenuItem,d({css:(0,o.css)(s.components.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",t?s.colors.activeBackground:"inherit",";color:",t?s.colors.active:"#313d3e",";",n?"display: flex; justify-content: start":"",";}&:hover{color:",s.colors.active,";background-color:",s.colors.activeBackground,";}&.active{text-decoration:underline;};label:StyledMenuItem;")},r))}const m=(0,r.default)("div",{target:"efqlgsg0",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",(e=>e.iconSmall?"0":"2px"),";");function g({closeOnSelection:e=!0,renderButton:t,dropdownWidth:n="auto",dropdownPosition:r="left",dropdownTopOverlap:i="0",className:s,children:l}){return(0,o.jsx)(f,{closeOnSelection:e,onSelection:e=>e(),className:s},t(),(0,o.jsx)(a.Menu,null,(0,o.jsx)(p,{width:n,top:i,position:r},l)))}function v({label:e,icon:t,iconDirection:n,iconSmall:r,isActive:i,onClick:a,className:s}){return(0,o.jsx)(h,{value:a,isActive:i,className:s},(0,o.jsx)("span",null,e),t?(0,o.jsx)(m,{iconSmall:r},(0,o.jsx)(l.default,{type:t,direction:n,size:r?"xsmall":"small"})):null)}g.propTypes={renderButton:i.default.func.isRequired,dropdownWidth:i.default.string,dropdownPosition:i.default.string,dropdownTopOverlap:i.default.string,className:i.default.string,children:i.default.node},v.propTypes={label:i.default.string,icon:i.default.string,iconDirection:i.default.string,onClick:i.default.func,className:i.default.string};var y={name:"1ak2sn3-StyledDropdownCheckbox",styles:"margin-right:10px;label:StyledDropdownCheckbox;"};function b({checked:e,id:t}){return(0,o.jsx)("input",{readOnly:!0,type:"checkbox",css:y,checked:e,id:t})}function w({label:e,id:t,checked:n,onClick:r}){return(0,o.jsx)(h,{isCheckedItem:!0,isActive:n,onClick:r},(0,o.jsx)(b,{checked:n,id:t}),(0,o.jsx)("span",{htmlFor:t},e))}w.propTypes={label:i.default.string.isRequired,id:i.default.string.isRequired,checked:i.default.bool.isRequired,onClick:i.default.func.isRequired}},36881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(29309);const a={default:{background:o.colors.textFieldBorder,text:o.colors.controlLabel},active:{background:o.colors.active,text:o.colors.textLight},error:{background:o.colors.errorText,text:o.colorsRaw.white}};function s({isActive:e,hasErrors:t}){return t?a.error:e?a.active:a.default}const l=(0,i.default)("label",{target:"e1xtv0oy0",label:"FieldLabel"})(o.text.fieldLabel,";color:",(e=>s(e).text),";background-color:",(e=>s(e).background),";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",o.transitions.main,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");t.default=l},98718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(29309),s=u(n(10304)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("a",{target:"e1sptrq41",label:"GoBackButtonStyle"})({name:"1d6fxhx",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px"}),d=(0,r.default)("p",{target:"e1sptrq40",label:"ButtonText"})("color:",a.colorsRaw.gray,";margin:0 10px;");class f extends i.default.Component{render(){const{href:e,t}=this.props;return(0,l.jsx)(c,{href:e},(0,l.jsx)(s.default,{type:"arrow",size:"small"}),(0,l.jsx)(d,null,t("ui.default.goBackToSite")))}}var p,h,m,g;t.default=f,p=f,h="propTypes",m={href:o.default.string.isRequired,t:o.default.func.isRequired},(h="symbol"==typeof(g=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(h))?g:String(g))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m},10304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(13980))),o=s(n(72134)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("span",{target:"e1jeq5dr1",label:"IconWrapper"})("display:inline-block;line-height:0;width:",(e=>e.size),";height:",(e=>e.size),";transform:",(e=>`rotate(${e.rotation})`),";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}");function u(e,t){if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"}const c={xsmall:"12px",small:"18px",medium:"24px",large:"32px"};function d({type:e,direction:t,size:n="medium",className:r}){const i=o.default[e].image;return(0,a.jsx)(l,{className:r,size:c[n]||n,rotation:u(o.default[e].direction,t)},(0,a.jsx)(i,null))}d.propTypes={type:i.default.string.isRequired,direction:i.default.oneOf(["right","down","left","up"]),size:i.default.string,className:i.default.string},t.default=(0,r.default)(d,{target:"e1jeq5dr0"})("")},72134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(34519)),i=o(n(82880));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}},l=(0,r.default)(i.default,((e,t)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({image:e},s[t]||{})));t.default=l},82880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(12244))&&r.__esModule;var r,i=n(28165),o=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"}))};o.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var a=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16 13 12h7l-3.5 4Zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5Z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var s=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#313D3E",d:"m10.506 19.916 1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};s.defaultProps={viewBox:"0 0 24 24"};var l=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M14.015 4.217 7.1 9.927 1.5 19.751l5.27.055zm.77 1.263-3.02 8.014 5.6 6.313-10.76 1.92 17.895.056Z",fill:"#2684FF"}))};l.defaultProps={viewBox:"0 0 26 26",height:"26",width:"26"};var u=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3Zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025Z",fill:"#2684FF"}))};u.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var c=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947ZM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122Zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293Z"}))};c.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var d=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m4.016 11-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};d.defaultProps={viewBox:"-1 -2 16 16"};var f=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};f.defaultProps={viewBox:"0 0 24 24"};var p=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 3.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),(0,i.jsx)("path",{d:"m5.123 10.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};p.defaultProps={viewBox:"0 0 24 24"};var h=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var m=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M11.916 9.96 6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};m.defaultProps={viewBox:"0 0 24 24"};var g=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M9 14.6 4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6Zm3 0 4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6Z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var v=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M10.103 13.32 7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01ZM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm6.927 9.32 1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32Z"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 15v-2h18v2H3Zm0-4V9h18v2H3Z"}))};y.defaultProps={viewBox:"0 0 24 24"};var b=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103Zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152Zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725Z"}))};b.defaultProps={viewBox:"0 0 24 24"};var w=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2Z"}))};w.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var _=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};_.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var x=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"none"},(0,i.jsx)("path",{d:"M22.616 14.971 21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5H9.251z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 9.251 11.5H4.197z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M4.197 11.499 3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5h5.055z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"m21.52 11.499 1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};x.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var E=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"#609926"},(0,i.jsx)("path",{d:"M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"}),(0,i.jsx)("path",{d:"M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"})))};E.defaultProps={viewBox:"0 0 640 640",className:"svg gitea-gitea",width:"16",height:"16","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"};var k=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2ZM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Z"}))};k.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var C=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4Zm2 0v5h6V4H5Zm0 7v5h6v-5H5Zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911Z"}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var S=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16ZM3 8h7v8H3V8Zm2 0v3h3V8H5Zm0 5v3h3v-3H5Z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var A=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91-3.493-4.117h6.986l-3.493 4.117z"}))};A.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var T=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9Z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var O=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2.487 7.205-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264ZM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var P=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,i.jsx)("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-info-circle",viewBox:"0 0 16 16"};var R=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var M=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"m14.683 10.315-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255Zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69Z"}))};M.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var D=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Z"}))};D.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var I=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM9 4h10v1.964H9V4Zm0 5h10v2H9V9Zm0 5h10v2H9v-2Z"}))};I.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var L=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11Zm0 5v2h-11v-2h11Zm0 5v2h-11v-2h11ZM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604Zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134Z"}))};L.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var j=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1Zm18 0-4-4.368h2.667V8h2.666v4.632H23L19 17Z"}))};j.defaultProps={viewBox:"0 0 24 24"};var N=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75Zm-9.641-3.773 1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};N.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var F=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3Zm2.874 8.48-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73ZM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014Z"}))};F.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var B=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M30.73.15 0 2.95l3.67 40.21 20.03-1.83-1.99-21.86 10.71-.98c10.61-.97 19.14 7.53 20.29 20.19l19.67-1.79C70.34 14.72 51.64-1.75 30.73.15ZM73.61 49.51c0 12.72-7.73 21.95-18.37 21.95H44.49V49.47H24.38v40.42h30.86c21.02 0 38.12-18.11 38.12-40.38v-.04H73.61v.04Z",fill:"#FF0082",className:"no-fill"}),(0,i.jsx)("path",{d:"M131.65 23.71h20.01c14.41 0 24.29 9.09 24.29 23.06 0 13.97-9.88 23.06-24.29 23.06h-20.01V23.71Zm19.51 37.35c8.75 0 14.47-5.47 14.47-14.29s-5.73-14.29-14.47-14.29h-9.31v28.59h9.31v-.01ZM207.61 58.69l5.22 5.93c-3.15 3.75-7.87 5.73-13.97 5.73-11.7 0-19.32-7.71-19.32-18.25s7.68-18.25 18.12-18.25c9.56 0 17.43 6.59 17.49 17.92l-25.04 5.07c1.45 3.49 4.59 5.27 9 5.27 3.59 0 6.17-1.12 8.5-3.43v.01Zm-18.44-7.64 16.49-3.36c-.94-3.62-3.9-6.06-7.99-6.06-4.91 0-8.31 3.43-8.5 9.42ZM218.25 52.1c0-10.67 7.87-18.25 18.88-18.25 7.11 0 12.71 3.23 15.17 9.02l-7.61 4.28c-1.83-3.36-4.53-4.87-7.61-4.87-4.97 0-8.87 3.62-8.87 9.81s3.9 9.81 8.87 9.81c3.08 0 5.79-1.45 7.61-4.87l7.61 4.35c-2.45 5.67-8.05 8.96-15.17 8.96-11.01 0-18.88-7.58-18.88-18.25v.01ZM290.93 34.38v35.44h-9.38v-4.08c-2.45 3.1-6.04 4.61-10.57 4.61-9.57 0-16.93-7.11-16.93-18.25s7.36-18.25 16.93-18.25c4.15 0 7.68 1.38 10.13 4.28v-3.75h9.82ZM281.3 52.1c0-6.13-3.78-9.81-8.62-9.81S264 45.98 264 52.1c0 6.12 3.78 9.81 8.68 9.81s8.62-3.69 8.62-9.81ZM334.54 52.1c0 11.13-7.36 18.25-16.86 18.25-4.22 0-7.68-1.38-10.19-4.28V82.6h-9.82V34.38h9.38v4.08c2.45-3.1 6.1-4.61 10.63-4.61 9.5 0 16.86 7.11 16.86 18.25Zm-9.94 0c0-6.13-3.71-9.81-8.62-9.81-4.91 0-8.62 3.69-8.62 9.81 0 6.12 3.71 9.81 8.62 9.81 4.91 0 8.62-3.69 8.62-9.81Z",fill:"#000",className:"no-fill"}))};B.defaultProps={width:"335",height:"90",viewBox:"0 0 335 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var U=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"evenodd"},(0,i.jsx)("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),(0,i.jsx)("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};U.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m13.366 3 5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5ZM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94Zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94Zm5.073-6h5.139l-5.14-5.053V10Z"}))};z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8Zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94Zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94Zm4.054-6.124h4.344l-4.344-4.342v4.342Z"}))};q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var W=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5ZM9 10v2h10v-2H9Zm0-4v2h10V6H9ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};W.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var $=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982Zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982Z"}))};$.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var H=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};H.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var G=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123Zm.015 11.75 2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124Zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032Z"}))};G.defaultProps={viewBox:"0 0 24 24"};var V=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341Zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842Z"}))};V.defaultProps={viewBox:"0 0 24 24"};var K=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484Zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013Z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18ZM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29Z"}))};Z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var Y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z"}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var X=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948Zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068Zm7.921-5.008.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041ZM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966Zm17.099-5.908.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498Z"}))};X.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};const Q={add:o,"add-with":a,arrow:s,azure:l,bitbucket:u,bold:c,check:d,chevron:f,"chevron-double":p,circle:h,close:m,code:g,"code-block":v,"drag-handle":y,eye:b,folder:w,github:_,gitlab:x,gitea:E,grid:k,h1:C,h2:S,hOptions:A,home:T,image:O,"info-circle":P,italic:R,link:M,list:D,"list-bulleted":I,"list-numbered":L,markdown:j,media:N,"media-alt":F,decap:B,"decap-cms":B,"new-tab":U,page:z,pages:q,"pages-alt":W,quote:$,refresh:H,scroll:G,search:V,settings:K,user:Z,workflow:Y,write:X};t.default=Q},52798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(10304))),o=n(29309),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l={small:"28px",large:"40px"},u=(0,r.default)("button",{target:"em2wuvj0",label:"ButtonRound"})(o.buttons.button,";",o.shadows.dropMiddle,";background-color:",o.colorsRaw.white,";color:",(e=>o.colors[e.isActive?"active":"inactive"]),";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",(e=>l[e.size]),";height:",(e=>l[e.size]),";padding:0;");t.default=function({size:e,isActive:t,type:n,onClick:r,className:o,title:s}){return(0,a.jsx)(u,{size:e,isActive:t,className:o,onClick:r,title:s},(0,a.jsx)(i.default,{type:n,size:e}))}},83913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(12244)),l(n(13980))),o=l(n(10304)),a=n(29309),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e11ki7in3",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;"),c=(0,r.default)("button",{target:"e11ki7in2",label:"TopBarButton"})(a.buttons.button,";color:",a.colors.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),d=c.withComponent("span",{target:"e11ki7in4",label:"TopBarButtonSpan"}),f=(0,r.default)(d,{target:"e11ki7in1",label:"DragIconContainer"})({name:"1nwpzc",styles:"width:100%;cursor:move"});function p({Wrapper:e,id:t}){return(0,s.jsx)(e,{id:t},(0,s.jsx)(f,null,(0,s.jsx)(o.default,{type:"drag-handle",size:"small"})))}function h(e){const{className:t,collapsed:n,onCollapseToggle:r,onRemove:i,dragHandle:a,id:l}=e;return(0,s.jsx)(u,{className:t},r?(0,s.jsx)(c,{onClick:r},(0,s.jsx)(o.default,{type:"chevron",size:"small",direction:n?"right":"down"})):null,a?(0,s.jsx)(p,{Wrapper:a,id:l}):null,i?(0,s.jsx)(c,{onClick:i},(0,s.jsx)(o.default,{type:"close",size:"small"})):null)}h.propTypes={className:i.default.string,collapsed:i.default.bool,onCollapseToggle:i.default.func,onRemove:i.default.func};const m=(0,r.default)(h,{target:"e11ki7in0",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;");t.default=m},26103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Loader=void 0;var r=u(n(70894)),i=u(n(12244)),o=u(n(13980)),a=n(28165),s=n(7411),l=n(29309);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={disabled:{name:"v06iuk-disabled",styles:"display:none;label:disabled;"},active:{name:"1426nog-active",styles:"display:block;label:active;"},enter:{name:"1rrod3j-enter",styles:"opacity:0.01;label:enter;"},enterActive:{name:"ssvs1t-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;label:enterActive;"},exit:{name:"t407yk-exit",styles:"opacity:1;label:exit;"},exitActive:{name:"1npgmu6-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;label:exitActive;"}},f={loader:a.keyframes`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`},p=(0,r.default)("div",{target:"ep2bezb2",label:"LoaderText"})({name:"xpdb8l",styles:"width:auto!important;height:auto!important;text-align:center;color:#767676;margin-top:55px;line-height:35px"}),h=(0,r.default)("div",{target:"ep2bezb1",label:"LoaderItem"})({name:"12zl32h",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%)"});class m extends i.default.Component{constructor(...e){super(...e),c(this,"state",{currentItem:0}),c(this,"setAnimation",(()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval((()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})}),5e3)})),c(this,"renderChild",(()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?(0,a.jsx)(p,null,e):Array.isArray(e)?(this.setAnimation(),(0,a.jsx)(p,null,(0,a.jsx)(s.CSSTransition,{className:{enter:d.enter,enterActive:d.enterActive,exit:d.exit,exitActive:d.exitActive},timeout:500},(0,a.jsx)(h,{key:t},e[t])))):void 0:null}))}componentWillUnmount(){this.interval&&clearInterval(this.interval)}render(){const{className:e}=this.props;return(0,a.jsx)("div",{className:e},this.renderChild())}}t.Loader=m,c(m,"propTypes",{children:o.default.node,className:o.default.string});const g=(0,r.default)(m,{target:"ep2bezb0",label:"StyledLoader"})("display:",(e=>e.active?"block":"none"),";position:absolute;top:50%;left:50%;margin:0;text-align:center;z-index:",l.zIndex.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.2857rem;height:2.2857rem;margin:0 0 0 -1.1429rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0, 0, 0, 0.1);}&:after{animation:",f.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",l.colors.active," transparent transparent;box-shadow:0 0 0 1px transparent;}");t.default=g},24764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(12244)),o=f(n(13980)),a=n(28165),s=f(n(19155)),l=f(n(10304)),u=n(29309),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(87509));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}const p=(0,r.default)("div",{target:"ekazr9y3",label:"TopBarContainer"})("align-items:center;background-color:",u.colors.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var h={name:"5r0eyy-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;label:ExpandButtonContainer;"};const m=(0,r.default)("div",{target:"ekazr9y2",label:"ExpandButtonContainer"})((e=>e.hasHeading&&h),";"),g=(0,r.default)("button",{target:"ekazr9y1",label:"ExpandButton"})(u.buttons.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),v=(0,r.default)("button",{target:"ekazr9y0",label:"AddButton"})(u.buttons.button," ",u.buttons.widget," ",l.default,"{margin-left:6px;}");class y extends i.default.Component{renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return(0,a.jsx)(c.default,{renderButton:()=>(0,a.jsx)(c.StyledDropdownButton,null,this.props.t("editor.editorWidgets.list.addType",{item:this.props.label}))},e.map(((e,t)=>(0,a.jsx)(c.DropdownItem,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))}))))}renderAddButton(){return(0,a.jsx)(v,{onClick:this.props.onAdd},this.props.t("editor.editorWidgets.list.add",{item:this.props.label}),(0,a.jsx)(l.default,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null}=this.props;return(0,a.jsx)(p,null,(0,a.jsx)(m,{hasHeading:!!n},(0,a.jsx)(g,{onClick:e,"data-testid":"expand-button"},(0,a.jsx)(l.default,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}var b,w,_,x;b=y,w="propTypes",_={allowAdd:o.default.bool,types:s.default.list,onAdd:o.default.func,onAddType:o.default.func,onCollapseToggle:o.default.func,collapsed:o.default.bool,heading:o.default.node,label:o.default.string,t:o.default.func.isRequired},(w="symbol"==typeof(x=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(w))?x:String(x))in b?Object.defineProperty(b,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[w]=_,t.default=y},46126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ToggleHandle=t.ToggleContainer=t.ToggleBackground=void 0;var r=u(n(70894)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),o=u(n(13980)),a=n(28165),s=n(29309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}const c=t.ToggleContainer=(0,r.default)("button",{target:"ek00w7u3",label:"ToggleContainer"})({name:"1afa32y",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent"});var d={name:"18x3ccc-ToggleHandle",styles:"transform:translateX(20px);label:ToggleHandle;"};const f=t.ToggleHandle=(0,r.default)("span",{target:"ek00w7u2",label:"ToggleHandle"})(s.shadows.dropDeep,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",s.colorsRaw.white,";transition:transform ",s.transitions.main,";",(e=>e.isActive&&d),";"),p=t.ToggleBackground=(0,r.default)("span",{target:"ek00w7u1",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",s.colors.active,";");function h({id:e,active:t,onChange:n,onFocus:r,onBlur:o,className:s,Container:l=c,Background:u=p,Handle:d=f}){const[h,m]=(0,i.useState)(t);return(0,a.jsx)(l,{id:e,onFocus:r,onBlur:o,className:s,onClick:function(){m((e=>!e)),n&&n(!h)},role:"switch","aria-checked":null==h?void 0:h.toString(),"aria-expanded":null},(0,a.jsx)(u,{isActive:h}),(0,a.jsx)(d,{isActive:h}))}h.propTypes={id:o.default.string,active:o.default.bool,onChange:o.default.func,onFocus:o.default.func,onBlur:o.default.func,className:o.default.string,Container:o.default.func,Background:o.default.func,Handle:o.default.func},t.default=(0,r.default)(h,{target:"ek00w7u0",label:"StyledToggle"})("")},75076:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=(0,((r=n(70894))&&r.__esModule?r:{default:r}).default)("div",{target:"es44anv0",label:"WidgetPreviewContainer"})({name:"1wf5os2",styles:"margin:15px 2px"});t.default=i},30762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return c.default}}),t.DecapCmsUiDefault=void 0,Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return r.DropdownButton}}),Object.defineProperty(t,"DropdownCheckedItem",{enumerable:!0,get:function(){return r.DropdownCheckedItem}}),Object.defineProperty(t,"DropdownItem",{enumerable:!0,get:function(){return r.DropdownItem}}),Object.defineProperty(t,"FieldLabel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"GlobalStyles",{enumerable:!0,get:function(){return h.GlobalStyles}}),Object.defineProperty(t,"GoBackButton",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ListItemTopBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ObjectWidgetTopBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"StyledDropdownButton",{enumerable:!0,get:function(){return r.StyledDropdownButton}}),Object.defineProperty(t,"Toggle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ToggleBackground",{enumerable:!0,get:function(){return u.ToggleBackground}}),Object.defineProperty(t,"ToggleContainer",{enumerable:!0,get:function(){return u.ToggleContainer}}),Object.defineProperty(t,"ToggleHandle",{enumerable:!0,get:function(){return u.ToggleHandle}}),Object.defineProperty(t,"WidgetPreviewContainer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return h.borders}}),Object.defineProperty(t,"buttons",{enumerable:!0,get:function(){return h.buttons}}),Object.defineProperty(t,"colors",{enumerable:!0,get:function(){return h.colors}}),Object.defineProperty(t,"colorsRaw",{enumerable:!0,get:function(){return h.colorsRaw}}),Object.defineProperty(t,"components",{enumerable:!0,get:function(){return h.components}}),Object.defineProperty(t,"effects",{enumerable:!0,get:function(){return h.effects}}),Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return h.fonts}}),Object.defineProperty(t,"lengths",{enumerable:!0,get:function(){return h.lengths}}),Object.defineProperty(t,"reactSelectStyles",{enumerable:!0,get:function(){return h.reactSelectStyles}}),Object.defineProperty(t,"renderPageLogo",{enumerable:!0,get:function(){return c.renderPageLogo}}),Object.defineProperty(t,"shadows",{enumerable:!0,get:function(){return h.shadows}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return h.text}}),Object.defineProperty(t,"transitions",{enumerable:!0,get:function(){return h.transitions}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return h.zIndex}});var r=v(n(87509)),i=m(n(10304)),o=m(n(83913)),a=m(n(26103)),s=m(n(36881)),l=m(n(52798)),u=v(n(46126)),c=v(n(54530)),d=m(n(75076)),f=m(n(24764)),p=m(n(98718)),h=n(29309);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}t.DecapCmsUiDefault={Dropdown:r.default,DropdownItem:r.DropdownItem,DropdownCheckedItem:r.DropdownCheckedItem,DropdownButton:r.DropdownButton,StyledDropdownButton:r.StyledDropdownButton,ListItemTopBar:o.default,FieldLabel:s.default,Icon:i.default,IconButton:l.default,Loader:a.default,Toggle:u.default,ToggleContainer:u.ToggleContainer,ToggleBackground:u.ToggleBackground,ToggleHandle:u.ToggleHandle,AuthenticationPage:c.default,WidgetPreviewContainer:d.default,ObjectWidgetTopBar:f.default,fonts:h.fonts,colorsRaw:h.colorsRaw,colors:h.colors,lengths:h.lengths,components:h.components,buttons:h.buttons,shadows:h.shadows,text:h.text,borders:h.borders,transitions:h.transitions,effects:h.effects,zIndex:h.zIndex,reactSelectStyles:h.reactSelectStyles,GlobalStyles:h.GlobalStyles,renderPageLogo:c.renderPageLogo}},29309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalStyles=function(){return(0,i.jsx)(i.Global,{styles:(0,i.css)("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",d.borderRadius,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",l.primary,";font-weight:normal;background-color:",c.background,";color:",c.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",l.primary,";color:",c.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",c.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",c.text,";text-decoration:none;}button{font-family:inherit;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;")})},t.zIndex=t.transitions=t.text=t.shadows=t.reactSelectStyles=t.lengths=t.fonts=t.effects=t.components=t.colorsRaw=t.colors=t.buttons=t.borders=void 0,(r=n(12244))&&r.__esModule;var r,i=n(28165);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=t.fonts={primary:'\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol"\n ',mono:"\n 'SFMono-Regular',\n Consolas,\n \"Liberation Mono\",\n Menlo,\n Courier,\n monospace;\n "},u=t.colorsRaw={white:"#fff",grayLight:"#eff0f4",gray:"#798291",grayDark:"#313d3e",blue:"#3a69c7",blueLight:"#e8f5fe",green:"#005614",greenLight:"#caef6f",brown:"#754e00",yellow:"#ffee9c",red:"#ff003b",redDark:"#D60032",redLight:"#fcefea",purple:"#70399f",purpleLight:"#f6d8ff",teal:"#17a2b8",tealDark:"#117888",tealLight:"#ddf5f9"},c=t.colors={statusDraftText:u.purple,statusDraftBackground:u.purpleLight,statusReviewText:u.brown,statusReviewBackground:u.yellow,statusReadyText:u.green,statusReadyBackground:u.greenLight,text:u.gray,textLight:u.white,textLead:u.grayDark,background:u.grayLight,foreground:u.white,active:u.blue,activeBackground:u.blueLight,inactive:u.gray,button:u.grayDark,buttonText:u.white,inputBackground:u.white,infoText:u.blue,infoBackground:u.blueLight,successText:u.green,successBackground:u.greenLight,warnText:u.brown,warnBackground:u.yellow,errorText:u.red,errorBackground:u.redLight,textFieldBorder:"#dfdfe3",controlLabel:"#5D626F",checkerboardLight:"#f2f2f2",checkerboardDark:"#e6e6e6",mediaDraftText:u.purple,mediaDraftBackground:u.purpleLight},d=t.lengths={topBarHeight:"56px",inputPadding:"16px 20px",borderRadius:"5px",richTextEditorMinHeight:"300px",borderWidth:"2px",topCardWidth:"682px",pageMargin:"28px 18px",objectWidgetTopBarContainerPadding:"0 14px 14px"},f=(t.borders={textField:`solid ${d.borderWidth} ${c.textFieldBorder}`},t.transitions={main:".2s ease"},t.shadows={drop:"\n box-shadow: 0 2px 4px 0 rgba(19, 39, 48, 0.12);\n ",dropMain:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05), 0 1px 3px 0 rgba(68, 74, 87, 0.1);\n ",dropMiddle:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.3);\n ",dropDeep:"\n box-shadow: 0 4px 12px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.25);\n ",inset:"\n box-shadow: inset 0 0 4px rgba(68, 74, 87, 0.3);\n "}),p=(t.text={fieldLabel:(0,i.css)("font-size:12px;text-transform:uppercase;font-weight:600;color:",c.controlLabel,";;label:fieldLabel;")},{checkerboard:`\n linear-gradient(\n 45deg,\n ${c.checkerboardDark} 25%,\n transparent 25%,\n transparent 75%,\n ${c.checkerboardDark} 75%,\n ${c.checkerboardDark}\n )\n `}),h=(t.effects={checkerboard:(0,i.css)("background-color:",c.checkerboardLight,";background-size:16px 16px;background-position:0 0,8px 8px;background-image:",p.checkerboard,",",p.checkerboard,";;label:checkerboard;")},{name:"1bvw0ad-badge",styles:"font-size:13px;line-height:1;label:badge;"}),m=(0,i.css)(h,";display:block;border-radius:",d.borderRadius,";padding:4px 10px;text-align:center;;label:backgroundBadge;"),g=(0,i.css)(h,";display:inline-block;font-weight:700;text-transform:uppercase;;label:textBadge;"),v=(0,i.css)(f.dropMain,";border-radius:5px;background-color:#fff;;label:card;"),y=t.buttons={button:(0,i.css)("border:0;border-radius:",d.borderRadius,";cursor:pointer;;label:button;"),default:(0,i.css)("height:36px;line-height:36px;font-weight:500;padding:0 15px;background-color:",u.gray,";color:",u.white,";;label:default;"),widget:{name:"ffqcjd-widget",styles:"display:flex;justify-content:center;align-items:center;padding:2px 12px;font-size:12px;font-weight:bold;border-radius:3px;label:widget;"},medium:{name:"xdagg1-medium",styles:"height:27px;line-height:27px;font-size:12px;font-weight:600;border-radius:3px;padding:0 24px 0 14px;label:medium;"},small:{name:"eopypj-small",styles:"font-size:13px;height:23px;line-height:23px;label:small;"},gray:(0,i.css)("background-color:",c.button,";color:",c.buttonText,";&:focus,&:hover{color:",u.white,";background-color:#555a65;};label:gray;"),grayText:(0,i.css)("background-color:transparent;color:",u.gray,";;label:grayText;"),green:(0,i.css)("background-color:#aae31f;color:",u.green,";;label:green;"),lightRed:(0,i.css)("background-color:",u.redLight,";color:",u.redDark,";;label:lightRed;"),lightBlue:(0,i.css)("background-color:",u.blueLight,";color:",u.blue,";;label:lightBlue;"),lightTeal:(0,i.css)("background-color:",u.tealLight,";color:#1195aa;;label:lightTeal;"),teal:(0,i.css)("background-color:",u.teal,";color:",u.white,";;label:teal;"),disabled:(0,i.css)("background-color:",u.grayLight,";color:",u.gray,";cursor:default;;label:disabled;")},b=(0,i.css)("color:",u.white,";width:0;height:0;border:5px solid transparent;border-radius:2px;;label:caret;"),w=(t.components={card:v,caretDown:(0,i.css)(b,";border-top:6px solid currentColor;border-bottom:0;;label:caretDown;"),caretRight:(0,i.css)(b,";border-left:6px solid currentColor;border-right:0;;label:caretRight;"),badge:(0,i.css)(m,";color:",c.infoText,";background-color:",c.infoBackground,";;label:badge;"),badgeSuccess:(0,i.css)(m,";color:",c.successText,";background-color:",c.successBackground,";;label:badgeSuccess;"),badgeDanger:(0,i.css)(m,";color:",u.red,";background-color:#fbe0d7;;label:badgeDanger;"),textBadge:(0,i.css)(g,";color:",c.infoText,";;label:textBadge;"),textBadgeSuccess:(0,i.css)(g,";color:",c.successText,";;label:textBadgeSuccess;"),textBadgeDanger:(0,i.css)(g,";color:",u.red,";;label:textBadgeDanger;"),loaderSize:{name:"1vt2zqf-loaderSize",styles:"width:2.2857rem;height:2.2857rem;label:loaderSize;"},cardTop:(0,i.css)(v,";width:",d.topCardWidth,";max-width:100%;padding:18px 20px;margin-bottom:28px;;label:cardTop;"),cardTopHeading:{name:"1jf7yv6-cardTopHeading",styles:"font-size:22px;font-weight:600;line-height:37px;margin:0;padding:0;label:cardTopHeading;"},cardTopDescription:(0,i.css)("max-width:480px;color:",c.text,";font-size:14px;margin-top:8px;;label:cardTopDescription;"),objectWidgetTopBarContainer:(0,i.css)("padding:",d.objectWidgetTopBarContainerPadding,";;label:objectWidgetTopBarContainer;"),dropdownList:(0,i.css)(f.dropDeep,";background-color:",u.white,";border-radius:",d.borderRadius,";overflow:hidden;;label:dropdownList;"),dropdownItem:(0,i.css)(y.button,";background-color:transparent;border-radius:0;color:",u.grayDark,";font-weight:500;border-bottom:1px solid #eaebf1;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;min-width:max-content;&:last-of-type{border-bottom:0;}&.active,&:hover,&:active,&:focus{color:",c.active,";background-color:",c.activeBackground,";};label:dropdownItem;"),viewControlsText:(0,i.css)("font-size:14px;color:",c.text,";margin-right:12px;white-space:nowrap;;label:viewControlsText;")},t.reactSelectStyles={control:e=>a(a({},e),{},{border:0,boxShadow:"none",padding:"9px 0 9px 12px"}),option:(e,t)=>a(a({},e),{},{backgroundColor:t.isSelected?`${c.active}`:t.isFocused?`${c.activeBackground}`:"transparent",paddingLeft:"22px"}),menu:e=>a(a({},e),{},{right:0,zIndex:w.zIndex300}),container:e=>a(a({},e),{},{padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?a(a({},e),{},{backgroundColor:`${c.textFieldBorder}`}):{display:"none"},dropdownIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),clearIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),multiValue:e=>a(a({},e),{},{backgroundColor:c.background}),multiValueLabel:e=>a(a({},e),{},{color:c.textLead,fontWeight:500}),multiValueRemove:e=>a(a({},e),{},{color:c.controlLabel,":hover":{color:c.errorText,backgroundColor:c.errorBackground}})},t.zIndex={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999})},32070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(12244)),o=u(n(19155)),a=n(28165),s=n(30762);const l=["isActive"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e){let{isActive:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return(0,a.jsx)(s.ToggleBackground,c({css:(0,a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},n))}class f extends i.default.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return(0,a.jsx)("div",{className:r},(0,a.jsx)(s.Toggle,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:d}))}}t.default=f,f.propTypes={field:o.default.map.isRequired,onChange:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,forID:r.default.string,value:r.default.bool},f.defaultProps={value:!1}},56293:(e,t,n)=>{"use strict";t.ZP=void 0;var r,i=(r=n(32070))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"boolean",controlComponent:i.default},e)},controlComponent:i.default};t.ZP=s},41740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(45455)),i=y(n(18149)),o=y(n(75652)),a=y(n(12244)),s=y(n(13980)),l=y(n(19155)),u=n(28165),c=n(46670),d=n(29987),f=n(50730),p=y(n(23326));n(50832),n(94521),n(83280);var h=y(n(49470)),m=y(n(84085)),g=y(n(8674)),v=y(n(33081));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASN.1",identifiers:["asn"],codemirror_mode:"asn.1",codemirror_mime_type:"text/x-ttcn-asn"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Closure Templates",identifiers:["soy"],codemirror_mode:"soy",codemirror_mime_type:"text/x-soy"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"F#",identifiers:["fsharp","fs","fsi","fsx"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-fsharp"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"Groovy Server Pages",identifiers:["gsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+Django",identifiers:["django","htmldjango","njk","nunjucks","jinja","mustache"],codemirror_mode:"django",codemirror_mime_type:"text/x-django"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haml",identifiers:["haml"],codemirror_mode:"haml",codemirror_mime_type:"text/x-haml"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Latte",identifiers:["latte"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell-literate",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"OCaml",identifiers:["ocaml","ml","eliom","eliomi","mli","mll","mly"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiarmor",codemirror_mime_type:"application/pgp"},{label:"Pug",identifiers:["pug","jade"],codemirror_mode:"pug",codemirror_mime_type:"text/x-pug"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"RPM Spec",identifiers:["specfile","spec"],codemirror_mode:"rpm",codemirror_mime_type:"text/x-rpm-spec"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Slim",identifiers:["slim"],codemirror_mode:"slim",codemirror_mime_type:"text/x-slim"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Smarty",identifiers:["smarty","tpl"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Standard ML",identifiers:["sml","ML","fun","sig"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"Twig",identifiers:["twig"],codemirror_mode:"twig",codemirror_mime_type:"text/x-twig"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"WebIDL",identifiers:["webidl"],codemirror_mode:"webidl",codemirror_mime_type:"text/x-webidl"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xquery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"reStructuredText",identifiers:["restructuredtext","rst","rest"],codemirror_mode:"rst",codemirror_mime_type:"text/x-rst"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}].map((e=>({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type}))),E={name:"",mode:"",label:"none"};function k(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const C=x.map(k),S=["default","material"],A={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class T extends a.default.Component{constructor(...e){var t;super(...e),_(this,"keys",this.getKeys(this.props.field)),_(this,"state",{isActive:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(A.keyMap)||"default",settingsVisible:!1,codeMirrorKey:(0,d.v4)(),theme:localStorage.getItem(A.theme)||S[S.length-1],lastKnownValue:this.valueIsMap()?null===(t=this.props.value)||void 0===t?void 0:t.get(this.keys.code):this.props.value}),_(this,"visibility",{isInvisibleOnInit:!0===this.props.isParentListCollapsed,isRefreshedAfterInvisible:!1}),_(this,"getLanguageByName",(e=>x.find((t=>t.name===e)))),_(this,"getKeyMapOptions",(()=>Object.keys(p.default.keyMap).sort().filter((e=>["emacs","vim","sublime","default"].includes(e))).map((e=>({value:e,label:e}))))),_(this,"getInitialLang",(()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n})),_(this,"allowLanguageSelection",!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection")),_(this,"toValue",this.valueIsMap()?(e,t)=>(this.props.value||(0,c.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value),_(this,"showSettings",(()=>{this.setState({settingsVisible:!0})})),_(this,"hideSettings",(()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()})),_(this,"handleFocus",(()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()})),_(this,"handleBlur",(()=>{this.setInactive(),this.props.setInactiveStyle()})),_(this,"setActive",(()=>this.setState({isActive:!0}))),_(this,"setInactive",(()=>this.setState({isActive:!1})))}shouldComponentUpdate(e,t){return!(0,i.default)(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper||this.visibility.isInvisibleOnInit&&!this.visibility.isRefreshedAfterInvisible}componentDidMount(){this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t),!this.visibility.isInvisibleOnInit||this.visibility.isRefreshedAfterInvisible||this.props.isParentListCollapsed||this.refreshCodeMirrorInstance()}updateCodeMirrorProps(e){const t=function(e,t,n){const i=(["lang","theme","keyMap"]||(0,o.default)(Object.keys(e),Object.keys(t))).reduce(((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n)),{});if(!(0,r.default)(i))return i}(e,this.state);t&&this.handleChangeCodeMirrorProps(t)}refreshCodeMirrorInstance(){var e;null!==(e=this.cm)&&void 0!==e&&e.getWrapperElement().offsetHeight&&(this.cm.refresh(),this.visibility.isRefreshedAfterInvisible=!0)}getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,c.Map)()).toJS();return w(w({},t),n)}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e){const{onChange:t}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};t&&n(52106)(`./${t}/${t}.js`)}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:(0,d.v4)()},(()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)}))}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(A[t],e[t]);e.lang&&this.valueIsMap()&&t(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:c}=this.state,d=this.getLanguageByName(i),p=(null==d?void 0:d.mimeType)||(null==d?void 0:d.mode);return(0,u.jsx)(u.ClassNames,null,(({css:i,cx:y})=>(0,u.jsx)("div",{className:y(e,i`
|
||
${h.default};
|
||
${m.default};
|
||
${"\n padding: 0;\n"};
|
||
`)},!o&&(0,u.jsx)(v.default,{onClick:this.showSettings}),o&&(0,u.jsx)(g.default,{hideSettings:this.hideSettings,forID:t,modes:C,mode:k(d||E),theme:S.find((e=>e===l)),themes:S,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),(0,u.jsx)(f.UnControlled,{key:s,id:t,className:i`
|
||
height: 100%;
|
||
border-radius: 0 3px 3px;
|
||
overflow: hidden;
|
||
|
||
.CodeMirror {
|
||
height: auto !important;
|
||
cursor: text;
|
||
min-height: 300px;
|
||
}
|
||
|
||
.CodeMirror-scroll {
|
||
min-height: 300px;
|
||
}
|
||
`,options:w(w({lineNumbers:!0},n.codeMirrorConfig),{},{extraKeys:w({"Shift-Tab":"indentLess",Tab:"indentMore"},n.codeMirrorConfig.extraKeys||{}),theme:l,mode:p,keyMap:a,viewportMargin:1/0}),detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:c,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur}))))}}t.default=T,_(T,"propTypes",{field:l.default.map.isRequired,onChange:s.default.func.isRequired,value:s.default.node,forID:s.default.string.isRequired,classNameWrapper:s.default.string.isRequired,widget:s.default.object.isRequired,isParentListCollapsed:s.default.bool})},31595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(85505)),i=(l(n(12244)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,(0,s.jsx)("pre",null,(0,s.jsx)("code",null,(t=e.value,n=e.field,(0,r.default)(t)?t:o.Map.isMap(t)?t.get(n.getIn(["keys","code"],"code"),""):""))));var t,n}u.propTypes={value:i.default.node},t.default=u},33081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(70894)),i=(a(n(12244)),n(30762)),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("button",{target:"epeop3r0",label:"StyledSettingsButton"})(i.buttons.button,";",i.buttons.default,";",i.shadows.drop,";display:block;position:absolute;z-index:",i.zIndex.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",i.Icon,"{position:relative;top:1px;}");t.default=function({showClose:e,onClick:t}){return(0,o.jsx)(s,{onClick:t},(0,o.jsx)(i.Icon,{type:e?"close":"settings",size:"small"}))}},8674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(12244)),o=d(n(31776)),a=d(n(87202)),s=n(30762),l=d(n(33081)),u=d(n(15389)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e147sj9s2",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",s.zIndex.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",s.shadows.drop,";"),p=(0,r.default)("label",{target:"e147sj9s1",label:"SettingsFieldLabel"})(s.text.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),h=(0,r.default)("h3",{target:"e147sj9s0",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"});function m({value:e,options:t,onChange:n,forID:r,type:i,autoFocus:a}){return(0,c.jsx)(o.default,{inputId:`${r}-select-${i}`,styles:u.default,value:e,options:t,onChange:e=>n(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:a})}t.default=function({hideSettings:e,forID:t,modes:n,mode:r,theme:o,themes:s,keyMap:u,keyMaps:d,allowLanguageSelection:g,onChangeLang:v,onChangeTheme:y,onChangeKeyMap:b}){return(0,c.jsx)(f,{onKeyDown:t=>(0,a.default)("esc",t)&&e()},(0,c.jsx)(l.default,{onClick:e,showClose:!0}),g&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Field Settings"),(0,c.jsx)(p,{htmlFor:`${t}-select-mode`},"Mode"),(0,c.jsx)(m,{type:"mode",forID:t,value:r,options:n,onChange:v,autoFocus:!0})),(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Global Settings"),s&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(p,{htmlFor:`${t}-select-theme`},"Theme"),(0,c.jsx)(m,{type:"theme",forID:t,value:{value:o,label:o},options:s.map((e=>({value:e,label:e}))),onChange:y,autoFocus:!g})),(0,c.jsx)(p,{htmlFor:`${t}-select-keymap`},"KeyMap"),(0,c.jsx)(m,{type:"keymap",forID:t,value:u,options:d,onChange:b})))}},15646:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(41740)),i=a(n(31595)),o=a(n(40557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"code",controlComponent:r.default,previewComponent:i.default,schema:o.default,allowMapValue:!0,codeMirrorConfig:{}},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},15389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30762);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const a=o(o({},r.reactSelectStyles),{},{container:e=>o(o({},r.reactSelectStyles.container(e)),{},{"margin-top":"2px"}),control:e=>o(o({},r.reactSelectStyles.control(e)),{},{border:r.borders.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>o(o({},r.reactSelectStyles.dropdownIndicator(e)),{},{padding:"4px"}),option:(e,t)=>o(o({},r.reactSelectStyles.option(e,t)),{},{padding:0,paddingLeft:"8px"}),menu:e=>o(o({},r.reactSelectStyles.menu(e)),{},{margin:"2px 0"}),menuList:e=>o(o({},e),{},{"max-height":"200px"})});t.default=a},40557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}}},2025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(12244)),o=c(n(13980)),a=c(n(20977)),s=c(n(80184)),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(0,u.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},(0,u.jsx)("path",{fill:"rgb(122, 130, 145)",d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))}const p=(0,r.default)("div",{target:"e1bv0wj45",label:"ClearButton"})("position:absolute;right:6px;z-index:",l.zIndex.zIndex1000,";padding:8px;margin-top:11px;"),h=(0,r.default)("div",{target:"e1bv0wj44",label:"ClearButtonWrapper"})({name:"pw7jst",styles:"position:relative;width:100%"}),m=(0,r.default)("div",{target:"e1bv0wj43",label:"ColorSwatchBackground"})("position:absolute;z-index:",l.zIndex.zIndex1,";background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==');height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;"),g=(0,r.default)("div",{target:"e1bv0wj42",label:"ColorSwatch"})("position:absolute;z-index:",l.zIndex.zIndex2,";background:",(e=>e.background),";cursor:pointer;height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;border:2px solid rgb(223, 223, 227);text-align:center;font-size:27px;line-height:1;padding-top:4px;user-select:none;color:",(e=>e.color),";"),v=(0,r.default)("div",{target:"e1bv0wj41",label:"ColorPickerContainer"})("position:absolute;z-index:",l.zIndex.zIndex1000,";margin-top:48px;margin-left:12px;"),y=(0,r.default)("div",{target:"e1bv0wj40",label:"ClickOutsideDiv"})({name:"yfl0u7",styles:"position:fixed;top:0;right:0;bottom:0;left:0"});class b extends i.default.Component{constructor(...e){super(...e),d(this,"state",{showColorPicker:!1}),d(this,"handleClick",(()=>{this.setState({showColorPicker:!this.state.showColorPicker})})),d(this,"handleClear",(()=>{this.props.onChange("")})),d(this,"handleClose",(()=>{this.setState({showColorPicker:!1})})),d(this,"handleChange",(e=>{const t=e.rgb.a<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;this.props.onChange(t)}))}render(){const{forID:e,value:t,field:n,onChange:r,classNameWrapper:o,setActiveStyle:l,setInactiveStyle:c}=this.props,d=n.get("allowInput",!1),b=!d&&t;return(0,u.jsx)(i.default.Fragment,null," ",b&&(0,u.jsx)(h,null,(0,u.jsx)(p,{onClick:this.handleClear},(0,u.jsx)(f,null))),(0,u.jsx)(m,null),(0,u.jsx)(g,{background:(0,s.default)(this.props.value).isValid()?this.props.value:"#fff",color:(0,s.default)(this.props.value).isValid()?"rgba(255, 255, 255, 0)":"rgb(223, 223, 227)",onClick:this.handleClick},"?"),this.state.showColorPicker&&(0,u.jsx)(v,null,(0,u.jsx)(y,{onClick:this.handleClose}),(0,u.jsx)(a.default,{color:t||"",onChange:this.handleChange,disableAlpha:!n.get("enableAlpha",!1)})),(0,u.jsx)("input",{type:"text",id:e,className:o,value:t||"",onChange:e=>r(e.target.value),onFocus:l,onBlur:c,style:{paddingLeft:"75px",paddingRight:"70px",color:!d&&"#bbb"},onClick:d?void 0:this.handleClick,readOnly:!d}))}}t.default=b,d(b,"propTypes",{onChange:o.default.func.isRequired,forID:o.default.string,value:o.default.node,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired}),d(b,"defaultProps",{value:""})},65964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},58335:(e,t,n)=>{"use strict";t.ZP=void 0;var r=o(n(2025)),i=o(n(65964));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"color",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=s},73811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(12244)),i=d(n(13980)),o=n(28165),a=d(n(28879)),s=d(n(89945)),l=d(n(33147)),u=d(n(10264)),c=n(30762);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default.extend(s.default),a.default.extend(l.default),a.default.extend(u.default);var p={name:"1tfa1p6-Buttons",styles:"display:flex;gap:20px;width:fit-content;label:Buttons;"};function h({t:e,handleChange:t,getNow:n}){return(0,o.jsx)("div",{css:p},(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t(n()),"data-testid":"now-button"},e("editor.editorWidgets.datetime.now")),(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t(""),"data-testid":"clear-button"},e("editor.editorWidgets.datetime.clear")))}var m={name:"1mn76l5-DateTimeControl",styles:"font-size:0.8em;color:#666;label:DateTimeControl;"},g={name:"ptu1mf-DateTimeControl",styles:"display:flex!important;gap:20px;align-items:center;label:DateTimeControl;"};class v extends r.default.Component{constructor(...e){super(...e),f(this,"isUtc",this.props.field.get("picker_utc")||!1),f(this,"isValidDate",(e=>(0,a.default)(e,this.getFormat().inputFormat).isValid()||""===e)),f(this,"handleChange",(e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props;if(""===e)t("");else{const{format:n,inputFormat:r}=this.getFormat();t((0,a.default)(e,r).format(n))}})),f(this,"onInputChange",(e=>{const t=e.target.value;this.handleChange(t)}))}componentDidMount(){const{value:e}=this.props;"{{now}}"===e&&this.handleChange(this.getNow())}escapeZ(e){return/Z(?![\]])/.test(e)?e.replace("Z","[Z]"):e}getFormat(){const{field:e}=this.props;let t="datetime-local",n="YYYY-MM-DDTHH:mm",r="YYYY-MM-DDTHH:mm:ss.SSS[Z]",i=null==e?void 0:e.get("format"),o=null==e?void 0:e.get("date_format"),a=null==e?void 0:e.get("time_format");return!0===o&&(o="YYYY-MM-DD"),!0===a&&(a="HH:mm"),this.isUtc&&(i=this.escapeZ(i),o=this.escapeZ(o),a=this.escapeZ(a)),"string"==typeof o&&"string"==typeof a?r=`${o}T${a}`:"string"==typeof a?(t="time",r=a):"string"==typeof o&&(t="date",r=o),"string"==typeof i&&(r=i,t="datetime-local"),!1===o&&(t="time"),!1===a&&(t="date"),"datetime-local"===t&&(n="YYYY-MM-DDTHH:mm"),"date"===t&&(n="YYYY-MM-DD"),"time"===t&&(n="HH:mm"),{format:r,inputType:t,inputFormat:n}}getNow(){const{inputFormat:e}=this.getFormat();return this.isUtc?a.default.utc().format(e):(0,a.default)().format(e)}formatInputValue(e){if(""===e)return e;const{format:t,inputFormat:n}=this.getFormat(),r=this.isUtc?a.default.utc(e,t).format(n):(0,a.default)(e,t).format(n);return this.isValidDate(r)?r:this.isUtc?a.default.utc(e).format(n):(0,a.default)(e).format(n)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i,t:a,isDisabled:s}=this.props,{inputType:l}=this.getFormat();return(0,o.jsx)("div",{className:n,css:g},(0,o.jsx)("input",{id:e,"data-testid":e,type:l,value:t?this.formatInputValue(t):"",onChange:this.onInputChange,onFocus:r,onBlur:i,disabled:s}),this.isUtc&&(0,o.jsx)("span",{css:m},"UTC"),!s&&(0,o.jsx)(h,{t:a,handleChange:e=>this.handleChange(e),getNow:()=>this.getNow()}))}}f(v,"propTypes",{field:i.default.object.isRequired,forID:i.default.string,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.oneOfType([i.default.object,i.default.string]),t:i.default.func.isRequired,isDisabled:i.default.bool}),f(v,"defaultProps",{isDisabled:!1}),t.default=v},94870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])},t.default=s},23827:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(73811)),i=a(n(94870)),o=a(n(57217));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"datetime",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},57217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}}},38437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(12244)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({href:e,path:t})=>(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank"},t)),{target:"ecp3s3o0",label:"FileLink"})({name:"4zleql",styles:"display:block"});function c({values:e,getAsset:t,field:n}){return(0,s.jsx)("div",null,e.map((e=>(0,s.jsx)(u,{key:e,path:e,href:t(e,n)}))))}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?(0,s.jsx)(c,{values:t,getAsset:n,field:r}):(0,s.jsx)(u,{key:t,path:t,href:n(t,r)})}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},76889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetFile=void 0;var r=a(n(28049)),i=a(n(38437)),o=a(n(14557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u=t.DecapCmsWidgetFile={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"file",controlComponent:l,previewComponent:i.default,schema:o.default},e)},controlComponent:l,previewComponent:i.default,withFileControl:r.default};t.default=u},14557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},28049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({forImage:e}={}){var t;return t=class extends o.default.Component{constructor(t){super(t),w(this,"handleChange",(t=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;t.preventDefault();const o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})})),w(this,"handleUrl",(e=>t=>{t.preventDefault();const n=window.prompt(this.props.t(`editor.editorWidgets.${e}.promptUrl`));if(n)return this.props.onChange(n)})),w(this,"handleRemove",(e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange("")))),w(this,"onRemoveOne",(e=>()=>{const t=N(this.props.value);return t.splice(e,1),this.props.onChange(function(e){return Array.isArray(e)?e.length:u.List.isList(e)?e.size:e?1:0}(t)>0?[...t]:null)})),w(this,"onReplaceOne",(t=>()=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props,o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),replaceIndex:t,allowMultiple:!1,config:o.get("config"),field:n})})),w(this,"getMediaLibraryFieldOptions",(()=>{const{field:e}=this.props;return e.hasIn(["options","media_library"])?(F(e),e.getIn(["options","media_library"],(0,u.Map)())):e.get("media_library",(0,u.Map)())})),w(this,"allowsMultiple",(()=>{const e=this.getMediaLibraryFieldOptions();return e.get("config",!1)&&e.get("config").get("multiple",!1)})),w(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n}=this.props,r=(0,h.arrayMoveImmutable)(n,e,t);return this.props.onChange(r)})),w(this,"getValidateValue",(()=>{const{value:e}=this.props;return e?j(e)?e.map((e=>(0,p.basename)(e))):(0,p.basename)(e):e})),w(this,"renderFileLink",(e=>{const t=x;if(!e||e.length<=t)return e;const n=`${e.slice(0,t/2)}…${e.slice(-t/2+1)}`;return(0,l.jsx)(R,{href:e,rel:"noopener",target:"_blank"},n)})),w(this,"renderFileLinks",(()=>{const{value:e}=this.props;return j(e)?(0,l.jsx)(M,null,(0,l.jsx)(D,null,e.map((e=>(0,l.jsx)("li",{key:e},this.renderFileLink(e)))))):(0,l.jsx)(M,null,this.renderFileLink(e))})),w(this,"renderImages",(()=>{const{getAsset:e,value:t,field:n}=this.props,r=function(e){if(!j(e))return e;return N(e).map((e=>({id:(0,c.v4)(),value:e})))}(t);if(j(t))return(0,l.jsx)(P,{items:r,onSortEnd:this.onSortEnd,onRemoveOne:this.onRemoveOne,onReplaceOne:this.onReplaceOne,distance:4,getAsset:e,field:n,axis:"xy",lockToContainerEdges:!0});const i=e(t,n);return(0,l.jsx)(E,null,(0,l.jsx)(S,{src:i||""}))})),w(this,"renderSelection",(t=>{const{t:n,field:r}=this.props,i=this.allowsMultiple();return(0,l.jsx)("div",null,e?this.renderImages():null,(0,l.jsx)("div",null,e?null:this.renderFileLinks(),(0,l.jsx)(I,{onClick:this.handleChange},n(`editor.editorWidgets.${t}.${this.allowsMultiple()?"addMore":"chooseDifferent"}`)),r.get("choose_url",!0)&&!this.allowsMultiple()?(0,l.jsx)(I,{onClick:this.handleUrl(t)},n(`editor.editorWidgets.${t}.replaceUrl`)):null,(0,l.jsx)(L,{onClick:this.handleRemove},n(`editor.editorWidgets.${t}.remove${i?"All":""}`))))})),w(this,"renderNoSelection",(e=>{const{t,field:n}=this.props;return(0,l.jsx)(o.default.Fragment,null,(0,l.jsx)(I,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose${this.allowsMultiple()?"Multiple":""}`)),n.get("choose_url",!0)?(0,l.jsx)(I,{onClick:this.handleUrl(e)},t(`editor.editorWidgets.${e}.chooseUrl`)):null)})),this.controlID=(0,c.v4)()}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}render(){const{value:t,classNameWrapper:n}=this.props,r=e?"image":"file";return(0,l.jsx)("div",{className:n},(0,l.jsx)("span",null,t?this.renderSelection(r):this.renderNoSelection(r)))}},w(t,"propTypes",{field:a.default.object.isRequired,getAsset:a.default.func.isRequired,mediaPaths:s.default.map.isRequired,onAddAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onRemoveInsertedMedia:a.default.func.isRequired,onOpenMediaLibrary:a.default.func.isRequired,onClearMediaControl:a.default.func.isRequired,onRemoveMediaControl:a.default.func.isRequired,classNameWrapper:a.default.string.isRequired,value:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string),s.default.listOf(a.default.string)]),t:a.default.func.isRequired}),w(t,"defaultProps",{value:""}),t};var r=b(n(70894)),i=b(n(25291)),o=b(n(12244)),a=b(n(13980)),s=b(n(19155)),l=n(28165),u=n(46670),c=n(29987),d=n(13856),f=n(30762),p=n(33806),h=n(62045),m=n(61540),g=n(66548),v=n(82851),y=n(88366);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}const x=50,E=(0,r.default)("div",{target:"e1hax4ql7",label:"ImageWrapper"})("flex-basis:155px;width:155px;height:100px;margin-right:20px;margin-bottom:20px;border:",f.borders.textField,";border-radius:",f.lengths.borderRadius,";overflow:hidden;",f.effects.checkerboard,";",f.shadows.inset,";cursor:",(e=>e.sortable?"pointer":"auto"),";"),k=(0,r.default)("div",{target:"e1hax4ql6",label:"SortableImageButtonsWrapper"})({name:"1ekgmip",styles:"display:flex;justify-content:center;column-gap:10px;margin-right:20px;margin-top:-10px;margin-bottom:10px"}),C=(0,r.default)("img",{target:"e1hax4ql5",label:"StyledImage"})({name:"ukfjzf",styles:"width:100%;height:100%;object-fit:contain"});function S(e){return(0,l.jsx)(C,_({role:"presentation"},e))}function A({onRemove:e,onReplace:t}){return(0,l.jsx)(k,null,(0,l.jsx)(f.IconButton,{size:"small",type:"media",onClick:t}),(0,l.jsx)(f.IconButton,{size:"small",type:"close",onClick:e}))}function T(e){const{attributes:t,listeners:n,setNodeRef:r,transform:i,transition:o}=(0,g.useSortable)({id:e.id}),a={transform:v.CSS.Transform.toString(i),transition:o},{itemValue:s,getAsset:u,field:c,onRemove:d,onReplace:f}=e;return(0,l.jsx)("div",_({ref:r,style:a},t,n),(0,l.jsx)(E,{sortable:!0},(0,l.jsx)(S,{src:u(s,c)||""})),(0,l.jsx)(A,{item:s,onRemove:d,onReplace:f}))}var O={name:"a42x49-SortableMultiImageWrapper",styles:"display:flex;flex-wrap:wrap;label:SortableMultiImageWrapper;"};function P({items:e,getAsset:t,field:n,onSortEnd:r,onRemoveOne:i,onReplaceOne:o}){const a={distance:4},s=(0,m.useSensors)((0,m.useSensor)(m.MouseSensor,{activationConstraint:a}),(0,m.useSensor)(m.TouchSensor,{activationConstraint:a}));return(0,l.jsx)("div",{css:O},(0,l.jsx)(m.DndContext,{modifiers:[y.restrictToParentElement],collisionDetection:m.closestCenter,sensors:s,onDragEnd:function({active:t,over:n}){r({oldIndex:e.findIndex((e=>e.id===t.id)),newIndex:e.findIndex((e=>e.id===n.id))})}},(0,l.jsx)(g.SortableContext,{items:e},e.map(((e,r)=>(0,l.jsx)(T,{key:e.id,id:e.id,index:r,itemValue:e.value,getAsset:t,field:n,onRemove:i(r),onReplace:o(r)}))))))}const R=(0,r.default)("a",{target:"e1hax4ql4",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),M=(0,r.default)("div",{target:"e1hax4ql3",label:"FileLinks"})({name:"cn3xcj",styles:"margin-bottom:12px"}),D=(0,r.default)("ul",{target:"e1hax4ql2",label:"FileLinkList"})({name:"ffhm6p",styles:"list-style-type:none"}),I=(0,r.default)("button",{target:"e1hax4ql1",label:"FileWidgetButton"})(f.buttons.button,";",f.components.badge,";margin-bottom:12px;"),L=(0,r.default)("button",{target:"e1hax4ql0",label:"FileWidgetButtonRemove"})(f.buttons.button,";",f.components.badgeDanger,";");function j(e){return Array.isArray(e)||u.List.isList(e)}function N(e){return u.List.isList(e)?e.toArray():null!=e?e:""}const F=(0,i.default)((e=>console.warn(d.oneLine`
|
||
Decap CMS config: ${e.get("name")} field: property "options" has been deprecated for the
|
||
${e.get("widget")} widget and will be removed in the next major release. Rather than
|
||
\`field.options.media_library\`, apply media library options for this widget under
|
||
\`field.media_library\`.
|
||
`)))},60699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(12244)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({src:e})=>(0,s.jsx)("img",{src:e||"",role:"presentation"})),{target:"eeuykvb0",label:"StyledImage"})({name:"waguu7",styles:"display:block;max-width:100%;height:auto"});function c({getAsset:e,value:t,field:n}){return(0,s.jsx)(u,{src:e(t,n)})}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?t.map(((e,t)=>(0,s.jsx)(c,{key:t,value:e,getAsset:n,field:r}))):(0,s.jsx)(c,e)}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},79386:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(76889)),i=a(n(60699)),o=a(n(79368));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.withFileControl({forImage:!0}),u={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"image",controlComponent:l,previewComponent:i.default,schema:o.default},e)},controlComponent:l,previewComponent:i.default};t.ZP=u},79368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},11761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(70894)),i=_(n(74930)),o=_(n(45455)),a=_(n(83465)),s=_(n(12244)),l=_(n(13980)),u=_(n(19155)),c=n(28165),d=n(46670),f=n(29987),p=_(n(16044)),h=n(61540),m=n(66548),g=n(88366),v=n(82851),y=n(30762),b=n(1704),w=n(95639);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}const k=p.default.controlComponent,C=(0,r.default)("div",{target:"e11zrb3c2",label:"ListItem"})(""),S=(0,r.default)(y.ListItemTopBar,{target:"e11zrb3c1",label:"StyledListItemTopBar"})("background-color:",y.colors.textFieldBorder,";"),A=(0,r.default)("div",{target:"e11zrb3c0",label:"NestedObjectLabel"})("display:",(e=>e.collapsed?"block":"none"),";border-top:0;color:",(e=>e.error?y.colors.errorText:"inherit"),";background-color:",y.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",y.lengths.borderRadius," ",y.lengths.borderRadius,";"),T=`\n padding: ${y.lengths.objectWidgetTopBarContainerPadding};\n `,O={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function P({items:e,children:t,onSortEnd:n,keys:r}){const i={distance:4},o=(0,h.useSensors)((0,h.useSensor)(h.MouseSensor,{activationConstraint:i}),(0,h.useSensor)(h.TouchSensor,{activationConstraint:i}));return(0,c.jsx)("div",null,(0,c.jsx)(h.DndContext,{modifiers:[g.restrictToParentElement],collisionDetection:h.closestCenter,sensors:o,onDragEnd:function({active:e,over:t}){n({oldIndex:r.indexOf(e.id),newIndex:r.indexOf(t.id)})}},(0,c.jsx)(m.SortableContext,{items:e},t)))}function R(e){const{setNodeRef:t,transform:n,transition:r}=(0,m.useSortable)({id:e.id}),i={transform:v.CSS.Transform.toString(n),transition:r},{collapsed:o}=e;return(0,c.jsx)(C,{sortable:!0,ref:t,style:i,css:[O.listControlItem,o&&O.listControlItemCollapsed,";label:SortableListItem;"]},e.children)}function M({children:e,id:t}){const{attributes:n,listeners:r}=(0,m.useSortable)({id:t});return(0,c.jsx)("div",E({},n,r),e)}const D="SINGLE",I="MULTIPLE",L="MIXED";function j(e,t,n,r){const i=b.stringTemplate.addFileTemplateFields(t.get("path"),r.set("fields.label",n));return b.stringTemplate.compileStringTemplate(e,null,"",i)}function N(e,t){return!!d.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function F({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const a=`${e.get("label",e.get("name"))}`;return(0,c.jsx)(y.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},a," ",i?` (${o("editor.editorControl.field.optional")})`:"")}class B extends s.default.Component{constructor(e){super(e),x(this,"validations",[]),x(this,"valueToString",(e=>{let t;return d.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")})),x(this,"getValueType",(()=>{const{field:e}=this.props;return e.get("fields")?I:e.get("field")?D:e.get(w.TYPES_KEY)?L:null})),x(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),x(this,"handleChange",(e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value.trim(),i=r?r.split(","):[];r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=this.valueToString(i);this.setState({value:o}),t((0,d.List)(i.map((e=>e.trim()))))})),x(this,"handleFocus",(()=>{this.props.setActiveStyle()})),x(this,"handleBlur",(e=>{const t=e.target.value.split(",").map((e=>e.trim())).filter((e=>e));this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()})),x(this,"handleAdd",(e=>{e.preventDefault();const{field:t}=this.props,n=this.getValueType()===D?this.singleDefault():(0,d.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(n)})),x(this,"singleDefault",(()=>this.props.field.getIn(["field","default"],null))),x(this,"multipleDefault",(e=>this.getFieldsDefault(e))),x(this,"handleAddType",((e,t)=>{const n=(0,d.fromJS)(this.mixedDefault(t,e));this.addItem(n)})),x(this,"mixedDefault",((e,t)=>{const n=this.props.field.get(w.TYPES_KEY).find((e=>e.get("name")===t)),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})})),x(this,"getFieldsDefault",((e,t={})=>e.reduce(((e,t)=>{const n=t.get("field")||t.get("fields"),r="object"==t.get("widget"),i=t.get("name"),a=t.get("default",null);if(d.List.isList(n)&&r){const t=this.getFieldsDefault(n);return!(0,o.default)(t)&&(e[i]=t),e}if(d.Map.isMap(n)&&r){const t=this.getFieldsDefault([n]);return!(0,o.default)(t)&&(e[i]=t),e}return null!==a&&(e[i]=a),e}),t))),x(this,"addItem",(e=>{const{value:t,onChange:n,field:r}=this.props,i=r.get("add_to_top",!1),o=(0,f.v4)();this.setState({itemsCollapsed:i?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:i?[o,...this.state.keys]:[...this.state.keys,o]});const a=t||(0,d.List)();n(i?a.unshift(e):a.push(e))})),x(this,"processControlRef",(e=>{if(!e)return;const{validate:t,props:{validationKey:n}}=e;this.validations.push({key:n,validate:t})})),x(this,"validate",(()=>{this.getValueType()?this.validations.forEach((e=>{e.validate()})):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())})),x(this,"validateSize",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!(e.get("required",!0)||null!=t&&t.size))return[];const o=b.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?[o]:[]})),x(this,"getObjectValue",(e=>this.props.value.get(e)||(0,d.Map)())),x(this,"handleRemove",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,{value:r,metadata:i,onChange:o,field:a,clearFieldErrors:s}=this.props,l=a.get("name"),u=this.getValueType()===D?r.get(e):r.get(e).valueSeq(),c=i&&!i.isEmpty()?{[l]:i.removeIn(u)}:i;n.splice(e,1),this.validations=[],this.setState({itemsCollapsed:[...n],keys:Array.from({length:r.size-1},(()=>(0,f.v4)()))}),o(r.remove(e),c),s()})),x(this,"handleItemCollapseToggle",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map(((t,n)=>e===n?!t:t));this.setState({itemsCollapsed:r})})),x(this,"handleCollapseAllToggle",(e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every((e=>!0===e));if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})})),x(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n,clearFieldErrors:r}=this.props,{itemsCollapsed:i,keys:o}=this.state,a=n.get(e),s=n.delete(e).insert(t,a);this.props.onChange(s);const l=i[e];i.splice(e,1);const u=[...i];u.splice(t,0,l);const c=o.map(((n,r)=>r===e||r===t?(0,f.v4)():n));this.setState({itemsCollapsed:u,keys:c}),r(),this.validations=this.validations.filter((e=>c.includes(e.key)))})),x(this,"hasError",(e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some((t=>t.some((t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))))})),x(this,"renderItem",((e,t)=>{const{classNameWrapper:n,editorControl:r,onValidateObject:i,metadata:o,clearFieldErrors:s,fieldsErrors:l,controlRef:u,resolveWidget:d,parentIds:f,forID:p,t:h}=this.props,{itemsCollapsed:m,keys:g}=this.state,v=m[t],y=g[t];let b=this.props.field;const _=this.hasError(t),x=this.getValueType()===L;return x&&(b=(0,w.getTypedFieldForValue)(b,e),!b)?this.renderErroneousTypedItem(t,e):(0,c.jsx)(R,{css:[O.listControlItem,v&&O.listControlItemCollapsed,";label:ListControl;"],index:t,key:y,id:y,keys:g},x&&(0,c.jsx)(F,{field:b,isActive:!1,hasErrors:_,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===b.get("required"),t:h}),(0,c.jsx)(S,{collapsed:v,onCollapseToggle:(0,a.default)(this.handleItemCollapseToggle,t),dragHandle:M,id:y,onRemove:(0,a.default)(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${y}`}),(0,c.jsx)(A,{collapsed:v,error:_},this.objectLabel(e)),(0,c.jsx)(c.ClassNames,null,(({css:a,cx:h})=>(0,c.jsx)(k,{classNameWrapper:h(n,{[a`
|
||
${"\n display: none;\n "};
|
||
`]:v}),value:e,field:b,onChangeObject:this.handleChangeFor(t),editorControl:r,resolveWidget:d,metadata:o,forList:!0,onValidateObject:i,clearFieldErrors:s,fieldsErrors:l,ref:this.processControlRef,controlRef:u,validationKey:y,collapsed:v,"data-testid":`object-control-${y}`,hasError:_,parentIds:[...f,p,y]}))))}));const{field:t,value:n}=e,r=t.get("collapsed",!0),s=n&&Array(n.size).fill(r)||[],l=n&&Array.from({length:n.size},(()=>(0,f.v4)()))||[];this.state={listCollapsed:r,itemsCollapsed:s,value:this.valueToString(n),keys:l}}shouldComponentUpdate(){return!0}handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==D||this.getValueType()===D&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case L:{if(!N(t,e))return;const r=(0,w.getTypedFieldForValue)(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?j(o,n,i,e):i}case D:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,d.fromJS)({[r.get("name")]:e});return o?j(o,n,i,a):i}case I:{if(!N(t,e))return;const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?j(a,n,o,e):o)||`No ${i.get("name")}`).toString()}}return""}renderErroneousTypedItem(e,t){const n=this.props.field,r=(0,w.getErrorMessageForTypedFieldAndValue)(n,t),i=`item-${e}`;return(0,c.jsx)(R,{css:[O.listControlItem,O.listControlItemCollapsed,";label:ListControl;"],index:e,key:i},(0,c.jsx)(S,{onCollapseToggle:null,onRemove:(0,a.default)(this.handleRemove,e,i),dragHandle:M,id:i}),(0,c.jsx)(A,{collapsed:!0,error:!0},r))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:r,t:i}=this.props,{itemsCollapsed:o,listCollapsed:a,keys:s}=this.state,l=e||(0,d.List)(),u=n.get("label",n.get("name")),f=n.get("label_singular")||n.get("label",n.get("name")),p=1===l.size?f.toLowerCase():u.toLowerCase(),h=n.get("minimize_collapsed",!1),m=o.every((e=>!0===e))&&(a||!h),g=s.map((e=>({id:e})));return(0,c.jsx)(c.ClassNames,null,(({cx:e,css:o})=>(0,c.jsx)("div",{id:t,className:e(r,o`
|
||
${T}
|
||
`)},(0,c.jsx)(y.ObjectWidgetTopBar,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(w.TYPES_KEY,null),onAddType:e=>this.handleAddType(e,(0,w.resolveFieldKeyType)(n)),heading:`${l.size} ${p}`,label:f.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:m,t:i}),(!m||!h)&&(0,c.jsx)(P,{items:g,keys:s,onSortEnd:this.onSortEnd},l.map(this.renderItem)))))}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return(0,c.jsx)("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}t.default=B,x(B,"propTypes",{metadata:u.default.map,onChange:l.default.func.isRequired,onChangeObject:l.default.func.isRequired,onValidateObject:l.default.func.isRequired,validate:l.default.func.isRequired,value:u.default.list,field:l.default.object,forID:l.default.string,controlRef:l.default.func,mediaPaths:u.default.map.isRequired,getAsset:l.default.func.isRequired,onOpenMediaLibrary:l.default.func.isRequired,onAddAsset:l.default.func.isRequired,onRemoveInsertedMedia:l.default.func.isRequired,classNameWrapper:l.default.string.isRequired,setActiveStyle:l.default.func.isRequired,setInactiveStyle:l.default.func.isRequired,editorControl:l.default.elementType.isRequired,resolveWidget:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,fieldsErrors:u.default.map.isRequired,entry:u.default.map.isRequired,t:l.default.func}),x(B,"defaultProps",{value:(0,d.List)(),parentIds:[]})},57677:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(16044)),i=a(n(11761)),o=a(n(25698));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.previewComponent,u={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"list",controlComponent:i.default,previewComponent:l,schema:o.default},e)},controlComponent:i.default,previewComponent:l};t.ZP=u},25698:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}}},95639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEY=t.TYPES_KEY=t.DEFAULT_TYPE_KEY=void 0,t.getErrorMessageForTypedFieldAndValue=function(e,t){const n=o(e),r=t.get(n);let i;return i=r?`Error: item has illegal '${n}' property: '${r}'`:`Error: item has no '${n}' property`,i},t.getTypedFieldForValue=function(e,t){const r=o(e),i=e.get(n),a=t.get(r);return i.find((e=>e.get("name")===a))},t.resolveFieldKeyType=o,t.resolveFunctionForTypedField=function(e){const t=o(e),r=e.get(n);return e=>{const n=e.get(t);return r.find((e=>e.get("name")===n))}};const n=t.TYPES_KEY="types",r=t.TYPE_KEY="typeKey",i=t.DEFAULT_TYPE_KEY="type";function o(e){return e.get(r,i)}},50017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.string},t.default=s},71515:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(70680)),i=a(n(50017)),o=a(n(23384));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"map",controlComponent:l,previewComponent:i.default,schema:o.default},e)},controlComponent:l,previewComponent:i.default};t.ZP=u},23384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}}},70680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({getFormat:e,getMap:t}={}){var n;return g(n=class extends r.default.Component{constructor(e){super(e),this.mapContainer=r.default.createRef(),this.resizeObserver=null}componentDidMount(){const{field:n,onChange:r,value:i}=this.props,o=e?e(n):new u.default(v),a=i?[o.readFeature(i)]:[],m=new h.default({features:a,wrapX:!1}),g=new f.default({source:m}),y=this.mapContainer.current,b=t?t(y,g):function(e,t){return new s.default({target:e,layers:[new d.default({source:new p.default}),t],view:new l.default({center:[0,0],zoom:2})})}(y,g);a.length>0&&b.getView().fit(m.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const w=new c.default({source:m,type:n.get("type","Point")});b.addInteraction(w);const _={decimals:n.get("decimals",7)};w.on("drawend",(({feature:e})=>{m.clear(),r(o.writeGeometry(e.getGeometry(),_))})),this.resizeObserver=new ResizeObserver((()=>{b.updateSize()})),this.resizeObserver.observe(y)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){const{height:e}=this.props;return(0,o.jsx)(o.ClassNames,null,(({cx:t,css:n})=>(0,o.jsx)("div",{className:t(this.props.classNameWrapper,n`
|
||
${a.default};
|
||
padding: 0;
|
||
overflow: hidden;
|
||
height: ${e};
|
||
`),ref:this.mapContainer})))}},"propTypes",{onChange:i.default.func.isRequired,field:i.default.object.isRequired,height:i.default.string,value:i.default.node}),g(n,"defaultProps",{value:"",height:"400px"}),n};var r=m(n(12244)),i=m(n(13980)),o=n(28165),a=m(n(64552)),s=m(n(18529)),l=m(n(66319)),u=m(n(85738)),c=m(n(78369)),d=m(n(10608)),f=m(n(2247)),p=m(n(64127)),h=m(n(29820));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}},75988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(70894)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),o=g(n(13980)),a=g(n(19155)),s=n(28165),l=n(30762),u=n(72056),c=n(77713),d=n(20672),f=n(98685),p=g(n(76912)),h=g(n(13598));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function v({minimal:e}){return`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n min-height: ${e?"auto":l.lengths.richTextEditorMinHeight};\n font-family: ${l.fonts.mono};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${f.editorStyleVars.stickyDistanceBottom};\n`}const y=(0,r.default)("div",{target:"e12tj7710",label:"RawEditorContainer"})({name:"bjn8wh",styles:"position:relative"});function b(e){const{className:t,field:n,isShowModeToggle:r,t:o,onChange:a}=e,l=(0,i.useMemo)((()=>(0,c.withReact)((0,d.withHistory)((0,u.createEditor)()))),[]),[m,g]=(0,i.useState)(e.value?e.value.split("\n").map((e=>(0,h.default)(e))):[(0,h.default)()]);function b(e){a(e.map((e=>e.children[0].text)).join("\n")),g(e)}return(0,i.useEffect)((()=>{e.pendingFocus&&c.ReactEditor.focus(l)}),[]),(0,s.jsx)(c.Slate,{editor:l,value:m,onChange:b},(0,s.jsx)(y,null,(0,s.jsx)(f.EditorControlBar,null,(0,s.jsx)(p.default,{onToggleMode:function(){e.onMode("rich_text")},buttons:n.get("buttons"),disabled:!0,rawMode:!0,isShowModeToggle:r,t:o})),(0,s.jsx)(s.ClassNames,null,(({css:e,cx:r})=>(0,s.jsx)(c.Editable,{className:r(t,e`
|
||
${v({minimal:n.get("minimal")})}
|
||
`),value:m,onChange:b})))))}b.propTypes={onChange:o.default.func.isRequired,onMode:o.default.func.isRequired,className:o.default.string.isRequired,value:o.default.string,field:a.default.map.isRequired,isShowModeToggle:o.default.bool.isRequired,t:o.default.func.isRequired},t.default=b},76912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(12244)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(46670),u=n(30762),c=d(n(15388));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11cox783",label:"ToolbarContainer"})("background-color:",u.colors.textFieldBorder,";border-top-right-radius:",u.lengths.borderRadius,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",u.transitions.main,",color ",u.transitions.main,";color:",u.colors.text,";"),h=(0,r.default)("div",{target:"e11cox782",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"}),m=(0,r.default)("div",{target:"e11cox781",label:"ToolbarToggle"})({name:"1qi6e7n",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px"}),g=m.withComponent(u.Toggle,{target:"e11cox784",label:"StyledToggle"}),v=(0,r.default)("span",{target:"e11cox780",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",(e=>e.offPosition?"62px":"70px"),";",(e=>e.isActive&&(0,s.css)("font-weight:600;color:",u.colors.active,";;label:ToolbarToggleLabel;")),";");class y extends i.default.Component{constructor(...e){super(...e),f(this,"isVisible",(e=>{const{buttons:t}=this.props;return!l.List.isList(t)||t.includes(e)})),f(this,"handleBlockClick",((e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)})),f(this,"handleMarkClick",((e,t)=>{e.preventDefault(),this.props.onMarkClick(t)}))}render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,isShowModeToggle:r,plugins:i,disabled:o,onSubmit:a,hasMark:d=(()=>{}),hasInline:f=(()=>{}),hasBlock:y=(()=>{}),hasQuote:b=(()=>{}),hasListItems:w=(()=>{}),editorComponents:_,t:x}=this.props,E=this.isVisible,k=!_||_.size>=1,C=i?i.toList().filter((function({id:e}){return!_||_.includes(e)})):(0,l.List)(),S={"heading-one":x("editor.editorWidgets.headingOptions.headingOne"),"heading-two":x("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":x("editor.editorWidgets.headingOptions.headingThree"),"heading-four":x("editor.editorWidgets.headingOptions.headingFour"),"heading-five":x("editor.editorWidgets.headingOptions.headingFive"),"heading-six":x("editor.editorWidgets.headingOptions.headingSix")};return(0,s.jsx)(p,null,(0,s.jsx)("div",null,E("bold")&&(0,s.jsx)(c.default,{type:"bold",label:x("editor.editorWidgets.markdown.bold"),icon:"bold",onClick:this.handleMarkClick,isActive:d("bold"),disabled:o}),E("italic")&&(0,s.jsx)(c.default,{type:"italic",label:x("editor.editorWidgets.markdown.italic"),icon:"italic",onClick:this.handleMarkClick,isActive:d("italic"),disabled:o}),E("code")&&(0,s.jsx)(c.default,{type:"code",label:x("editor.editorWidgets.markdown.code"),icon:"code",onClick:this.handleMarkClick,isActive:d("code"),disabled:o}),E("link")&&(0,s.jsx)(c.default,{type:"link",label:x("editor.editorWidgets.markdown.link"),icon:"link",onClick:e,isActive:f("link"),disabled:o}),Object.keys(S).some(E)&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{type:"headings",label:x("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:o,isActive:!o&&Object.keys(S).some(y)}))},!o&&Object.keys(S).map(((e,t)=>E(e)&&(0,s.jsx)(u.DropdownItem,{key:t,label:S[e],className:y(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)}))))),E("quote")&&(0,s.jsx)(c.default,{type:"quote",label:x("editor.editorWidgets.markdown.quote"),icon:"quote",onClick:this.handleBlockClick,isActive:b("quote"),disabled:o}),E("bulleted-list")&&(0,s.jsx)(c.default,{type:"bulleted-list",label:x("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",onClick:this.handleBlockClick,isActive:w("bulleted-list"),disabled:o}),E("numbered-list")&&(0,s.jsx)(c.default,{type:"numbered-list",label:x("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",onClick:this.handleBlockClick,isActive:w("numbered-list"),disabled:o}),k&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownTopOverlap:"36px",dropdownWidth:"max-content",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{label:x("editor.editorWidgets.markdown.addComponent"),icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:o}))},C.map(((e,t)=>(0,s.jsx)(u.DropdownItem,{key:t,label:e.label,onClick:()=>a(e)})))))),r&&(0,s.jsx)(m,null,(0,s.jsx)(v,{isActive:!n,offPosition:!0},x("editor.editorWidgets.markdown.richText")),(0,s.jsx)(g,{active:n,onChange:t}),(0,s.jsx)(v,{isActive:n},x("editor.editorWidgets.markdown.markdown"))))}}t.default=y,f(y,"propTypes",{buttons:a.default.list,editorComponents:a.default.list,onToggleMode:o.default.func.isRequired,rawMode:o.default.bool,isShowModeToggle:o.default.bool.isRequired,plugins:a.default.map,onSubmit:o.default.func,onAddAsset:o.default.func,getAsset:o.default.func,disabled:o.default.bool,onMarkClick:o.default.func,onBlockClick:o.default.func,onLinkClick:o.default.func,hasMark:o.default.func,hasInline:o.default.func,hasBlock:o.default.func,t:o.default.func.isRequired})},15388:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(12244)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"e1ps9s9m0",label:"StyledToolbarButton"})(o.buttons.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",(e=>e.isActive?"#1e2532":"inherit"),";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",o.Icon,"{display:block;}");function u({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:s}){return(0,a.jsx)(l,{isActive:i,onClick:t=>r&&r(t,e),title:t,disabled:s},n?(0,a.jsx)(o.Icon,{type:n}):t)}u.propTypes={type:i.default.string,label:i.default.string.isRequired,icon:i.default.string,onClick:i.default.func,isActive:i.default.bool,disabled:i.default.bool},t.default=u},98328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.mergeMediaConfig=I;var r=P(n(70894)),i=P(n(18149)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),a=P(n(13980)),s=P(n(19155)),l=n(28165),u=n(30762),c=n(72056),d=n(77713),f=n(20672),p=n(46670),h=n(98685),m=P(n(76912)),g=n(21276),v=P(n(34514)),y=P(n(32786)),b=P(n(63669)),w=P(n(55145)),_=P(n(80082)),x=P(n(33856)),E=P(n(2826)),k=P(n(51818)),C=n(32322),S=P(n(29366)),A=P(n(35118)),T=P(n(13598));function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function P(e){return e&&e.__esModule?e:{default:e}}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}function M({minimal:e}){return`\n position: relative;\n overflow: auto;\n font-family: ${u.fonts.primary};\n min-height: ${e?"auto":u.lengths.richTextEditorMinHeight};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${h.editorStyleVars.stickyDistanceBottom};\n padding: 0;\n display: flex;\n flex-direction: column;\n z-index: ${u.zIndex.zIndex100};\n`}const D=(0,r.default)("div",{target:"ebiot7z0",label:"InsertionPoint"})({name:"ma7xbc",styles:"flex:1 1 auto;cursor:text"});function I(e,t){if(e.has("image")){const n=e.get("image"),r=null==n?void 0:n.fields;r&&(n.fields=r.update(r.findIndex((e=>"image"===e.get("widget"))),(e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e))))}}var L={name:"j8ayvn-Editor",styles:"position:relative;label:Editor;"};function j(e){const{onAddAsset:t,getAsset:n,className:r,field:a,isShowModeToggle:s,t:u,isDisabled:O,getEditorComponents:P,getRemarkPlugins:j,onChange:N}=e,F=(0,o.useMemo)((()=>(0,d.withReact)((0,f.withHistory)((0,S.default)((0,y.default)((0,v.default)((0,b.default)((0,c.createEditor)()))))))),[]),B=[(0,T.default)()];let U=P();const z=(0,p.fromJS)(U.find((({type:e})=>"code-block"===e)));U=z||U.has("code-block")?U:U.set("code-block",{label:"Code Block",type:"code-block"}),I(U,a);const[q,W]=(0,o.useState)(e.value?(0,C.markdownToSlate)(e.value,{voidCodeBlock:!!z,remarkPlugins:j()}):B),$=(0,o.useCallback)((e=>(0,l.jsx)(g.Element,R({},e,{classNameWrapper:r,codeBlockComponent:z}))),[]),H=(0,o.useCallback)((e=>(0,l.jsx)(g.Leaf,e)),[]);function G(e){for(const t of F.keyDownHandlers||[])if(!1===t(e,F))break;d.ReactEditor.focus(F)}function V(){d.ReactEditor.focus(F),c.Transforms.select(F,{path:[0,0],offset:0}),c.Transforms.select(F,c.Editor.end(F,[]))}(0,o.useEffect)((()=>{e.pendingFocus&&d.ReactEditor.focus(F)}),[]);const[K,Z]=(0,o.useState)(0);return(0,l.jsx)("div",{css:L},(0,l.jsx)(d.Slate,{editor:F,value:q,onChange:function(e){(0,i.default)(e,q)||(W((()=>e)),N((0,C.slateToMarkdown)(e,{voidCodeBlock:!!z,remarkPlugins:j()}))),Z((e=>e+1))}},(0,l.jsx)(h.EditorControlBar,null,(0,l.jsx)(m.default,{key:K,onMarkClick:function(e){d.ReactEditor.focus(F),(0,w.default)(F,e)},onBlockClick:function(e){d.ReactEditor.focus(F),e.endsWith("-list")?F.toggleList(e):F.toggleBlock(e)},onLinkClick:function(){(0,_.default)(F,u("editor.editorWidgets.markdown.linkPrompt")),d.ReactEditor.focus(F)},onToggleMode:function(){e.onMode("raw")},plugins:U,onSubmit:function(e){(0,A.default)(F,e)},onAddAsset:t,getAsset:n,buttons:a.get("buttons"),editorComponents:a.get("editor_components"),hasMark:function(e){return(0,E.default)(F,e)},hasInline:function(e){return"link"==e&&!!(0,x.default)(F)},hasBlock:function(e){return(0,k.default)(F,e)},hasQuote:function(){return(0,k.default)(F,"quote")},hasListItems:function(e){return(0,k.default)(F,e)},isShowModeToggle:s,t:u,disabled:O})),(0,l.jsx)(l.ClassNames,null,(({css:e,cx:t})=>(0,l.jsx)("div",{className:t(r,e`
|
||
${M({minimal:a.get("minimal")})}
|
||
`)},0!==q.length&&(0,l.jsx)(d.Editable,{className:e`
|
||
padding: 16px 20px 0;
|
||
`,renderElement:$,renderLeaf:H,onKeyDown:G,autoFocus:!1}),(0,l.jsx)(D,{onClick:V}))))))}j.propTypes={onAddAsset:a.default.func.isRequired,getAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onMode:a.default.func.isRequired,className:a.default.string.isRequired,value:a.default.string,field:s.default.map.isRequired,getEditorComponents:a.default.func.isRequired,getRemarkPlugins:a.default.func.isRequired,isShowModeToggle:a.default.bool.isRequired,t:a.default.func.isRequired},t.default=j},69076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(17620))&&r.__esModule?r:{default:r},o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12244)),a=n(28165),s=n(46670),l=n(77713),u=n(72056),c=n(64767);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={name:"1xfnuhy-Shortcode",styles:"margin-top:0;margin-bottom:16px;&:first-of-type{margin-top:0;};label:Shortcode;"};t.default=function(e){const t=(0,l.useSlate)(),{element:n,dataKey:r="shortcodeData",children:d}=e,f=(0,c.getEditorControl)(),h=(0,c.getEditorComponents)().get(n.data.shortcode),g=(0,s.fromJS)((0,i.default)(h,["id","fromBlock","toBlock","toPreview","pattern","icon"])),[v,y]=(0,o.useState)((0,s.fromJS)(n.data[r]));function b(){const e=l.ReactEditor.findPath(t,n);u.Transforms.select(t,e)}const w=l.ReactEditor.findPath(t,n),_=t.selection&&w&&u.Range.isRange(t.selection)&&u.Range.includes(t.selection,w);return!g.isEmpty()&&(0,a.jsx)("div",{onClick:b,onFocus:b},(0,a.jsx)(f,{css:m,value:v,field:g,onChange:function(e,i,o){const a=l.ReactEditor.findPath(t,n),s={data:p(p({},n.data),{},{[r]:i.toJS(),metadata:o})};u.Transforms.setNodes(t,s,{at:a}),y(i)},isEditorComponent:!0,onValidateObject:()=>{},isNewEditorComponent:n.data.shortcodeNew,isSelected:_}),d)}},4611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,l(n(12244));var r=n(28165),i=n(30762),o=n(77713),a=n(72056),s=l(n(13598));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e){return(0,r.jsx)("div",u({css:(0,r.css)("height:32px;cursor:text;position:relative;z-index:",i.zIndex.zIndex1,";margin-top:-16px;;label:InsertionPoint;")},e))}t.default=function({attributes:e,children:t,element:n}){const i=(0,o.useSlate)(),l=o.ReactEditor.findPath(i,n);function d(e){a.Transforms.insertNodes(i,(0,s.default)(),{select:!0,at:e})}const f=0===l[0],p=i.children[l[0]+1],h=l[0]===i.children.length-1||i.isVoid(p);return(0,r.jsx)("div",u({},e,{onClick:function(e){e.stopPropagation()},contentEditable:!1}),f&&(0,r.jsx)(c,{onClick:function(){d(l)}}),t,h&&(0,r.jsx)(c,{onClick:function(){d([...l.slice(0,-1),l[l.length-1]+1])}}))}},64767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getEditorComponents=function(){return h()},t.getEditorControl=function(){return p};var r=c(n(12244)),i=c(n(13980)),o=c(n(19155)),a=n(46670),s=c(n(75988)),l=c(n(98328)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f="cms.md-mode";let p,h=()=>(0,a.Map)();class m extends r.default.Component{constructor(e){var t;super(e),d(this,"handleMode",(e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem(f,e)})),d(this,"processRef",(e=>this.ref=e)),d(this,"setFocusReceived",(()=>{this.setState({pendingFocus:!1})})),d(this,"getAllowedModes",(()=>this.props.field.get("modes",(0,a.List)(["rich_text","raw"])).toArray())),p=e.editorControl;const n=null!==(t=localStorage.getItem(f))&&void 0!==t?t:"rich_text";h=e.getEditorComponents,this.state={mode:-1!==this.getAllowedModes().indexOf(n)?n:this.getAllowedModes()[0],pendingFocus:!1}}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,t:f,isDisabled:p}=this.props,{mode:h,pendingFocus:m}=this.state,g=this.getAllowedModes().length>1,v=(0,u.jsx)("div",{className:"cms-editor-visual",ref:this.processRef},(0,u.jsx)(l.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,pendingFocus:m&&this.setFocusReceived,t:f,isDisabled:p})),y=(0,u.jsx)("div",{className:"cms-editor-raw",ref:this.processRef},(0,u.jsx)(s.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:m&&this.setFocusReceived,t:f}));return"rich_text"===h?v:y}}t.default=m,d(m,"propTypes",{onChange:i.default.func.isRequired,onAddAsset:i.default.func.isRequired,getAsset:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,editorControl:i.default.elementType.isRequired,value:i.default.string,field:o.default.map.isRequired,getEditorComponents:i.default.func,t:i.default.func.isRequired}),d(m,"defaultProps",{value:""})},13598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e=""){return{type:"paragraph",children:[{text:e}]}}},74752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(87202)),i=n(72056),o=c(n(40860)),a=c(n(77074)),s=c(n(66324)),l=c(n(53243)),u=c(n(10348));function c(e){return e&&e.__esModule?e:{default:e}}const d={"mod+1":"heading-one","mod+2":"heading-two","mod+3":"heading-three","mod+4":"heading-four","mod+5":"heading-five","mod+6":"heading-six"};t.default=function(e,t){if(t.selection){for(const n in d)if((0,r.default)(n,e))return(0,l.default)(t,d[n]),e.preventDefault(),!1;if((0,r.default)("backspace",e)&&(0,u.default)(t)){const[,n]=i.Editor.previous(t);return i.Transforms.removeNodes(t,{at:n}),e.preventDefault(),!1}if((0,s.default)(t)){if((0,r.default)("enter",e)&&(0,o.default)(t))return e.preventDefault(),!1;if((0,r.default)("backspace",e)&&(0,a.default)(t))return e.preventDefault(),!1}}}},77074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(55930)),o=u(n(8717)),a=u(n(64838)),s=u(n(29818)),l=u(n(86803));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&!(0,o.default)(e))return(0,l.default)(e,"quote")&&(0,s.default)(e,"quote")?(r.Transforms.mergeNodes(e,(0,a.default)(e,"quote")),!0):(0,i.default)(e,!0)}},40860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(51818)),i=s(n(76922)),o=s(n(55930)),a=s(n(13306));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection)return(0,r.default)(e,"heading",!0)?function(e){if((0,a.default)(e))return(0,i.default)(e),!0}(e):(0,o.default)(e)}},53243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(51818)),o=s(n(48457)),a=s(n(54958));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){const{selection:n}=e;if(!n)return;const s=t.startsWith("heading-"),l=(0,i.default)(e,t,s,r.Range.isExpanded(n)),u=(0,o.default)(e);if(s)return void r.Transforms.setNodes(e,{type:l?"paragraph":t});const{focus:c,anchor:d}=n;return!l&&u&&c.path[c.path.length-3]!=d.path[d.path.length-3]?(0,a.default)(e,t,u):l?void r.Transforms.unwrapNodes(e,{match:e=>e.type===t}):r.Transforms.wrapNodes(e,{type:t})}},29818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[r]=i.Editor.nodes(e,(0,o.default)(e,"block")),a=i.Editor.previous(e,(0,o.default)(e,t));return r&&a&&r[0].type===a[0].type}},48457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const t=i.Editor.above(e,(0,o.default)(e,"list"));return t?t[0].type:null}},13306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const{selection:t}=e;if(!t)return!1;const n=i.Editor.above(e,(0,o.default)(e,"paragraph"));return!!n&&i.Editor.isEnd(e,e.selection.focus,n[1])}},86803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const r=i.Editor.above(e,(0,o.default)(e,t));return!!r&&i.Editor.isStart(e,e.selection.focus,r[1])}},8717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&r.Editor.isStart(e,e.selection.focus,n[1])&&!r.Editor.isEmpty(e,n[0])}},10348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;if(r.Range.isExpanded(t))return!1;const n=r.Editor.previous(e);return n&&"break"==n[0].type}},51818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n,i){const{selection:o}=e;if(!o)return!1;const[a]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&"list-item"!==t.type&&(n||!`${t.type}`.startsWith("heading-"))&&(!i||!`${t.type}`.endsWith("-list")),mode:"lowest"}));return!!a&&(a[0].type===t||`${a[0].type}`.startsWith(`${t}-`||`${a[0].type}`.endsWith(`-${t}`)))}},66324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type,mode:"lowest"}));return!!n&&!r.Editor.isEditor(n[0])}},76922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){return r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"})})),r.Editor.normalize(e,{force:!0}),!0}},55930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t=!1){if(0!==e.selection.anchor.offset)return!1;let[n,r]=i.Editor.above(e,(0,o.default)(e,"non-default"));if(0==r.length)return!1;if(`${n.type}`.startsWith("heading-"))return i.Transforms.setNodes(e,{type:"paragraph"}),!1;const a=i.Editor.isBlock(e,n),[s,l]=i.Editor.above(e,(0,o.default)(e,"block"));if(!a){if(!i.Editor.isStart(e,r,l))return!1;[n,r]=[s,l]}return i.Editor.withoutNormalizing(e,(()=>{i.Transforms.unwrapNodes(e,{match:e=>e.type===n.type,split:!0}),t&&i.Transforms.mergeNodes(e)})),i.Editor.normalize(e,{force:!0}),!0}},54958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:n}),r.Transforms.wrapNodes(e,{type:t},{match:e=>e.type===n}),r.Transforms.liftNodes(e,{match:e=>e.type===t})})),r.Editor.normalize(e,{force:!0})}},32786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(74752)),i=o(n(53243));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,r.default)(e,t))),e.toggleBlock=t=>(0,i.default)(e,t),e}},65849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(87202)),i=s(n(55145)),o=s(n(9283)),a=s(n(80082));function s(e){return e&&e.__esModule?e:{default:e}}const l={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code","mod+shift+s":"delete","mod+shift+c":"code"};t.default=function(e,t){if(t.selection){for(const n in l)if((0,r.default)(n,e))return(0,i.default)(t,l[n]),e.preventDefault(),!1;return(0,r.default)("mod+k",e)?(e.preventDefault(),(0,a.default)(t)):(0,r.default)("shift+enter",e)?(e.preventDefault(),(0,o.default)(t)):void 0}}},9283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return;const t={path:[...e.selection.focus.path.slice(0,-1),e.selection.focus.path[e.selection.focus.path.length-1]+2],offset:0};return r.Transforms.insertNodes(e,{type:"break",children:[{text:""}]}),r.Editor.normalize(e,{force:!0}),r.Transforms.select(e,t),!1}},80082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(33856)),i=a(n(4734)),o=a(n(1675));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n,a;const s=(0,r.default)(e),l=s?null===(n=s[0])||void 0===n||null===(a=n.data)||void 0===a?void 0:a.url:"",u=window.prompt(t,l);null!=u&&(""!==u?(0,o.default)(e,u):(0,i.default)(e))}},55145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(2826))&&r.__esModule?r:{default:r};t.default=function(e,t){(0,o.default)(e,t)?i.Editor.removeMark(e,t):i.Editor.addMark(e,t,!0)}},2826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const i=r.Editor.marks(e);return!!i&&!0===i[t]}},33856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){const[t]=i.Editor.nodes(e,(0,o.default)(e));return t}},4734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){i.Transforms.unwrapNodes(e,(0,o.default)())}},1675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(33856)),o=a(n(60466));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if((0,i.default)(e))return void r.Transforms.setNodes(e,{data:{url:t}},(0,o.default)());const{selection:n}=e,a=n&&r.Range.isCollapsed(n),s={type:"link",data:{url:t},children:a?[{text:t}]:[]};a?r.Transforms.insertNodes(e,s):(r.Transforms.wrapNodes(e,s,{split:!0}),r.Transforms.collapse(e,{edge:"end"}))}},63669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(65849))&&r.__esModule?r:{default:r};t.default=function(e){const{isInline:t,isVoid:n}=e;return e.isInline=e=>["link","button","break","image"].includes(e.type)||t(e),e.isVoid=e=>["break","image","thematic-break"].includes(e.type)||n(e),void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e}},22411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(87202)),i=l(n(37131)),o=l(n(89868)),a=l(n(86172)),s=l(n(47269));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(t.isListItem())return(0,r.default)("enter",e)?(e.preventDefault(),(0,i.default)(t),!1):(0,r.default)("backspace",e)?!1===(0,s.default)(t)?(e.preventDefault(),!1):void 0:(0,r.default)("tab",e)?(e.preventDefault(),(0,o.default)(t)):(0,r.default)("shift+tab",e)?(e.preventDefault(),(0,a.default)(t)):void 0}},47269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(83106)),o=u(n(75592)),a=u(n(5084)),s=u(n(58729)),l=u(n(37082));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&r.Range.isCollapsed(e.selection)&&0===e.selection.anchor.offset&&(0,i.default)(e,!0)&&!(0,l.default)(e))return(0,o.default)(e)?(0,s.default)(e):(0,a.default)(e),!1}},37131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=d(n(5795)),o=d(n(74922)),a=d(n(60011)),s=d(n(51641)),l=d(n(37082)),u=d(n(72117)),c=d(n(3091));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return;if(r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),(0,o.default)(e))return(0,a.default)(e);const t=(0,c.default)(e);return t&&`${t[0].type}`.endsWith("-list")?(0,u.default)(e,t[0].type):(0,l.default)(e)?(0,s.default)(e):void(0,i.default)(e)}},86172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(64838)),o=a(n(90630));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function(e){e.selection&&(Array.from(r.Editor.nodes(e,(0,o.default)(e,"list"))).length<2||(r.Editor.withoutNormalizing(e,(()=>{r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0})),r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0}))})),r.Editor.normalize(e)))}},89868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(75592)),o=s(n(64838)),a=s(n(75626));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function(e){if(!e.selection)return;if(!(0,i.default)(e))return;const{focus:t,anchor:n}=e.selection,s=t.path.length>n.path.length?n.path.length:t.path.length,l={anchor:{offset:0,path:[...n.path.slice(0,s-2),0,0]},focus:{offset:0,path:[...t.path.slice(0,s-2),0,0]}};r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:"bulleted-list"},u(u({},(0,o.default)(e,"list-item")),{},{at:l}));const[,t]=r.Editor.above(e,(0,o.default)(e,"list")),n=r.Editor.previous(e,{at:t});(0,a.default)(e,t,n)})),r.Editor.normalize(e)}},96933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(83106)),i=l(n(80953)),o=l(n(94478)),a=l(n(65874)),s=l(n(5084));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!(0,r.default)(e))return(0,o.default)(e,t);const n=(0,i.default)(e);return n&&n[0].type!==t?(0,a.default)(e,t):(0,s.default)(e)}},74922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0===t&&n.length>=2&&0===n[n.length-1]&&0===n[n.length-2]}},37082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0==t&&n.length>2&&n[n.length-2]>0}},83106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[i]=Array.from(r.Editor.nodes(e,{match:n=>r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&"paragraph"!==n.type&&(t||!`${n.type}`.startsWith("heading-")),mode:"lowest"}));return!!i&&"list-item"===i[0].type}},75592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const[,t]=r.Editor.above(e,{match:e=>"list-item"===e.type,mode:"lowest",at:r.Range.start(e.selection)});return!!(t&&t.length>0&&t[t.length-1]>0)||void 0}},3091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){if(!e.selection)return!1;const[,t]=i.Editor.above(e,(0,o.default)(e,"paragraph"));return i.Editor.next(e,{at:t})}},80953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"list"))}},31917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"quote"))}},65874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t},(0,o.default)(e,"list-item")),i.Transforms.liftNodes(e,(0,o.default)(e,t))})),i.Editor.normalize(e,{force:!0})}},51641:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item",{split:!0})})),r.Editor.normalize(e,{force:!0})}},86656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=function(e,t,n){r.Transforms.liftNodes(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({match:e=>e.type===t||"paragraph"===t&&`${e.type}`.startsWith("heading"),mode:"lowest"},n))}},60011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=l(n(23332)),o=l(n(86656)),a=l(n(80953)),s=l(n(31917));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"list-item",{split:!0});const t=(0,a.default)(e),n=(0,s.default)(e);t&&!n||t&&n&&t[1].length>n[1].length?(0,o.default)(e,"list-item",{split:!0}):(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},58729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.mergeNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e,{force:!0})}},75626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){const[i,o]=n;r.Transforms.moveNodes(e,{at:t,to:[...o,i.children.length]})}},5795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return!1;r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},72117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(98872))&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e.selection)return!1;i.Range.isExpanded(e.selection)&&i.Transforms.delete(e),i.Editor.withoutNormalizing(e,(()=>{i.Transforms.splitNodes(e,{always:!0}),i.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,o.default)(e,"list-item",{type:t})})),i.Editor.normalize(e,{force:!0})}},23332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Transforms.unwrapNodes(e,(0,o.default)(e,t))}},5084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.unwrapNodes(e,s(s({},(0,o.default)(e,"list")),{},{split:!0})),i.Transforms.unwrapNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e)}},98872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t,n){i.Transforms.wrapNodes(e,n,(0,o.default)(e,t))}},94478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t});const n=i.Editor.nodes(e,(0,o.default)(e,"paragraph"));for(const t of n)i.Transforms.wrapNodes(e,{type:"list-item"},{at:t[1]})})),i.Editor.normalize(e)}},34514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(22411)),o=s(n(75626)),a=s(n(96933));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){const{normalizeNode:t}=e;return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e.toggleList=t=>(0,a.default)(e,t),e.isListItem=()=>{const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{at:r.Editor.unhangRange(e,t),match:t=>!r.Editor.isEditor(t)&&r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&!`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&"list-item"===n[0].type},e.normalizeNode=n=>{t(n);const[i,a]=n;let s=null;if(r.Element.isElement(i)||r.Editor.isEditor(i))for(const[t,n]of r.Node.children(e,a)){if(`${t.type}`.endsWith("-list")&&t.type===s){r.Transforms.mergeNodes(e,{at:n});break}s=t.type}if(r.Element.isElement(i)&&`${i.type}`.endsWith("-list")){const t=r.Editor.previous(e,{at:a}),[n,i]=r.Editor.parent(e,a);if(!t&&"list-item"===n.type){const t=r.Editor.previous(e,{at:i});(0,o.default)(e,a,t),r.Transforms.removeNodes(e,{at:i})}}},e}},64838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90630))&&r.__esModule?r:{default:r};t.default=function(e,t){return(0,i.default)(e,t,"lowest")}},60466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(){return{match:e=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&"link"===e.type}}},90630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){return{match:n=>!r.Editor.isEditor(n)&&r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&(n.type===t||"heading"===t&&`${n.type}`.startsWith("heading-")||"paragraph"===t&&`${n.type}`.startsWith("heading-")||"block"===t&&!`${n.type}`.startsWith("heading-")&&"paragraph"!==n.type||"list"===t&&`${n.type}`.endsWith("-list"))||"non-default"===t&&"paragraph"!==n.type,mode:n}}},35118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(68192))&&r.__esModule?r:{default:r};t.default=function(e,t){const n=t.fields.toMap().mapKeys(((e,t)=>t.get("name"))).filter((e=>e.has("default"))).map((e=>e.get("default"))),r={type:"shortcode",id:t.id,data:{shortcode:t.id,shortcodeNew:!0,shortcodeData:n.toJS()},children:[{text:""}]};(0,o.default)(e)?i.Transforms.setNodes(e,r):i.Transforms.insertNodes(e,r)}},68192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"===t.type,mode:"lowest"}));return!!n&&r.Editor.isEmpty(e,n[0])}},29366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(13598))&&r.__esModule?r:{default:r};t.default=function(e){const{isVoid:t,normalizeNode:n}=e;return e.isVoid=e=>"shortcode"===e.type||t(e),e.normalizeNode=t=>{const[r]=t;i.Editor.isEditor(r)&&0==r.children.length&&i.Transforms.insertNodes(e,(0,o.default)()),n(t)},e}},21276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Element=function(e){const{children:t,element:n,classNameWrapper:r,codeBlockComponent:i}=e,a={textAlign:n.align};switch(n.type){case"bulleted-list":return(0,o.jsx)(K,null,t);case"quote":return(0,o.jsx)(j,null,t);case"heading-one":return(0,o.jsx)(N,null,t);case"heading-two":return(0,o.jsx)(F,null,t);case"heading-three":return(0,o.jsx)(B,null,t);case"heading-four":return(0,o.jsx)(U,null,t);case"heading-five":return(0,o.jsx)(z,null,t);case"heading-six":return(0,o.jsx)(q,null,t);case"list-item":return(0,o.jsx)(L,null,t);case"numbered-list":return(0,o.jsx)(Z,null,t);case"table":return(0,o.jsx)(W,e);case"table-row":return(0,o.jsx)($,e);case"table-cell":return(0,o.jsx)(H,e);case"thematic-break":return(0,o.jsx)(l.default,e,(0,o.jsx)(G,e));case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(V,e);case"shortcode":return"code-block"===n.id&&i?(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,d({classNameWrapper:r,typeOverload:"code-block"},e))):(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,e,t));default:return(0,o.jsx)(I,{style:a},t)}},t.Leaf=function({attributes:e,children:t,leaf:n}){return n.bold&&(t=(0,o.jsx)(P,null,t)),n.italic&&(t=(0,o.jsx)(R,null,t)),n.delete&&(t=(0,o.jsx)(M,null,t)),n.code&&(t=(0,o.jsx)(D,null,t)),(0,o.jsx)("span",e,t)},t.renderInline__DEPRECATED=function(){return e=>{switch(e.node.type){case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(V,e)}}};var r=c(n(70894)),i=c(n(12244)),o=n(28165),a=n(30762),s=n(77713),l=c(n(4611)),u=c(n(69076));function c(e){return e&&e.__esModule?e:{default:e}}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f="16px",p="\n font-weight: 700;\n line-height: 1;\n",h=(0,r.default)("h1",{target:"evlbpgx13",label:"StyledH1"})(p,";font-size:32px;margin-top:16px;"),m=(0,r.default)("h2",{target:"evlbpgx12",label:"StyledH2"})(p,";font-size:24px;margin-top:12px;"),g=(0,r.default)("h3",{target:"evlbpgx11",label:"StyledH3"})(p,";font-size:20px;"),v=(0,r.default)("h4",{target:"evlbpgx10",label:"StyledH4"})(p,";font-size:18px;margin-top:8px;"),y=(0,r.default)("h5",{target:"evlbpgx9",label:"StyledH5"})(p,";font-size:16px;margin-top:8px;"),b=y.withComponent("h6",{target:"evlbpgx14",label:"StyledH6"}),w=(0,r.default)("p",{target:"evlbpgx8",label:"StyledP"})("margin-bottom:",f,";"),_=(0,r.default)("blockquote",{target:"evlbpgx7",label:"StyledBlockQuote"})("padding-left:16px;border-left:3px solid ",a.colors.background,";margin-left:0;margin-right:0;margin-bottom:",f,";"),x=(0,r.default)("code",{target:"evlbpgx6",label:"StyledCode"})("background-color:",a.colors.background,";border-radius:",a.lengths.borderRadius,";padding:0 2px;font-size:85%;"),E=(0,r.default)("ul",{target:"evlbpgx5",label:"StyledUl"})("margin-bottom:",f,";padding-left:30px;"),k=E.withComponent("ol",{target:"evlbpgx15",label:"StyledOl"}),C=(0,r.default)("li",{target:"evlbpgx4",label:"StyledLi"})({name:"1smjpj0",styles:"&>p:first-of-type{margin-top:8px;}&>p:last-of-type{margin-bottom:8px;}"}),S=(0,r.default)("a",{target:"evlbpgx3",label:"StyledA"})({name:"11z7vuy",styles:"text-decoration:underline;font-size:inherit"}),A=(0,r.default)("hr",{target:"evlbpgx2",label:"StyledHr"})({name:"1y2p2hw",styles:"border:1px solid;margin-bottom:16px"}),T=(0,r.default)("table",{target:"evlbpgx1",label:"StyledTable"})({name:"tkxk5i",styles:"border-collapse:collapse"}),O=(0,r.default)("td",{target:"evlbpgx0",label:"StyledTd"})({name:"zsehaa",styles:"border:2px solid black;padding:8px;text-align:left"});function P(e){return(0,o.jsx)("strong",null,e.children)}function R(e){return(0,o.jsx)("em",null,e.children)}function M(e){return(0,o.jsx)("s",null,e.children)}function D(e){return(0,o.jsx)(x,null,e.children)}function I(e){return(0,o.jsx)(w,e.attributes,e.children)}function L(e){return(0,o.jsx)(C,e.attributes,e.children)}function j(e){return(0,o.jsx)(_,e.attributes,e.children)}function N(e){return(0,o.jsx)(h,e.attributes,e.children)}function F(e){return(0,o.jsx)(m,e.attributes,e.children)}function B(e){return(0,o.jsx)(g,e.attributes,e.children)}function U(e){return(0,o.jsx)(v,e.attributes,e.children)}function z(e){return(0,o.jsx)(y,e.attributes,e.children)}function q(e){return(0,o.jsx)(b,e.attributes,e.children)}function W(e){return(0,o.jsx)(T,null,(0,o.jsx)("tbody",e.attributes,e.children))}function $(e){return(0,o.jsx)("tr",e.attributes,e.children)}function H(e){return(0,o.jsx)(O,e.attributes,e.children)}function G(e){const t=(0,s.useSelected)();return(0,o.jsx)("div",e.attributes,e.children,(0,o.jsx)("div",{contentEditable:!1},(0,o.jsx)(A,d({},e.attributes,{css:t&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";border-radius:8px;color:",a.colors.active,";;label:ThematicBreak;")}))))}function V(e){return(0,o.jsx)(i.default.Fragment,null,(0,o.jsx)("br",e.attributes),e.children)}function K(e){return(0,o.jsx)(E,e.attributes,e.children)}function Z(e){return(0,o.jsx)(k,d({},e.attributes,{start:1}),e.children)}function Y(e){const t=e.url,n=e.title||t;return(0,o.jsx)(S,d({href:t,title:n},e.attributes),e.children)}function X(e){const{url:t,title:n,alt:r}=e.element.data,i=(0,s.useSelected)();return(0,o.jsx)("span",e.attributes,e.children,(0,o.jsx)("img",d({src:t,title:n,alt:r},e.attributes,{css:i&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";;label:Image;")})))}},41719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,a,s=p(n(12244)),l=p(n(13980)),u=n(30762),c=p(n(35368)),d=n(32322),f=n(28165);function p(e){return e&&e.__esModule?e:{default:e}}class h extends s.default.Component{render(){const{value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i}=this.props;if(null===e)return null;const o=(0,d.markdownToHtml)(e,{getAsset:t,resolveWidget:n},null==i?void 0:i()),a=null!=r&&r.get("sanitize_preview",!1)?c.default.sanitize(o):o;return(0,f.jsx)(u.WidgetPreviewContainer,{dangerouslySetInnerHTML:{__html:a}})}}r=h,i="propTypes",o={getAsset:l.default.func.isRequired,resolveWidget:l.default.func.isRequired,value:l.default.string},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,t.default=h},79425:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(64767)),i=a(n(41719)),o=a(n(60794));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"markdown",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},92521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combinePatterns=function(e){return e.map((e=>`(?:${e.source})`)).join("|")},t.joinPatternSegments=function(e){return e.map((e=>e.source)).join("")},t.replaceWhen=function(e,t,n,r){function o(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const a=function e(t,n,r){const a=t.exec(n),s=(0,i.default)(r);if(!a)return r;if(0===a.index)o(r,0,a[0],!0);else if(s)if(a.index===s.index+s.text.length)o(r,a.index,a[0],!0);else{const e=s.index+s.text.length;o(r,e,a.input.slice(e,a.index)),o(r,a.index,a[0],!0)}else o(r,0,a.input.slice(0,a.index)),o(r,a.index,a[0],!0);return e(t,n,r)}(e,n,[]),s=(0,i.default)(a);if(!s)return t(n);const l=s.index+s.text.length;return n.length>l&&a.push({index:l,text:n.slice(l)}),a.map((e=>(r?!e.match:e.match)?t(e.text):e.text)).join("")};var r,i=(r=n(56974))&&r.__esModule?r:{default:r}},60794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}}},32322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToSlate=function(e){const t=(0,i.default)().use(c.default,{fragment:!0}).parse(e),n=(0,i.default)().use(p.default).use(d.default,{minify:!1}).runSync(t);return(0,i.default)().use(h.default).use(m.default).use(g.default).use(v.default).runSync(n)},t.markdownToHtml=function(e,{getAsset:t,resolveWidget:n,remarkPlugins:r=[]}={}){const o=S(e,r),a=(0,i.default)().use(f.default,{plugins:(0,k.getEditorComponents)(),getAsset:t,resolveWidget:n}).use(l.default,{allowDangerousHTML:!0}).runSync(o);return(0,i.default)().use(u.default,{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a)},t.markdownToRemark=S,t.markdownToSlate=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){const r=S(e,n);return(0,i.default)().use(g.default).use(v.default,{voidCodeBlock:t}).runSync(r).children},t.remarkToMarkdown=T,t.slateToMarkdown=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){return T((0,E.default)(e,{voidCodeBlock:t}),n)};var r=C(n(1573)),i=C(n(43367)),o=C(n(73610)),a=C(n(98431)),s=C(n(48283)),l=C(n(32578)),u=C(n(27809)),c=C(n(52824)),d=C(n(62100)),f=C(n(74961)),p=C(n(38052)),h=C(n(64906)),m=C(n(68236)),g=C(n(19108)),v=C(n(82704)),y=C(n(74099)),b=n(61517),w=C(n(25960)),_=C(n(24669)),x=C(n(96117)),E=C(n(13533)),k=n(64767);function C(e){return e&&e.__esModule?e:{default:e}}function S(e,t){const n=(0,i.default)().use(a.default,{fences:!0,commonmark:!0}).use(A,{inlineTokenizers:["url"]}).use(b.remarkParseShortcodes,{plugins:(0,k.getEditorComponents)()}).use(x.default).use(y.default).use(t),r=n.parse(e);return n.runSync(r)}function A({inlineTokenizers:e}){e&&e.forEach((e=>{delete this.Parser.prototype.inlineTokenizers[e]}))}function T(e,t){const n=e||(0,o.default)("root",[(0,o.default)("paragraph",[(0,o.default)("text","")])]),a=(0,i.default)().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(w.default).use(_.default).use(s.default).use((function(){this.Compiler.prototype.visitors.text=e=>e.value})).use((0,b.createRemarkShortcodeStringifier)({plugins:(0,k.getEditorComponents)()})).use(t),l=a.runSync(n),u=a.stringify(l).replace(/\r?/g,"");return(0,r.default)(u)}},38052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t)}}},96117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d,f=this;if(n)return!0;for(a=(r=f.inlineMethods).length,i=f.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(f,t,1))&&l<d&&(d=l));e(s=t.slice(0,d))({type:"text",value:s})}}},64906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let i;return(0,s.default)(e,((e,s)=>{const l=!(0,r.default)(s)&&(0,o.default)(s).type;if(t.includes(e.type)&&!n.includes(l))return i=(0,a.default)(s,e),!1})),i}(t);return n?(function(e,t){const n=(0,i.default)(t,-3)||e,s=(0,i.default)(t,-2),l=(0,o.default)(t),u=n.children.indexOf(s),d=n.children,f=s.children.indexOf(l),p=s.children.slice(0,f),h=s.children.slice(f+1),m=[!(0,r.default)(p)&&c(c({},s),{},{children:p}),l,!(0,r.default)(h)&&c(c({},s),{},{children:h})].filter((e=>!(0,r.default)(e))),g=d.slice(0,u),v=d.slice(u+1),y=(0,a.default)(g,m,v);n.children=y}(t,n),e(t)):t}};var r=l(n(45455)),i=l(n(77180)),o=l(n(56974)),a=l(n(22487)),s=l(n(26578));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},25960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t,n){if((0,a.default)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)&&t.value){const e=0===n?v(t.value).replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1"):v(t.value);return c(c({},t),{},{value:e},r)}return c(c({},t),r)}};var r=l(n(16760)),i=l(n(83465)),o=l(n(85395)),a=l(n(93352)),s=n(92521);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d={htmlOpeningTagEnd:/(?: *\w+=(?:(?:"[^"]*")|(?:'[^']*')))* *>/},f={htmlTags:[/<(?!pre|style|script)[\w]+/,d.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,d.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},p=(0,r.default)(f,(e=>new RegExp((0,s.joinPatternSegments)(e)))),h=(0,s.combinePatterns)(p),m=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map((e=>(0,i.default)(y,e))),g=(0,o.default)(m);function v(e){const t=new RegExp(h,"gm");return(0,s.replaceWhen)(t,g,e,!0)}function y(e,t){return t.replace(e,((e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${b(t)}${o}${r?b(n):""}`}))}function b(e){let t="";for(const n of e)t+=`\\${n}`;return t}},68236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){if("link"!==e.type)return e;const n=(0,d.default)(e),r=(0,s.default)(n," ")&&t(e),l=(0,a.default)(n," ")&&t(e,!0);return r||l?(r&&(r.value=(0,o.default)(r.value)),l&&(l.value=(0,i.default)(l.value)),[r&&(0,c.default)("text"," "),e,l&&(0,c.default)("text"," ")].filter((e=>e))):e}function t(e,t){let n,r;return n=t?l.default:u.default,function e(t){!r&&t.value&&(r=t),n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const i=(n.children.some((e=>"link"===e.type))?(0,r.default)(n.children,e):n.children).map(t);return h(h({},n),{},{children:i})}};var r=f(n(35838)),i=f(n(1573)),o=f(n(93433)),a=f(n(48559)),s=f(n(37994)),l=f(n(72960)),u=f(n(17452)),c=f(n(73610)),d=f(n(75330));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},74961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({plugins:e,getAsset:t,resolveWidget:n}){return function(e){const t=(0,i.default)(e.children,l);return c(c({},e),{},{children:t})};function l(i){if(!(0,r.default)(i,["data","shortcode"]))return i;const{shortcode:l,shortcodeData:u}=i.data,d=function(e,r){const{toPreview:i,widget:a,fields:s}=e;if(i)return i(r,t,s);const l=n(a);return o.default.createElement(l.preview,{value:r,field:e,getAsset:t})}(e.get(l),u),f="string"==typeof d?d:(0,a.renderToString)(d),p=[(0,s.default)("html",f)];return c(c({},i),{},{children:p})}};var r=l(n(93352)),i=l(n(16760)),o=l(n(12244)),a=n(48090),s=l(n(73610));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},61517:(e,t)=>{"use strict";function n(e){return e.split("\n\n").reduce(((e,t)=>{const{start:n,originalLength:r}=e[e.length-1];return[...e,{line:t.trimEnd(),start:n+r+2,originalLength:t.length}]}),[{start:-2,originalLength:0}]).slice(1).map((({line:e,start:t})=>({line:e,start:t})))}function r({trimmedLines:e,plugin:t}){for(const{line:n,start:r}of e){const e=n.match(t.pattern);if(e)return e.index+=r,e}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRemarkShortcodeStringifier=function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find((e=>n.shortcode===e.id)).toBlock(n.shortcodeData)}}},t.getLinesWithOffsets=n,t.remarkParseShortcodes=function({plugins:e}){const t=this.Parser,i=t.prototype.blockTokenizers,o=t.prototype.blockMethods;i.shortcode=function({plugins:e}){return function(t,i,o){const a=n(i),[{plugin:s,match:l}={}]=e.toArray().map((e=>({match:i.match(e.pattern)||r({trimmedLines:a,plugin:e}),plugin:e}))).filter((({match:e})=>!!e)).sort(((e,t)=>e.match.index-t.match.index));if(l){if(o)return!0;const e=s.fromBlock(l);try{return t(l[0])({type:"shortcode",data:{shortcode:s.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${s.id}. Value: ${l[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),o.unshift("shortcode")}},82704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,l.default)(e.children)&&(0,a.default)(e.children,t).filter((e=>e));return Array.isArray(n)&&(n=m(n)),y(e,n||void 0)}function n(e,t){return t?d(d({},e),{},{children:t}):e}function r(e,t,r={}){(0,s.default)(t)||(r=t,t=void 0);const i=(0,l.default)(t)?[c("")]:t;return n(d({type:e},r),i)}function u(e,t={},r){return n(d({type:e},t),(0,l.default)(r)?[c("")]:r)}function c(e){const t={};if("string"==typeof e)return d(d({},t),{},{text:e});const{text:n,marks:r}=e;return v(d(d({},t),{},{text:n,marks:r}))}function h(e,n){switch(e.type){case"html":case"text":return d(d({},y(e)),{},{marks:n});case"inlineCode":return d(d({},y(e)),{},{marks:[...n,{type:"code"}]});case"strong":case"emphasis":case"delete":return g(e,n);case"link":{const t=(0,o.default)(e.children,(e=>v(h(e,n))));return y(e,(0,i.default)(t))}default:return t(d(d({},e),{},{data:d(d({},e.data),{},{marks:n})}))}}function g(e,t=[]){const n=p[e.type],r=n?[...t.filter((({type:e})=>e!==n)),{type:n}]:t;return(0,a.default)(e.children,(e=>v(h(e,r))))}function v(e){return e.marks&&e.marks.forEach((t=>{e[t.type]=!0})),e}function y(t,n){switch(t.type){case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(f[t.type],n);case"root":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(f[t.type],e)}case"listItem":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(f[t.type],e)}case"shortcode":{const e=[c("")],n=d(d({},t.data),{},{id:t.data.shortcode,shortcodeNew:!0});return r(f[t.type],e,{data:n})}case"text":case"html":return c(t.value);case"inlineCode":return c({text:t.value,code:!0,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return g(t);case"heading":return r(`heading-${{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth]}`,n);case"code":{const n=d(d({lang:t.lang},e?{code:t.value}:{}),{},{shortcode:"code-block",shortcodeData:{code:t.value,lang:t.lang}});return r("shortcode",[c(e?"":t.value)],{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return u("break",{data:e})}case"thematicBreak":return r(f[t.type]);case"link":{const{title:e,url:r,data:i}=t,o=d(d({},i),{},{title:e,url:r});return u(f[t.type],{data:o},n)}case"image":{const{title:e,url:n,alt:r,data:i}=t,o=d(d({},i),{},{title:e,alt:r,url:n});return u(f[t.type],{data:o})}case"table":{const e={align:t.align};return r(f[t.type],n,{data:e})}}}},t.mergeAdjacentTexts=m;var r=u(n(18149)),i=u(n(35676)),o=u(n(16760)),a=u(n(35838)),s=u(n(86152)),l=u(n(45455));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f={root:"root",paragraph:"paragraph",blockquote:"quote",code:"code-block",listItem:"list-item",table:"table",tableRow:"table-row",tableCell:"table-cell",thematicBreak:"thematic-break",link:"link",image:"image",shortcode:"shortcode"},p={strong:"bold",emphasis:"italic",delete:"delete",inlineCode:"code"};function h(e){return!!e.text}function m(e){if(e.length<=0)return e;const t=[];let n,i=!1;for(let s=0;s<e.length-1;s++){i||(n=e[s]);const l=e[s+1];h(n)&&h(l)&&(o=n,a=l,(0,r.default)(o.marks,a.marks))?(i=!0,n=d(d({},n),{},{text:`${n.text}${l.text}`})):(t.push(n),i=!1)}var o,a;return i?t.push(n):t.push(e[e.length-1]),t}},74099:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(t){const n=(0,a.default)(t);return e.call(null,n,t)};function e(t,n){const a=e.bind(null,t),s=n.children?n.children.map(a):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:i}=r;return(0,o.default)(e,{title:t,url:i,alt:n.alt},s)}const i=(0,o.default)("text","imageReference"===n.type?"![":"["),a=(0,o.default)("text","]");return[i,...s||[(0,o.default)("text",n.alt)],a]}if("definition"===n.type)return null;const l=(0,i.default)(s,null);return u(u({},n),{},{children:(0,r.default)(l)})}};var r=s(n(35676)),i=s(n(67304)),o=s(n(73610)),a=s(n(99983));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},24669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return t.children&&(t.children=t.children.map(((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return(0,i.default)(r).trim()?e:null}return e})).filter((e=>e)).map(e)),t}};var r,i=(r=n(75330))&&r.__esModule?r:{default:r}},19108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return e.children=e.children.map((e=>"html"===e.type?(0,i.default)("paragraph",[e]):e)),e}};var r,i=(r=n(73610))&&r.__esModule?r:{default:r}},13533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,{voidCodeBlock:t}){return function e(n){const r=n.children&&n.children[0]&&b.includes(n.children[0].type)?n.children.map(e).filter((e=>e)):O(n.children);return function(e,n){switch("shortcode"==e.type&&"code-block"==e.data.shortcode&&(e=function(e){return g(g({},e),{},{type:"code-block",data:g(g({},e.data),e.data.shortcodeData)})}(e)),e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return(0,u.default)(v[e.type],n);case"shortcode":{const{data:t}=e;return(0,u.default)(v[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const t={one:1,two:2,three:3,four:4,five:5,six:6}[e.type.split("-")[1]],r=(0,u.default)(v[e.type],{depth:t},n);return(0,c.default)(r)?r:void 0}case"code-block":{var r;const i=(0,l.default)(e,"data",{}),{lang:o,code:a}=i,s=h(i,d),c=t?a:null===(r=n[0])||void 0===r?void 0:r.value;return(0,u.default)(v[e.type],{lang:o,data:s},c||"")}case"numbered-list":case"bulleted-list":{const t={ordered:"numbered-list"===e.type,start:(0,l.default)(e.data,"start")||1};return(0,u.default)(v[e.type],t,n)}case"thematic-break":return(0,u.default)(v[e.type])}}(n,r)}({type:"root",children:e});function n(e,t){return e.map((e=>{const i=g({},e);switch(e.type){case"link":{const r=n(e.children,t);return g(g({},e),{},{children:r})}case"image":case"break":{const t=(0,r.default)(e.data,"marks");return g(g({},e),{},{data:t})}default:return delete i[t],i.marks=i.marks?i.marks.filter((({type:e})=>e!==t)):[],0===i.marks.length&&delete i.marks,i}}))}function p(e){switch(e.type){case"link":{const t=e.children.map((e=>{const t=g({},e);return t.marks=e.marks?e.marks.filter((({type:e})=>"code"!==e)):e.marks,delete t.code,t})),n=(0,o.default)(t,p);return(0,i.default)(...n)}case"break":case"image":return(0,o.default)((0,l.default)(e,["data","marks"]),(e=>e.type));default:return m(e)}}function m(e){return Object.keys(y).filter((t=>!!e[t]))}function E(e,t){const n=p(t),r=(0,i.default)(e,n);return"code"===r[0]?1===n.length?e:[]:r}function k(e){let t=p(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,s.default)("firstGroupMarks","code"),"code"]);let r=1;if(t.length>0)for(;r<e.length;){if(e[r]){const n=E(t,e[r]);if(!(n.length>0))break;t=n}r+=1}const i=t[0],o=e.slice(0,r);return[i,i?n(o,i):o,e.slice(r)]}function C(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?x:_,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:g(g({},e),{},{text:a})}}return{trimmedNode:e}}function S(e){const{whitespace:t,trimmedNode:n}=C(e[0]),r=C(e.length>1?(0,a.default)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r,s=function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter((e=>e));return{leadingWhitespace:t,centerNodes:s,trailingWhitespace:i}}function A(e){return e&&(0,u.default)("html",e)}function T(e){return w.includes(e.type)}function O(e=[]){const t=[];let n=[...e];for(;n.length>0;){const e=n[0];if(T(e)||m(e).length>0){const[r,i,o]=k(n);if("code"===r){const e=i[0];t.push((0,u.default)(y[r],e.data,e.text))}else if(!r&&1===i.length&&T(e)){const e=i[0];t.push(P(e,O(e.children)))}else{const{leadingWhitespace:e,trailingWhitespace:a,centerNodes:s}=S(i),l=O(s),d=(0,u.default)(y[r],l);if(""===(0,c.default)(d)){n=o;continue}const f=[A(e),d,A(a)].filter((e=>e));t.push(...f)}n=o}else"break"===e.type?(n=n.slice(1),t.push(P(e))):(n.shift(),t.push((0,u.default)("html",e.text)))}return t}function P(e,t){switch(e.type){case"break":return(0,u.default)(v[e.type]);case"link":{const{title:n,data:r}=e;return(0,u.default)(v[e.type],g({url:null==r?void 0:r.url,title:n},r),t)}case"image":{const t=(0,l.default)(e,"data",{}),{url:n,title:r,alt:i}=t,o=h(t,f);return(0,u.default)(v[e.type],{url:n,title:r,alt:i,data:o})}}}};var r=p(n(17620)),i=p(n(30898)),o=p(n(16760)),a=p(n(56974)),s=p(n(67304)),l=p(n(72579)),u=p(n(73610)),c=p(n(75330));const d=["lang","code"],f=["url","title","alt"];function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v={root:"root",paragraph:"paragraph","heading-one":"heading","heading-two":"heading","heading-three":"heading","heading-four":"heading","heading-five":"heading","heading-six":"heading",quote:"blockquote","code-block":"code","numbered-list":"list","bulleted-list":"list","list-item":"listItem",table:"table","table-row":"tableRow","table-cell":"tableCell",break:"break","thematic-break":"thematicBreak",link:"link",image:"image",shortcode:"shortcode"},y={bold:"strong",italic:"emphasis",delete:"delete",code:"inlineCode"},b=["paragraph","quote","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","list-item","shortcode","table","table-row","table-cell"],w=["link","image","break"],_=/^\s+\S/,x=/(?!\S)\s+$/},98685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorStyleVars=t.EditorControlBar=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(30762);const a=t.editorStyleVars={stickyDistanceBottom:"100px"};t.EditorControlBar=(0,i.default)("div",{target:"ehaqqzm0",label:"EditorControlBar"})("z-index:",o.zIndex.zIndex200,";position:sticky;top:0;margin-bottom:",a.stickyDistanceBottom,";")},69298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.validateMinMax=c;var r=s(n(12244)),i=s(n(13980)),o=s(n(19155)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function c(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(e<t||e>n):o={type:u.RANGE,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&e<t:o={type:u.RANGE,message:i("editor.editorControlPane.widget.min",{fieldLabel:r.get("label",r.get("name")),minValue:t})};break;case""!==e&&!1!==n&&e>n:o={type:u.RANGE,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}class d extends r.default.Component{constructor(...e){super(...e),l(this,"handleChange",(e=>{const t=this.props.field.get("value_type"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)})),l(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=c(t,i,o,e,n);return!a||{error:a}}))}render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,s=e.get("min",""),l=e.get("max",""),u=e.get("step","int"===e.get("value_type")?1:"");return(0,a.jsx)("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:u,min:s,max:l,onChange:this.handleChange})}}t.default=d,l(d,"propTypes",{field:o.default.map.isRequired,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.node,forID:i.default.string,valueType:i.default.string,step:i.default.number,min:i.default.number,max:i.default.number,t:i.default.func.isRequired}),l(d,"defaultProps",{value:""})},1484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},82133:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(69298)),i=a(n(1484)),o=a(n(60704));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"number",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},60704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"}}}},53998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(12244)),i=c(n(13980)),o=c(n(19155)),a=n(28165),s=n(46670),l=n(30762),u=n(1704);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=`\n padding: ${l.lengths.objectWidgetTopBarContainerPadding};\n `;class p extends r.default.Component{constructor(e){super(e),d(this,"componentValidate",{}),d(this,"validate",(()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=s.List.isList(t)?t:(0,s.List)([t]),t.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),d(this,"handleCollapseToggle",(()=>{this.setState({collapsed:!this.state.collapsed})})),d(this,"renderFields",((e,t)=>e?e.map(((e,t)=>this.controlFor(e,t))):this.controlFor(t))),d(this,"objectLabel",(()=>{const{value:e,field:t}=this.props,n=t.get("label",t.get("name")),r=t.get("summary");return r?u.stringTemplate.compileStringTemplate(r,null,"",e):n})),this.state={collapsed:e.field.get("collapsed",!1)}}shouldComponentUpdate(){return!0}controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:l,fieldsErrors:u,editorControl:c,controlRef:d,parentIds:f,isFieldDuplicate:p,isFieldHidden:h,locale:m,collapsed:g}=this.props;if("hidden"===e.get("widget"))return null;const v=e.get("name"),y=n&&s.Map.isMap(n)?n.get(v):n,b=p&&p(e),w=h&&h(e);return(0,a.jsx)(c,{key:t,field:e,value:y,onChange:r,clearFieldErrors:o,fieldsMetaData:l,fieldsErrors:u,onValidate:i,processControlRef:d&&d.bind(this),controlRef:d,parentIds:f,isDisabled:b,isHidden:w,isFieldDuplicate:p,isFieldHidden:h,locale:m,isParentListCollapsed:g})}render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i,t:o}=this.props,s=r?this.props.collapsed:this.state.collapsed,u=e.get("fields"),c=e.get("field");return u||c?(0,a.jsx)(a.ClassNames,null,(({css:e,cx:d})=>(0,a.jsx)("div",{id:t,className:d(n,e`
|
||
${f}
|
||
`,{[e`
|
||
${"\n padding: 6px 14px 14px;\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n "}
|
||
`]:r},{[e`
|
||
border-color: ${l.colors.textFieldBorder};
|
||
`]:!!r&&!i})},r?null:(0,a.jsx)(l.ObjectWidgetTopBar,{collapsed:s,onCollapseToggle:this.handleCollapseToggle,heading:s&&this.objectLabel(),t:o}),(0,a.jsx)("div",{className:d({[e`
|
||
${"\n display: none;\n "}
|
||
`]:s})},this.renderFields(u,c))))):(0,a.jsx)("h3",null,"No field(s) defined for this widget")}}t.default=p,d(p,"propTypes",{onChangeObject:i.default.func.isRequired,onValidateObject:i.default.func,value:i.default.oneOfType([i.default.node,i.default.object,i.default.bool]),field:i.default.object,forID:i.default.string,classNameWrapper:i.default.string.isRequired,forList:i.default.bool,controlRef:i.default.func,editorControl:i.default.elementType.isRequired,resolveWidget:i.default.func.isRequired,clearFieldErrors:i.default.func.isRequired,fieldsErrors:o.default.map,hasError:i.default.bool,t:i.default.func,locale:i.default.string,collapsed:i.default.bool}),d(p,"defaultProps",{value:(0,s.Map)()})},5186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({field:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e&&e.get("fields")||e.get("field")||null)}s.propTypes={field:r.default.node},t.default=s},16044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetObject=void 0;var r=a(n(53998)),i=a(n(5186)),o=a(n(18551));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetObject={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"object",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.default=l},18551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{collapsed:{type:"boolean"},i18n:{type:"boolean"}}}},89869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=k(n(84636)),i=k(n(56974)),o=k(n(45455)),a=k(n(72579)),s=k(n(17452)),l=k(n(54073)),u=k(n(12244)),c=k(n(13980)),d=k(n(19155)),f=n(31776),p=k(n(81209)),h=n(46670),m=n(30762),g=n(1704),v=n(50166),y=n(61540),b=n(66548),w=n(88366),_=n(82851),x=n(29987),E=n(28165);function k(e){return e&&e.__esModule?e:{default:e}}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){const{setNodeRef:t,transform:n,transition:r}=(0,b.useSortable)({id:e.data.data.id}),i={transform:_.CSS.Transform.toString(n),transition:r},o=A(A({},e.innerProps),{},{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}});return(0,E.jsx)("div",{ref:t,style:i},(0,E.jsx)(f.components.MultiValue,C({},e,{innerProps:o})))}function P(e){const{attributes:t,listeners:n}=(0,b.useSortable)({id:e.data.data.id});return(0,E.jsx)("div",C({},t,n),(0,E.jsx)(f.components.MultiValueLabel,e))}function R(e){const{distance:t,value:n,onSortEnd:r,isMulti:i}=e;if(!i)return(0,E.jsx)(p.default,e);const o=Array.isArray(n)?n.map((({data:e})=>e.id)):[],a={distance:t},s=(0,y.useSensors)((0,y.useSensor)(y.MouseSensor,{activationConstraint:a}),(0,y.useSensor)(y.TouchSensor,{activationConstraint:a}));return(0,E.jsx)(y.DndContext,{modifiers:[w.restrictToParentElement],collisionDetection:y.closestCenter,sensors:s,onDragEnd:function({active:e,over:t}){r({oldIndex:o.indexOf(e.id),newIndex:o.indexOf(t.id)})}},(0,E.jsx)(b.SortableContext,{items:o,strategy:b.horizontalListSortingStrategy},(0,E.jsx)(p.default,e)))}function M({index:e,style:t,data:n}){return(0,E.jsx)("div",{style:t},n.options[e])}function D(e){if(e.isLoading||e.options.length<=0||!Array.isArray(e.children))return e.children;const t=e.children;return(0,E.jsx)(v.FixedSizeList,{style:{width:"100%"},width:300,height:Math.min(300,30*t.length+10),itemCount:t.length,itemSize:30,itemData:{options:t}},M)}function I(e){return e&&e.value?e.value:""}function L(e){const t=h.List.isList(e)?e.toJS():e;return t&&Array.isArray(t)?t:null}function j(e,t){return(0,r.default)(e.concat(t),(e=>e.value))}function N(e){return e?h.List.isList(e)?e.toJS():[e]:[]}function F(e){const t=function(e){return"string"==typeof e?{label:e,value:e}:h.Map.isMap(e)?e.toJS():e}(e);return A(A({},t),{},{data:A(A({},t.data),{},{id:(0,x.v4)()})})}class B extends u.default.Component{constructor(...e){super(...e),T(this,"mounted",!1),T(this,"state",{initialOptions:[]}),T(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!this.isMultiple())return{error:!1};const o=g.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}})),T(this,"onSortEnd",(e=>({oldIndex:t,newIndex:n})=>{const{onChange:r,field:a}=this.props,s=function(e,t,n){const r=e.slice();return r.splice(n<0?e.length+n:n,0,r.splice(t,1)[0]),r}(e.map(I),t,n),l=!(0,o.default)(e)&&{[a.get("name")]:{[a.get("collection")]:{[(0,i.default)(s)]:(0,i.default)(e).data}}}||{};r((0,h.fromJS)(s),l)})),T(this,"handleChange",(e=>{const{onChange:t,field:n}=this.props;if(this.isMultiple()){const r=e;this.setState({initialOptions:r.filter(Boolean)});const a=r.map(I),s=!(0,o.default)(r)&&{[n.get("name")]:{[n.get("collection")]:{[(0,i.default)(a)]:(0,i.default)(r).data}}}||{};t((0,h.fromJS)(a),s)}else{this.setState({initialOptions:[e].filter(Boolean)});const r=I(e);t(r,e&&{[n.get("name")]:{[n.get("collection")]:{[r]:e.data}}})}})),T(this,"parseNestedFields",((e,t)=>{const{locale:n}=this.props,r=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(g.stringTemplate.extractTemplateVars(t).length<=0)return(0,a.default)(r,t);const i=g.stringTemplate.addFileTemplateFields(e.path,(0,h.fromJS)(r));return g.stringTemplate.compileStringTemplate(t,null,e.slug,i)})),T(this,"parseHitOptions",(e=>{const{field:t}=this.props,n=t.get("value_field"),r=t.get("display_fields")||(0,h.List)([t.get("value_field")]),i=N(t.get("filters"));return e.reduce(((e,t)=>{if(i.every((e=>{const n=e.field.split(".");let r=t.data;for(let e=0;e<n.length;e++){if(!Object.prototype.hasOwnProperty.call(r,n[e]))return!1;r=r[n[e]]}return e.values.includes(r)}))){const i=g.stringTemplate.expandPath({data:t.data,path:n});for(let n=0;n<i.length;n++){const o=r.toJS().map((e=>{const r=g.stringTemplate.expandPath({data:t.data,path:e});return this.parseNestedFields(t,r[n]||r[0])})).join(" "),a=this.parseNestedFields(t,i[n]);e.push({data:t.data,value:a,label:o})}}return e}),[])})),T(this,"loadOptions",(0,l.default)(((e,t)=>{const{field:n,query:r,forID:i}=this.props,o=n.get("collection"),a=n.get("options_length")||20;r(i,o,N(n.get("search_fields")),e,n.get("file")).then((({payload:e})=>{const n=e.hits||[],r=this.parseHitOptions(n),i=j(this.state.initialOptions,r).slice(0,a);t(i)}))}),500))}shouldComponentUpdate(e){return this.props.value!==e.value||this.props.hasActiveStyle!==e.hasActiveStyle||this.props.queryHits!==e.queryHits}async componentDidMount(){this.mounted=!0;const{forID:e,field:t,value:n,query:r,onChange:i}=this.props,o=t.get("collection"),a=t.get("file"),s=n&&(this.isMultiple()?L(n):[n]);if(s&&s.length>0){const n={},l=N(t.get("search_fields")),{payload:u}=await r(e,o,l,"",a),c=u.hits||[],d=this.parseHitOptions(c),f=s.map((e=>{const t=d.find((t=>t.value===e));return n[e]=null==t?void 0:t.data,t})).filter(Boolean),p=f.map((e=>e.value));this.mounted&&this.setState({initialOptions:f}),this.mounted&&i(1!==p.length||this.isMultiple()?(0,h.fromJS)(p):p[0],{[t.get("name")]:{[t.get("collection")]:n}})}}componentWillUnmount(){this.mounted=!1}isMultiple(){return this.props.field.get("multiple",!1)}render(){const{value:e,field:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,queryHits:a}=this.props,l=this.isMultiple(),u=!t.get("required",!0)||l,c=this.parseHitOptions(a),d=function({value:e,options:t,isMultiple:n}){if(n){const n=L(e);return null===n?null:n.map((e=>t.find((t=>t.value===(e.value||e))))).filter(Boolean).map(F)}return(0,s.default)(t,["value",e])||null}({options:j(this.state.initialOptions,c),value:e,isMultiple:l});return(0,E.jsx)(R,{useDragHandle:!0,onSortEnd:this.onSortEnd(d),distance:4,components:{MenuList:D,MultiValue:O,MultiValueLabel:P},value:d,inputId:n,cacheOptions:!0,defaultOptions:!0,loadOptions:this.loadOptions,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,styles:m.reactSelectStyles,isMulti:l,isClearable:u,placeholder:""})}}t.default=B,T(B,"propTypes",{onChange:c.default.func.isRequired,forID:c.default.string.isRequired,value:c.default.node,field:d.default.map,query:c.default.func.isRequired,queryHits:c.default.array,classNameWrapper:c.default.string.isRequired,setActiveStyle:c.default.func.isRequired,setInactiveStyle:c.default.func.isRequired,locale:c.default.string})},65029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},73884:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(89869)),i=a(n(65029)),o=a(n(37979));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"relation",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},37979:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},display_fields:{type:"array",minItems:1,items:{type:"string"}},options_length:{type:"integer"},filters:{type:"array",items:{type:"object",properties:{field:{type:"string"},values:{type:"array",minItems:1,items:{type:["string","boolean","integer"]}}},required:["field","values"]}}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]}},37381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(17452)),i=f(n(12244)),o=f(n(13980)),a=f(n(19155)),s=n(46670),l=f(n(31776)),u=n(30762),c=n(1704),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return!e||"number"!=typeof e.value&&"string"!=typeof e.value?null:e.value}function m(e){return"string"==typeof e?{label:e,value:e}:s.Map.isMap(e)?e.toJS():e}class g extends i.default.Component{constructor(...e){super(...e),p(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!e.get("multiple"))return{error:!1};const o=c.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}})),p(this,"handleChange",(e=>{const{onChange:t,field:n}=this.props,r=n.get("multiple",!1),i=r?!(null!=e&&e.length):!e;if(n.get("required")&&i&&r)t((0,s.List)());else if(i)t(null);else if(r){const n=e.map(h);t((0,s.fromJS)(n))}else t(h(e))}))}componentDidMount(){const{field:e,onChange:t,value:n}=this.props;e.get("required")&&e.get("multiple")&&(n&&!s.List.isList(n)?t((0,s.fromJS)([n])):n||t((0,s.fromJS)([])))}render(){const{field:e,value:t,forID:n,classNameWrapper:i,setActiveStyle:o,setInactiveStyle:a}=this.props,c=e.get("options"),f=e.get("multiple",!1),p=!e.get("required",!0)||f,h=[...c.map(m)],g=function({value:e,options:t,isMultiple:n}){if(n){const n=s.List.isList(e)?e.toJS():e;return n&&Array.isArray(n)?n.map((e=>t.find((t=>t.value===(e.value||e))))).filter(Boolean).map(m):null}return(0,r.default)(t,["value",e])||null}({options:h,value:t,isMultiple:f});return(0,d.jsx)(l.default,{inputId:n,value:g,onChange:this.handleChange,className:i,onFocus:o,onBlur:a,options:h,styles:u.reactSelectStyles,isMulti:f,isClearable:p,placeholder:""})}}t.default=g,p(g,"propTypes",{onChange:o.default.func.isRequired,value:o.default.node,forID:o.default.string.isRequired,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired,field:a.default.contains({options:a.default.listOf(o.default.oneOfType([o.default.string,o.default.number,a.default.contains({label:o.default.string.isRequired,value:o.default.oneOfType([o.default.string,o.default.number]).isRequired})])).isRequired})})},62097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(13980)),i=(l(n(12244)),n(46670)),o=l(n(19155)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u({values:e}){return(0,s.jsx)("ul",null,e.map(((e,t)=>(0,s.jsx)("li",{key:t},e))))}function c({value:e}){return(0,s.jsx)(a.WidgetPreviewContainer,null,e&&(i.List.isList(e)?(0,s.jsx)(u,{values:e}):e),!e&&null)}c.propTypes={value:r.default.oneOfType([r.default.string,o.default.list])},t.default=c},31540:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(37381)),i=a(n(62097)),o=a(n(93371));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"select",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=l},93371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}}},required:["options"]}},93711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(12244)),i=a(n(13980)),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.Component{constructor(...e){super(...e),s(this,"_sel",0),s(this,"_el",null),s(this,"handleChange",(e=>{this._sel=e.target.selectionStart,this.props.onChange(e.target.value)}))}componentDidUpdate(){this._el&&this._el.selectionStart!==this._sel&&this._el.setSelectionRange(this._sel,this._sel)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i}=this.props;return(0,o.jsx)("input",{ref:e=>{this._el=e},type:"text",id:e,className:n,value:t||"",onChange:this.handleChange,onFocus:r,onBlur:i})}}t.default=l,s(l,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),s(l,"defaultProps",{value:""})},30946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},67353:(e,t,n)=>{"use strict";t.ZP=void 0;var r=o(n(93711)),i=o(n(30946));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"string",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=s},40331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(12244)),i=s(n(13980)),o=s(n(94633)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"1mnv7s1-TextControl",styles:"font-family:inherit;label:TextControl;"};class c extends r.default.Component{shouldComponentUpdate(){return!0}render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:s}=this.props;return(0,a.jsx)(o.default,{id:e,value:t||"",className:r,onFocus:i,onBlur:s,minRows:5,css:u,onChange:e=>n(e.target.value)})}}t.default=c,l(c,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),l(c,"defaultProps",{value:""})},39727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(12244));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},53651:(e,t,n)=>{"use strict";t.ZP=void 0;var r=o(n(40331)),i=o(n(39727));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={Widget:function(e={}){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"text",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.ZP=s},87683:e=>{"use strict";e.exports=function(e){if(e)throw e}},82294:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())<o&&(o=i,a=u),u=n.indexOf(t,c+1)),c=l<u&&l>=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(l(e,s,s+a>u?u:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:(e,t,n)=>{"use strict";const r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return K(G(t,e.length-n),e,n,r)}function x(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return K(V(t),e,n,r)}function k(e,t,n,r){return K(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==c[e]){o=u[e],a=c[e];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=X[e[r]];return i}function R(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function L(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const B={};function U(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},62680:(e,t,n)=>{"use strict";var r=n(67286),i=n(89429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},89429:(e,t,n)=>{"use strict";var r=n(4090),i=n(67286),o=n(47669),a=n(5408),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=n(70999),d=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},53404:e=>{"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t)throw new Error("Expected character");for(n=r.indexOf(t);-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},6277:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:()=>i,default:()=>o});const o=i},15971:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,u)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,u)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];!function(t){e.on(p,"click",(function(n){e.e_preventDefault(n),d(),t&&t(u)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(23326))},32407:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].empty()&&o(e,u[c].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var f=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:f})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return p;setTimeout(p,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(23326))},15718:(e,t,n)=>{!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(u=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((d=a.close&&!o.startingInner?r(u,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(i.string=u.slice(0,d));var s=a.mode.token(i,o.inner);return d>-1?i.string=u:i.pos>i.start&&(o.startingInner=!1),d==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,u=i.string,c=0;c<n.length;++c){var d,f=n[c];if((d=r(u,f.open,i.pos))==i.pos){f.parseDelimiters||i.match(f.open),o.startingInner=!!f.parseDelimiters,o.innerActive=f;var p=0;if(t.indent){var h=t.indent(o.outer,"","");h!==e.Pass&&(p=h)}return o.inner=e.startState(f.mode,p),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=d&&d<l&&(l=d)}l!=1/0&&(i.string=u.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=u),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}(n(23326))},19962:(e,t,n)=>{!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(23326))},81094:(e,t,n)=>{!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e.unicode&&(n+="u"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var s;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(s=r.local.endScan.exec(n.current()))&&(n.pos=n.start+s.index),o}for(var l=e[r.state],u=0;u<l.length;u++){var c=l[u],d=(!c.data.sol||n.sol())&&n.match(c.regex);if(d){c.data.next?r.state=c.data.next:c.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=c.data.push):c.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),c.data.mode&&a(t,r,c.data.mode,c.token),c.data.indent&&r.indent.push(n.indentation()+t.indentUnit),c.data.dedent&&r.indent.pop();var f=c.token;if(f&&f.apply&&(f=f(d)),d.length>2&&c.token&&"string"!=typeof c.token){for(var p=2;p<d.length;p++)d[p]&&(r.pending||(r.pending=[])).push({text:d[p],token:c.token[p-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function a(t,r,i,a){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?o(i.spec,l.spec):i.mode==l.mode)&&(s=l);var u=s?s.mode:i.mode||e.getMode(t,i.spec),c=s?s.state:e.startState(u);i.persistent&&!s&&(r.persistentStates={mode:u,spec:i.spec,state:c,next:r.persistentStates}),r.localState=c,r.local={mode:u,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function s(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l<s.length;l++){var u=s[l];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var c=u.regex.exec(i);if(c&&c[0]){a--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(c[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,o){t(o,"start");var a={},l=o.meta||{},u=!1;for(var c in o)if(c!=l&&o.hasOwnProperty(c))for(var d=a[c]=[],f=o[c],p=0;p<f.length;p++){var h=f[p];d.push(new r(h,o)),(h.indent||h.dedent)&&(u=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:u?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var g in l)l.hasOwnProperty(g)&&(m[g]=l[g]);return m}}(n(23326))},19757:(e,t,n)=>{!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p<s&&d>=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),w=l[l.length-1];if(b.slice(0,w.length)==w)return{from:r(u,d(p,h,g,s)+c),to:r(u+l.length-1,d(y,b,w.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(23326))},83280:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(e,t){return e.line==t.line&&e.ch==t.ch}var i=[];function o(e){i.push(e),i.length>50&&i.shift()}function a(e){return i[i.length-(e?Math.min(e,1):1)]||""}var s=null;function l(e,t,n,a,l){null==l&&(l=e.getRange(t,n)),"grow"==a&&s&&s.cm==e&&r(t,s.pos)&&e.isClean(s.gen)?function(e){if(!i.length)return o(e);i[i.length-1]+=e}(l):!1!==a&&o(l),e.replaceRange("",t,n,"+delete"),s="grow"==a?{cm:e,pos:t,gen:e.changeGeneration()}:null}function u(e,t,n){return e.findPosH(t,n,"char",!0)}function c(e,t,n){return e.findPosH(t,n,"word",!0)}function d(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function f(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function p(e,t,r){for(var i=t.line,o=e.getLine(i),a=/\S/.test(r<0?o.slice(0,t.ch):o.slice(t.ch)),s=e.firstLine(),l=e.lastLine();;){if((i+=r)<s||i>l)return e.clipPos(n(i-r,r<0?0:null));if(o=e.getLine(i),/\S/.test(o))a=!0;else if(a)return n(i,0)}}function h(e,t,r){for(var i=t.line,o=t.ch,a=e.getLine(t.line),s=!1;;){var l=a.charAt(o+(r<0?-1:0));if(l){if(s&&/[!?.]/.test(l))return n(i,o+(r>0?1:0));s||(s=/\w/.test(l)),o+=r}else{if(i==(r<0?e.firstLine():e.lastLine()))return n(i,o);if(a=e.getLine(i+r),!/\S/.test(a))return n(i,o);i+=r,o=r<0?a.length:0}}}function m(e,t,i){var o;if(e.findMatchingBracket&&(o=e.findMatchingBracket(t,{strict:!0}))&&o.match&&(o.forward?1:-1)==i)return i>0?n(o.to.line,o.to.ch+1):o.to;for(var a=!0;;a=!1){var s=e.getTokenAt(t),l=n(t.line,i<0?s.start:s.end);if(!(a&&i>0&&s.end==t.ch)&&/\w/.test(s.string))return l;var u=e.findPosH(l,i,"char");if(r(l,u))return t;t=u}}function g(e,t){var n=e.state.emacsPrefix;return n?(C(e),"-"==n?-1:Number(n)):t?null:1}function v(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=g(e);t(e);for(var r=1;r<n;++r)t(e)}}function y(e,t,n,i){var o=g(e);o<0&&(i=-i,o=-o);for(var a=0;a<o;++a){var s=n(e,t,i);if(r(s,t))break;t=s}return t}function b(e,t){var n=function(n){n.extendSelection(y(n,n.getCursor(),e,t))};return n.motion=!0,n}function w(e,t,n,r){for(var i,o=e.listSelections(),a=o.length;a--;)l(e,i=o[a].head,y(e,i,t,n),r)}function _(e,t){if(e.somethingSelected()){for(var n,r=e.listSelections(),i=r.length;i--;)l(e,(n=r[i]).anchor,n.head,t);return!0}}function x(e,t){e.state.emacsPrefix?"-"!=t&&(e.state.emacsPrefix+=t):(e.state.emacsPrefix=t,e.on("keyHandled",k),e.on("inputRead",S))}var E={"Alt-G":!0,"Ctrl-X":!0,"Ctrl-Q":!0,"Ctrl-U":!0};function k(e,t){e.state.emacsPrefixMap||E.hasOwnProperty(t)||C(e)}function C(e){e.state.emacsPrefix=null,e.off("keyHandled",k),e.off("inputRead",S)}function S(e,t){var n=g(e);if(n>1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;o<n;++o)i+=r;e.replaceSelection(i)}}function A(e,t){("string"!=typeof t||!/^\d$/.test(t)&&"Ctrl-U"!=t)&&(e.removeKeyMap(M),e.state.emacsPrefixMap=!1,e.off("keyHandled",A),e.off("inputRead",A))}function T(e){e.setExtending(!1),e.setCursor(e.getCursor())}function O(e,t,n){e.openDialog?e.openDialog(function(e){var t=document.createDocumentFragment(),n=document.createElement("input");return n.setAttribute("type","text"),n.style.width="10em",t.appendChild(document.createTextNode(e+": ")),t.appendChild(n),t}(t),n,{bottom:!0}):n(prompt(t,""))}function P(e,t){var n=e.getCursor(),r=e.findPosH(n,1,"word");e.replaceRange(t(e.getRange(n,r)),n,r),e.setCursor(r)}t.setMark=function(e){e.setCursor(e.getCursor()),e.setExtending(!e.getExtending()),e.on("change",(function(){e.setExtending(!1)}))},t.killRegion=function(e){l(e,e.getCursor("start"),e.getCursor("end"),!0)},t.killLineEmacs=v((function(e){var t=e.getCursor(),r=e.clipPos(n(t.line)),i=e.getRange(t,r);/\S/.test(i)||(i+="\n",r=n(t.line+1,0)),l(e,t,r,"grow",i)})),t.killRingSave=function(e){o(e.getSelection()),T(e)},t.yank=function(e){var t=e.getCursor();e.replaceRange(a(g(e)),t,t,"paste"),e.setSelection(t,e.getCursor())},t.yankPop=function(e){e.replaceSelection((i.length>1&&i.pop(),a()),"around","paste")},t.forwardChar=b(u,1),t.backwardChar=b(u,-1),t.deleteChar=function(e){w(e,u,1,!1)},t.deleteForwardChar=function(e){_(e,!1)||w(e,u,1,!1)},t.deleteBackwardChar=function(e){_(e,!1)||w(e,u,-1,!1)},t.forwardWord=b(c,1),t.backwardWord=b(c,-1),t.killWord=function(e){w(e,c,1,"grow")},t.backwardKillWord=function(e){w(e,c,-1,"grow")},t.nextLine=b(d,1),t.previousLine=b(d,-1),t.scrollDownCommand=b(f,-1),t.scrollUpCommand=b(f,1),t.backwardParagraph=b(p,-1),t.forwardParagraph=b(p,1),t.backwardSentence=b(h,-1),t.forwardSentence=b(h,1),t.killSentence=function(e){w(e,h,1,"grow")},t.backwardKillSentence=function(e){l(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},t.killSexp=function(e){w(e,m,1,"grow")},t.backwardKillSexp=function(e){w(e,m,-1,"grow")},t.forwardSexp=b(m,1),t.backwardSexp=b(m,-1),t.markSexp=function(e){var t=e.getCursor();e.setSelection(y(e,t,m,1),t)},t.transposeSexps=function(e){var t=m(e,e.getCursor(),-1),n=m(e,t,1),r=m(e,n,1),i=m(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},t.backwardUpList=v((function(e){for(var t=e.getCursor(),r=t.line,i=t.ch,o=[];r>=e.firstLine();){for(var a=e.getLine(r),s=null==i?a.length:i;s>0;)if(")"==(i=a.charAt(--s)))o.push("(");else if("]"==i)o.push("[");else if("}"==i)o.push("{");else if(/[\(\{\[]/.test(i)&&(!o.length||o.pop()!=i))return e.extendSelection(n(r,s));--r,i=null}})),t.justOneSpace=function(e){for(var t=e.getCursor(),r=t.ch,i=t.ch,o=e.getLine(t.line);r&&/\s/.test(o.charAt(r-1));)--r;for(;i<o.length&&/\s/.test(o.charAt(i));)++i;e.replaceRange(" ",n(t.line,r),n(t.line,i))},t.openLine=v((function(e){e.replaceSelection("\n","start")})),t.transposeCharsRepeatable=v((function(e){e.execCommand("transposeChars")})),t.capitalizeWord=v((function(e){P(e,(function(e){var t=e.search(/\w/);return-1==t?e:e.slice(0,t)+e.charAt(t).toUpperCase()+e.slice(t+1).toLowerCase()}))})),t.upcaseWord=v((function(e){P(e,(function(e){return e.toUpperCase()}))})),t.downcaseWord=v((function(e){P(e,(function(e){return e.toLowerCase()}))})),t.undoRepeatable=v("undo"),t.keyboardQuit=function(e){e.execCommand("clearSearch"),T(e)},t.newline=v((function(e){e.replaceSelection("\n","end")})),t.gotoLine=function(e){var t=g(e,!0);if(null!=t&&t>0)return e.setCursor(t-1);O(e,"Goto line",(function(t){var n;t&&!isNaN(n=Number(t))&&n==(0|n)&&n>0&&e.setCursor(n-1)}))},t.indentRigidly=function(e){e.indentSelection(g(e,!0)||e.getOption("indentUnit"))},t.exchangePointAndMark=function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},t.quotedInsertTab=v("insertTab"),t.universalArgument=function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(M),e.on("keyHandled",A),e.on("inputRead",A)},e.emacs={kill:l,killRegion:_,repeated:v};var R=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":"killRegion","Ctrl-K":"killLineEmacs","Alt-W":"killRingSave","Ctrl-Y":"yank","Alt-Y":"yankPop","Ctrl-Space":"setMark","Ctrl-Shift-2":"setMark","Ctrl-F":"forwardChar","Ctrl-B":"backwardChar",Right:"forwardChar",Left:"backwardChar","Ctrl-D":"deleteChar",Delete:"deleteForwardChar","Ctrl-H":"deleteBackwardChar",Backspace:"deleteBackwardChar","Alt-F":"forwardWord","Alt-B":"backwardWord","Alt-Right":"forwardWord","Alt-Left":"backwardWord","Alt-D":"killWord","Alt-Backspace":"backwardKillWord","Ctrl-N":"nextLine","Ctrl-P":"previousLine",Down:"nextLine",Up:"previousLine","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":"scrollDownCommand","Ctrl-V":"scrollUpCommand",PageUp:"scrollDownCommand",PageDown:"scrollUpCommand","Ctrl-Up":"backwardParagraph","Ctrl-Down":"forwardParagraph","Alt-{":"backwardParagraph","Alt-}":"forwardParagraph","Alt-A":"backwardSentence","Alt-E":"forwardSentence","Alt-K":"killSentence","Ctrl-X Delete":"backwardKillSentence","Ctrl-Alt-K":"killSexp","Ctrl-Alt-Backspace":"backwardKillSexp","Ctrl-Alt-F":"forwardSexp","Ctrl-Alt-B":"backwardSexp","Shift-Ctrl-Alt-2":"markSexp","Ctrl-Alt-T":"transposeSexps","Ctrl-Alt-U":"backwardUpList","Alt-Space":"justOneSpace","Ctrl-O":"openLine","Ctrl-T":"transposeCharsRepeatable","Alt-C":"capitalizeWord","Alt-U":"upcaseWord","Alt-L":"downcaseWord","Alt-;":"toggleComment","Ctrl-/":"undoRepeatable","Shift-Ctrl--":"undoRepeatable","Ctrl-Z":"undoRepeatable","Cmd-Z":"undoRepeatable","Ctrl-X U":"undoRepeatable","Shift-Ctrl-Z":"redo","Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findPersistentNext","Ctrl-R":"findPersistentPrev","Ctrl-G":"keyboardQuit","Shift-Alt-5":"replace","Alt-/":"autocomplete",Enter:"newlineAndIndent","Ctrl-J":"newline",Tab:"indentAuto","Alt-G G":"gotoLine","Ctrl-X Tab":"indentRigidly","Ctrl-X Ctrl-X":"exchangePointAndMark","Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X K":"close","Ctrl-X H":"selectAll","Ctrl-Q Tab":"quotedInsertTab","Ctrl-U":"universalArgument",fallthrough:"default"}),M={"Ctrl-G":C};function D(e){M[e]=function(t){x(t,e)},R["Ctrl-"+e]=function(t){x(t,e)},E["Ctrl-"+e]=!0}for(var I=0;I<10;++I)D(String(I));D("-")}(n(23326))},94521:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,u=t.scanForBracket(l,-1);if(!u)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==s.charAt(s.indexOf(u.ch)+1)){var d=n(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:d,head:c.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}l=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function u(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function c(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function d(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){c(e,!0,1)},t.reverseSortLines=function(e){c(e,!0,-1)},t.sortLinesInsensitive=function(e){c(e,!1,1)},t.reverseSortLinesInsensitive=function(e){c(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(23326),n(19757),n(32407))},50832:(e,t,n)=>{!function(e){"use strict";function t(e){var t=e.Pos;function n(e,n){var r=e.state.vim;if(!r||r.insertMode)return n.head;var i=r.sel.head;return i?r.visualBlock&&n.head.line!=i.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=i.line||n.head.ch==i.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var r=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],i=r.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function a(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",nt),F(t),e.on(t.getInputField(),"paste",f(t))}function s(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==l||function(t){t.setOption("disableInput",!1),t.off("cursorActivity",nt),e.off(t.getInputField(),"paste",f(t)),t.state.vim=null,ze&&clearTimeout(ze)}(t)}function l(t,r){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),r&&r.attach==l||a(t)}function u(t,n){if(n){if(this[t])return this[t];var r=function(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in c?t[i]=c[o]:r=!0,o in d&&(t[i]=d[o])}return!!r&&(C(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}(t);if(!r)return!1;var i=U.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,(function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var c={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},d={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function f(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(J(e.getCursor(),0,1)),Y.enterInsertMode(e,{},t))}),t.onPasteFn}var p=/[\d]/,h=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],m=[function(e){return/\S/.test(e)}];function g(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var v,y=g(65,26),b=g(97,26),w=g(48,10),_=[].concat(y,b,w,["<",">"]),x=[].concat(y,b,w,["-",'"',".",":","_","/"]);try{v=new RegExp("^[\\p{Lu}]$","u")}catch(e){v=/^[A-Z]$/}function E(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function k(e){return/^[a-z]$/.test(e)}function C(e){return v.test(e)}function S(e){return/^\s*$/.test(e)}function A(e){return-1!=".?!".indexOf(e)}function T(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var O={};function P(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),O[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)O[r[o]]=O[e];t&&R(e,t)}function R(e,t,n,r){var i=O[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function M(e,t,n){var r=O[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}P("filetype",void 0,"string",["ft"],(function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}}));var D,I,L=function(){var e=100,t=-1,n=0,r=0,i=new Array(e);function o(o,a){(t+=a)>n?t=n:t<r&&(t=r);var s=i[(e+t)%e];if(s&&!s.find()){var l,u=a>0?1:-1,c=o.getCursor();do{if((s=i[(e+(t+=u))%e])&&(l=s.find())&&!re(c,l))break}while(t<n&&t>r)}return s}return{cachedCursor:void 0,add:function(o,a,s){var l=i[t%e];function u(n){var r=++t%e,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(l){var c=l.find();c&&!re(c,a)&&u(a)}else u(a);u(s),n=t,(r=t-e+1)<0&&(r=0)},find:function(e,n){var r=t,i=o(e,n);return t=r,i&&i.find()},move:o}},j=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function N(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=j()}function F(e){return e.state.vim||(e.state.vim={inputState:new z,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function B(){for(var e in D={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:L(),macroModeState:new N,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new $({}),searchHistoryController:new H,exCommandHistoryController:new H},O){var t=O[e];t.value=t.defaultValue}}N.prototype={exitMacroRecordMode:function(){var e=D.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=D.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var r=Ne("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(r,null,{bottom:!0})}this.isRecording=!0}}};var U={enterVimMode:a,buildKeyMap:function(){},getRegisterController:function(){return D.registerController},resetVimGlobalState_:B,getVimGlobalState_:function(){return D},maybeInitVimState_:F,suppressErrorLogging:!1,InsertModeKey:it,map:function(e,t,n){Xe.map(e,t,n)},unmap:function(e,t){return Xe.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=r.length,l=s-i;l<s&&a.length;l++){var u=r[l];if(!(u.keys!=t||n&&u.context&&u.context!==n||"ex"===u.type.substr(0,2)||"key"===u.type.substr(0,3))){var c={};for(var d in u)c[d]=u[d];c.keys=e,n&&!c.context&&(c.context=n),this._mapCommand(c);var f=o(u.context);a=a.filter((function(e){return-1===f.indexOf(e)}))}}},mapclear:function(e){var t=r.length,n=i,o=r.slice(0,t-n);if(r=r.slice(t-n),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var u in l)if(l[u]!==e){var c={};for(var d in s)c[d]=s[d];c.context=l[u],this._mapCommand(c)}}}},setOption:R,getOption:M,defineOption:P,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ye[e]=n,Xe.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},multiSelectHandleKey:function(e,t,n){var r=!1,i=U.maybeInitVimState_(e),o=i.visualBlock||i.wasInVisualBlock,a=e.isInMultiSelectMode();if(i.wasInVisualBlock&&!a?i.wasInVisualBlock=!1:a&&i.visualBlock&&(i.wasInVisualBlock=!0),"<Esc>"!=t||i.insertMode||i.visualMode||!a||"<Esc>"!=i.status)if(o||!a||e.inVirtualSelectionMode)r=U.handleKey(e,t,n);else{var s=lt(i);e.operation((function(){e.curOp.isVimOp=!0,e.forEachSelection((function(){var i=e.getCursor("head"),o=e.getCursor("anchor"),a=ie(i,o)?0:-1,l=ie(i,o)?-1:0;i=J(i,0,a),o=J(o,0,l),e.state.vim.sel.head=i,e.state.vim.sel.anchor=o,r=U.handleKey(e,t,n),e.virtualSelection&&(e.state.vim=lt(s))})),e.curOp.cursorActivity&&!r&&(e.curOp.cursorActivity=!1),e.state.vim=i}),!0)}else q(e);return!r||i.visualMode||i.insert||i.visualMode==e.somethingSelected()||rt(e,i),r},findKey:function(e,t,n){var i,o=F(e);function a(){var r=D.macroModeState;if(r.isRecording){if("q"==t)return r.exitMacroRecordMode(),q(e),!0;"mapping"!=n&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=D.registerController.getRegister(n);r&&r.pushText(t)}}(r,t)}}function s(){if("<Esc>"==t){if(o.visualMode)ge(e);else{if(!o.insertMode)return;Qe(e)}return q(e),!0}}return!1===(i=o.insertMode?function(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,i=1==t.length,a=G.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=G.matchCommand(n,r,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return q(e),!1;if("partial"==a.type)return I&&window.clearTimeout(I),I=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&q(e)}),M("insertModeEscKeysTimeout")),!i;if(I&&window.clearTimeout(I),i){for(var u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].head;e.replaceRange("",J(d,0,-(n.length-1)),d,"+input")}D.macroModeState.lastInsertModeChanges.changes.pop()}return q(e),a.command}():function(){if(a()||s())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t;if(/^[1-9]\d*$/.test(n))return!0;var i=/^(\d*)(.*)$/.exec(n);if(!i)return q(e),!1;var l=o.visualMode?"visual":"normal",u=i[2]||i[1];o.inputState.operatorShortcut&&o.inputState.operatorShortcut.slice(-1)==u&&(u=o.inputState.operatorShortcut);var c=G.matchCommand(u,r,o.inputState,l);return"none"==c.type?(q(e),!1):"partial"==c.type||("clear"==c.type?(q(e),!0):(o.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=i[1]&&o.inputState.pushRepeatDigit(i[1]),c.command))}())?o.insertMode||1!==t.length?void 0:function(){return!0}:!0===i?function(){return!0}:function(){return e.operation((function(){e.curOp.isVimOp=!0;try{"keyToKey"==i.type?function(n){for(var r;n;)r=/<\w+-.+?>|<\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),U.handleKey(e,t,"mapping")}(i.toKeys):G.processCommand(e,o,i)}catch(t){throw e.state.vim=void 0,F(e),U.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){Xe.processCommand(e,t)},defineMotion:function(e,t){V[e]=t},defineAction:function(e,t){Y[e]=t},defineOperator:function(e,t){Z[e]=t},mapCommand:function(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Je(o)},_mapCommand:Je,defineRegister:function(e,t){var n=D.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,x.push(e)},exitVisualMode:ge,exitInsertMode:Qe};function z(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function q(t,n){t.state.vim.inputState=new z,e.signal(t,"vim-command-done",n)}function W(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function $(e){this.registers=e,this.unnamedRegister=e['"']=new W,e["."]=new W,e[":"]=new W,e["/"]=new W}function H(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}z.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},z.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},W.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(j(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},$.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)C(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new W(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new W(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new W(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new W),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&T(e,x)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},H.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var G={matchCommand:function(e,t,n,r){var i,o=function(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=ee(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}(e);if(!l||l.length>1)return{type:"clear"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=Q(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);q(e)}r.operator=n.operator,r.operatorArgs=Q(n.operatorArgs),n.keys.length>1&&(r.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,he(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=Q(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=Q(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,q(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),Y[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;Re(t).setReversed(!i);var a=i?"/":"?",s=Re(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var u=D.macroModeState;u.isPlaying?p(f=u.replaySearchQueries.shift(),!0,!1):Be(t,{onClose:function(e){t.scrollTo(l.left,l.top),p(e,!0,!0);var n=D.macroModeState;n.isRecording&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=D.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}(n,e)},prefix:a,desc:"(JavaScript regexp)",onKeyUp:function(n,r,o){var a,s,u,c=e.keyName(n);"Up"==c||"Down"==c?(a="Up"==c,s=n.target?n.target.selectionEnd:0,o(r=D.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&D.searchHistoryController.reset();try{u=Ue(t,r,!0,!0)}catch(n){}u?t.scrollIntoView(We(t,!i,u),30):($e(t),t.scrollTo(l.left,l.top))},onKeyDown:function(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(D.searchHistoryController.pushInput(r),D.searchHistoryController.reset(),Ue(t,s),$e(t),t.scrollTo(l.left,l.top),e.e_stop(n),q(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}});break;case"wordUnderCursor":var c=ye(t,!1,0,!1,!0),d=!0;if(c||(c=ye(t,!1,0,!1,!1),d=!1),!c)return;var f=t.getLine(c.start.line).substring(c.start.ch,c.end.ch);f=d&&o?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),D.jumpList.cachedCursor=t.getCursor(),t.setCursor(c.start),p(f,!0,!1)}}function p(e,i,o){D.searchHistoryController.pushInput(e),D.searchHistoryController.reset();try{Ue(t,e,i,o)}catch(n){return Fe(t,"Invalid regex: "+e),void q(t)}G.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}},processEx:function(t,n,r){function i(e){D.exCommandHistoryController.pushInput(e),D.exCommandHistoryController.reset(),Xe.processCommand(t,e),q(t)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(D.exCommandHistoryController.pushInput(r),D.exCommandHistoryController.reset(),e.e_stop(n),q(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=D.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&D.exCommandHistoryController.reset()}"keyToEx"==r.type?Xe.processCommand(t,r.exArgs.input):n.visualMode?Be(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):Be(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,n){var r,i,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},u=a.operator,c=a.operatorArgs||{},d=a.registerName,f=n.sel,p=ne(n.visualMode?X(e,f.head):e.getCursor("head")),h=ne(n.visualMode?X(e,f.anchor):e.getCursor("anchor")),m=ne(p),g=ne(h);if(u&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=a.selectedCharacter),l.repeat=o,q(e),s){var v=V[s](e,p,l,n,a);if(n.lastMotion=V[s],!v)return;if(l.toJumplist){var y=D.jumpList,b=y.cachedCursor;b?(be(e,b,v),delete y.cachedCursor):be(e,p,v)}v instanceof Array?(i=v[0],r=v[1]):r=v,r||(r=ne(p)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=X(e,r)),i&&(i=X(e,i)),i=i||g,f.anchor=i,f.head=r,he(e),Se(e,n,"<",ie(i,r)?i:r),Se(e,n,">",ie(i,r)?r:i)):u||(r=X(e,r),e.setCursor(r.line,r.ch))}if(u){if(c.lastSel){i=g;var w=c.lastSel,_=Math.abs(w.head.line-w.anchor.line),x=Math.abs(w.head.ch-w.anchor.ch);r=w.visualLine?new t(g.line+_,g.ch):w.visualBlock?new t(g.line+_,g.ch+x):w.head.line==w.anchor.line?new t(g.line,g.ch+x):new t(g.line+_,g.ch),n.visualMode=!0,n.visualLine=w.visualLine,n.visualBlock=w.visualBlock,f=n.sel={anchor:i,head:r},he(e)}else n.visualMode&&(c.lastSel={anchor:ne(f.anchor),head:ne(f.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var E,k,C,A,T;if(n.visualMode){if(E=oe(f.head,f.anchor),k=ae(f.head,f.anchor),C=n.visualLine||c.linewise,T=me(e,{anchor:E,head:k},A=n.visualBlock?"block":C?"line":"char"),C){var O=T.ranges;if("block"==A)for(var P=0;P<O.length;P++)O[P].head.ch=le(e,O[P].head.line);else"line"==A&&(O[0].head=new t(O[0].head.line+1,0))}}else{if(E=ne(i||g),ie(k=ne(r||m),E)){var R=E;E=k,k=R}(C=l.linewise||c.linewise)?function(e,t,n){t.ch=0,n.ch=0,n.line++}(0,E,k):l.forward&&function(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&S(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=le(e,n.line)):n.ch=0}}(e,E,k),T=me(e,{anchor:E,head:k},A="char",!l.inclusive||C)}e.setSelections(T.ranges,T.primary),n.lastMotion=null,c.repeat=o,c.registerName=d,c.linewise=C;var M=Z[u](e,c,T.ranges,g,r);n.visualMode&&ge(e,null!=M),M&&e.setCursor(M)}},recordLastEdit:function(e,t,n){var r=D.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},V={moveToTopLine:function(e,n,r){var i=Ge(e).top+r.repeat-1;return new t(i,ve(e.getLine(i)))},moveToMiddleLine:function(e){var n=Ge(e),r=Math.floor(.5*(n.top+n.bottom));return new t(r,ve(e.getLine(r)))},moveToBottomLine:function(e,n,r){var i=Ge(e).bottom-r.repeat+1;return new t(i,ve(e.getLine(i)))},expandToLine:function(e,n,r){return new t(n.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=Re(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,qe(e,i),We(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(n,r,i,o,a){var s=Re(n),l=s.getQuery();if(l){var u=!i.forward,c=function(e,n,r,i,o){return void 0===i&&(i=1),e.operation((function(){var a=e.getCursor(),s=e.getSearchCursor(r,a),l=s.find(!n);!o.visualMode&&l&&re(s.from(),a)&&s.find(!n);for(var u=0;u<i;u++)if(!(l=s.find(n))&&!(s=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return;return[s.from(),s.to()]}))}(n,u=s.isReversed()?!u:u,l,i.repeat,o);if(c){if(a.operator)return c;var d=c[0],f=new t(c[1].line,c[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""}));var p=o.sel.anchor;if(p)return s.isReversed()?i.forward?[p,d]:[p,f]:i.forward?[p,f]:[p,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""});return u?[f,d]:[d,f]}}},goToMark:function(e,t,n,r){var i=Ve(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:ve(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,n,r,i){if(i.visualBlock&&r.sameLine){var o=i.sel;return[X(e,new t(o.anchor.line,o.head.ch)),X(e,new t(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,n,r,i){for(var o=n,a=0;a<r.repeat;a++){var s=o;for(var l in i.marks)if(k(l)){var u=i.marks[l].find();if(!((r.forward?ie(u,s):ie(s,u))||r.linewise&&u.line==s.line)){var c=re(s,o),d=r.forward?se(s,u,o):se(o,u,s);(c||d)&&(o=u)}}}return r.linewise&&(o=new t(o.line,ve(e.getLine(o.line)))),o},moveByCharacters:function(e,n,r){var i=n,o=r.repeat,a=r.forward?i.ch+o:i.ch-o;return new t(i.line,a)},moveByLines:function(e,n,r,i){var o=n,a=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=i.lastHPos;break;default:i.lastHPos=a}var s=r.repeat+(r.repeatOffset||0),l=r.forward?o.line+s:o.line-s,u=e.firstLine(),c=e.lastLine(),d=e.findPosV(o,r.forward?s:-s,"line",i.lastHSPos);return(r.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<u&&o.line==u?this.moveToStartOfLine(e,n,r,i):l>c&&o.line==c?ke(e,n,r,i,!0):(r.toFirstChar&&(a=ve(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,r,i){var o=n;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat;if((l=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos)).hitSide)if(r.forward)var s={top:e.charCoords(l,"div").top+8,left:i.lastHSPos},l=e.coordsChar(s,"div");else{var u=e.charCoords(new t(e.firstLine(),0),"div");u.left=i.lastHSPos,l=e.coordsChar(u,"div")}return i.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Te(e,t,n.repeat,r)},moveBySentence:function(e,n,r){var i=r.forward?1:-1;return function(e,n,r,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!E(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(u=e.getLine(t)),a={line:u,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!S(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!A(a.line[a.pos])||i||a.pos!==a.line.length-1&&!S(a.line[a.pos+1])||(i=!0),o(e,a)}var u=e.getLine(s.ln);s.pos=0;for(var c=u.length-1;c>=0;--c)if(!S(u[c])){s.pos=c;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(A(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||S(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var u=0;u<l.length;++u)if(!S(l[u])){a.pos=u;break}return a}for(var l={ln:n.line,pos:n.ch};r>0;)l=i<0?s(e,l.ln,l.pos,i):a(e,l.ln,l.pos,i),r--;return new t(l.ln,l.pos)}(e,n,r.repeat,i)},moveByScroll:function(e,t,n,r){var i,o=e.getScrollInfo(),a=n.repeat;a||(a=o.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(i=V.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(i,"local");return e.scrollTo(null,o.top+l.top-s.top),i},moveByWords:function(e,n,r){return function(e,n,r,i,o,a){var s=ne(n),l=[];(i&&!o||!i&&o)&&r++;for(var u=!(i&&o),c=0;c<r;c++){var d=Ee(e,n,i,a,u);if(!d){var f=le(e,e.lastLine());l.push(i?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(d),n=new t(d.line,i?d.to-1:d.from)}var p=l.length!=r,h=l[0],m=l.pop();return i&&!o?(p||h.from==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.from)):i&&o?new t(m.line,m.to-1):!i&&o?(p||h.to==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.to)):new t(m.line,m.from)}(e,n,r.repeat,!!r.forward,!!r.wordEnd,!!r.bigWord)},moveTillCharacter:function(e,t,n){var r=Ce(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return we(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return we(0,n),Ce(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,n,r){return function(e,n,r,i){var o=ne(e.getCursor()),a=r?1:-1,s=r?e.lineCount():-1,l=o.ch,u=o.line,c=e.getLine(u),d={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:i,reverseSymb:(r?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:r,depth:0,curMoveThrough:!1},f=_e[i];if(!f)return o;var p=xe[f].init,h=xe[f].isComplete;for(p&&p(d);u!==s&&n;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(u+=a,d.lineText=e.getLine(u)||"",a>0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=u,o.ch=d.index,n--)}return d.nextCh||d.curMoveThrough?new t(u,d.index):o}(e,r.repeat,r.forward,r.selectedCharacter)||n},moveToColumn:function(e,n,r,i){var o=r.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(n,"div").left,function(e,n){var r=e.getCursor().line;return X(e,new t(r,n-1))}(e,o)},moveToEol:function(e,t,n,r){return ke(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var r=n;return new t(r.line,ve(e.getLine(r.line)))},moveToMatchedSymbol:function(e,n){for(var r,i=n,o=i.line,a=i.ch,s=e.getLine(o);a<s.length;a++)if((r=s.charAt(a))&&-1!="()[]{}".indexOf(r)){var l=e.getTokenTypeAt(new t(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var u="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:u}).to}return i},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),new t(i,ve(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(n,r,i,o){var a=i.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!i.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[a])s=function(e,n,r,i){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],u={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(s.line).charAt(s.ch)===u?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+c),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+c),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return i?a.ch+=1:o.ch+=1,{start:o,end:a}}(n,r,a,l);else if({"'":!0,'"':!0,"`":!0}[a])s=function(e,n,r,i){var o,a,s,l,u=ne(n),c=e.getLine(u.line).split(""),d=c.indexOf(r);if(u.ch<d?u.ch=d:d<u.ch&&c[u.ch]==r&&(a=u.ch,--u.ch),c[u.ch]!=r||a)for(s=u.ch;s>-1&&!o;s--)c[s]==r&&(o=s+1);else o=u.ch+1;if(o&&!a)for(s=o,l=c.length;s<l&&!a;s++)c[s]==r&&(a=s);return o&&a?(i&&(--o,++a),{start:new t(u.line,o),end:new t(u.line,a)}):{start:u,end:u}}(n,r,a,l);else if("W"===a)s=ye(n,l,0,!0);else if("w"===a)s=ye(n,l,0,!1);else if("p"===a)if(s=Te(n,r,i.repeat,0,l),i.linewise=!0,o.visualMode)o.visualLine||(o.visualLine=!0);else{var u=o.inputState.operatorArgs;u&&(u.linewise=!0),s.end.line--}else if("t"===a)s=function(t,n,r){var i=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:i,end:i};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}(n,r,l);else{if("s"!==a)return null;var c=n.getLine(r.line);r.ch>0&&A(c[r.ch])&&(r.ch-=1);var d=Oe(n,r,i.repeat,1,l),f=Oe(n,r,i.repeat,-1,l);S(n.getLine(f.line)[f.ch])&&S(n.getLine(d.line)[d.ch-1])&&(f={line:f.line,ch:f.ch+1}),s={start:f,end:d}}return n.state.vim.visualMode?function(e,n,r){var i,o=e.state.vim.sel,a=o.head,s=o.anchor;return ie(r,n)&&(i=r,r=n,n=i),ie(a,s)?(a=oe(n,a),s=ae(s,r)):(s=oe(n,s),-1==(a=J(a=ae(a,r),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,le(e,a.line-1)))),[s,a]}(n,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=D.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Ce(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function K(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var Z={change:function(n,r,i){var o,a,s=n.state.vim,l=i[0].anchor,u=i[0].head;if(s.visualMode)if(r.fullLine)u.ch=Number.MAX_VALUE,u.line--,n.setSelection(l,u),a=n.getSelection(),n.replaceSelection(""),o=l;else{a=n.getSelection();var c=K("",i.length);n.replaceSelections(c),o=oe(i[0].head,i[0].anchor)}else{a=n.getRange(l,u);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!S(a)){var f=/\s+$/.exec(a);f&&d.motionArgs&&d.motionArgs.forward&&(u=J(u,0,-f[0].length),a=a.slice(0,-f[0].length))}var p=new t(l.line-1,Number.MAX_VALUE),h=n.firstLine()==n.lastLine();u.line>n.lastLine()&&r.linewise&&!h?n.replaceRange("",p,u):n.replaceRange("",l,u),r.linewise&&(h||(n.setCursor(p),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}D.registerController.pushText(r.registerName,"change",a,r.linewise,i.length>1),Y.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=K("",r.length);e.replaceSelections(s),i=oe(r[0].head,r[0].anchor)}else{var l=r[0].anchor,u=r[0].head;n.linewise&&u.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==u.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,le(e,l.line-1))),o=e.getRange(l,u),e.replaceRange("",l,u),i=l,n.linewise&&(i=V.moveToFirstNonWhiteSpaceCharacter(e,l))}return D.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),X(e,i)},indent:function(e,t,n){var r=e.state.vim;if(e.indentMore)for(var i=r.visualMode?t.repeat:1,o=0;o<i;o++)t.indentRight?e.indentMore():e.indentLess();else{var a=n[0].anchor.line,s=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line;i=r.visualMode?t.repeat:1,t.linewise&&s--;for(var l=a;l<=s;l++)for(o=0;o<i;o++)e.indentLine(l,t.indentRight)}return V.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),V.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var u=o[l],c="";if(!0===s)c=u.toLowerCase();else if(!1===s)c=u.toUpperCase();else for(var d=0;d<u.length;d++){var f=u.charAt(d);c+=C(f)?f.toLowerCase():f.toUpperCase()}a.push(c)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?V.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:oe(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?oe(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return D.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}};var Y={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=D.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=ne(e.getCursor()),u=e.charCoords(l,"local");if(t.forward)s>u.top?(l.line+=(s-u.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.top)):e.scrollTo(null,s);else{var c=s+e.getScrollInfo().clientHeight;c<u.bottom?(l.line-=(u.bottom-c)/i,l.line=Math.floor(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,n){var r=e.getCursor().line,i=e.charCoords(new t(r,0),"local"),o=e.getScrollInfo().clientHeight,a=i.top;switch(n.position){case"center":a=i.bottom-o/2;break;case"bottom":var s=new t(r,e.getLine(r).length-1);a=a-o+(e.charCoords(s,"local").bottom-a)}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=D.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)et(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=D.macroModeState,r=t.selectedCharacter;D.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,i){if(!n.getOption("readOnly")){i.insertMode=!0,i.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=i.sel,s=r.head||n.getCursor("head"),l=n.listSelections().length;if("eol"==o)s=new t(s.line,le(n,s.line));else if("bol"==o)s=new t(s.line,0);else if("charAfter"==o)s=J(s,0,1);else if("firstNonBlank"==o)s=V.moveToFirstNonWhiteSpaceCharacter(n,s);else if("startOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?J(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(i.visualMode)return}else"lastEdit"==o&&(s=Ke(n)||s);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),D.macroModeState.isPlaying||(n.on("change",tt),e.on(n.getInputField(),"keydown",ot)),i.visualMode&&ge(n),fe(n,s,l)}},toggleVisualMode:function(n,r,i){var o,a=r.repeat,s=n.getCursor();i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),he(n)):ge(n):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,o=X(n,new t(s.line,s.ch+a-1)),i.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),he(n),Se(n,i,"<",oe(s,o)),Se(n,i,">",ae(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&pe(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,he(t),Se(t,r,"<",oe(o,a)),Se(t,r,">",ae(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,n,r){var i,o;if(r.visualMode){if(i=e.getCursor("anchor"),ie(o=e.getCursor("head"),i)){var a=o;o=i,i=a}o.ch=le(e,o.line)-1}else{var s=Math.max(n.repeat,2);i=e.getCursor(),o=X(e,new t(i.line+s-1,1/0))}for(var l=0,u=i.line;u<o.line;u++){l=le(e,i.line),a=new t(i.line+1,le(e,i.line+1));var c=e.getRange(i,a);c=n.keepSpaces?c.replace(/\n\r?/g,""):c.replace(/\n\s*/g," "),e.replaceRange(c,i,a)}var d=new t(i.line,l);r.visualMode&&ge(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(n,r,i){i.insertMode=!0;var o=ne(n.getCursor());o.line!==n.firstLine()||r.after?(o.line=r.after?o.line:o.line-1,o.ch=le(n,o.line),n.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n)):(n.replaceRange("\n",new t(n.firstLine(),0)),n.setCursor(n.firstLine(),0)),this.enterInsertMode(n,{repeat:r.repeat},i)},paste:function(e,n,r){var i=ne(e.getCursor()),o=D.registerController.getRegister(n.registerName);if(p=o.toString()){if(n.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),u=s(l.match(/^\s*/)[0]),c=p.replace(/\n$/,""),d=p!==c,f=s(p.match(/^\s*/)[0]),p=c.replace(/^\s*/gm,(function(t){var n=u+(s(t)-f);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));p+=d?"\n":""}n.repeat>1&&(p=Array(n.repeat+1).join(p));var h,m,g=o.linewise,v=o.blockwise;if(v){p=p.split("\n"),g&&p.pop();for(var y=0;y<p.length;y++)p[y]=""==p[y]?" ":p[y];i.ch+=n.after?1:0,i.ch=Math.min(le(e,i.line),i.ch)}else g?r.visualMode?p=r.visualLine?p.slice(0,-1):"\n"+p.slice(0,p.length-1)+"\n":n.after?(p="\n"+p.slice(0,p.length-1),i.ch=le(e,i.line)):i.ch=0:i.ch+=n.after?1:0;if(r.visualMode){var b;r.lastPastedText=p;var w=function(e,n){var r=n.lastSelection,i=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[ie(n.anchor,n.head)?n.anchor:n.head,ie(r.anchor,r.head)?r.head:r.anchor]},o=function(){var n=e.getCursor(),i=e.getCursor(),o=r.visualBlock;if(o){var a=o.width,s=o.height;i=new t(n.line+s,n.ch+a);for(var l=[],u=n.line;u<i.line;u++){var c={anchor:new t(u,n.ch),head:new t(u,i.ch)};l.push(c)}e.setSelections(l)}else{var d=r.anchorMark.find(),f=r.headMark.find(),p=f.line-d.line,h=f.ch-d.ch;i={line:i.line+p,ch:p?i.ch:h+i.ch},r.visualLine&&(n=new t(n.line,0),i=new t(i.line,le(e,i.line))),e.setSelection(n,i)}return[n,i]};return n.visualMode?i():o()}(e,r),_=w[0],x=w[1],E=e.getSelection(),k=e.listSelections(),C=new Array(k.length).join("1").split("1");r.lastSelection&&(b=r.lastSelection.headMark.find()),D.registerController.unnamedRegister.setText(E),v?(e.replaceSelections(C),x=new t(_.line+p.length-1,_.ch),e.setCursor(_),de(e,x),e.replaceSelections(p),h=_):r.visualBlock?(e.replaceSelections(C),e.setCursor(_),e.replaceRange(p,_,_),h=_):(e.replaceRange(p,_,x),h=e.posFromIndex(e.indexFromPos(_)+p.length-1)),b&&(r.lastSelection.headMark=e.setBookmark(b)),g&&(h.ch=0)}else if(v){for(e.setCursor(i),y=0;y<p.length;y++){var S=i.line+y;S>e.lastLine()&&e.replaceRange("\n",new t(S,0)),le(e,S)<i.ch&&ce(e,S,i.ch)}e.setCursor(i),de(e,new t(i.line+p.length-1,i.ch)),e.replaceSelections(p),h=i}else e.replaceRange(p,i),g&&n.after?h=new t(i.line+1,ve(e.getLine(i.line+1))):g&&!n.after?h=new t(i.line,ve(e.getLine(i.line))):!g&&n.after?(m=e.indexFromPos(i),h=e.posFromIndex(m+p.length-1)):(m=e.indexFromPos(i),h=e.posFromIndex(m+p.length));r.visualMode&&ge(e,!1),e.setCursor(h)}},undo:function(t,n){t.operation((function(){te(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))}))},redo:function(t,n){te(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Se(e,n,t.selectedCharacter,e.getCursor())},replace:function(n,r,i){var o,a,s=r.selectedCharacter,l=n.getCursor(),u=n.listSelections();if(i.visualMode)l=n.getCursor("start"),a=n.getCursor("end");else{var c=n.getLine(l.line);(o=l.ch+r.repeat)>c.length&&(o=c.length),a=new t(l.line,o)}if("\n"==s)i.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(l,a);if(d=d.replace(/[^\n]/g,s),i.visualBlock){var f=new Array(n.getOption("tabSize")+1).join(" ");d=(d=n.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(d)}else n.replaceRange(d,l,a);i.visualMode?(l=ie(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,n.setCursor(l),ge(n,!1)):n.setCursor(J(a,0,-1))}},incrementNumberToken:function(e,n){for(var r,i,o,a,s=e.getCursor(),l=e.getLine(s.line),u=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=u.exec(l))&&(o=(i=r.index)+r[0].length,!(s.ch<o)););if((n.backtrack||!(o<=s.ch))&&r){var c=r[2]||r[4],d=r[3]||r[5],f=n.increase?1:-1,p={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];a=(parseInt(r[1]+d,p)+f*n.repeat).toString(p);var h=c?new Array(d.length-a.length+1+r[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+c+h+a.substr(1):c+h+a;var m=new t(s.line,i),g=new t(s.line,o);e.replaceRange(a,m,g),e.setCursor(new t(s.line,i+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,at(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Qe};function X(e,n){var r=e.state.vim,i=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),n.line),e.lastLine()),a=le(e,o)-1+!!i,s=Math.min(Math.max(0,n.ch),a);return new t(o,s)}function Q(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function J(e,n,r){return"object"==typeof n&&(r=n.ch,n=n.line),new t(e.line+n,e.ch+r)}function ee(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function te(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function ne(e){return new t(e.line,e.ch)}function re(e,t){return e.ch==t.ch&&e.line==t.line}function ie(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function oe(e,t){return arguments.length>2&&(t=oe.apply(void 0,Array.prototype.slice.call(arguments,1))),ie(e,t)?e:t}function ae(e,t){return arguments.length>2&&(t=ae.apply(void 0,Array.prototype.slice.call(arguments,1))),ie(e,t)?t:e}function se(e,t,n){var r=ie(e,t),i=ie(t,n);return r&&i}function le(e,t){return e.getLine(t).length}function ue(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ce(e,n,r){var i=le(e,n),o=new Array(r-i+1).join(" ");e.setCursor(new t(n,i)),e.replaceRange(o,e.getCursor())}function de(e,n){var r=[],i=e.listSelections(),o=ne(e.clipPos(n)),a=!re(n,o),s=function(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&re(e[r].anchor,t),o="anchor"!=n&&re(e[r].head,t);if(i||o)return r}return-1}(i,e.getCursor("head")),l=re(i[s].head,i[s].anchor),u=i.length-1,c=u-s>s?u:0,d=i[c].anchor,f=Math.min(d.line,o.line),p=Math.max(d.line,o.line),h=d.ch,m=o.ch,g=i[c].head.ch-h,v=m-h;g>0&&v<=0?(h++,a||m--):g<0&&v>=0?(h--,l||m++):g<0&&-1==v&&(h--,m++);for(var y=f;y<=p;y++){var b={anchor:new t(y,h),head:new t(y,m)};r.push(b)}return e.setSelections(r),n.ch=m,d.ch=h,d}function fe(e,t,n){for(var r=[],i=0;i<n;i++){var o=J(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function pe(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:ne(n),head:ne(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function he(e,t,n){var r=e.state.vim,i=me(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary)}function me(e,n,r,i){var o=ne(n.head),a=ne(n.anchor);if("char"==r){var s=i||ie(n.head,n.anchor)?0:1,l=ie(n.head,n.anchor)?1:0;return o=J(n.head,0,s),{ranges:[{anchor:a=J(n.anchor,0,l),head:o}],primary:0}}if("line"==r){if(ie(n.head,n.anchor))o.ch=0,a.ch=le(e,a.line);else{a.ch=0;var u=e.lastLine();o.line>u&&(o.line=u),o.ch=le(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){var c=Math.min(a.line,o.line),d=a.ch,f=Math.max(a.line,o.line),p=o.ch;d<p?p+=1:d+=1;for(var h=f-c+1,m=o.line==c?0:h-1,g=[],v=0;v<h;v++)g.push({anchor:new t(c+v,d),head:new t(c+v,p)});return{ranges:g,primary:m}}}function ge(t,n){var r=t.state.vim;!1!==n&&t.setCursor(X(t,r.sel.head)),pe(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function ve(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function ye(e,n,r,i,o){for(var a=function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=oe(t,e.getCursor("anchor"))),t}(e),s=e.getLine(a.line),l=a.ch,u=o?h[0]:m[0];!u(s.charAt(l));)if(++l>=s.length)return null;i?u=m[0]:(u=h[0])(s.charAt(l))||(u=h[1]);for(var c=l,d=l;u(s.charAt(c))&&c<s.length;)c++;for(;u(s.charAt(d))&&d>=0;)d--;if(d++,n){for(var f=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(f==c){for(var p=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=p)}}return{start:new t(a.line,d),end:new t(a.line,c)}}function be(e,t,n){re(t,n)||D.jumpList.add(e,t,n)}function we(e,t){D.lastCharacterSearch.increment=e,D.lastCharacterSearch.forward=t.forward,D.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var _e={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},xe={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Ee(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,u=r?m:h;if(i&&""==s){if(o+=l,s=e.getLine(o),!E(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var c=l>0?s.length:-1,d=c,f=c;a!=c;){for(var p=!1,g=0;g<u.length&&!p;++g)if(u[g](s.charAt(a))){for(d=a;a!=c&&u[g](s.charAt(a));)a+=l;if(p=d!=(f=a),d==t.ch&&o==t.line&&f==d+l)continue;return{from:Math.min(d,f+1),to:Math.max(d,f),line:o}}p||(a+=l)}if(!E(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function ke(e,n,r,i,o){var a=new t(n.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,"div").left),a}function Ce(e,n,r,i){for(var o,a=e.getCursor(),s=a.ch,l=0;l<n;l++){if(-1==(o=Ae(s,e.getLine(a.line),i,r,!0)))return null;s=o}return new t(e.getCursor().line,o)}function Se(e,t,n,r){T(n,_)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function Ae(e,t,n,r,i){var o;return r?-1==(o=t.indexOf(n,e+1))||i||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||i||(o+=1),o}function Te(e,n,r,i,o){var a,s=n.line,l=e.firstLine(),u=e.lastLine(),c=s;function d(t){return!e.getLine(t)}function f(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(i){for(;l<=c&&c<=u&&r>0;)f(c,i)&&r--,c+=i;return new t(c,0)}var p=e.state.vim;if(p.visualLine&&f(s,1,!0)){var h=p.sel.anchor;f(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var m=d(s);for(c=s;c<=u&&r;c++)f(c,1,!0)&&(o&&d(c)==m||r--);for(a=new t(c,0),c>u&&!m?m=!0:o=!1,c=s;c>l&&(o&&d(c)!=m&&c!=s||!f(c,-1,!0));c--);return{start:new t(c,0),end:a}}function Oe(e,n,r,i,o){function a(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,r){var i={line:e.getLine(t),ln:t,pos:n,dir:r};if(""===i.line)return{ln:i.ln,pos:i.pos};var s=i.pos;for(a(i);null!==i.line;){if(s=i.pos,A(i.line[i.pos])){if(o){for(a(i);null!==i.line&&S(i.line[i.pos]);)s=i.pos,a(i);return{ln:i.ln,pos:s+1}}return{ln:i.ln,pos:i.pos+1}}a(i)}return{ln:i.ln,pos:s+1}}function l(e,t,n,r){var i=e.getLine(t),s={line:i,ln:t,pos:n,dir:r};if(""===s.line)return{ln:s.ln,pos:s.pos};var l=s.pos;for(a(s);null!==s.line;){if(S(s.line[s.pos])||A(s.line[s.pos])){if(A(s.line[s.pos]))return o&&S(s.line[s.pos+1])?{ln:s.ln,pos:s.pos+1}:{ln:s.ln,pos:l}}else l=s.pos;a(s)}return s.line=i,o&&S(s.line[s.pos])?{ln:s.ln,pos:s.pos}:{ln:s.ln,pos:l}}for(var u={ln:n.line,pos:n.ch};r>0;)u=i<0?l(e,u.ln,u.pos,i):s(e,u.ln,u.pos,i),r--;return new t(u.ln,u.pos)}function Pe(){}function Re(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Pe)}function Me(e,t){var n=De(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function De(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}P("pcre",!0,"boolean"),Pe.prototype={getQuery:function(){return D.query},setQuery:function(e){D.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return D.isReversed},setReversed:function(e){D.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var Ie={"\\n":"\n","\\r":"\r","\\t":"\t"};var Le={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function je(e,t,n){if(D.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=De(e,"/");return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(M("pcre")||(r=function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"",a=o&&-1!="|(){".indexOf(o);t?("\\"===i&&a||n.push(i),t=!1):"\\"===i?(t=!0,o&&-1!="}".indexOf(o)&&(a=!0),a&&"\\"!==o||n.push(i)):(n.push(i),a&&"\\"!==o&&n.push("\\"))}return n.join("")}(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"im":"m")):null}function Ne(e){"string"==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments[n])if("object"!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("$"===r[0]?e.style[r.slice(1)]=t[r]:e.setAttribute(r,t[r]));return e}function Fe(e,t){var n=Ne("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function Be(e,t){var n,r,i=(n=t.prefix,r=t.desc,Ne(document.createDocumentFragment(),Ne("span",{$fontFamily:"monospace",$whiteSpace:"pre"},n,Ne("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),r&&Ne("span",{$color:"#888"},r)));if(e.openDialog)e.openDialog(i,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var o="";"string"!=typeof t.prefix&&t.prefix&&(o+=t.prefix.textContent),t.desc&&(o+=" "+t.desc),t.onClose(prompt(o,""))}}function Ue(e,t,n,r){if(t){var i=Re(e),o=je(t,!!n,!!r);if(o)return qe(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}(o,i.getQuery())||i.setQuery(o),o}}var ze=0;function qe(e,t){clearTimeout(ze),ze=setTimeout((function(){if(e.state.vim){var n=Re(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))}}),50)}function We(e,n,r,i){return void 0===i&&(i=1),e.operation((function(){for(var o=e.getCursor(),a=e.getSearchCursor(r,o),s=0;s<i;s++){var l=a.find(n);if(0==s&&l&&re(a.from(),o)){var u=n?a.from():a.to();(l=a.find(n))&&!l[0]&&re(a.from(),u)&&e.getLine(u.line).length==u.ch&&(l=a.find(n))}if(!l&&!(a=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return}return a.from()}))}function $e(e){var t=Re(e);e.removeOverlay(Re(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function He(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?T(e,t):"number"==typeof n?e>=t&&e<=n:e==t}function Ge(e){var t=e.getScrollInfo(),n=e.coordsChar({left:0,top:6+t.top},"local"),r=t.clientHeight-10+t.top,i=e.coordsChar({left:0,top:r},"local");return{top:n.line,bottom:i.line}}function Ve(e,n,r){if("'"==r||"`"==r)return D.jumpList.find(e,-1)||new t(0,0);if("."==r)return Ke(e);var i=n.marks[r];return i&&i.find()}function Ke(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return ne(t[n].changes[0].to)}var Ze=function(){this.buildCommandMap_()};Ze.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(t,n,r){var i=t.state.vim,o=D.registerController.getRegister(":"),a=o.toString();i.visualMode&&ge(t);var s=new e.StringStream(n);o.setText(n);var l,u,c=r||{};c.input=n;try{this.parseInput_(t,s,c)}catch(e){throw Fe(t,e.toString()),e}if(c.commandName){if(l=this.matchCommand_(c.commandName)){if(u=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,c,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)U.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==c.line&&(u="move");if(u)try{Ye[u](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw Fe(t,e.toString()),e}else Fe(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=Ve(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=ue(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),r.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:t},n&&(o.context=n),r.unshift(o)},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return delete this.commandMap_[n],!0}else for(var i=e,o=0;o<r.length;o++)if(i==r[o].keys&&r[o].context===t)return r.splice(o,1),!0}};var Ye={colorscheme:function(e,t){!t.args||t.args.length<1?Fe(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&Fe(e,"Invalid mapping: "+t.input):Xe.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;(!r||r.length<1||!Xe.unmap(r[0],n))&&e&&Fe(e,"No such mapping: "+t.input)},move:function(e,t){G.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&Fe(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=O[o]&&"boolean"==O[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var u=M(o,e,r);u instanceof Error?Fe(e,u.message):Fe(e,!0===u||!1===u?" "+(u?"":"no")+o:" "+o+"="+u)}else{var c=R(o,a,e,r);c instanceof Error&&Fe(e,c.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=D.registerController.registers,i="----------Registers----------\n\n";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),D.registerController.isValidRegister(a)&&(i+='"'+a+" "+(r[a]||new W).toString()+"\n")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+" "+s+"\n")}Fe(e,i)},sort:function(n,r){var i,o,a,s,l;var u=function(){if(r.argString){var t=new e.StringStream(r.argString);if(t.eat("!")&&(i=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!t.eol())return"Invalid arguments";if(n[1]){o=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var u=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,c=-1!=n[1].indexOf("x")&&1,d=-1!=n[1].indexOf("o")&&1;if(u+c+d>1)return"Invalid arguments";s=(u?"decimal":c&&"hex")||d&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}();if(u)Fe(n,u+": "+r.argString);else{var c=r.line||n.firstLine(),d=r.lineEnd||r.line||n.lastLine();if(c!=d){var f=new t(c,0),p=new t(d,le(n,d)),h=n.getRange(f,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var b=0;b<h.length;b++){var w=l?h[b].match(l):null;w&&""!=w[0]?v.push(w):!l&&m.exec(h[b])?v.push(h[b]):y.push(h[b])}else y=h;if(v.sort(l?function(e,t){var n;return i&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:E),l)for(b=0;b<v.length;b++)v[b]=v[b].input;else s||y.sort(E);if(h=i?v.concat(y):y.concat(v),a){var _,x=h;for(h=[],b=0;b<x.length;b++)x[b]!=_&&h.push(x[b]),_=x[b]}n.replaceRange(h.join("\n"),f,p)}}function E(e,t){var n;i&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var r=s&&m.exec(e),a=s&&m.exec(t);return r?(r=parseInt((r[1]+r[2]).toLowerCase(),g))-(a=parseInt((a[1]+a[2]).toLowerCase(),g)):e<t?-1:1}},vglobal:function(e,t){this.global(e,t)},global:function(e,t){var n=t.argString;if(n){var r,i="v"===t.commandName[0],o=void 0!==t.line?t.line:e.firstLine(),a=t.lineEnd||t.line||e.lastLine(),s=function(e){return Me(e,"/")}(n),l=n;if(s.length&&(l=s[0],r=s.slice(1,s.length).join("/")),l)try{Ue(e,l,!0,!0)}catch(t){return void Fe(e,"Invalid regex: "+l)}for(var u=Re(e).getQuery(),c=[],d=o;d<=a;d++){var f=e.getLineHandle(d);u.test(f.text)!==i&&c.push(r?f:f.text)}if(r){var p=0,h=function(){if(p<c.length){var t=c[p++],n=e.getLineNumber(t);if(null==n)return void h();var i=n+1+r;Xe.processCommand(e,i,{callback:h})}};h()}else Fe(e,c.join("\n"))}else Fe(e,"Regular Expression missing from global")},substitute:function(n,r){if(!n.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var i,o,a,s,l=r.argString,u=l?Me(l,l[0]):[],c="",d=!1,f=!1;if(u.length)i=u[0],M("pcre")&&""!==i&&(i=new RegExp(i).source),void 0!==(c=u[1])&&(c=M("pcre")?function(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in Le)if(n.match(o,!0)){i=!0,r.push(Le[o]);break}i||r.push(n.next())}return r.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"";Ie[i+o]?(n.push(Ie[i+o]),r++):t?(n.push(i),t=!1):"\\"===i?(t=!0,a=o,p.test(a)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}var a;return n.join("")}(c),D.lastSubstituteReplacePart=c),o=u[2]?u[2].split(" "):[];else if(l&&l.length)return void Fe(n,"Substitutions should be of the form :s/pattern/replace/");if(o&&(a=o[0],s=parseInt(o[1]),a&&(-1!=a.indexOf("c")&&(d=!0),-1!=a.indexOf("g")&&(f=!0),i=M("pcre")?i+"/"+a:i.replace(/\//g,"\\/")+"/"+a)),i)try{Ue(n,i,!0,!0)}catch(e){return void Fe(n,"Invalid regex: "+i)}if(void 0!==(c=c||D.lastSubstituteReplacePart)){var h=Re(n).getQuery(),m=void 0!==r.line?r.line:n.getCursor().line,g=r.lineEnd||m;m==n.firstLine()&&g==n.lastLine()&&(g=1/0),s&&(g=(m=g)+s-1);var v=X(n,new t(m,0)),y=n.getSearchCursor(h,v);!function(t,n,r,i,o,a,s,l,u){t.state.vim.exMode=!0;var c,d,f,p=!1;function h(){t.operation((function(){for(;!p;)m(),v();y()}))}function m(){var e=t.getRange(a.from(),a.to()).replace(s,l),n=a.to().line;a.replace(e),d=a.to().line,o+=d-n,f=d<n}function g(){var e=c&&ne(a.to()),t=a.findNext();return t&&!t[0]&&e&&re(a.from(),e)&&(t=a.findNext()),t}function v(){for(;g()&&He(a.from(),i,o);)if(r||a.from().line!=d||f)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),c=a.from(),void(p=!1);p=!0}function y(e){if(e&&e(),t.focus(),c){t.setCursor(c);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=c.ch}u&&u()}function b(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":m(),v();break;case"N":v();break;case"A":var o=u;u=void 0,t.operation(h),u=o;break;case"L":m();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":y(i)}return p&&y(i),!0}if(v(),!p)return n?void Be(t,{prefix:Ne("span","replace with ",Ne("strong",l)," (y/n/a/q/l)"),onKeyDown:b}):(h(),void(u&&u()));Fe(t,"No matches for "+s.source)}(n,d,f,m,g,y,h,c,r.callback)}else Fe(n,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){$e(e)},yank:function(e){var t=ne(e.getCursor()).line,n=e.getLine(t);D.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&ue(n.argString))for(var r=t.state.vim,i=new e.StringStream(ue(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void Fe(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void Fe(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(k(s)&&k(l)||C(s)&&C(l)))return void Fe(t,"Invalid argument: "+s+"-");var u=s.charCodeAt(0),c=l.charCodeAt(0);if(u>=c)return void Fe(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=c-u;d++){var f=String.fromCharCode(u+d);delete r.marks[f]}}else delete r.marks[a]}else Fe(t,"Argument required")}},Xe=new Ze;function Qe(t){var n=t.state.vim,r=D.macroModeState,i=D.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",tt),e.off(t.getInputField(),"keydown",ot)),!o&&n.insertModeRepeat>1&&(at(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,n=D.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function Je(e){r.unshift(e)}function et(e,t,n,r){var i=D.registerController.getRegister(r);if(":"==r)return i.keyBuffer[0]&&Xe.processCommand(e,i.keyBuffer[0]),void(n.isPlaying=!1);var o=i.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var s=0;s<o.length;s++)for(var l,u,c=o[s];c;)if(u=(l=/<\w+-.+?>|<\w+>|./.exec(c))[0],c=c.substring(l.index+u.length),U.handleKey(e,u,"macro"),t.insertMode){var d=i.insertModeChanges[a++].changes;D.macroModeState.lastInsertModeChanges.changes=d,st(e,d,1),Qe(e)}n.isPlaying=!1}function tt(e,t){var n=D.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function nt(e){var t=e.state.vim;if(t.insertMode){var n=D.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||rt(e,t)}function rt(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?ge(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=ie(i,r)?0:-1,a=ie(i,r)?-1:0;i=J(i,0,o),r=J(r,0,a),n.sel={anchor:r,head:i},Se(t,n,"<",oe(i,r)),Se(t,n,">",ae(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function it(e){this.keyName=e}function ot(t){var n=D.macroModeState.lastInsertModeChanges,r=e.keyName(t);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",(function(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new it(r)),!0})))}function at(e,t,n,r){var i=D.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?G.processAction(e,t,t.lastEditActionCommand):G.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;st(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var u=0;u<n;u++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&Qe(e),i.isPlaying=!1}function st(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=D.macroModeState.lastInsertModeChanges.visualBlock;a&&(fe(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(J(o,s,0));for(var l=0;l<n.length;l++){var u=n[l];if(u instanceof it)e.lookupKey(u.keyName,"vim-insert",i);else if("string"==typeof u)t.replaceSelection(u);else{var c=t.getCursor(),d=J(c,0,u[0].length);t.replaceRange(u[0],c,d),t.setCursor(d)}}}a&&t.setCursor(J(o,0,1))}function lt(e){var t=new e.constructor;return Object.keys(e).forEach((function(n){var r=e[n];Array.isArray(r)?r=r.slice():r&&"object"==typeof r&&r.constructor!=Object&&(r=lt(r)),t[n]=r})),e.sel&&(t.sel={head:e.sel.head&&ne(e.sel.head),anchor:e.sel.anchor&&ne(e.sel.anchor)}),t}return e.keyMap.vim={attach:l,detach:s,call:u},P("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:l,detach:s,call:u},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:l,detach:s,call:u},B(),U}var n;e.Vim=((n=e).Vim=t(n),n.Vim)}(n(23326),n(19757),n(15971),n(32407))},23326:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,l=!0);var E=b&&(u||f&&(null==x||x<12.11)),k=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,A=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return T(e).appendChild(t)}function P(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function R(e,t,n,r){var i=P(e,t,n,r);return i.setAttribute("role","presentation"),i}function M(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function I(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function L(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var j=function(e){e.select()};function N(e){return e.display.wrapper.ownerDocument}function F(e){return N(e).defaultView}function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function U(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function z(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var $=50,H={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},V={origin:"*mouse"},K={origin:"+move"};function Z(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function X(e){for(;Y.length<=e;)Y.push(Q(Y)+" ");return Y[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(){}function te(e,t){var n;return Object.create?n=Object.create(e):(ee.prototype=e,n=new ee),t&&U(t,n),n}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function le(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ce=null;function de(e,t,n){var r;ce=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var fe=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,d=[],f=0;f<c;++f)d.push((l=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var p=0,h=u;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,w=d[0];b<c-1;++b){var _=d[b];"+"==_&&"1"==w&&"1"==d[b+1]?d[b]="1":","!=_||w!=d[b+1]||"1"!=w&&"n"!=w||(d[b]=w),w=_}for(var x=0;x<c;++x){var E=d[x];if(","==E)d[x]="N";else if("%"==E){var k=void 0;for(k=x+1;k<c&&"%"==d[k];++k);for(var C=x&&"!"==d[x-1]||k<c&&"1"==d[k]?"1":"N",S=x;S<k;++S)d[S]=C;x=k-1}}for(var A=0,T=u;A<c;++A){var O=d[A];"L"==T&&"1"==O?d[A]="L":n.test(O)&&(T=O)}for(var P=0;P<c;++P)if(t.test(d[P])){var R=void 0;for(R=P+1;R<c&&t.test(d[R]);++R);for(var M="L"==(P?d[P-1]:u),D=M==("L"==(R<c?d[R]:u))?M?"L":"R":u,I=P;I<R;++I)d[I]=D;P=R-1}for(var L,j=[],N=0;N<c;)if(r.test(d[N])){var F=N;for(++N;N<c&&r.test(d[N]);++N);j.push(new o(0,F,N))}else{var B=N,U=j.length,z="rtl"==s?1:0;for(++N;N<c&&"L"!=d[N];++N);for(var q=B;q<N;)if(i.test(d[q])){B<q&&(j.splice(U,0,new o(1,B,q)),U+=z);var W=q;for(++q;q<N&&i.test(d[q]);++q);j.splice(U,0,new o(2,W,q)),U+=z,B=q}else++q;B<N&&j.splice(U,0,new o(1,B,N))}return"ltr"==s&&(1==j[0].level&&(L=a.match(/^\s+/))&&(j[0].from=L[0].length,j.unshift(new o(0,0,L[0].length))),1==Q(j).level&&(L=a.match(/\s+$/))&&(Q(j).to-=L[0].length,j.push(new o(0,c-L[0].length,c)))),"rtl"==s?j.reverse():j}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var he=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function ge(e,t){return e._handlers&&e._handlers[t]||he}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=W(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function be(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ye(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function we(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==W(n,t[r])&&n.push(t[r])}function _e(e,t){return ge(e,t).length>0}function xe(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){Ee(e),ke(e)}function Ae(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Pe,Re=function(){if(a&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function Me(e){if(null==Oe){var t=P("span","");O(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Oe?P("span",""):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Pe)return Pe;var t=O(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Pe=r.right-n.right<3)}var Ie,Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ne="oncopy"in(Ie=P("div"))||(Ie.setAttribute("oncopy","return;"),"function"==typeof Ie.oncopy),Fe=null;var Be={},Ue={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function qe(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=qe(t);var n=Be[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function He(e,t){U(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Qe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Je(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=W(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function st(e){return it(e.line,e.ch)}function lt(e,t){return ot(e,t)<0?t:e}function ut(e,t){return ot(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function dt(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Ye(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Ye(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=dt(e,t[r]);return n}Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ze.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};kt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,kt(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function gt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=vt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=z(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ke(r.mode),o);return r.iter(o,t,(function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var i=e.doc.mode,o=new Ze(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&bt(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ve(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ve(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,Ge(e.mode,t.state),n,t.lookAhead):new ht(e,Ge(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var _t=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ye(a,(t=dt(a,t)).line),u=vt(e,t.line,n),c=new Ze(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=wt(s,c,u.state),r&&o.push(new _t(c,i,Ge(a.mode,u.state)));return r?o:new _t(c,i,u.state)}function Et(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function kt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Ze(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&Et(bt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=Et(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var Ct=!1,St=!1;function At(e,t,n){this.marker=e,this.from=t,this.to=n}function Tt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ot(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Pt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Ye(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ye(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new At(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new At(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=Q(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Tt(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Tt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Rt(s)),l&&l!=s&&(l=Rt(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new At(s[b].marker,null,null));for(var w=0;w<y;++w)g.push(v);g.push(l)}return g}function Rt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Mt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Dt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function It(e){return e.inclusiveLeft?-1:0}function Lt(e){return e.inclusiveRight?1:0}function jt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||It(e)-It(t);return o?-o:ot(r.to,i.to)||Lt(e)-Lt(t)||t.id-e.id}function Nt(e,t){var n,r=St&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||jt(n,i.marker)<0)&&(n=i.marker);return n}function Ft(e){return Nt(e,!0)}function Bt(e){return Nt(e,!1)}function Ut(e,t){var n,r=St&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Ye(e,t),a=St&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ot(u.from,n)||It(l.marker)-It(i),d=ot(u.to,r)||Lt(l.marker)-Lt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function qt(e){for(var t;t=Ft(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Ye(e,t),r=qt(n);return n==r?t:et(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!Ht(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return et(r)+1}function Ht(e,t){var n=St&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Gt(e,t,r))return!0}}function Gt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Gt(e,r.line,Tt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Gt(e,t,i))return!0}function Vt(e){for(var t=0,n=(e=qt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Kt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Ft(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Bt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Zt(e){var t=e.display,n=e.doc;t.maxLine=Ye(n,n.first),t.maxLineLength=Kt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Kt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Yt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Mt(e)}Yt.prototype.lineNo=function(){return et(this)},xe(Yt);var Qt={},Jt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=R("span",null,null,l?"padding-right: .1px":null),r={pre:R("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,De(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=L(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=L(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Me(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=L(r.pre.className,r.textClass||"")),r}function nn(e){var t=P("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(P("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(P("span",X(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(P("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(P("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var _=P("span",[u],w,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&_.setAttribute(x,l[x]);return e.content.appendChild(_)}e.content.appendChild(u)}}function on(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var _=r[w],x=_.marker;if("bookmark"==x.type&&_.from==h&&x.widgetNode)y.push(x);else if(_.from<=h&&(null==_.to||_.to>h||x.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==h&&(c+=" "+x.startStyle),x.endStyle&&_.to==v&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var E in x.attributes)(f||(f={}))[E]=x.attributes[E];x.collapsed&&(!d||jt(d.marker,x)<0)&&(d=_)}else _.from>h&&v>_.from&&(v=_.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(u+=" "+b[k]);if(!d||d.from==h)for(var C=0;C<y.length;++C)an(t,0,y[C]);if(d&&(d.from||0)==h){if(an(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var S=Math.min(p,v);;){if(g){var A=h+g.length;if(!d){var T=A>S?g.slice(0,S-h):g;t.addToken(t,T,a?a+l:l,c,h+T.length==v?u:"",s,f)}if(A>=S){g=g.slice(S-h),h=S;break}h=A,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),en(n[O+1],t.cm.options))}function ln(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Bt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?et(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function un(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new ln(e.doc,Ye(e.doc,o),o);r=o+a.size,i.push(a)}return i}var cn=null;var dn=null;function fn(e,t){var n=ge(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);cn?r=cn.delayedCallbacks:dn?r=dn:(r=dn=[],setTimeout(pn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function pn(){var e=dn;dn=null;for(var t=0;t<e.length;++t)e[t]()}function hn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?vn(e,t):"gutter"==o?bn(e,t,n,r):"class"==o?yn(e,t):"widget"==o&&wn(e,t,r)}t.changes=null}function mn(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function gn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):tn(e,t)}function vn(e,t){var n=t.text.className,r=gn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,yn(e,t)):n&&(t.text.className=n)}function yn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=mn(t);t.background=r.insertBefore(P("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?mn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function bn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=mn(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=mn(t),s=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(P("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(P("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);xn(e,t,n)}function _n(e,t,n,r){var i=gn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yn(e,t),bn(e,t,n,r),xn(e,t,r),t.node}function xn(e,t,n){if(En(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)En(e,t.rest[r],t,n,!1)}function En(e,t,n,r,i){if(t.widgets)for(var o=mn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=P("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),kn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),fn(l,"redraw")}}function kn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!M(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,P("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Sn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function An(e){return e.lineSpace.offsetTop}function Tn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function On(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,P("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Pn(e){return $-e.display.nativeBarWidth}function Rn(e){return e.display.scroller.clientWidth-Pn(e)-e.display.barWidth}function Mn(e){return e.display.scroller.clientHeight-Pn(e)-e.display.barHeight}function Dn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function In(e,t,n,r){return Nn(e,jn(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[hr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function jn(e,t){var n=et(t),r=Ln(e,n);r&&!r.text?r=null:r&&r.changes&&(hn(e,r,n,ur(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=et(t=qt(t)),r=e.display.externalMeasured=new ln(e.doc,t,n);r.lineN=n;var i=r.built=tn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}(e,t));var i=Dn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Nn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Rn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Un(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&se(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():zn(S(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Fe)return Fe;var t=O(e,P("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Fe=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:Bn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var w=b?y[b-1]:0,_=y[b],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:w,bottom:_};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Fn,Bn={left:0,right:0,top:0,bottom:0};function Un(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function zn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function qn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Wn(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)qn(e.display.view[t])}function $n(e){Wn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Hn(e){return c&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Gn(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Vn(e){var t=qt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Cn(t[r]));return n}function Kn(e,t,n,r,i){if(!i){var o=Vn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Vt(t);if("local"==r?a+=An(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Gn(N(e)));var l=s.left+("window"==r?0:Hn(N(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Zn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Hn(N(e)),i-=Gn(N(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Yn(e,t,n,r,i){return r||(r=Ye(e.doc,t.line)),Kn(e,r,In(e,r,t.ch,i),n)}function Xn(e,t,n,r,i,o){function a(t,a){var s=Nn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Kn(e,r,s,n)}r=r||Ye(e.doc,t.line),i||(i=jn(e,r));var s=pe(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=de(s,l,u),f=ce,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Qn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Ye(e.doc,t.line),i=Vt(r)+An(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=ir(e,a,i,t,n),l=Ut(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ye(r,i=u.line)}}function tr(e,t,n,r){r-=Vn(t);var i=t.text.length,o=ue((function(t){return Nn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return Nn(e,n,t).top>r}),o,i)}}function nr(e,t,n,r){return n||(n=jn(e,t)),tr(e,t,n,Kn(e,t,Nn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Vt(t);var o=jn(e,t),a=Vn(t),s=0,l=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?ar:or)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ue((function(t){var n=Nn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":Nn(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var w=Xn(e,it(n,g,p),"line",t,o);f=w.left,v=i<w.top?-1:i>=w.bottom?1:0}return Jn(n,g=le(t.text,g,1),p,v,r-f)}function or(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],u=1!=l.level;return rr(Xn(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Xn(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function ar(e,t,n,r,i,o,a){var s=tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=Nn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Fn){Fn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Fn.appendChild(document.createTextNode("x")),Fn.appendChild(P("br"));Fn.appendChild(document.createTextNode("x"))}O(e.measure,Fn);var n=Fn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(i){if(Ht(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function fr(e){var t=e.doc,n=dr(e);t.iter((function(e){var t=n(e);t!=e.height&&Je(e,t)}))}function pr(e,t,n,r){var i=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=er(e,o,a);if(r&&u.xRel>0&&(l=Ye(e.doc,u.line).text).length==u.ch){var c=z(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-On(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function mr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)St&&Wt(e.doc,t)<i.viewTo&&vr(e);else if(n<=i.viewFrom)St&&$t(e.doc,n+r)>i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function gr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!St||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Wt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function wr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function _r(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&xr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&xr(e,l.head,i);u||kr(e,l,o)}}return r}function xr(e,t,n){var r=Xn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(P("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Yn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Er(e,t){return e.top-t.top||e.left-t.left}function kr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,l=Math.max(r.sizerWidth,Rn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ye(i,t),f=d.text.length;function p(n,r){return Yn(e,it(t,n),"div",d,r)}function h(t,n,r){var i=nr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=pe(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,_=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var E=(u?w:b)&&x,k=(u?b:w)&&_?s:(g?v:y).left,C=E?l:(g?y:v).right;c(k,v.top,C-k,v.bottom)}else{var S,A,T,O;g?(S=u&&b&&_?s:v.left,A=u?l:h(e,i,"before"),T=u?s:h(t,i,"after"),O=u&&w&&x?l:y.right):(S=u?h(e,i,"before"):s,A=!u&&b&&_?l:v.right,T=!u&&w&&x?s:y.left,O=u?h(t,i,"after"):l),c(S,v.top,A-S,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(T,y.top,O-T,y.bottom)}(!o||Er(v,o)<0)&&(o=v),Er(y,o)<0&&(o=y),(!a||Er(v,a)<0)&&(a=v),Er(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=Ye(i,f.line),m=Ye(i,p.line),g=qt(h)==qt(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,y=d(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Cr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Or(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Sr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Tr(e))}function Ar(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Or(e))}),100)}function Tr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Cr(e))}function Or(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Pr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Je(u.line,d),Rr(u.line),u.rest))for(var g=0;g<u.rest.length;g++)Rr(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Rr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Mr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-An(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=tt(t,Vt(Ye(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=tt(t,Vt(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Dr(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Mn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Tn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Rn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Ir(e,t){null!=t&&(Nr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Nr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function jr(e,t,n){null==t&&null==n||Nr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Nr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Fr(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Fr(e,t,n,r){var i=Dr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});jr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||pi(e,{top:t}),Ur(e,t,!0),n&&pi(e),si(e,100))}function Ur(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function qr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Tn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Pn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Wr=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),me(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wr.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},Wr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},Wr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Hr(e,t){t||(t=qr(e));var n=e.display.barWidth,r=e.display.barHeight;Gr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Pr(e),Gr(e,qr(e)),n=e.display.barWidth,r=e.display.barHeight}function Gr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Vr={native:Wr,null:$r};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?zr(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Zr=0;function Yr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{cn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Qr(t[n]);for(var r=0;r<t.length;r++)Jr(t[r]);for(var i=0;i<t.length;i++)ei(t[i]);for(var o=0;o<t.length;o++)ti(t[o]);for(var a=0;a<t.length;a++)ni(t[a])}(e)}))}function Qr(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Pn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Pn(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Zt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&di(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Pr(t),e.barMeasure=qr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Pn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Rn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(N(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&mi(t,e.barMeasure),e.selectionChanged&&Cr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Sr(e.cm)}function ni(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&fi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Ur(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=P("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-An(e.display))+"px;\n height: "+(t.bottom-t.top+Pn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,u=Dr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Br(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ye(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ye(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ye(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ri(e,t){if(e.curOp)return t();Yr(e);try{return t()}finally{Xr(e)}}function ii(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Yr(e);try{return t.apply(e,arguments)}finally{Xr(e)}}}function oi(e){return function(){if(this.curOp)return e.apply(this,arguments);Yr(this);try{return e.apply(this,arguments)}finally{Xr(this)}}}function ai(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Yr(t);try{return e.apply(this,arguments)}finally{Xr(t)}}}function si(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(li,e))}function li(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&yt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return si(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,(function(){for(var t=0;t<i.length;t++)gr(e,i[t],"text")}))}}var ui=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Mr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Rn(e),this.force=n,this.dims=ur(e),this.events=[]};function ci(e){if(e.hasFocus())return null;var t=D(N(e));if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=F(e).getSelection();r.anchorNode&&r.extend&&M(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function di(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(e))return!1;vi(e)&&(vr(e),t.dims=ur(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),St&&(o=Wt(e.doc,o),a=$t(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(hr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Vt(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=ci(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(W(f.changes,"gutter")>-1&&(p=!1),hn(e,f,c,n)),p&&(T(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var h=_n(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=D(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&M(document.body,e.anchorNode)&&M(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function fi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Rn(e))r&&(t.visible=Mr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Tn(e.display)-Mn(e),n.top)}),t.visible=Mr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!di(e,t))break;Pr(e);var i=qr(e);wr(e),Hr(e,i),mi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function pi(e,t){var n=new ui(e,t);if(di(e,n)){Pr(e),fi(e,n);var r=qr(e);wr(e),Hr(e,r),mi(e,r),n.finish()}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function mi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Pn(e)+"px"}function gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function vi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(P("div",[P("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",hi(e.display),!0}return!1}function yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function bi(e){var t=e.gutters,n=e.gutterSpecs;T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(P("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",hi(e)}function wi(e){bi(e.display),mr(e),gi(e)}function _i(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=R("div",null,"CodeMirror-code"),o.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=P("div",null,"CodeMirror-cursors"),o.measure=P("div",null,"CodeMirror-measure"),o.lineMeasure=P("div",null,"CodeMirror-measure"),o.lineSpace=R("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=R("div",[o.lineSpace],"CodeMirror-lines");o.mover=P("div",[u],null,"position: relative"),o.sizer=P("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=P("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),o.gutters=P("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=P("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=P("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=yi(i.gutters,i.lineNumbers),bi(o),r.init(o)}ui.prototype.signal=function(e,t){_e(e,t)&&this.events.push(arguments)},ui.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ye.apply(null,this.events[e])};var xi=0,Ei=null;function ki(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ci(e){var t=ki(e);return t.x*=Ei,t.y*=Ei,t}function Si(e,t){c&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=ki(t),i=r.x,o=r.y,a=Ei;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,p=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return o&&h&&Br(e,Math.max(0,u.scrollTop+o*a)),zr(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&h)&&Ee(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,w=e.doc.scrollTop,_=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):_=Math.min(e.doc.height,_+y+50),pi(e,{top:w,bottom:_})}xi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(Ei=(Ei*xi+n)/(xi+1),++xi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?Ei=-.53:n?Ei=15:c?Ei=-.7:p&&(Ei=-1/3);var Ai=function(e,t){this.ranges=e,this.primIndex=t};Ai.prototype.primary=function(){return this.ranges[this.primIndex]},Ai.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},Ai.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ti(st(this.ranges[t].anchor),st(this.ranges[t].head));return new Ai(e,this.primIndex)},Ai.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ai.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var Ti=function(e,t){this.anchor=e,this.head=t};function Oi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=W(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ot(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ti(d?c:u,d?u:c))}}return new Ai(t,n)}function Pi(e,t){return new Ai([new Ti(e,t||e)],0)}function Ri(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Mi(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return Ri(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ri(t).ch-t.to.ch),it(n,r)}function Di(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ti(Mi(i.anchor,t),Mi(i.head,t)))}return Oi(e.cm,n,e.sel.primIndex)}function Ii(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function Li(e){e.doc.mode=We(e.options,e.doc.modeOption),ji(e)}function ji(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,si(e,100),e.state.modeGen++,e.curOp&&mr(e)}function Ni(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Fi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Mt(e),Dt(e,n);var i=r?r(e):1;i!=e.height&&Je(e,i)})(e,n,i,r),fn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Yt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Ye(e,s.line),d=Ye(e,l.line),f=Q(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ni(e,t)){var m=a(0,u.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new Yt(f+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function Bi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Ui(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,fr(e),Li(e),zi(e),e.options.direction=t.direction,e.options.lineWrapping||Zt(e),e.options.mode=t.modeOption,mr(e)}function zi(e){("rtl"==e.doc.direction?I:A)(e.display.lineDiv,"CodeMirror-rtl")}function qi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Wi(e,t){var n={from:st(t.from),to:Ri(t),text:Xe(e,t.from,t.to)};return Ki(e,n,t.from.line,t.to.line+1),Bi(e,(function(e){return Ki(e,n,t.from.line,t.to.line+1)}),!0),n}function $i(e){for(;e.length&&Q(e).ranges;)e.pop()}function Hi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?($i(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=Ri(t):o.changes.push(Wi(e,t));else{var l=Q(i.done);for(l&&l.ranges||Vi(e.sel,i.done),o={changes:[Wi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function Gi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&$i(i.undone)}function Vi(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ki(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Zi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Yi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Zi(n[i]));return r}(e,t),r=Pt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Xi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Ai.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(Q(s)[d]=u[d],delete u[d])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new Ti(i,t)}return new Ti(n||t,t)}function Ji(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),io(e,new Ai([Qi(e.sel.primary(),t,n,i)],0),r)}function eo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Qi(e.sel.ranges[o],t[o],null,i);io(e,Oi(e.cm,r,e.sel.primIndex),n)}function to(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,io(e,Oi(e.cm,i,e.sel.primIndex),r)}function no(e,t,n,r){io(e,Pi(t,n),r)}function ro(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,oo(e,t,n)):io(e,t,n)}function io(e,t,n){oo(e,t,n),Gi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function oo(e,t,n){(_e(e,"beforeSelectionChange")||e.cm&&_e(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ti(dt(e,t[n].anchor),dt(e,t[n].head))},origin:n&&n.origin};return ye(e,"beforeSelectionChange",e,r),e.cm&&ye(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Oi(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);ao(e,lo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Lr(e.cm)}function ao(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,we(e.cm)),fn(e,"cursorActivity",e))}function so(e){ao(e,lo(e,e.sel,null,!1))}function lo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=co(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:co(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ti(l,u))}return i?Oi(e.cm,i,t.primIndex):t}function uo(e,t,n,r,i){var o=Ye(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=fo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return uo(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=fo(e,p,r,p.line==t.line?o:null)),p?uo(e,p,t,r,i):null}}return t}function co(e,t,n,r,i){var o=r||1;return uo(e,t,n,o,i)||!i&&uo(e,t,n,o,!0)||uo(e,t,n,-o,i)||!i&&uo(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function fo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function po(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),G)}function ho(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=dt(e,t)),n&&(r.to=dt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ye(e,"beforeChange",e,r),e.cm&&ye(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function mo(e,t,n){if(e.cm){if(!e.cm.curOp)return ii(e.cm,mo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"))||(t=ho(e,t,!0))){var r=Ct&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=W(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ot(u.to,s.from)<0||ot(u.from,s.to)>0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)go(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else go(e,t)}}function go(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Di(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),bo(e,t,n,Pt(e,t));var r=[];Bi(e,(function(e,n){n||-1!=W(r,e.history)||(Eo(e.history,t),r.push(e.history)),bo(e,t,null,Pt(e,t))}))}}function vo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Vi(i,l),n&&!i.equals(e.sel))return void io(e,i,{clearRedo:!1});a=i}var c=[];Vi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!ho(e,r,!1))return s.length=0,{};c.push(Wi(e,r));var o=n?Di(e,r):Q(s);bo(e,r,o,Yi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ri(r)});var a=[];Bi(e,(function(e,t){t||-1!=W(a,e.history)||(Eo(e.history,r),a.push(e.history)),bo(e,r,null,Yi(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function yo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ai(J(e.sel.ranges,(function(e){return new Ti(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)gr(e.cm,r,"gutter")}}function bo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ii(e.cm,bo)(e,t,n,r);if(t.to.line<e.first)yo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);yo(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Di(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(qt(Ye(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&we(e),Fi(r,t,n,dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),si(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?mr(e):o.line!=a.line||1!=t.text.length||Ni(e.doc,t)?mr(e,o.line,a.line+1,u):gr(e,o.line,"text");var c=_e(e,"changes"),d=_e(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&fn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Fi(e,t,r),oo(e,n,G),e.cantEdit&&co(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function wo(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),mo(e,{from:n,to:r,text:t,origin:i})}function _o(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function xo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)_o(o.ranges[s].anchor,t,n,r),_o(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=it(u.from.line+r,u.from.ch),u.to=it(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Eo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;xo(e.done,n,r,i),xo(e.undone,n,r,i)}function ko(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ye(e,ct(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&gr(e.cm,i,n),o)}function Co(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function So(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ti.prototype.from=function(){return ut(this.anchor,this.head)},Ti.prototype.to=function(){return lt(this.anchor,this.head)},Ti.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Xt(i),fn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},So.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Co(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new So(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=W(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new So(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Ao=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function To(e,t,n){Vt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ir(e,n)}Ao.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Cn(this);Je(n,Math.max(0,n.height-o)),e&&(ri(e,(function(){To(e,n,-o),gr(e,r,"widget")})),fn(e,"lineWidgetCleared",e,this,r))}},Ao.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-t;i&&(Ht(this.doc,r)||Je(r,r.height+i),n&&ri(n,(function(){n.curOp.forceUpdate=!0,To(n,r,i),fn(n,"lineWidgetChanged",n,e,et(r))})))},xe(Ao);var Oo=0,Po=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Oo};function Ro(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=U(r)).shared=!1;var o=[Ro(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Bi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ro(e,dt(e,t),dt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Q(o)})),new Mo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ii(e.cm,Ro)(e,t,n,r,i);var o=new Po(e,i),a=ot(t,n);if(r&&U(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=R("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");St=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&qt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Je(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new At(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ht(e,t)&&Je(t,0)})),o.clearOnEnter&&me(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ct=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Oo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&so(u.doc),fn(u,"markerAdded",u,o)}return o}Po.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Yr(e),_e(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Tt(a.markedSpans,this);e&&!this.collapsed?gr(e,et(a),"text"):e&&(null!=s.to&&(i=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=Ot(a.markedSpans,s),null==s.from&&this.collapsed&&!Ht(this.doc,a)&&e&&Je(a,sr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=qt(this.lines[l]),c=Kt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&so(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},Po.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Tt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},Po.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ri(r,(function(){var i=t.line,o=et(t.line),a=Ln(r,o);if(a&&(qn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ht(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Cn(n)-s;l&&Je(i,i.height+l)}fn(r,"markerChanged",r,e)}))},Po.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Po.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},xe(Po);var Mo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Do(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function Io(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Bi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==W(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fn(this,"clear")}},Mo.prototype.find=function(e,t){return this.primary.find(e,t)},xe(Mo);var Lo=0,jo=function(e,t,n,r,i){if(!(this instanceof jo))return new jo(e,t,n,r,i);null==n&&(n=0),So.call(this,[new Co([new Yt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=it(n,0);this.sel=Pi(o),this.history=new qi(null),this.id=++Lo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Fi(this,{from:o,to:o,text:e}),io(this,Pi(o),G)};jo.prototype=te(So.prototype,{constructor:jo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ai((function(e){var t=it(this.first,0),n=this.first+this.size-1;mo(this,{from:t,to:it(n,Ye(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),io(this,Pi(t),G)})),replaceRange:function(e,t,n,r){wo(this,e,t=dt(this,t),n=n?dt(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,dt(this,e),dt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Ye(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ye(this,e)),qt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return dt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai((function(e,t,n){no(this,dt(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:ai((function(e,t,n){no(this,dt(this,e),dt(this,t||e),n)})),extendSelection:ai((function(e,t,n){Ji(this,dt(this,e),t&&dt(this,t),n)})),extendSelections:ai((function(e,t){eo(this,ft(this,e),t)})),extendSelectionsBy:ai((function(e,t){eo(this,ft(this,J(this.sel.ranges,e)),t)})),setSelections:ai((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ti(dt(this,e[i].anchor),dt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),io(this,Oi(this.cm,r,t),n)}})),addSelection:ai((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ti(dt(this,e),dt(this,t||e))),io(this,Oi(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ai((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ii(s.from,i,o),u=Ii(Ri(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=ot(c.head,c.anchor)<0;r[a]=new Ti(d?u:l,d?l:u)}else r[a]=new Ti(l,l)}return new Ai(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)mo(this,r[l]);s?ro(this,s):this.cm&&Lr(this.cm)})),undo:ai((function(){vo(this,"undo")})),redo:ai((function(){vo(this,"redo")})),undoSelection:ai((function(){vo(this,"undo",!0)})),redoSelection:ai((function(){vo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new qi(this.history),Bi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Xi(this.history.done),undone:Xi(this.history.undone)}},setHistory:function(e){var t=this.history=new qi(this.history);t.done=Xi(e.done.slice(0),null,!0),t.undone=Xi(e.undone.slice(0),null,!0)},setGutterMarker:ai((function(e,t,n){return ko(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&oe(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ai((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ko(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,oe(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Ye(this,e)))return null}else if(null==(t=et(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ai((function(e,t,n){return ko(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ai((function(e,t,n){return ko(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ai((function(e,t,n){return function(e,t,n,r){var i=new Ao(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ko(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ht(e,t)){var r=Vt(t)<e.scrollTop;Je(t,t.height+Cn(i)),r&&Ir(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&fn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ro(this,dt(this,e),dt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ro(this,e=dt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ye(this,(e=dt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),dt(this,it(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new jo(Qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new jo(Qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var s=Ro(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Do(this)),r},unlinkDoc:function(e){if(e instanceof Ma&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Io(Do(this));break}if(e.history==this.history){var n=[e.id];Bi(e,(function(e){return n.push(e.id)}),!0),e.history=new qi(null),e.history.done=Xi(this.history.done,n),e.history.undone=Xi(this.history.undone,n)}},iterLinkedDocs:function(e){Bi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Le(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ai((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ri(t=this.cm,(function(){zi(t),mr(t)})))}))}),jo.prototype.eachLine=jo.prototype.iter;var No=0;function Fo(e){var t=this;if(Bo(t),!be(t,e)&&!Sn(t.display,e)){Ee(e),a&&(No=+new Date);var n=pr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ii(t,(function(){var e={from:n=dt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};mo(t.doc,e),ro(t.doc,Pi(dt(t.doc,n),dt(t.doc,Ri(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),oo(t.doc,Pi(n,n)),f)for(var p=0;p<f.length;++p)wo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Bo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Uo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var zo=!1;function qo(){var e;zo||(me(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Uo(Wo)}),100))})),me(window,"blur",(function(){return Uo(Or)})),zo=!0)}function Wo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var $o={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ho=0;Ho<10;Ho++)$o[Ho+48]=$o[Ho+96]=String(Ho);for(var Go=65;Go<=90;Go++)$o[Go]=String.fromCharCode(Go);for(var Vo=1;Vo<=12;Vo++)$o[Vo+111]=$o[Vo+63235]="F"+Vo;var Ko={};function Zo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Yo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=J(n.split(" "),Zo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Xo(e,t,n,r){var i=(t=ta(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Xo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Xo(e,t.fallthrough[o],n,r);if(a)return a}}}function Qo(e){var t="string"==typeof e?e:$o[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Jo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(E?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(E?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function ea(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=$o[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Jo(n,e,t))}function ta(e){return"string"==typeof e?Ko[e]:e}function na(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ot(o.from,Q(r).to)<=0;){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ri(e,(function(){for(var t=r.length-1;t>=0;t--)wo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function ra(e,t,n){var r=le(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ia(e,t,n){var r=ra(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function oa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=pe(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=jn(t,n);a=i<0?n.text.length-1:0;var c=Nn(t,u,a).top;a=ue((function(e){return Nn(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ra(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Ko.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ko.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ko.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ko.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ko.default=b?Ko.macDefault:Ko.pcDefault;var aa={selectAll:po,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return na(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return na(e,(function(t){return{from:it(t.from().line,0),to:dt(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return na(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return na(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return na(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return sa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return la(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ye(e.doc,t),r=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=et(r)),oa(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),K)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),K)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?la(e,t.head):r}),K)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=z(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ri(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ye(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ti(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ri(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Lr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function sa(e,t){var n=Ye(e.doc,t),r=qt(n);return r!=n&&(t=et(r)),oa(!0,e,r,t,1)}function la(e,t){var n=sa(e,t.line),r=Ye(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function ua(e,t,n){if("string"==typeof t&&!(t=aa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ca=new q;function da(e,t,n,r){var i=e.state.keySeq;if(i){if(Qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ca.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),fa(e,i+" "+t,n,r))return!0}return fa(e,t,n,r)}function fa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Xo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Xo(t,e.options.extraKeys,n,e)||Xo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ee(n),Cr(e)),!!i}function pa(e,t){var n=ea(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?da(e,"Shift-"+n,t,(function(t){return ua(e,t,!0)}))||da(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ua(e,t)})):da(e,n,t,(function(t){return ua(e,t)})))}var ha=null;function ma(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(N(t)),be(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=pa(t,e);f&&(ha=i?r:null,i||88!=r||Ne||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(A(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n)}(t)}}function ga(e){16==e.keyCode&&(this.doc.sel.shift=!1),be(this,e)}function va(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Sn(t.display,e)||be(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ha)return ha=null,void Ee(e);if(!f||e.which&&!(e.which<10)||!pa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return da(e,"'"+n+"'",t,(function(t){return ua(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ya,ba,wa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function _a(e){var t=this,n=t.display;if(!(be(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Sn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ka(t,e)){var r=pr(t,e),i=Te(e),o=r?function(e,t){var n=+new Date;return ba&&ba.compare(n,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(n,e,t)?(ba=new wa(n,e,t),ya=null,"double"):(ya=new wa(n,e,t),ba=null,"single")}(r,i):"single";F(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),da(e,Jo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=aa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(B(Sr,e),0):e.curOp.focus=D(N(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=w?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Re&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ii(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ar(e)),ve(i.wrapper.ownerDocument,"mouseup",u),ve(i.wrapper.ownerDocument,"mousemove",c),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",u),o||(Ee(t),r.addNew||Ji(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",d),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Ar(e);var i=e.display,o=e.doc;Ee(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new Ti(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ti(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=xa(e,n,r.unit);s=r.extend?Qi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,io(o,Oi(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(io(o,Oi(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):to(o,l,s,V):(l=0,io(o,new Ai([s],0),V),u=o.sel);var f=n;function p(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=z(Ye(o,n.line).text,n.ch,a),d=z(Ye(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ye(o,m).text,y=Z(v,p,a);p==h?i.push(new Ti(it(m,y),it(m,y))):v.length>y&&i.push(new Ti(it(m,y),it(m,Z(v,h,a))))}i.length||i.push(new Ti(n,n)),io(o,Oi(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=xa(e,t,r.unit),x=w.anchor;ot(_.anchor,x)>0?(b=_.head,x=ut(w.from(),_.anchor)):(b=_.anchor,x=lt(w.to(),_.head));var E=u.ranges.slice(0);E[l]=function(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=de(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new Ti(new it(n.line,h,m),r)}(e,new Ti(dt(o,x),b)),io(o,Oi(e,E,l),V)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=pr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,f)){e.curOp.focus=D(N(e)),p(a);var s=Mr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ii(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(ii(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Ee(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ii(e,(function(e){0!==e.buttons&&Te(e)?g(e):v(e)})),b=ii(e,v);e.state.selectingText=b,me(i.wrapper.ownerDocument,"mousemove",y),me(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Ae(e)==n.scroller&&Ee(e):2==i?(r&&Ji(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Ar(t)))}}function xa(e,t,n){if("char"==n)return new Ti(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ti(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new Ti(r.from,r.to)}function Ea(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ee(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_e(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ye(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Ce(t)}}function ka(e,t){return Ea(e,t,"gutterClick",!0)}function Ca(e,t){Sn(e.display,t)||function(e,t){return!!_e(e,"gutterContextMenu")&&Ea(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Sa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}wa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Aa={toString:function(){return"CodeMirror.Init"}},Ta={},Oa={};function Pa(e,t,n){if(!t!=!(n&&n!=Aa)){var r=e.display.dragFunctions,i=t?me:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ra(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),Zt(e)),fr(e),mr(e),$n(e),setTimeout((function(){return Hr(e)}),100)}function Ma(e,t){var n=this;if(!(this instanceof Ma))return new Ma(e,t);this.options=t=t?U(t):{},U(Ta,t,!1);var r=t.value;"string"==typeof r?r=new jo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ma.inputStyles[t.inputStyle](this),o=this.display=new _i(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Sa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;me(t.scroller,"mousedown",ii(e,_a)),me(t.scroller,"dblclick",a&&s<11?ii(e,(function(t){if(!be(e,t)){var n=pr(e,t);if(n&&!ka(e,t)&&!Sn(e.display,t)){Ee(t);var r=e.findWordAt(n);Ji(e.doc,r.anchor,r.head)}}})):function(t){return be(e,t)||Ee(t)}),me(t.scroller,"contextmenu",(function(t){return Ca(e,t)})),me(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ca(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",(function(i){if(!be(e,i)&&!o(i)&&!ka(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),me(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),me(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Sn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new Ti(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Ti(it(a.line,0),dt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ee(n)}i()})),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))})),me(t.scroller,"mousewheel",(function(t){return Si(e,t)})),me(t.scroller,"DOMMouseScroll",(function(t){return Si(e,t)})),me(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){be(e,t)||Se(t)},over:function(t){be(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();xr(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}(e,t),Se(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-No<100))Se(t);else if(!be(e,t)&&!Sn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,Fo),leave:function(t){be(e,t)||Bo(e)}};var u=t.input.getField();me(u,"keyup",(function(t){return ga.call(e,t)})),me(u,"keydown",ii(e,ma)),me(u,"keypress",ii(e,va)),me(u,"focus",(function(t){return Tr(e,t)})),me(u,"blur",(function(t){return Or(e,t)}))}(this),qo(),Yr(this),this.curOp.forceUpdate=!0,Ui(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Tr(n)}),20):Or(this),Oa)Oa.hasOwnProperty(u)&&Oa[u](this,t[u],Aa);vi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Da.length;++c)Da[c](this);Xr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ma.defaults=Ta,Ma.optionHandlers=Oa;var Da=[];function Ia(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=z(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==H||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?z(Ye(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=X(u-f)),d!=c)return wo(o,d,it(t,0),it(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=it(t,c.length);to(o,h,new Ti(g,g));break}}}Ma.defineInitHook=function(e){return Da.push(e)};var La=null;function ja(e){La=e}function Na(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Le(t),u=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==t){if(r.ranges.length%La.text.length==0){u=[];for(var c=0;c<La.text.length;c++)u.push(o.splitLines(La.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=J(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ye(o,m.line).text.length,m.ch+Q(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};mo(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Ba(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,(function(){return Na(t,n,0,null,"paste")})),!0}function Ba(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ia(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ia(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ua(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function za(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function qa(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Wa(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return ia(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=de(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ia(t,n,r);var s,l=function(e,n){return ra(t,e instanceof it?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||jn(e,t),nr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new it(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ia(s,t,n);if(null==a){if(o||((u=t.line+l)<e.first||u>=e.first+e.size||(t=new it(u,t.ch,t.sticky),!(s=Ye(e,u)))))return!1;t=oa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ie(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=co(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function $a(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ha=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ga(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Dn(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=de(o,t.ch)%2?"right":"left");var s=Un(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Va(e,t){return t&&(e.bad=!0),e}function Ka(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Va(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Za(o,t,n)}}function Za(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!M(r,t))return Va(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Q(e.rest):e.line;return Va(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=et(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),it(c,d)}}}var d=c(a,s,n);if(d)return Va(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return Va(it(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return Va(it(d.line,d.ch+m),i);m+=h.textContent.length}}Ha.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!be(r,e)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ua(r);ja({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=La.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=qa(),l=s.firstChild;za(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=La.text.join("\n");var u=D(i.ownerDocument);j(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,za(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",(function(e){!o(e)||be(r,e)||Fa(e,r)||s<=11&&setTimeout(ii(r,(function(){return t.updateFromDOM()})),20)})),me(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),me(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),me(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),me(i,"touchstart",(function(){return n.forceCompositionEnd()})),me(i,"input",(function(){t.composing||t.readFromDOMSoon()})),me(i,"copy",a),me(i,"cut",a)},Ha.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ha.prototype.prepareSelection=function(){var e=_r(this.cm,!1);return e.focus=D(this.div.ownerDocument)==this.div,e},Ha.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ha.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ha.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ka(t,e.anchorNode,e.anchorOffset),s=Ka(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(ut(a,s),i)||0!=ot(lt(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Ga(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ga(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=S(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ha.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ha.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},Ha.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ha.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return M(this.div,t)},Ha.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ha.prototype.blur=function(){this.div.blur()},Ha.prototype.getField=function(){return this.div},Ha.prototype.supportsTouch=function(){return!0},Ha.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):ri(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Ha.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ha.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ka(t,e.anchorNode,e.anchorOffset),r=Ka(t,e.focusNode,e.focusOffset);n&&r&&ri(t,(function(){io(t.doc,Pi(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ha.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),(g=+f,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),f=Xe(r.doc,it(t,0),it(l,Ye(r.doc,l).text.length));d.length>1&&f.length>1;)if(Q(d)==Q(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=Q(d),b=Q(f),w=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var _=it(t,p),x=it(l,f.length?Q(f).length-h:0);return d.length>1||d[0]||ot(_,x)?(wo(r.doc,d,_,x,"+input"),!0):void 0},Ha.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ha.prototype.reset=function(){this.forceCompositionEnd()},Ha.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ha.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ha.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,(function(){return mr(e.cm)}))},Ha.prototype.setUneditable=function(e){e.contentEditable="false"},Ha.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Na)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ha.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ha.prototype.onContextMenu=function(){},Ha.prototype.resetPosition=function(){},Ha.prototype.needsContentAttribute=!0;var Ya=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ya.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!be(r,e)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ua(r);ja({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),j(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),me(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),me(i,"paste",(function(e){be(r,e)||Fa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",(function(t){if(!Sn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){Sn(e,t)||Ee(t)})),me(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ya.prototype.createField=function(e){this.wrapper=qa(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;za(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ya.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=_r(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ya.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ya.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ya.prototype.getField=function(){return this.textarea},Ya.prototype.supportsTouch=function(){return!1},Ya.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Ya.prototype.blur=function(){this.textarea.blur()},Ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ya.prototype.receivedFocus=function(){this.slowPoll()},Ya.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ya.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ya.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ri(t,(function(){Na(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ya.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ya.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,io)(n.doc,Pi(o),G);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),k){Se(e);var m=function(){ve(window,"mouseup",m),setTimeout(v,20)};me(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ii(n,po)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ya.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ya.prototype.setUneditable=function(){},Ya.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Aa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Aa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Li(e)}),!0),n("indentUnit",2,Li,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ji(e),$n(e),mr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)wo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Aa&&e.refresh()})),n("specialCharPlaceholder",nn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Sa(e),wi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=ta(t),i=n!=Aa&&ta(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ra,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=yi(t,e.options.lineNumbers),wi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Kr(e),Hr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=yi(e.options.gutters,t),wi(e)}),!0),n("firstLineNumber",1,wi,!0),n("lineNumberFormatter",(function(e){return e}),wi,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Or(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Pa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ji,!0),n("addModeClass",!1,ji,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,ji,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ma),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ta(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:oi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,mr(this)})),removeOverlay:oi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void mr(this)}})),indentLine:oi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Ia(this,e,t,n)})),indentSelection:oi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ia(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ia(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&to(this.doc,r,new Ti(o,u[r].to()),G)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=gt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==W(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return vt(this,(e=ct(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Xn(this,null==e?n.head:"object"==typeof e?dt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Yn(this,dt(this.doc,e),t||"page")},coordsChar:function(e,t){return er(this,(e=Zn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Zn(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Vt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Xn(this,dt(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Dr(o,a)).scrollTop&&Br(o,s.scrollTop),null!=s.scrollLeft&&zr(o,s.scrollLeft))},triggerOnKeyDown:oi(ma),triggerOnKeyPress:oi(va),triggerOnKeyUp:ga,triggerOnMouseDown:oi(_a),execCommand:function(e){if(aa.hasOwnProperty(e))return aa[e].call(null,this)},triggerElectric:oi((function(e){Ba(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a<t&&!(o=Wa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:oi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Wa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),K)})),deleteH:oi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):na(this,(function(n){var i=Wa(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=dt(this.doc,e),s=0;s<t;++s){var l=Xn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=$a(this,l,i,n)).hitSide)break}return a},moveV:oi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Xn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=$a(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Ir(n,Yn(n,l,"div").top-s.top),l}),K),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ye(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ie(o,i)?function(e){return ie(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ie(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ti(it(e.line,n),it(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),ye(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(N(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:oi((function(e,t){jr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Pn(this)-this.display.barHeight,width:e.scrollWidth-Pn(this)-this.display.barWidth,clientHeight:Mn(this),clientWidth:Rn(this)}},scrollIntoView:oi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Nr(e),e.curOp.scrollToPos=t}(this,e):Fr(this,e.from,e.to,e.margin)})),setSize:oi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Wn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){gr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ye(this,"refresh",this)})),operation:function(e){return ri(this,e)},startOperation:function(){return Yr(this)},endOperation:function(){return Xr(this)},refresh:oi((function(){var e=this.display.cachedTextHeight;mr(this),this.curOp.forceUpdate=!0,$n(this),jr(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(null==e||Math.abs(e-sr(this.display))>.5||this.options.lineWrapping)&&fr(this),ye(this,"refresh",this)})),swapDoc:oi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ui(this,e),$n(this),this.display.input.reset(),jr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ma);var Xa="iter insert remove copy getEditor constructor".split(" ");for(var Qa in jo.prototype)jo.prototype.hasOwnProperty(Qa)&&W(Xa,Qa)<0&&(Ma.prototype[Qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(jo.prototype[Qa]));return xe(jo),Ma.inputStyles={textarea:Ya,contenteditable:Ha},Ma.defineMode=function(e){Ma.defaults.mode||"null"==e||(Ma.defaults.mode=e),ze.apply(this,arguments)},Ma.defineMIME=function(e,t){Ue[e]=t},Ma.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ma.defineMIME("text/plain","null"),Ma.defineExtension=function(e,t){Ma.prototype[e]=t},Ma.defineDocExtension=function(e,t){jo.prototype[e]=t},Ma.fromTextArea=function(e,t){if((t=t?U(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ma((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ve,e.on=me,e.wheelEventPixels=Ci,e.Doc=jo,e.splitLines=Le,e.countColumn=z,e.findColumn=Z,e.isWordChar=re,e.Pass=H,e.signal=ye,e.Line=Yt,e.changeEnd=Ri,e.scrollbarModel=Vr,e.Pos=it,e.cmpPos=ot,e.modes=Be,e.mimeModes=Ue,e.resolveMode=qe,e.getMode=We,e.modeExtensions=$e,e.extendMode=He,e.copyState=Ge,e.startState=Ke,e.innerMode=Ve,e.commands=aa,e.keyMap=Ko,e.keyName=ea,e.isModifierKey=Qo,e.lookupKey=Xo,e.normalizeKeyMap=Yo,e.StringStream=Ze,e.SharedTextMarker=Mo,e.TextMarker=Po,e.LineWidget=Ao,e.e_preventDefault=Ee,e.e_stopPropagation=ke,e.e_stop=Se,e.addClass=I,e.contains=M,e.rmClass=A,e.keyNames=$o}(Ma),Ma.version="5.65.15",Ma}()},66317:(e,t,n)=>{!function(e){"use strict";e.defineMode("apl",(function(){var e={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,o=/←/,a=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(s,l){var u,c,d,f;return s.eatSpace()?null:'"'===(u=s.next())||"'"===u?(s.eatWhile((d=u,f=!1,function(e){return f=e,e!==d||"\\"===f})),s.next(),l.prev=!0,"string"):/[\[{\(]/.test(u)?(l.prev=!1,null):/[\]}\)]/.test(u)?(l.prev=!0,null):r.test(u)?(l.prev=!1,"niladic"):/[¯\d]/.test(u)?(l.func?(l.func=!1,l.prev=!1):l.prev=!0,s.eatWhile(/[\w\.]/),"number"):n.test(u)?"operator apl-"+e[u]:o.test(u)?"apl-arrow":i.test(u)?(c="apl-",null!=t[u]&&(l.prev?c+=t[u][1]:c+=t[u][0]),l.func=!0,l.prev=!1,"function "+c):a.test(u)?(s.skipToEnd(),"comment"):"∘"===u&&"."===s.peek()?(s.next(),"function jot-dot"):(s.eatWhile(/[\w\$_]/),l.prev=!0,"keyword")}}})),e.defineMIME("text/apl","apl")}(n(23326))},64617:(e,t,n)=>{!function(e){"use strict";function t(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}e.defineMode("asciiarmor",(function(){return{token:function(e,n){var r;if("top"==n.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state="headers",n.type=r[1],"tag"):t(e);if("headers"==n.state){if(e.sol()&&e.match(/^\w+:/))return n.state="header","atom";var i=t(e);return i&&(n.state="body"),i}return"header"==n.state?(e.skipToEnd(),n.state="headers","string"):"body"==n.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=n.type?"error":(n.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==n.state?t(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}})),e.defineMIME("application/pgp","asciiarmor"),e.defineMIME("application/pgp-encrypted","asciiarmor"),e.defineMIME("application/pgp-keys","asciiarmor"),e.defineMIME("application/pgp-signature","asciiarmor")}(n(23326))},34474:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("asn.1",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.cmipVerbs||{},a=t.compareTypes||{},s=t.status||{},l=t.tags||{},u=t.storage||{},c=t.modifier||{},d=t.accessTypes||{},f=t.multiLineStrings,p=!1!==t.indentStatements,h=/[\|\^]/;function m(e,t){var r,p=e.next();if('"'==p||"'"==p)return t.tokenize=(r=p,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!f)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(p))return n=p,"punctuation";if("-"==p&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(p))return e.eatWhile(/[\w\.]/),"number";if(h.test(p))return e.eatWhile(h),"operator";e.eatWhile(/[\w\-]/);var m=e.current();return i.propertyIsEnumerable(m)?"keyword":o.propertyIsEnumerable(m)?"variable cmipVerbs":a.propertyIsEnumerable(m)?"atom compareTypes":s.propertyIsEnumerable(m)?"comment status":l.propertyIsEnumerable(m)?"variable-3 tags":u.propertyIsEnumerable(m)?"builtin storage":c.propertyIsEnumerable(m)?"string-2 modifier":d.propertyIsEnumerable(m)?"atom accessTypes":"variable"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||m)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)v(t,e.column(),"}");else if("["==n)v(t,e.column(),"]");else if("("==n)v(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=y(t);for("}"==r.type&&(r=y(t));"statement"==r.type;)r=y(t)}else n==r.type?y(t):p&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"--",fold:"brace"}})),e.defineMIME("text/x-ttcn-asn",{name:"asn.1",keywords:t("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:t("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:t("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:t("current deprecated mandatory obsolete"),tags:t("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:t("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:t("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:t("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0})}(n(23326))},94147:(e,t,n)=>{!function(e){"use strict";e.defineMode("asterisk",(function(){var e=["exten","same","include","ignorepat","switch"],t=["#include","#exec"],n=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(r,i){var o="";return r.eatSpace()?null:i.extenStart?(r.eatWhile(/[^\s]/),o=r.current(),/^=>?$/.test(o)?(i.extenExten=!0,i.extenStart=!1,"strong"):(i.extenStart=!1,r.skipToEnd(),"error")):i.extenExten?(i.extenExten=!1,i.extenPriority=!0,r.eatWhile(/[^,]/),i.extenInclude&&(r.skipToEnd(),i.extenPriority=!1,i.extenInclude=!1),i.extenSame&&(i.extenPriority=!1,i.extenSame=!1,i.extenApplication=!0),"tag"):i.extenPriority?(i.extenPriority=!1,i.extenApplication=!0,r.next(),i.extenSame?null:(r.eatWhile(/[^,]/),"number")):i.extenApplication?(r.eatWhile(/,/),","===(o=r.current())?null:(r.eatWhile(/\w/),o=r.current().toLowerCase(),i.extenApplication=!1,-1!==n.indexOf(o)?"def strong":null)):function(n,r){var i="",o=n.next();if(r.blockComment)return"-"==o&&n.match("-;",!0)?r.blockComment=!1:n.skipTo("--;")?(n.next(),n.next(),n.next(),r.blockComment=!1):n.skipToEnd(),"comment";if(";"==o)return n.match("--",!0)&&!n.match("-",!1)?(r.blockComment=!0,"comment"):(n.skipToEnd(),"comment");if("["==o)return n.skipTo("]"),n.eat("]"),"header";if('"'==o)return n.skipTo('"'),"string";if("'"==o)return n.skipTo("'"),"string-2";if("#"==o&&(n.eatWhile(/\w/),i=n.current(),-1!==t.indexOf(i)))return n.skipToEnd(),"strong";if("$"==o&&"{"==n.peek())return n.skipTo("}"),n.eat("}"),"variable-3";if(n.eatWhile(/\w/),i=n.current(),-1!==e.indexOf(i)){switch(r.extenStart=!0,i){case"same":r.extenSame=!0;break;case"include":case"switch":case"ignorepat":r.extenInclude=!0}return"atom"}}(r,i)},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}})),e.defineMIME("text/x-asterisk","asterisk")}(n(23326))},91352:(e,t,n)=>{!function(e){"use strict";var t="><+-.,[]".split("");e.defineMode("brainfuck",(function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();return-1===t.indexOf(r)?(n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment"):!0===n.commentLine?(e.eol()&&(n.commentLine=!1),"comment"):"]"===r||"["===r?("["===r?n.left++:n.right++,"bracket"):"+"===r||"-"===r?"keyword":"<"===r||">"===r?"atom":"."===r||","===r?"def":void(e.eol()&&(n.commentLine=!1))}}})),e.defineMIME("text/x-brainfuck","brainfuck")}(n(23326))},80011:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var u,c,d=a.indentUnit,f=l.statementIndentUnit||d,p=l.dontAlignCalls,h=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},w=l.hooks||{},_=l.multiLineStrings,x=!1!==l.indentStatements,E=!1!==l.indentSwitch,k=l.namespaceSeparator,C=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,S=l.numberStart||/[\d\.]/,A=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,O=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,P=l.isReservedIdentifier||!1;function R(e,t){var n,r=e.next();if(w[r]){var i=w[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!_)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(S.test(r)){if(e.backUp(1),e.match(A))return"number";e.next()}if(C.test(r))return u=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(T););return"operator"}if(e.eatWhile(O),k)for(;e.match(k);)e.eatWhile(O);var o=e.current();return s(h,o)?(s(v,o)&&(u="newstatement"),s(y,o)&&(c=!0),"keyword"):s(m,o)?"type":s(g,o)||P&&P(o)?(s(v,o)&&(u="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function M(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function D(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return D(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==u)n(t,e.column(),"}");else if("["==u)n(t,e.column(),"]");else if("("==u)n(t,e.column(),")");else if("}"==u){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else u==a.type?r(t):x&&(("}"==a.type||"top"==a.type)&&";"!=u||"statement"==a.type&&"newstatement"==u)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var d=w.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,D(e,t),s},indent:function(t,n){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine&&o(t.context))return e.Pass;var r=t.context,i=n&&n.charAt(0),a=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(w.indent){var s=w.indent(t,r,n,d);if("number"==typeof s)return s}var u=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||p&&")"==r.type?")"!=r.type||a?r.indented+(a?0:d)+(a||!u||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(a?0:1)},electricInput:E?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function x(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=C,C(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function E(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function k(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function C(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function S(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function A(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function T(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=T(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=T(e+1),n.tokenize(t,n)}return"comment"}}S(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:h,blockKeywords:a(g),defKeywords:a(v),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:w,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),S(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+u),types:h,blockKeywords:a(g+" class try catch"),defKeywords:a(v+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:w,hooks:{"#":y,"*":b,u:x,U:x,L:x,R:x,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&E(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=A,t.tokenize(e,t))}},modeProps:{fold:["brace","import"]}}),S("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=k,k(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),S("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=A,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),S("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t);var n},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),S(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),S("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec",{name:"clike",keywords:a(l+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec++",{name:"clike",keywords:a(l+" "+c+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b,u:x,U:x,L:x,R:x,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&E(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var O=null;function P(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){O=P(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}S("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=P(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!O||!e.match("`"))&&(t.tokenize=O,O=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(23326))},3463:(e,t,n)=>{!function(e){"use strict";e.defineMode("clojure",(function(t){var n=["false","nil","true"],r=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],i=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];e.registerHelper("hintWords","clojure",[].concat(n,r,i));var o=g(n),a=g(r),s=g(i),l=g(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,c=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,d=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,f=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(c))return[null,"number"];if(e.match(d))return[null,"string-2"];if(e.eat(/^"/))return(t.tokenize=h)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(f),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=m)(e,t):v(r,o)||":"===r.charAt(0)?["symbol","atom"]:v(r,a)||v(r,s)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!v(e,u)})),[null,"error"])}function h(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function m(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function g(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function v(e,t){return t instanceof RegExp?t.test(e):t instanceof Object?t.propertyIsEnumerable(e):void 0}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:p}},token:function(e,n){e.sol()&&"number"!=typeof n.ctx.indentTo&&(n.ctx.indentTo=n.ctx.start+1);var r=n.tokenize(e,n),i=r[0],o=r[1],a=e.current();return"space"!==i&&("("===n.lastToken&&null===n.ctx.indentTo?"symbol"===i&&v(a,l)?n.ctx.indentTo=n.ctx.start+t.indentUnit:n.ctx.indentTo="next":"next"===n.ctx.indentTo&&(n.ctx.indentTo=e.column()),n.lastToken=a),"open"===i?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:"close"===i&&(n.ctx=n.ctx.prev||n.ctx),o},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-clojure","clojure"),e.defineMIME("text/x-clojurescript","clojure"),e.defineMIME("application/edn","clojure")}(n(23326))},26055:(e,t,n)=>{!function(e){"use strict";e.defineMode("cmake",(function(){var e=/({)?[a-zA-Z0-9_]+(})?/;function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return{startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(n,r){return n.eatSpace()?null:function(n,r){var i=n.next();return"$"===i?n.match(e)?"variable-2":"variable":r.continueString?(n.backUp(1),t(n,r)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):"#"==i?(n.skipToEnd(),"comment"):"'"==i||'"'==i?(r.pending=i,t(n,r)):"("==i||")"==i?"bracket":i.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}(n,r)}}})),e.defineMIME("text/x-cmake","cmake")}(n(23326))},25619:(e,t,n)=>{!function(e){"use strict";e.defineMode("cobol",(function(){var e="string",t="atom";function n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var r=n("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),i=n("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),o=n("- * ** / + < <= = > >= "),a={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(n,s){if(null==s.indentStack&&n.sol()&&(s.indentation=6),n.eatSpace())return null;var l=null;if("string"===s.mode){for(var u=!1;null!=(u=n.next());)if(('"'==u||"'"==u)&&!n.match(/['"]/,!1)){s.mode=!1;break}l=e}else{var c=n.next(),d=n.column();if(d>=0&&d<=5)l="def";else if(d>=72&&d<=79)n.skipToEnd(),l="header";else if("*"==c&&6==d)n.skipToEnd(),l="comment";else if('"'==c||"'"==c)s.mode="string",l=e;else if("'"!=c||a.digit_or_colon.test(n.peek()))if("."==c)l="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(a.hex),!0):("+"!=e&&"-"!=e||!a.digit.test(t.peek())||(t.eat(a.sign),e=t.next()),!!a.digit.test(e)&&(t.eat(e),t.eatWhile(a.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(a.digit)),t.eat(a.exponent)&&(t.eat(a.sign),t.eatWhile(a.digit)),!0))}(c,n))l="number";else{if(n.current().match(a.symbol))for(;d<71&&void 0!==n.eat(a.symbol);)d++;l=i&&i.propertyIsEnumerable(n.current().toUpperCase())?"keyword":o&&o.propertyIsEnumerable(n.current().toUpperCase())?"builtin":r&&r.propertyIsEnumerable(n.current().toUpperCase())?t:null}else l=t}return l},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}})),e.defineMIME("text/x-cobol","cobol")}(n(23326))},86386:(e,t,n)=>{!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,o=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,a=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,l=r(["and","or","not","is","isnt","in","instanceof","typeof"]),u=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],c=r(u.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));u=r(u);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,p=r(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function h(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var u=e.indentation();return u>r&&"coffee"==t.scope.type?"indent":u<r?"dedent":null}r>0&&y(e,t)}if(e.eatSpace())return null;var h=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=g,t.tokenize(e,t);if("#"===h)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var v=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(v=!0),e.match(/^-?\d+\.\d*/)&&(v=!0),e.match(/^-?\.\d+/)&&(v=!0),v)return"."==e.peek()&&e.backUp(1),"number";var b=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(b=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(b=!0),e.match(/^-?0(?![\dx])/i)&&(b=!0),b)return"number"}if(e.match(d))return t.tokenize=m(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(f)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=m(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(l)?"operator":e.match(o)?"punctuation":e.match(p)?"atom":e.match(s)||t.prop&&e.match(a)?"property":e.match(c)?"keyword":e.match(a)?"variable":(e.next(),n)}function m(e,r,i){return function(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return a.tokenize=h,i;o.eat(/['"\/]/)}return r&&(t.singleLineStringErrors?i=n:a.tokenize=h),i}}function g(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=h;break}e.eatWhile("#")}return"comment"}function v(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function y(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}return{startState:function(e){return{tokenize:h,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var r=null===t.scope.align&&t.scope;r&&e.sol()&&(r.align=!1);var i=function(e,t){var r=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===r)&&v(e,t);var o="[({".indexOf(i);if(-1!==o&&v(e,t,"])}".slice(o,o+1)),u.exec(i)&&v(e,t),"then"==i&&y(e,t),"dedent"===r&&y(e,t))return n;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}(e,t);return i&&"comment"!=i&&(r&&(r.align=!0),t.prop="punctuation"==i&&"."==e.current()),i},indent:function(e,t){if(e.tokenize!=h)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(23326))},98824:(e,t,n)=>{!function(e){"use strict";e.defineMode("commonlisp",(function(e){var t,n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,r=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,o=/[^\s'`,@()\[\]";]/;function a(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!o.test(t)){e.backUp(1);break}return e.current()}function s(e,o){if(e.eatSpace())return t="ws",null;if(e.match(i))return"number";var s;if("\\"==(s=e.next())&&(s=e.next()),'"'==s)return(o.tokenize=l)(e,o);if("("==s)return t="open","bracket";if(")"==s||"]"==s)return t="close","bracket";if(";"==s)return e.skipToEnd(),t="ws","comment";if(/['`,@]/.test(s))return null;if("|"==s)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==s)return"("==(s=e.next())?(t="open","bracket"):/[+\-=\.']/.test(s)||/\d/.test(s)&&e.match(/^\d*#/)?null:"|"==s?(o.tokenize=u)(e,o):":"==s?(a(e),"meta"):"\\"==s?(e.next(),a(e),"string-2"):"error";var c=a(e);return"."==c?null:(t="symbol","nil"==c||"t"==c||":"==c.charAt(0)?"atom":"open"==o.lastType&&(n.test(c)||r.test(c))?"keyword":"&"==c.charAt(0)?"variable-2":"variable")}function l(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=s;break}r=!r&&"\\"==n}return"string"}function u(e,n){for(var r,i;r=e.next();){if("#"==r&&"|"==i){n.tokenize=s;break}i=r}return t="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:s}},token:function(n,i){n.sol()&&"number"!=typeof i.ctx.indentTo&&(i.ctx.indentTo=i.ctx.start+1),t=null;var o=i.tokenize(n,i);return"ws"!=t&&(null==i.ctx.indentTo?"symbol"==t&&r.test(n.current())?i.ctx.indentTo=i.ctx.start+e.indentUnit:i.ctx.indentTo="next":"next"==i.ctx.indentTo&&(i.ctx.indentTo=n.column()),i.lastType=t),"open"==t?i.ctx={prev:i.ctx,start:n.column(),indentTo:null}:"close"==t&&(i.ctx=i.ctx.prev||i.ctx),o},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}})),e.defineMIME("text/x-common-lisp","commonlisp")}(n(23326))},67400:(e,t,n)=>{!function(e){"use strict";e.defineMode("crystal",(function(e){function t(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function n(e,t,n){return n.tokenize.push(e),e(t,n)}var r=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,o=/^(?:\[\][?=]?)/,a=/^(?:\.(?:\.{2})?|->|[?:])/,s=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,l=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,u=t(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),c=t(["true","false","nil","self"]),d=t(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),f=t(["if","unless","case","while","until","begin","then"]),p=["end","else","elsif","rescue","ensure"],h=t(p),m=["\\)","\\}","\\]"],g=new RegExp("^(?:"+m.join("|")+")$"),v={def:x,fun:x,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(s)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:E,module:E,struct:E,lib:E,enum:E,union:E},y={"[":"]","{":"}","(":")","<":">"};function b(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return n(_("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return n(_("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var p;if(e.match(s))return e.eat(/[?!]/),p=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":u.test(p)?(d.test(p)?"fun"==p&&t.blocks.indexOf("lib")>=0||"def"==p&&"abstract"==t.lastToken||(t.blocks.push(p),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!f.test(p)?"end"==p&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(p),t.currentIndent+=1),v.hasOwnProperty(p)&&t.tokenize.push(v[p]),"keyword"):c.test(p)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?n(w("[","]","meta"),e,t):(e.eat("@"),e.match(s)||e.match(l),"variable-2");if(e.match(l))return"tag";if(e.eat(":"))return e.eat('"')?n(k('"',"atom",!1),e,t):e.match(s)||e.match(l)||e.match(r)||e.match(i)||e.match(o)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return n(k('"',"string",!0),e,t);if("%"==e.peek()){var h,m="string",g=!0;if(e.match("%r"))m="string-2",h=e.next();else if(e.match("%w"))g=!1,h=e.next();else if(e.match("%q"))g=!1,h=e.next();else if(h=e.match(/^%([^\w\s=])/))h=h[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return y.hasOwnProperty(h)&&(h=y[h]),n(k(h,m,g),e,t)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?n(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(_("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(_("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(w("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(p[2],!p[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(r)?(e.eat("="),"operator"):e.match(i)||e.match(a)?"operator":(p=e.match(/[({[]/,!1))?n(w(p=p[0],y[p],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function w(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=w(e,t,n,!0),o.currentIndent+=1,n;var a=b(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function _(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=_(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):b(r,i)}}function x(e,t){return e.eatSpace()?null:(e.match(s)?e.eat(/[!?]/):e.match(r)||e.match(i)||e.match(o),t.tokenize.pop(),"def")}function E(e,t){return e.eatSpace()?null:(e.match(l),t.tokenize.pop(),"def")}function k(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(_("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(_("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(w("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}return{startState:function(){return{tokenize:[b],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(t,n){return n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),h.test(n)||g.test(n)?e.indentUnit*(t.currentIndent-1):e.indentUnit*t.currentIndent},fold:"indent",electricInput:t(m.concat(p),!0),lineComment:"#"}})),e.defineMIME("text/x-crystal","crystal")}(n(23326))},98627:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},u=n.mediaTypes||{},c=n.mediaFeatures||{},d=n.mediaValueKeywords||{},f=n.propertyKeywords||{},p=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,w=!0===n.supportsAtComponent,_=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return i=t,e}function E(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?x(null,"compare"):'"'==n||"'"==n?(t.tokenize=k(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==n?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=C),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function k(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),x("string","string")}}function C(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=k(")"),x(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function A(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function O(e,t,n){return M[n.context.type](e,t,n)}function P(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return O(e,t,n)}function R(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var M={top:function(e,t,n){if("{"==e)return A(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(w&&/@component/i.test(e))return A(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return A(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return A(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return A(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return A(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return A(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o=_?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?M.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?A(n,t,"prop"):O(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return A(n,t,"propBlock");if("}"==e||"{"==e)return P(e,t,n);if("("==e)return A(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)R(t);else if("interpolation"==e)return A(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?P(e,t,n):")"==e?T(n):"("==e?A(n,t,"parens"):"interpolation"==e?A(n,t,"interpolation"):("word"==e&&R(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):O(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):M.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return A(n,t,"atBlock_parens");if("}"==e||";"==e)return P(e,t,n);if("{"==e)return T(n)&&A(n,t,y?"block":"top");if("interpolation"==e)return A(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?_?"string-2":"property":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?P(e,t,n):"{"==e?T(n)&&A(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?P(e,t,n,2):M.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?A(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):O(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?A(n,t,"top"):O(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?P(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?P(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||E)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=M[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(f),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=n.concat(i).concat(a).concat(l).concat(c).concat(f).concat(g).concat(y);function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css",helperType:"gss"})}(n(23326))},28320:(e,t,n)=>{!function(e){"use strict";var t=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};e.defineMode("cypher",(function(n){var r,i=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^[^"]*"/),"string";if("'"===t)return e.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"node";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},o=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},a=function(e){return e.indent=e.context.indent,e.context=e.context.prev},s=n.indentUnit,l=t(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=t(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=t(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=t(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)o(t,")",e.column());else if("["===r)o(t,"]",e.column());else if("{"===r)o(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)a(t);t.context&&r===t.context.type&&a(t)}else"."===r&&t.context&&"pattern"===t.context.type?a(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?o(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(t,n){var r=n&&n.charAt(0),i=t.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?e.commands.newlineAndIndent:i.align?i.col+(o?0:1):i.indent+(o?0:s):0}}})),e.modeExtensions.cypher={autoFormatLineBreaks:function(e){for(var t=e.split("\n"),n=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,r=0;r<t.length;r++)t[r]=t[r].replace(n," \n$1 ").trim();return t.join("\n")}},e.defineMIME("application/x-cypher-query","cypher")}(n(23326))},76184:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("d",(function(t,n){var r,i=t.indentUnit,o=n.statementIndentUnit||i,a=n.keywords||{},s=n.builtin||{},l=n.blockKeywords||{},u=n.atoms||{},c=n.hooks||{},d=n.multiLineStrings,f=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,i=e.next();if(c[i]){var o=c[i](e,t);if(!1!==o)return o}if('"'==i||"'"==i||"`"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!d)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(i))return r=i,null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("/"==i){if(e.eat("+"))return t.tokenize=m,m(e,t);if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(i))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var p=e.current();return a.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"keyword"):s.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"builtin"):u.propertyIsEnumerable(p)?"atom":"variable"}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;r=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r&&","!=r||"statement"!=n.type)if("{"==r)v(t,e.column(),"}");else if("["==r)v(t,e.column(),"]");else if("("==r)v(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=y(t);for("}"==n.type&&(n=y(t));"statement"==n.type;)n=y(t)}else r==n.type?y(t):(("}"==n.type||"top"==n.type)&&";"!=r||"statement"==n.type&&"newstatement"==r)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=p&&null!=t.tokenize)return e.Pass;var r=t.context,a=n&&n.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var s=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:o):r.align?r.column+(s?0:1):r.indented+(s?0:i)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";e.defineMIME("text/x-d",{name:"d",keywords:t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+n),blockKeywords:t(n),builtin:t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:t("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}})}(n(23326))},31061:(e,t,n)=>{!function(e){"use strict";var t="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline".split(" "),n="try catch finally do else for if switch while".split(" "),r="true false null".split(" "),i="void bool num int double dynamic var String Null Never".split(" ");function o(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function a(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function s(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function l(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return a(n),n.tokenize=u,"string";var s=t.next();if(s==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==s}return"string"}return n.tokenize=o,o(t,n)}function u(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=c,null}function c(e,t){return e.eatWhile(/[\w_]/),t.tokenize=s(t),"variable"}function d(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=d(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=d(e+1),n.tokenize(t,n)}return"comment"}}e.defineMIME("application/dart",{name:"clike",keywords:o(t),blockKeywords:o(n),builtin:o(i),atoms:o(r),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return l("'",e,t,!1)},'"':function(e,t){return l('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&l(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=s(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=d(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"variable-2"}}}),e.registerHelper("hintWords","application/dart",t.concat(r).concat(i)),e.defineMode("dart",(function(t){return e.getMode(t,"application/dart")}),"clike")}(n(23326),n(80011))},16357:(e,t,n)=>{!function(e){"use strict";e.defineMode("diff",(function(){var e={"+":"positive","-":"negative","@":"meta"};return{token:function(t){var n=t.string.search(/[\t ]+?$/);if(!t.sol()||0===n)return t.skipToEnd(),("error "+(e[t.string.charAt(0)]||"")).replace(/ $/,"");var r=e[t.peek()]||t.skipToEnd();return-1===n?t.skipToEnd():t.pos=n,r}}})),e.defineMIME("text/x-diff","diff")}(n(23326))},51872:(e,t,n)=>{!function(e){"use strict";e.defineMode("django:inner",(function(){var e=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],n=["==","!=","<",">","<=",">="],r=["in","not","or","and"];function i(e,t){if(e.match("{{"))return t.tokenize=a,"tag";if(e.match("{%"))return t.tokenize=s,"tag";if(e.match("{#"))return t.tokenize=l,"comment";for(;null!=e.next()&&!e.match(/\{[{%#]/,!1););return null}function o(e,t){return function(n,r){return!r.escapeNext&&n.eat(e)?r.tokenize=t:(r.escapeNext&&(r.escapeNext=!1),"\\"==n.next()&&(r.escapeNext=!0)),"string"}}function a(e,n){if(n.waitDot){if(n.waitDot=!1,"."!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("."))return n.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(n.waitPipe){if(n.waitPipe=!1,"|"!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("|"))return n.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return n.waitProperty&&(n.waitProperty=!1,e.match(/\b(\w+)\b/))?(n.waitDot=!0,n.waitPipe=!0,"property"):n.waitFilter&&(n.waitFilter=!1,e.match(t))?"variable-2":e.eatSpace()?(n.waitProperty=!1,"null"):e.match(/\b\d+(\.\d+)?\b/)?"number":e.match("'")?(n.tokenize=o("'",n.tokenize),"string"):e.match('"')?(n.tokenize=o('"',n.tokenize),"string"):e.match(/\b(\w+)\b/)&&!n.foundVariable?(n.waitDot=!0,n.waitPipe=!0,"variable"):e.match("}}")?(n.waitProperty=null,n.waitFilter=null,n.waitDot=null,n.waitPipe=null,n.tokenize=i,"tag"):(e.next(),"null")}function s(a,s){if(s.waitDot){if(s.waitDot=!1,"."!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("."))return s.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(s.waitPipe){if(s.waitPipe=!1,"|"!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("|"))return s.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(s.waitProperty&&(s.waitProperty=!1,a.match(/\b(\w+)\b/)))return s.waitDot=!0,s.waitPipe=!0,"property";if(s.waitFilter&&(s.waitFilter=!1,a.match(t)))return"variable-2";if(a.eatSpace())return s.waitProperty=!1,"null";if(a.match(/\b\d+(\.\d+)?\b/))return"number";if(a.match("'"))return s.tokenize=o("'",s.tokenize),"string";if(a.match('"'))return s.tokenize=o('"',s.tokenize),"string";if(a.match(n))return"operator";if(a.match(r))return"keyword";var l=a.match(e);return l?("comment"==l[0]&&(s.blockCommentTag=!0),"keyword"):a.match(/\b(\w+)\b/)?(s.waitDot=!0,s.waitPipe=!0,"variable"):a.match("%}")?(s.waitProperty=null,s.waitFilter=null,s.waitDot=null,s.waitPipe=null,s.blockCommentTag?(s.blockCommentTag=!1,s.tokenize=u):s.tokenize=i,"tag"):(a.next(),"null")}function l(e,t){return e.match(/^.*?#\}/)?t.tokenize=i:e.skipToEnd(),"comment"}function u(e,t){return e.match(/\{%\s*endcomment\s*%\}/,!1)?(t.tokenize=s,e.match("{%"),"tag"):(e.next(),"comment")}return e=new RegExp("^\\b("+e.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),n=new RegExp("^\\b("+n.join("|")+")\\b"),r=new RegExp("^\\b("+r.join("|")+")\\b"),{startState:function(){return{tokenize:i}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}})),e.defineMode("django",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"django:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-django","django")}(n(23326),n(38425),n(19962))},72694:(e,t,n)=>{!function(e){"use strict";var t="from",n=new RegExp("^(\\s*)\\b("+t+")\\b","i"),r=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s="("+[t,o].concat(r).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",l=new RegExp("^(\\s*)"+s+"(\\s*)(#.*)?$","i"),u=new RegExp("^(\\s*)"+s+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:l,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:u,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")}(n(23326),n(81094))},39974:(e,t,n)=>{!function(e){"use strict";e.defineMode("dtd",(function(e){var t,n=e.indentUnit;function r(e,n){return t=n,e}function i(e,t){var n,a,s,l=e.next();if("<"!=l||!e.eat("!")){if("<"==l&&e.eat("?"))return t.tokenize=(a="meta",s="?>",function(e,t){for(;!e.eol();){if(e.match(s)){t.tokenize=i;break}e.next()}return a}),r("meta",l);if("#"==l&&e.eatWhile(/[\w]/))return r("atom","tag");if("|"==l)return r("keyword","separator");if(l.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,l);if(l.match(/[\[\]]/))return r("rule",l);if('"'==l||"'"==l)return t.tokenize=(n=l,function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&!a){t.tokenize=i;break}a=!a&&"\\"==o}return r("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var u=e.current();return null!==u.substr(u.length-1,u.length).match(/\?|\+/)&&e.backUp(1),r("tag","tag")}return"%"==l||"*"==l?r("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=o,o(e,t)):e.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function o(e,t){for(var n,o=0;null!=(n=e.next());){if(o>=2&&">"==n){t.tokenize=i;break}o="-"==n?o+1:0}return r("comment","comment")}return{startState:function(e){return{tokenize:i,baseIndent:e||0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),i=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==i?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,r){var i=e.stack.length;return"]"===r.charAt(0)?i--:">"===r.substr(r.length-1,r.length)&&("<"===r.substr(0,1)||"doindent"==t&&r.length>1||("doindent"==t?i--:">"==t&&r.length>1||"tag"==t&&">"!==r||("tag"==t&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==t?i++:">"===r&&"rule"==e.stack[e.stack.length-1]&&">"===t?i--:">"===r&&"rule"==e.stack[e.stack.length-1]||("<"!==r.substr(0,1)&&">"===r.substr(0,1)?i-=1:">"===r||(i-=1)))),null!=t&&"]"!=t||i--),e.baseIndent+i*n},electricChars:"]>"}})),e.defineMIME("application/xml-dtd","dtd")}(n(23326))},49024:(e,t,n)=>{!function(e){"use strict";function t(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}e.defineMode("dylan",(function(e){var r={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};r.otherDefinition=r.unnamedDefinition.concat(r.namedDefinition).concat(r.otherParameterizedDefinition),r.definition=r.typeParameterizedDefinition.concat(r.otherDefinition),r.parameterizedDefinition=r.typeParameterizedDefinition.concat(r.otherParameterizedDefinition),r.simpleDefinition=r.constantSimpleDefinition.concat(r.variableSimpleDefinition).concat(r.otherSimpleDefinition),r.keyword=r.statement.concat(r.separator).concat(r.other);var i="[-_a-zA-Z?!*@<>$%]+",o=new RegExp("^"+i),a={symbolKeyword:i+":",symbolClass:"<"+i+">",symbolGlobal:"\\*"+i+"\\*",symbolConstant:"\\$"+i},s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var l in a)a.hasOwnProperty(l)&&(a[l]=new RegExp("^"+a[l]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},c={},d={};function f(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){var r=e.peek();if("'"==r||'"'==r)return e.next(),f(e,t,m(r,"string"));if("/"==r){if(e.next(),e.eat("*"))return f(e,t,h);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(r)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==r)return e.next(),'"'==(r=e.peek())?(e.next(),f(e,t,m('"',"string"))):"b"==r?(e.next(),e.eatWhile(/[01]/),"number"):"x"==r?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==r?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==r?(e.next(),"punctuation"):"["==r||"("==r?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==r)return e.next(),"="==(r=e.peek())?(e.next(),"="==(r=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==r){if(e.next(),"="==(r=e.peek()))return e.next(),"operator";if(":"==r)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(r))return e.next(),"bracket";if(-1!=".,".indexOf(r))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];if(l instanceof Array&&n(l,(function(t){return e.match(t)}))||e.match(l))return s[i]}return/[+\-*\/^=<>&|]/.test(r)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),c.hasOwnProperty(e.current())?d[e.current()]:e.current().match(o)?"variable":(e.next(),"variable-2"))}function h(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=p;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function m(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=p),t}}return t(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){t(r[e],(function(t){c[t]=e,d[t]=u[e]}))})),{startState:function(){return{tokenize:p,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-dylan","dylan")}(n(23326))},5807:(e,t,n)=>{!function(e){"use strict";e.defineMode("ebnf",(function(t){var n=0,r=1,i=0,o=1,a=2,s=null;return t.bracesMode&&(s=e.getMode(t,t.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(t,l){if(t){switch(0===l.stack.length&&('"'==t.peek()||"'"==t.peek()?(l.stringType=t.peek(),t.next(),l.stack.unshift(o)):t.match("/*")?(l.stack.unshift(i),l.commentType=n):t.match("(*")&&(l.stack.unshift(i),l.commentType=r)),l.stack[0]){case o:for(;l.stack[0]===o&&!t.eol();)t.peek()===l.stringType?(t.next(),l.stack.shift()):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return l.lhs?"property string":"string";case i:for(;l.stack[0]===i&&!t.eol();)l.commentType===n&&t.match("*/")||l.commentType===r&&t.match("*)")?(l.stack.shift(),l.commentType=null):t.match(/^.[^\*]*/);return"comment";case a:for(;l.stack[0]===a&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(".")||l.stack.shift();return"operator"}var u=t.peek();if(null!==s&&(l.braced||"{"===u)){null===l.localState&&(l.localState=e.startState(s));var c=s.token(t,l.localState),d=t.current();if(!c)for(var f=0;f<d.length;f++)"{"===d[f]?(0===l.braced&&(c="matchingbracket"),l.braced++):"}"===d[f]&&(l.braced--,0===l.braced&&(c="matchingbracket"));return c}switch(u){case"[":return t.next(),l.stack.unshift(a),"bracket";case":":case"|":case";":return t.next(),"operator";case"%":if(t.match("%%"))return"header";if(t.match(/[%][A-Za-z]+/))return"keyword";if(t.match(/[%][}]/))return"matchingbracket";break;case"/":if(t.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(t.match(/[\][a-z]+/))return"string-2";case".":if(t.match("."))return"atom";case"*":case"-":case"+":case"^":if(t.match(u))return"atom";case"$":if(t.match("$$"))return"builtin";if(t.match(/[$][0-9]+/))return"variable-3";case"<":if(t.match(/<<[a-zA-Z_]+>>/))return"builtin"}return t.match("//")?(t.skipToEnd(),"comment"):t.match("return")?"operator":t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?t.match(/(?=[\(.])/)?"variable":t.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":-1!=["[","]","(",")"].indexOf(t.peek())?(t.next(),"bracket"):(t.eatSpace()||t.next(),null)}}}})),e.defineMIME("text/x-ebnf","ebnf")}(n(23326))},53002:(e,t,n)=>{!function(e){"use strict";e.defineMode("ecl",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=e.indentUnit,i=t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),o=t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),a=t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),s=t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),l=t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),u=t("catch class do else finally for if switch try while"),c=t("true false null"),d={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},f=/[+\-*&%=<>!?|\/]/;function p(e,t){var r,m=e.next();if(d[m]){var g=d[m](e,t);if(!1!==g)return g}if('"'==m||"'"==m)return t.tokenize=(r=m,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(m))return n=m,null;if(/\d/.test(m))return e.eatWhile(/[\w\.]/),"number";if("/"==m){if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(m))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(i.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"keyword";if(o.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable";if(a.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-2";if(s.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-3";if(l.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"builtin";for(var y=v.length-1;y>=0&&(!isNaN(v[y])||"_"==v[y]);)--y;if(y>0){var b=v.substr(0,y+1);if(s.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(n="newstatement"),"variable-3"}return c.propertyIsEnumerable(v)?"atom":null}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new m((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n||"statement"!=r.type)if("{"==n)g(t,e.column(),"}");else if("["==n)g(t,e.column(),"]");else if("("==n)g(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=v(t);for("}"==r.type&&(r=v(t));"statement"==r.type;)r=v(t)}else n==r.type?v(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==n)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=p&&null!=e.tokenize)return 0;var n=e.context,i=t&&t.charAt(0);"statement"==n.type&&"}"==i&&(n=n.prev);var o=i==n.type;return"statement"==n.type?n.indented+("{"==i?0:r):n.align?n.column+(o?0:1):n.indented+(o?0:r)},electricChars:"{}"}})),e.defineMIME("text/x-ecl","ecl")}(n(23326))},57921:(e,t,n)=>{!function(e){"use strict";e.defineMode("eiffel",(function(){function e(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var t=e(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),n=e([":=","and then","and","or","<<",">>"]);function r(e,t){if(e.eatSpace())return null;var n,r,i,o=e.next();return'"'==o||"'"==o?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=o,r="string",function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&(i||!a)){t.tokenize.pop();break}a=!a&&"%"==o}return r}),e,t):"-"==o&&e.eat("-")?(e.skipToEnd(),"comment"):":"==o&&e.eat("=")?"operator":/[0-9]/.test(o)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(o)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(o)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}return{startState:function(){return{tokenize:[r]}},token:function(e,r){var i=r.tokenize[r.tokenize.length-1](e,r);if("ident"==i){var o=e.current();i=t.propertyIsEnumerable(e.current())?"keyword":n.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(o)?"tag":/^0[bB][0-1]+$/g.test(o)||/^0[cC][0-7]+$/g.test(o)||/^0[xX][a-fA-F0-9]+$/g.test(o)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(o)||/^[0-9]+$/g.test(o)?"number":"variable"}return i},lineComment:"--"}})),e.defineMIME("text/x-eiffel","eiffel")}(n(23326))},12589:(e,t,n)=>{!function(e){"use strict";e.defineMode("elm",(function(){function e(e,t,n){return t(n),n(e,t)}var t=/[a-z]/,n=/[A-Z]/,r=/[a-zA-Z0-9_]/,i=/[0-9]/,o=/[0-9A-Fa-f]/,a=/[-&*+.\\/<>=?^|:]/,s=/[(),[\]{}]/,l=/[ \v\f]/;function u(){return function(u,m){if(u.eatWhile(l))return null;var g=u.next();if(s.test(g))return"{"===g&&u.eat("-")?e(u,m,c(1)):"["===g&&u.match("glsl|")?e(u,m,h):"builtin";if("'"===g)return e(u,m,p);if('"'===g)return u.eat('"')?u.eat('"')?e(u,m,d):"string":e(u,m,f);if(n.test(g))return u.eatWhile(r),"variable-2";if(t.test(g)){var v=1===u.pos;return u.eatWhile(r),v?"def":"variable"}if(i.test(g)){if("0"===g){if(u.eat(/[xX]/))return u.eatWhile(o),"number"}else u.eatWhile(i);return u.eat(".")&&u.eatWhile(i),u.eat(/[eE]/)&&(u.eat(/[-+]/),u.eatWhile(i)),"number"}return a.test(g)?"-"===g&&u.eat("-")?(u.skipToEnd(),"comment"):(u.eatWhile(a),"keyword"):"_"===g?"keyword":"error"}}function c(e){return 0==e?u():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0==--e)return n(u()),"comment"}return n(c(e)),"comment"}}function d(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(u()),"string";return"string"}function f(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function p(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function h(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(u()),"string";return"string"}var m={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:u()}},copyState:function(e){return{f:e.f}},lineComment:"--",token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return m.hasOwnProperty(r)?"keyword":n}}})),e.defineMIME("text/x-elm","elm")}(n(23326))},93710:(e,t,n)=>{!function(e){"use strict";e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",(function(t){var n=["-type","-spec","-export_type","-opaque"],r=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],i=/[\->,;]/,o=["->",";",","],a=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,l=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],u=/[<\(\[\{]/,c=["<<","(","[","{"],d=/[>\)\]\}]/,f=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],h=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],m=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,g=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function v(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(x(e.current(),n))return!0;e.backUp(1)}e.next()}return!1}function b(e){return _(e,'"',"\\")}function w(e){return _(e,"'","\\")}function _(e,t,n){for(;!e.eol();){var r=e.next();if(r==t)return!0;r==n&&e.next()}return!1}function x(e,t){return-1<t.indexOf(e)}function E(e,t,n){switch(function(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=function(e,t){var n=e.length-1;return 0<n&&"record"===e[n].type&&"dot"===t.type?e.pop():0<n&&"group"===e[n].type?(e.pop(),e.push(t)):e.push(t),e}(e.tokenStack,t),e.tokenStack=function(e){if(!e.length)return e;var t=e.length-1;if("dot"===e[t].type)return[];if(t>1&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return A(e,{g:["{"]});case"]":return A(e,{i:["["]});case")":return A(e,{i:["("]});case">>":return A(e,{i:["<<"]});case"end":return A(e,{i:["begin","case","fun","if","receive","try"]});case",":return A(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return A(e,{r:["when"],m:["try","if","case","receive"]});case";":return A(e,{E:["case","fun","if","receive","try","when"]});case"catch":return A(e,{e:["try"]});case"of":return A(e,{e:["case"]});case"after":return A(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return k(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function k(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function C(e){return k(e,0,0,e)}function S(e,t){var n=e.tokenStack.length,r=t||1;return!(n<r)&&e.tokenStack[n-r]}function A(e,t){for(var n in t)for(var r=e.length-1,i=t[n],o=r-1;-1<o;o--)if(x(e[o].token,i)){var a=e.slice(0,o);switch(n){case"m":return a.concat(e[o]).concat(e[r]);case"r":return a.concat(e[r]);case"i":return a;case"g":return a.concat(C("group"));case"E":case"e":return a.concat(e[o])}}return"E"==n?[]:e}function T(n,r){var i,o,a=t.indentUnit,s=R(o=r.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===o.index?o[0]:"",l=S(n,1),u=S(n,2);return n.in_string||n.in_atom?e.Pass:u?"when"==l.token?l.column+a:"when"===s&&"function"===u.type?u.indent+a:"("===s&&"fun"===l.token?l.column+3:"catch"===s&&(i=O(n,["try"]))?i.column:x(s,["end","after","of"])?(i=O(n,["begin","case","fun","if","receive","try"]))?i.column:e.Pass:x(s,f)?(i=O(n,c))?i.column:e.Pass:x(l.token,[",","|","||"])||x(s,[",","|","||"])?(i=function(e){var t=e.tokenStack.slice(0,-1),n=P(t,"type",["open_paren"]);return!!R(t[n])&&t[n]}(n))?i.column+i.token.length:a:"->"==l.token?x(u.token,["receive","case","if","try"])?u.column+a+a:u.column+a:x(l.token,c)?l.column+l.token.length:R(i=function(e){var t=e.tokenStack,n=P(t,"type",["open_paren","separator","keyword"]),r=P(t,"type",["operator"]);return R(n)&&R(r)&&n<r?t[n+1]:!!R(n)&&t[n]}(n))?i.column+a:0:0}function O(e,t){var n=e.tokenStack,r=P(n,"token",t);return!!R(n[r])&&n[r]}function P(e,t,n){for(var r=e.length-1;-1<r;r--)if(x(e[r][t],n))return r;return!1}function R(e){return!1!==e&&null!=e}return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return function(e,t){if(t.in_string)return t.in_string=!b(e),E(t,e,"string");if(t.in_atom)return t.in_atom=!w(e),E(t,e,"atom");if(e.eatSpace())return E(t,e,"whitespace");if(!S(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),n)?E(t,e,"type"):E(t,e,"attribute");var _=e.next();if("%"==_)return e.skipToEnd(),E(t,e,"comment");if(":"==_)return E(t,e,"colon");if("?"==_)return e.eatSpace(),e.eatWhile(m),E(t,e,"macro");if("#"==_)return e.eatSpace(),e.eatWhile(m),E(t,e,"record");if("$"==_)return"\\"!=e.next()||e.match(g)?E(t,e,"number"):E(t,e,"error");if("."==_)return E(t,e,"dot");if("'"==_){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),E(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return E(t,e,"function")}return E(t,e,"atom")}if('"'==_)return t.in_string=!b(e),E(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(_))return e.eatWhile(m),E(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(_)){if(e.eatWhile(m),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),E(t,e,"fun");var k=e.current();return x(k,r)?E(t,e,"keyword"):x(k,a)?E(t,e,"operator"):e.match(/\s*\(/,!1)?!x(k,h)||":"==S(t).token&&"erlang"!=S(t,2).token?x(k,p)?E(t,e,"guard"):E(t,e,"function"):E(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?E(t,e,"erlang"==k?"builtin":"function"):x(k,["true","false"])?E(t,e,"boolean"):E(t,e,"atom")}var C=/[0-9]/;return C.test(_)?(e.eatWhile(C),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(C)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(C)||e.backUp(2):e.eatWhile(C)||e.backUp(1)):e.backUp(1)),E(t,e,"number")):v(e,u,c)?E(t,e,"open_paren"):v(e,d,f)?E(t,e,"close_paren"):y(e,i,o)?E(t,e,"separator"):y(e,s,l)?E(t,e,"operator"):E(t,e,null)}(e,t)},indent:function(e,t){return T(e,t)},lineComment:"%"}}))}(n(23326))},20601:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:"!"}}),e.defineMIME("text/x-factor","factor")}(n(23326),n(81094))},5801:(e,t,n)=>{!function(e){"use strict";e.defineMode("fcl",(function(e){var t=e.indentUnit,n={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},r={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},i={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},o={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var s=e.next();if(/[\d\.]/.test(s))return"."==s?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==s?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==s||"("==s){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(s))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current().toLowerCase();return n.propertyIsEnumerable(u)||r.propertyIsEnumerable(u)||i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}return{startState:function(e){return{tokenize:null,context:new u((e||0)-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var o=(t.tokenize||s)(e,t);if("comment"==o)return o;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return r.propertyIsEnumerable(a)?function(e,t,n){e.context=new u(e.indented,t,n,null,e.context)}(t,e.column(),"end_block"):i.propertyIsEnumerable(a)&&function(e){if(e.context.prev)"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}(t),t.startOfLine=!1,o},indent:function(e,n){if(e.tokenize!=s&&null!=e.tokenize)return 0;var r=e.context,o=i.propertyIsEnumerable(n);return r.align?r.column+(o?0:1):r.indented+(o?0:t)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}})),e.defineMIME("text/x-fcl","fcl")}(n(23326))},45729:(e,t,n)=>{!function(e){"use strict";function t(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}var n=t("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),r=t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");e.defineMode("forth",(function(){function e(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}return{startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:r,wordList:[]}},token:function(t,n){var r;if(t.eatSpace())return null;if(""===n.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return n.state=" compilation","builtin compilation";if(r=t.match(/^(\:)\s+(\S+)(\s|$)+/))return n.wordList.push({name:r[2].toUpperCase()}),n.state=" compilation","def"+n.state;if(r=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return n.wordList.push({name:r[2].toUpperCase()}),"def"+n.state;if(r=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"+n.state}else{if(t.match(/^(\;|\[)(\s)/))return n.state="",t.backUp(1),"builtin compilation";if(t.match(/^(\;|\[)($)/))return n.state="","builtin compilation";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(r=t.match(/^(\S+)(\s+|$)/))?void 0!==e(n.wordList,r[1])?"variable"+n.state:"\\"===r[1]?(t.skipToEnd(),"comment"+n.state):void 0!==e(n.coreWordList,r[1])?"builtin"+n.state:void 0!==e(n.immediateWordList,r[1])?"keyword"+n.state:"("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"comment"+n.state):".("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"string"+n.state):'S"'===r[1]||'."'===r[1]||'C"'===r[1]?(t.eatWhile((function(e){return'"'!==e})),t.eat('"'),"string"+n.state):r[1]-68719476735?"number"+n.state:"atom"+n.state:void 0}}})),e.defineMIME("text/x-forth","forth")}(n(23326))},81640:(e,t,n)=>{!function(e){"use strict";e.defineMode("fortran",(function(){function e(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var t=e(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),n=e(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),r=e(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),i=/[+\-*&=<>\/\:]/,o=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function a(e,a){if(e.match(o))return"operator";var s,l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(e,a);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(i.test(l))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return t.hasOwnProperty(u)?"keyword":n.hasOwnProperty(u)||r.hasOwnProperty(u)?"builtin":"variable"}return{startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)}}})),e.defineMIME("text/x-fortran","fortran")}(n(23326))},37471:(e,t,n)=>{!function(e){"use strict";e.defineMode("gas",(function(e,t){var n=[],r="",i={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},o={};var a=(t.architecture||"x86").toLowerCase();function s(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===a?(r="#",o.al="variable",o.ah="variable",o.ax="variable",o.eax="variable-2",o.rax="variable-3",o.bl="variable",o.bh="variable",o.bx="variable",o.ebx="variable-2",o.rbx="variable-3",o.cl="variable",o.ch="variable",o.cx="variable",o.ecx="variable-2",o.rcx="variable-3",o.dl="variable",o.dh="variable",o.dx="variable",o.edx="variable-2",o.rdx="variable-3",o.si="variable",o.esi="variable-2",o.rsi="variable-3",o.di="variable",o.edi="variable-2",o.rdi="variable-3",o.sp="variable",o.esp="variable-2",o.rsp="variable-3",o.bp="variable",o.ebp="variable-2",o.rbp="variable-3",o.ip="variable",o.eip="variable-2",o.rip="variable-3",o.cs="keyword",o.ds="keyword",o.ss="keyword",o.es="keyword",o.fs="keyword",o.gs="keyword"):"arm"!==a&&"armv6"!==a||(r="@",i.syntax="builtin",o.r0="variable",o.r1="variable",o.r2="variable",o.r3="variable",o.r4="variable",o.r5="variable",o.r6="variable",o.r7="variable",o.r8="variable",o.r9="variable",o.r10="variable",o.r11="variable",o.r12="variable",o.sp="variable-2",o.lr="variable-2",o.pc="variable-2",o.r13=o.sp,o.r14=o.lr,o.r15=o.pc,n.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{startState:function(){return{tokenize:null}},token:function(e,t){if(t.tokenize)return t.tokenize(e,t);if(e.eatSpace())return null;var a,l,u=e.next();if("/"===u&&e.eat("*"))return t.tokenize=s,s(e,t);if(u===r)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if(n===t&&!r)return!1;r=!r&&"\\"===n}}(e,'"'),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(a=i[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"bracket";if("}"===u)return"bracket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(a=o[l])||null);for(var c=0;c<n.length;c++)if(a=n[c](u,e,t))return a},lineComment:r,blockCommentStart:"/*",blockCommentEnd:"*/"}}))}(n(23326))},48239:(e,t,n)=>{!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0;var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:function(e){return e.code=!1,null}},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in r)a[s]=r[s];return a.name="markdown",e.overlayMode(e.getMode(n,a),o)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(23326),n(48033),n(19962))},41028:(e,t,n)=>{!function(e){"use strict";e.defineMode("gherkin",(function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}})),e.defineMIME("text/x-feature","gherkin")}(n(23326))},68459:(e,t,n)=>{!function(e){"use strict";e.defineMode("go",(function(t){var n,r=t.indentUnit,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var r,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(r=u,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return n=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}return{startState:function(e){return{tokenize:null,context:new u((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==r.align&&(r.align=!0),"{"==n?c(t,e.column(),"}"):"["==n?c(t,e.column(),"]"):"("==n?c(t,e.column(),")"):"case"==n?r.type="case":("}"==n&&"}"==r.type||n==r.type)&&function(e){if(e.context.prev){var t=e.context.type;")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}(t),t.startOfLine=!1),i},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")}(n(23326))},36275:(e,t,n)=>{!function(e){"use strict";e.defineMode("groovy",(function(t){function n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var r,i=n("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),o=n("catch class def do else enum finally for if interface switch trait try while"),a=n("return break continue"),s=n("null true false this");function l(e,t){var n=e.next();if('"'==n||"'"==n)return u(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return r=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(f),f(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(p(t.lastToken,!1))return u(n,e,t)}if("-"==n&&e.eat(">"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return r="proplabel","property";var l=e.current();return s.propertyIsEnumerable(l)?"atom":i.propertyIsEnumerable(l)?(o.propertyIsEnumerable(l)?r="newstatement":a.propertyIsEnumerable(l)&&(r="standalone"),"keyword"):"variable"}function u(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(c()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(d),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function c(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return l(t,n)}return t.isBase=!0,t}function d(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function p(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function h(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function m(e,t,n){return e.context=new h(e.indented,t,n,null,e.context)}function g(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return l.isBase=!0,{startState:function(e){return{tokenize:[l],context:new h((e||0)-t.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||p(t.lastToken,!0)||(g(t),n=t.context)),e.eatSpace())return null;r=null;var i=t.tokenize[t.tokenize.length-1](e,t);if("comment"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r||"statement"!=n.type)if("->"==r&&"statement"==n.type&&"}"==n.prev.type)g(t),t.context.align=!1;else if("{"==r)m(t,e.column(),"}");else if("["==r)m(t,e.column(),"]");else if("("==r)m(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=g(t);for("}"==n.type&&(n=g(t));"statement"==n.type;)n=g(t)}else r==n.type?g(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==r)&&m(t,e.column(),"statement");else g(t);return t.startOfLine=!1,t.lastToken=r||i,i},indent:function(n,r){if(!n.tokenize[n.tokenize.length-1].isBase)return e.Pass;var i=r&&r.charAt(0),o=n.context;"statement"!=o.type||p(n.lastToken,!0)||(o=o.prev);var a=i==o.type;return"statement"==o.type?o.indented+("{"==i?0:t.indentUnit):o.align?o.column+(a?0:1):o.indented+(a?0:t.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-groovy","groovy")}(n(23326))},88099:(e,t,n)=>{!function(e){"use strict";e.defineMode("haml",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby");function i(e){return function(t,n){return t.peek()==e&&1==n.rubyState.tokenize.length?(t.next(),n.tokenize=a,"closeAttributeTag"):o(t,n)}}function o(e,t){return e.match("-#")?(e.skipToEnd(),"comment"):r.token(e,t.rubyState)}function a(e,t){var r=e.peek();if("comment"==t.previousToken.style&&t.indented>t.previousToken.indented)return e.skipToEnd(),"commentLine";if(t.startOfLine){if("!"==r&&e.match("!!"))return e.skipToEnd(),"tag";if(e.match(/^%[\w:#\.]+=/))return t.tokenize=o,"hamlTag";if(e.match(/^%[\w:]+/))return"hamlTag";if("/"==r)return e.skipToEnd(),"comment"}if((t.startOfLine||"hamlTag"==t.previousToken.style)&&("#"==r||"."==r))return e.match(/[\w-#\.]*/),"hamlAttribute";if(t.startOfLine&&!e.match("--\x3e",!1)&&("="==r||"-"==r))return t.tokenize=o,t.tokenize(e,t);if("hamlTag"==t.previousToken.style||"closeAttributeTag"==t.previousToken.style||"hamlAttribute"==t.previousToken.style){if("("==r)return t.tokenize=i(")"),t.tokenize(e,t);if("{"==r&&!e.match(/^\{%.*/))return t.tokenize=i("}"),t.tokenize(e,t)}return n.token(e,t.htmlState)}return{startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),indented:0,previousToken:{style:null,indented:0},tokenize:a}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()&&(t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var n=t.tokenize(e,t);if(t.startOfLine=!1,n&&"commentLine"!=n&&(t.previousToken={style:n,indented:t.indented}),e.eol()&&t.tokenize==o){e.backUp(1);var r=e.peek();e.next(),r&&","!=r&&(t.tokenize=a)}return"hamlTag"==n?n="tag":"commentLine"==n?n="comment":"hamlAttribute"==n?n="attribute":"closeAttributeTag"==n&&(n=null),n}}}),"htmlmixed","ruby"),e.defineMIME("text/x-haml","haml")}(n(23326),n(38425),n(53019))},42336:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(23326),n(81094),n(15718))},93476:(e,t,n)=>{!function(e){"use strict";e.defineMode("haskell-literate",(function(t,n){var r=e.getMode(t,n&&n.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(r)}},token:function(e,t){return e.sol()&&(t.inCode=e.eat(">"))?"meta":t.inCode?r.token(e,t.baseState):(e.skipToEnd(),"comment")},innerMode:function(e){return e.inCode?{state:e.baseState,mode:r}:null}}}),"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")}(n(23326),n(88216))},88216:(e,t,n)=>{!function(e){"use strict";e.defineMode("haskell",(function(e,t){function n(e,t,n){return t(n),n(e,t)}var r=/[a-z_]/,i=/[A-Z]/,o=/\d/,a=/[0-9A-Fa-f]/,s=/[0-7]/,l=/[a-z_A-Z0-9'\xa1-\uffff]/,u=/[-!#$%&*+.\/<=>?@\\^|~:]/,c=/[(),;[\]`{}]/,d=/[ \t\v\f]/;function f(e,t){if(e.eatWhile(d))return null;var f=e.next();if(c.test(f)){if("{"==f&&e.eat("-")){var m="comment";return e.eat("#")&&(m="meta"),n(e,t,p(m,1))}return null}if("'"==f)return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if('"'==f)return n(e,t,h);if(i.test(f))return e.eatWhile(l),e.eat(".")?"qualifier":"variable-2";if(r.test(f))return e.eatWhile(l),"variable";if(o.test(f)){if("0"==f){if(e.eat(/[xX]/))return e.eatWhile(a),"integer";if(e.eat(/[oO]/))return e.eatWhile(s),"number"}return e.eatWhile(o),m="number",e.match(/^\.\d+/)&&(m="number"),e.eat(/[eE]/)&&(m="number",e.eat(/[-+]/),e.eatWhile(o)),m}return"."==f&&e.eat(".")?"keyword":u.test(f)?"-"==f&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(u))?(e.skipToEnd(),"comment"):(m="variable",":"==f&&(m="variable-2"),e.eatWhile(u),m):"error"}function p(e,t){return 0==t?f:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(f),e}return r(p(e,i)),e}}function h(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(f),"string";if("\\"==n){if(e.eol()||e.eat(d))return t(m),"string";e.eat("&")||e.next()}}return t(f),"string error"}function m(e,t){return e.eat("\\")?n(e,t,h):(e.next(),t(f),"error")}var g=function(){var e={};function n(t){return function(){for(var n=0;n<arguments.length;n++)e[arguments[n]]=t}}n("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),n("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),n("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),n("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var r=t.overrideKeywords;if(r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i]);return e}();return{startState:function(){return{f}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return g.hasOwnProperty(r)?g[r]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}})),e.defineMIME("text/x-haskell","haskell")}(n(23326))},45930:(e,t,n)=>{!function(e){"use strict";e.defineMode("haxe",(function(e,t){var n=e.indentUnit;function r(e){return{type:e,style:"keyword"}}var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},p=/[+\-*&%=<>!?|]/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n,r=e.next();if('"'==r||"'"==r)return h(e,t,(n=r,function(e,t){return m(e,n)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(r)||"-"==r&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==r&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string-2");if("/"==r)return e.eat("*")?h(e,t,y):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(p),g("operator",null,e.current()));if("#"==r)return e.skipToEnd(),g("conditional","meta");if("@"==r)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(p.test(r))return e.eatWhile(p),g("operator",null,e.current());if(/[A-Z]/.test(r))return e.eatWhile(/[\w_<>]/),g("type","variable-3",i=e.current());e.eatWhile(/[\w_]/);var i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function x(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r<n;r++)if(e.importedtypes[r]==t)return!0}function E(e){for(var t=k.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}var k={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function S(){return C.apply(null,arguments),!0}function A(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=k.state;if(t.context){if(k.marked="def",A(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(A(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var O={name:"this",next:null};function P(){k.state.context||(k.state.localVars=O),k.state.context={prev:k.state.context,vars:k.state.localVars}}function R(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function M(e,t){var n=function(){var n=k.state;n.lexical=new w(n.indented,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function D(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function I(e){return function t(n){return n==e?S():";"==e?C():S(t)}}function L(e){return"@"==e?S(U):"var"==e?S(M("vardef"),Z,I(";"),D):"keyword a"==e?S(M("form"),j,L,D):"keyword b"==e?S(M("form"),L,D):"{"==e?S(M("}"),P,K,D,R):";"==e?S():"attribute"==e?S(B):"function"==e?S(J):"for"==e?S(M("form"),I("("),M(")"),X,I(")"),D,L,D):"variable"==e?S(M("stat"),$):"switch"==e?S(M("form"),j,M("}","switch"),I("{"),K,D,D):"case"==e?S(j,I(":")):"default"==e?S(I(":")):"catch"==e?S(M("form"),P,I("("),re,I(")"),L,D,R):"import"==e?S(q,I(";")):"typedef"==e?S(W):C(M("stat"),j,I(";"),D)}function j(e){return b.hasOwnProperty(e)||"type"==e?S(F):"function"==e?S(J):"keyword c"==e?S(N):"("==e?S(M(")"),N,I(")"),D,F):"operator"==e?S(j):"["==e?S(M("]"),V(N,"]"),D,F):"{"==e?S(M("}"),V(G,"}"),D,F):S()}function N(e){return e.match(/[;\}\)\],]/)?C():C(j)}function F(e,t){return"operator"==e&&/\+\+|--/.test(t)?S(F):"operator"==e||":"==e?S(j):";"!=e?"("==e?S(M(")"),V(j,")"),D,F):"."==e?S(H,F):"["==e?S(M("]"),j,I("]"),D,F):void 0:void 0}function B(e){return"attribute"==e?S(B):"function"==e?S(J):"var"==e?S(Z):void 0}function U(e){return":"==e||"variable"==e?S(U):"("==e?S(M(")"),V(z,")"),D,L):void 0}function z(e){if("variable"==e)return S()}function q(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(E(t),S()):"variable"==e||"property"==e||"."==e||"*"==t?S(q):void 0}function W(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(E(t),S()):"type"==e&&/[A-Z]/.test(t.charAt(0))?S():void 0}function $(e){return":"==e?S(D,L):C(F,I(";"),D)}function H(e){if("variable"==e)return k.marked="property",S()}function G(e){if("variable"==e&&(k.marked="property"),b.hasOwnProperty(e))return S(I(":"),j)}function V(e,t){function n(r){return","==r?S(e,n):r==t?S():S(I(t))}return function(r){return r==t?S():C(e,n)}}function K(e){return"}"==e?S():C(L,K)}function Z(e,t){return"variable"==e?(T(t),S(ee,Y)):S()}function Y(e,t){return"="==t?S(j,Y):","==e?S(Z):void 0}function X(e,t){return"variable"==e?(T(t),S(Q,j)):C()}function Q(e,t){if("in"==t)return S()}function J(e,t){return"variable"==e||"type"==e?(T(t),S(J)):"new"==t?S(J):"("==e?S(M(")"),P,V(re,")"),D,ee,L,R):void 0}function ee(e){if(":"==e)return S(te)}function te(e){return"type"==e||"variable"==e?S():"{"==e?S(M("}"),V(ne,"}"),D):void 0}function ne(e){if("variable"==e)return S(ee)}function re(e,t){if("variable"==e)return T(t),S(ee)}return R.lex=!0,D.lex=!0,{startState:function(e){var r={tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new w((e||0)-n,0,"block",!1),localVars:t.localVars,importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:t.localVars&&{vars:t.localVars},indented:0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():L)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&_(e,r)?"variable-2":"variable"==n&&x(e,r)?"variable-3":t}}(t,n,d,i,e))},indent:function(e,t){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n):i.indented+(/^(?:case|default)\b/.test(t)?n:2*n)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-haxe","haxe"),e.defineMode("hxml",(function(){return{startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},lineComment:"#"}})),e.defineMIME("text/x-hxml","hxml")}(n(23326))},39119:(e,t,n)=>{!function(e){"use strict";e.defineMode("htmlembedded",(function(t,n){var r=n.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:n.openComment||"<%--",close:r,delimStyle:"comment",mode:{token:function(e){return e.skipTo(r)||e.skipToEnd(),"comment"}}},{open:n.open||n.scriptStartRegex||"<%",close:n.close||n.scriptEndRegex||"%>",mode:e.getMode(t,n.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}(n(23326),n(38425),n(15718))},38425:(e,t,n)=>{!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var n={};function r(e,t){var r=e.match(function(e){return n[e]||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}e.defineMode("htmlmixed",(function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},u=a&&a.tags,c=a&&a.scriptTypes;if(o(t,l),u&&o(u,l),c)for(var d=c.length-1;d>=0;d--)l.script.unshift(["type",c[d].matches,c[d].mode]);function f(t,o){var a,u=s.token(t,o.htmlState),c=/\btag\b/.test(u);if(c&&!/[<>\s\/]/.test(t.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&c&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}(l[d[1]],d[2]),h=e.getMode(n,p),m=i(d[1],!0),g=i(d[1],!1);o.token=function(e,t){return e.match(m,!1)?(t.token=f,t.localState=t.localMode=null,null):function(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,g,t.localMode.token(e,t.localState))},o.localMode=h,o.localState=e.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return u}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(23326),n(9812),n(49055),n(98627))},58527:(e,t,n)=>{!function(e){"use strict";e.defineMode("http",(function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,r){return t.match(/^HTTP\/\d\.\d/)?(r.cur=n,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(r.cur=i,"keyword"):e(t,r)}function n(t,n){var i=t.match(/^\d+/);if(!i)return e(t,n);n.cur=r;var o=Number(i[0]);return o>=100&&o<200?"positive informational":o>=200&&o<300?"positive success":o>=300&&o<400?"positive redirect":o>=400&&o<500?"negative client-error":o>=500&&o<600?"negative server-error":"error"}function r(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,n){return t.match(/^HTTP\/\d\.\d$/)?(n.cur=a,"keyword"):e(t,n)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var n=t.cur;return n!=a&&n!=s&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}})),e.defineMIME("message/http","http")}(n(23326))},91017:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],r=t(n),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],o=t(i);e.registerHelper("hintWords","idl",n.concat(i));var a=new RegExp("^[_a-z¡-][_a-z0-9¡-]*","i"),s=/[+\-*&=<>\/@#~$]/,l=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");e.defineMode("idl",(function(){return{token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(r)?"builtin":e.match(a)?"variable":e.match(s)||e.match(l)?"operator":(e.next(),null)}(e)}}})),e.defineMIME("text/x-idl","idl")}(n(23326))},49055:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):et(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var b="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=b.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?W:z)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&E(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function A(){return S.apply(null,arguments),!0}function T(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function O(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=P(e,t.context);if(null!=r)return void(t.context=r)}else if(!T(e,t.localVars))return void(t.localVars=new D(e,t.localVars));n.globalVars&&!T(e,t.globalVars)&&(t.globalVars=new D(e,t.globalVars))}}function P(e,t){if(t){if(t.block){var n=P(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return T(e,t.vars)?t:new M(t.prev,new D(e,t.vars),!1)}return null}function R(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function D(e,t){this.name=e,this.next=t}var I=new D("this",new D("arguments",null));function L(){C.state.context=new M(C.state.context,C.state.localVars,!1),C.state.localVars=I}function j(){C.state.context=new M(C.state.context,C.state.localVars,!0),C.state.localVars=null}function N(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function F(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function B(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){return function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?S():A(t)}}function z(e,t){return"var"==e?A(F("vardef",t),Ce,U(";"),B):"keyword a"==e?A(F("form"),H,z,B):"keyword b"==e?A(F("form"),z,B):"keyword d"==e?C.stream.match(/^\s*$/,!1)?A():A(F("stat"),V,U(";"),B):"debugger"==e?A(U(";")):"{"==e?A(F("}"),j,ue,B,N):";"==e?A():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==B&&C.state.cc.pop()(),A(F("form"),H,z,B,Re)):"function"==e?A(Le):"for"==e?A(F("form"),j,Me,z,N,B):"class"==e||c&&"interface"==t?(C.marked="keyword",A(F("form","class"==e?e:t),Ue,B)):"variable"==e?c&&"declare"==t?(C.marked="keyword",A(z)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?A(Qe):"type"==t?A(Ne,U("operator"),he,U(";")):A(F("form"),Se,U("{"),F("}"),ue,B,B)):c&&"namespace"==t?(C.marked="keyword",A(F("form"),W,z,B)):c&&"abstract"==t?(C.marked="keyword",A(z)):A(F("stat"),ne):"switch"==e?A(F("form"),H,U("{"),F("}","switch"),j,ue,B,B,N):"case"==e?A(W,U(":")):"default"==e?A(U(":")):"catch"==e?A(F("form"),L,q,z,B,N):"export"==e?A(F("stat"),$e,B):"import"==e?A(F("stat"),Ge,B):"async"==e?A(z):"@"==t?A(W,z):S(F("stat"),W,U(";"),B)}function q(e){if("("==e)return A(Fe,U(")"))}function W(e,t){return G(e,t,!1)}function $(e,t){return G(e,t,!0)}function H(e){return"("!=e?S():A(F(")"),V,U(")"),B)}function G(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?J:Q;if("("==e)return A(L,F(")"),se(Fe,")"),B,U("=>"),r,N);if("variable"==e)return S(L,Se,U("=>"),r,N)}var i=n?Z:K;return _.hasOwnProperty(e)?A(i):"function"==e?A(Le,i):"class"==e||c&&"interface"==t?(C.marked="keyword",A(F("form"),Be,B)):"keyword c"==e||"async"==e?A(n?$:W):"("==e?A(F(")"),V,U(")"),B,i):"operator"==e||"spread"==e?A(n?$:W):"["==e?A(F("]"),Xe,B,i):"{"==e?le(ie,"}",null,i):"quasi"==e?S(Y,i):"new"==e?A(function(e){return function(t){return"."==t?A(e?te:ee):"variable"==t&&c?A(xe,e?Z:K):S(e?$:W)}}(n)):A()}function V(e){return e.match(/[;\}\)\],]/)?S():S(W)}function K(e,t){return","==e?A(V):Z(e,t,!1)}function Z(e,t,n){var r=0==n?K:Z,i=0==n?W:$;return"=>"==e?A(L,n?J:Q,N):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?A(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(F(">"),se(he,">"),B,r):"?"==t?A(W,U(":"),i):A(i):"quasi"==e?S(Y,r):";"!=e?"("==e?le($,")","call",r):"."==e?A(re,r):"["==e?A(F("]"),V,U("]"),B,r):c&&"as"==t?(C.marked="keyword",A(he,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),A(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?A(Y):A(V,X)}function X(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,A(Y)}function Q(e){return w(C.stream,C.state),S("{"==e?z:W)}function J(e){return w(C.stream,C.state),S("{"==e?z:$)}function ee(e,t){if("target"==t)return C.marked="keyword",A(K)}function te(e,t){if("target"==t)return C.marked="keyword",A(Z)}function ne(e){return":"==e?A(B,z):S(K,U(";"),B)}function re(e){if("variable"==e)return C.marked="property",A()}function ie(e,t){return"async"==e?(C.marked="property",A(ie)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?A(oe):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),A(ae))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",A(ae)):"jsonld-keyword"==e?A(ae):c&&R(t)?(C.marked="keyword",A(ie)):"["==e?A(W,ce,U("]"),ae):"spread"==e?A($,ae):"*"==t?(C.marked="keyword",A(ie)):":"==e?S(ae):void 0;var n}function oe(e){return"variable"!=e?S(ae):(C.marked="property",A(Le))}function ae(e){return":"==e?A($):"("==e?S(Le):void 0}function se(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?A():n&&n.indexOf(";")>-1?S(e):A(U(t))}return function(n,i){return n==t||i==t?A():S(e,r)}}function le(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return A(F(t,n),se(e,t),B)}function ue(e){return"}"==e?A():S(z,ue)}function ce(e,t){if(c){if(":"==e)return A(he);if("?"==t)return A(ce)}}function de(e,t){if(c&&(":"==e||"in"==t))return A(he)}function fe(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?A(W,pe,he):A(he)}function pe(e,t){if("is"==t)return C.marked="keyword",A()}function he(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",A("typeof"==t?$:he)):"variable"==e||"void"==t?(C.marked="type",A(_e)):"|"==t||"&"==t?A(he):"string"==e||"number"==e||"atom"==e?A(_e):"["==e?A(F("]"),se(he,"]",","),B,_e):"{"==e?A(F("}"),ge,B,_e):"("==e?A(se(we,")"),me,_e):"<"==e?A(se(he,">"),he):"quasi"==e?S(ye,_e):void 0}function me(e){if("=>"==e)return A(he)}function ge(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(ge):S(ve,ge)}function ve(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",A(ve)):"?"==t||"number"==e||"string"==e?A(ve):":"==e?A(he):"["==e?A(U("variable"),de,U("]"),ve):"("==e?S(je,ve):e.match(/[;\}\)\],]/)?void 0:A()}function ye(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?A(ye):A(he,be)}function be(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,A(ye)}function we(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?A(we):":"==e?A(he):"spread"==e?A(we):S(he)}function _e(e,t){return"<"==t?A(F(">"),se(he,">"),B,_e):"|"==t||"."==e||"&"==t?A(he):"["==e?A(he,U("]"),_e):"extends"==t||"implements"==t?(C.marked="keyword",A(he)):"?"==t?A(he,U(":"),he):void 0}function xe(e,t){if("<"==t)return A(F(">"),se(he,">"),B,_e)}function Ee(){return S(he,ke)}function ke(e,t){if("="==t)return A(he)}function Ce(e,t){return"enum"==t?(C.marked="keyword",A(Qe)):S(Se,ce,Oe,Pe)}function Se(e,t){return c&&R(t)?(C.marked="keyword",A(Se)):"variable"==e?(O(t),A()):"spread"==e?A(Se):"["==e?le(Te,"]"):"{"==e?le(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?A(Se):"}"==e?S():"["==e?A(W,U("]"),U(":"),Ae):A(U(":"),Se,Oe)):(O(t),A(Oe))}function Te(){return S(Se,Oe)}function Oe(e,t){if("="==t)return A($)}function Pe(e){if(","==e)return A(Ce)}function Re(e,t){if("keyword b"==e&&"else"==t)return A(F("form","else"),z,B)}function Me(e,t){return"await"==t?A(Me):"("==e?A(F(")"),De,B):void 0}function De(e){return"var"==e?A(Ce,Ie):"variable"==e?A(Ie):S(Ie)}function Ie(e,t){return")"==e?A():";"==e?A(Ie):"in"==t||"of"==t?(C.marked="keyword",A(W,Ie)):S(W,Ie)}function Le(e,t){return"*"==t?(C.marked="keyword",A(Le)):"variable"==e?(O(t),A(Le)):"("==e?A(L,F(")"),se(Fe,")"),B,fe,z,N):c&&"<"==t?A(F(">"),se(Ee,">"),B,Le):void 0}function je(e,t){return"*"==t?(C.marked="keyword",A(je)):"variable"==e?(O(t),A(je)):"("==e?A(L,F(")"),se(Fe,")"),B,fe,N):c&&"<"==t?A(F(">"),se(Ee,">"),B,je):void 0}function Ne(e,t){return"keyword"==e||"variable"==e?(C.marked="type",A(Ne)):"<"==t?A(F(">"),se(Ee,">"),B):void 0}function Fe(e,t){return"@"==t&&A(W,Fe),"spread"==e?A(Fe):c&&R(t)?(C.marked="keyword",A(Fe)):c&&"this"==e?A(ce,Oe):S(Se,ce,Oe)}function Be(e,t){return"variable"==e?Ue(e,t):ze(e,t)}function Ue(e,t){if("variable"==e)return O(t),A(ze)}function ze(e,t){return"<"==t?A(F(">"),se(Ee,">"),B,ze):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),A(c?he:W,ze)):"{"==e?A(F("}"),qe,B):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&R(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",A(qe)):"variable"==e||"keyword"==C.style?(C.marked="property",A(We,qe)):"number"==e||"string"==e?A(We,qe):"["==e?A(W,ce,U("]"),We,qe):"*"==t?(C.marked="keyword",A(qe)):c&&"("==e?S(je,qe):";"==e||","==e?A(qe):"}"==e?A():"@"==t?A(W,qe):void 0}function We(e,t){if("!"==t)return A(We);if("?"==t)return A(We);if(":"==e)return A(he,Oe);if("="==t)return A($);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?je:Le)}function $e(e,t){return"*"==t?(C.marked="keyword",A(Ye,U(";"))):"default"==t?(C.marked="keyword",A(W,U(";"))):"{"==e?A(se(He,"}"),Ye,U(";")):S(z)}function He(e,t){return"as"==t?(C.marked="keyword",A(U("variable"))):"variable"==e?S($,He):void 0}function Ge(e){return"string"==e?A():"("==e?S(W):"."==e?S(K):S(Ve,Ke,Ye)}function Ve(e,t){return"{"==e?le(Ve,"}"):("variable"==e&&O(t),"*"==t&&(C.marked="keyword"),A(Ze))}function Ke(e){if(","==e)return A(Ve,Ke)}function Ze(e,t){if("as"==t)return C.marked="keyword",A(Ve)}function Ye(e,t){if("from"==t)return C.marked="keyword",A(W)}function Xe(e){return"]"==e?A():S(se($,"]"))}function Qe(){return S(F("form"),Se,U("{"),F("}"),se(Je,"}"),B,B)}function Je(){return S(Se,Oe)}function et(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return L.lex=j.lex=!0,N.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==B)l=l.prev;else if(c!=Re&&c!=N)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==Z)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(23326))},81032:(e,t,n)=>{!function(e){"use strict";e.defineMode("jinja2",(function(){var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(a.inbraces>0&&")"==s)o.next(),a.inbraces--;else if("("==s)o.next(),a.inbraces++;else if(a.inbrackets>0&&"]"==s)o.next(),a.inbrackets--;else if("["==s)o.next(),a.inbrackets++;else{if(!a.lineTag&&(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}")))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else{if(1==o.column()&&a.lineTag&&o.match(e))return"keyword";if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next()}}return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,a.inbraces=0,a.inbrackets=0,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}else if(o.eat("#")){if("#"==o.peek())return o.skipToEnd(),"comment";if(!o.eol())return a.intag=!0,a.lineTag=!0,a.inbraces=0,a.inbrackets=0,"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{tokenize:o,inbrackets:0,inbraces:0}},token:function(e,t){var n=t.tokenize(e,t);return e.eol()&&t.lineTag&&!t.instring&&0==t.inbraces&&0==t.inbrackets&&(t.intag=!1,t.lineTag=!1),n},blockCommentStart:"{#",blockCommentEnd:"#}",lineComment:"##"}})),e.defineMIME("text/jinja2","jinja2")}(n(23326))},27968:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function l(n,i){return i.context.mode==o?function(n,i,u){if(2==u.depth)return n.match(/^.*?\*\//)?u.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(u.state);var c=s(u.state),d=u.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?c-=r.indentUnit:u.prev.state.lexical&&(c=u.prev.state.lexical.indented)}else 1==u.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==u.depth){if("<"==n.peek())return o.skipAttribute(u.state),i.context=new t(e.startState(o,s(u.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return u.depth=2,l(n,i)}var f,p=o.token(n,u.state),h=n.current();return/\btag\b/.test(p)?/>$/.test(h)?u.state.context?u.depth=0:i.context=i.context.prev:/^</.test(h)&&(u.depth=1):!p&&(f=h.indexOf("{"))>-1&&n.backUp(h.length-f),p}(n,i,i.context):function(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),a.skipExpression(i.state),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var l=n.current();"{"==l?i.depth++:"}"==l&&0==--i.depth&&(r.context=r.context.prev)}return s}(n,i,i.context)}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:l,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(23326),n(9812),n(49055))},38519:(e,t,n)=>{!function(e){"use strict";e.defineMode("julia",(function(t,n){function r(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=n.operators||r(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=n.delimiters||/^[;,()[\]{}]/,s=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),u=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],c=["true","false","nothing","NaN","Inf"];e.registerHelper("hintWords","julia",u.concat(c));var d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),f=r(["end","else","elseif","catch","finally"]),p=r(u),h=r(c),m=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,v=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,y=r(i,"","@"),b=r(i,"",":");function w(e){return e.nestedArrays>0}function _(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function x(e,t){if(e.match("#=",!1))return t.tokenize=k,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i=e.peek();if("#"===i)return e.skipToEnd(),"comment";if("["===i&&(t.scopes.push("["),t.nestedArrays++),"("===i&&(t.scopes.push("("),t.nestedGenerators++),w(t)&&"]"===i){for(;t.scopes.length&&"["!==_(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===i){for(;t.scopes.length&&"("!==_(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(w(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(f,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=E,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(b)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var l=RegExp(/^im\b/),u=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(u=!0),e.match(/^0x[0-9a-f_]+/i)&&(u=!0),e.match(/^0b[01_]+/i)&&(u=!0),e.match(/^0o[0-7_]+/i)&&(u=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(u=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(u=!0),u)return e.match(l),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=C,t.tokenize(e,t);if(e.match(v))return t.tokenize=function(e){function t(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=x,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"'),t}(e.current()),t.tokenize(e,t);if(e.match(m)||e.match(y))return"meta";if(e.match(a))return null;if(e.match(p))return"keyword";if(e.match(h))return"builtin";var c=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?c?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function E(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=x),"builtin"}function k(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=x)),"comment"}function C(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=x,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=x),"error")}return{startState:function(){return{tokenize:x,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,n){var r=0;return("]"===n||")"===n||/^end\b/.test(n)||/^else/.test(n)||/^catch\b/.test(n)||/^elseif\b/.test(n)||/^finally/.test(n))&&(r=-1),(e.scopes.length+r)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"}})),e.defineMIME("text/x-julia","julia")}(n(23326))},70688:(e,t,n)=>{!function(e){"use strict";e.defineMode("livescript",(function(){var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=o[n];if(r.splice){for(var i=0;i<r.length;++i){var a=r[i];if(a.regex&&e.match(a.regex))return t.next=a.next||t.next,a.token}return e.next(),"error"}if(e.match(a=o[n]))return a.regex&&e.match(a.regex)?(t.next=a.next,a.token):(e.next(),"error")}return e.next(),"error"};return{startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(t,n){for(;t.pos==t.start;)var r=e(t,n);return n.lastToken={style:r,indent:t.indentation(),content:t.current()},r.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(n)&&(t+=2),t}}}));var t="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",i={token:"string",regex:".+"},o={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:t+"\\s*:(?![:=])"},{token:"variable",regex:t},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:t,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},i],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},i],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},i],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},i],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},i],words:[{token:"string",regex:".*?\\]>",next:"key"},i]};for(var a in o){var s=o[a];if(s.splice)for(var l=0,u=s.length;l<u;++l){var c=s[l];"string"==typeof c.regex&&(o[a][l].regex=new RegExp("^"+c.regex))}else"string"==typeof c.regex&&(o[a].regex=new RegExp("^"+s.regex))}e.defineMIME("text/x-livescript","livescript")}(n(23326))},41574:(e,t,n)=>{!function(e){"use strict";e.defineMode("lua",(function(e,t){var n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(t.specials||[]),o=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),a=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),s=r(["function","if","repeat","do","\\(","{"]),l=r(["end","until","\\)","}"]),u=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function c(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function d(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=f(c(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=d),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=f(c(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function f(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=d;break}o=null}return t}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:d}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(a.test(r)?n="keyword":o.test(r)?n="builtin":i.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(s.test(r)?++t.indentDepth:l.test(r)&&--t.indentDepth),n},indent:function(e,t){var r=u.test(t);return e.basecol+n*(e.indentDepth-(r?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}})),e.defineMIME("text/x-lua","lua")}(n(23326))},48033:(e,t,n)=>{!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var a in o)o.hasOwnProperty(a)&&n.tokenTypeOverrides[a]&&(o[a]=n.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,c=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==w){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=k,t.block=b,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function b(r,i){var a,f=r.column()===i.indentation,m=!(a=i.prevLine.stream)||!/\S/.test(a.string),v=i.indentedCode,y=i.prevLine.hr,b=!1!==i.list,w=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var E=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,b)){for(i.list=null;E<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=E-i.listStack[i.listStack.length-1])}var k=!(m||y||i.prevLine.header||b&&v||i.prevLine.fencedCodeEnd),C=(!1===i.list||y||m)&&i.indentation<=w&&r.match(s),S=null;if(i.indentationDiff>=4&&(v||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(f&&i.indentation<=w&&(S=r.match(c))&&S[1].length<=6)return i.quote=0,i.header=S[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,x(i);if(i.indentation<=w&&r.eat(">"))return i.quote=f?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),x(i);if(!C&&!i.setext&&f&&i.indentation<=w&&(S=r.match(l))){var A=S[1]?"ol":"ul";return i.indentation=E+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&r.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+A]),x(i)}return f&&i.indentation<=w&&(S=r.match(p,!0))?(i.quote=0,i.fencedEndRE=new RegExp(S[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(S[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=_,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,x(i)):i.setext||!(k&&b||i.quote||!1!==i.list||i.code||C||h.test(r.string))&&(S=r.lookAhead(1))&&(S=S.match(d))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==S[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,x(i)):C?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,T):g(r,i,i.inline)}function w(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=k,n.block=b,n.htmlState=null)}return o}function _(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(a||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),a||(r=x(t)),t.localMode=t.localState=null,t.block=b,t.f=k,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,a?v(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),o.code)}function x(e){var t=[];if(e.formatting){t.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(o.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function E(e,t){if(e.match(f,!0))return x(t)}function k(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,x(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,x(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),x(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var p=x(i);return i.code=0,p}return i.formatting=d,x(i)}return i.code=f,x(i)}if(i.code)return x(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var h=x(i),g=o.formatting+"-escape";return h?h+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");h=x(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=S,h}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),x(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");h=x(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?S:k,h}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=C,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=C,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var b=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),v(t,i,w)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var _=1,E=1==t.pos?" ":t.string.charAt(t.pos-2);_<3&&t.eat(s);)_++;var A=t.peek()||" ",T=!/\s/.test(A)&&(!m.test(A)||/\s/.test(E)||m.test(E)),O=!/\s/.test(E)&&(!m.test(E)||/\s/.test(A)||m.test(A)),P=null,R=null;if(_%2&&(i.em||!T||"*"!==s&&O&&!m.test(E)?i.em!=s||!O||"*"!==s&&T&&!m.test(A)||(P=!1):P=!0),_>1&&(i.strong||!T||"*"!==s&&O&&!m.test(E)?i.strong!=s||!O||"*"!==s&&T&&!m.test(A)||(R=!1):R=!0),null!=R||null!=P)return n.highlightFormatting&&(i.formatting=null==P?"strong":null==R?"em":"strong em"),!0===P&&(i.em=s),!0===R&&(i.strong=s),p=x(i),!1===P&&(i.em=!1),!1===R&&(i.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return x(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),p=x(i),i.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),x(i)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return x(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var M=x(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),x(i)}function C(e,t){if(">"===e.next()){t.f=t.inline=k,n.highlightFormatting&&(t.formatting="link");var r=x(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function S(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){if(e.next()===r){t.f=t.inline=k,n.highlightFormatting&&(t.formatting="link-string");var i=x(t);return t.linkHref=!1,i}return e.match(A[r]),t.linkHref=!0,x(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,x(t)):"error"}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=O,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,x(t)):g(e,t,k)}function O(e,t){if(e.match("]:",!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var r=x(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=k,o.linkHref+" url")}var R={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:k,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return y(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=w)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==w?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:R}},indent:function(t,n,i){return t.block==w&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:y,getType:x,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(23326),n(9812),n(2312))},87448:(e,t,n)=>{!function(e){"use strict";e.defineMode("mathematica",(function(e,t){var n="[a-zA-Z\\$][a-zA-Z0-9\\$]*",r="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",i="(?:`(?:`?"+r+")?)",o=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+i+"?(?:\\*\\^[+-]?\\d+)?))"),a=new RegExp("(?:"+r+i+"?(?:\\*\\^[+-]?\\d+)?)"),s=new RegExp("(?:`?)(?:"+n+")(?:`(?:"+n+"))*(?:`?)");function l(e,t){var n;return'"'===(n=e.next())?(t.tokenize=u,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=c,t.tokenize(e,t)):(e.backUp(1),e.match(o,!0,!1)||e.match(a,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(s,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}return{startState:function(){return{tokenize:l,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}})),e.defineMIME("text/x-mathematica",{name:"mathematica"})}(n(23326))},80704:(e,t,n)=>{!function(e){"use strict";var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],n=["Date","Subject","Comments","Keywords","Resent-Date"];e.registerHelper("hintWords","mbox",t.concat(n));var r=/^[ \t]/,i=/^From /,o=new RegExp("^("+t.join("|")+"): "),a=new RegExp("^("+n.join("|")+"): "),s=/^[^:]+:/,l=/^[^ ]+@[^ ]+/,u=/^.*?(?=[^ ]+?@[^ ]+)/,c=/^<.*?>/,d=/^.*?(?=<.*>)/;function f(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(r))return null;if(t.inHeader=!1,t.header=null,e.match(i))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,f=!1;return(n=e.match(a))||(f=!0)&&(n=e.match(o))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=f,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(s))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(l)?"link":(e.match(u)||e.skipToEnd(),"atom");if(t.inHeader){var p=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(c))return p+" link";if(e.match(d))return p}return e.skipToEnd(),p}return e.skipToEnd(),null}e.defineMode("mbox",(function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:f,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}})),e.defineMIME("application/mbox","mbox")}(n(23326))},2312:(e,t,n)=>{!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(23326))},13038:(e,t,n)=>{!function(e){"use strict";e.defineMIME("text/mirc","mirc"),e.defineMode("mirc",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),n=e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),r=e("if elseif else and not or eq ne in ni for foreach while switch"),i=/[+\-*&%=<>!?^\/\|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var u=a.beforeParams;a.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c))return"("==c&&u?a.inParams=!0:")"==c&&(a.inParams=!1),null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),"number";if("\\"==c)return e.eat("\\"),e.eat(/./),"number";if("/"==c&&e.eat("*"))return o(e,a,s);if(";"==c&&e.match(/ *\( *\(/))return o(e,a,l);if(";"!=c||a.inParams){if('"'==c)return e.eat(/"/),"keyword";if("$"==c)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),t&&t.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(a.beforeParams=!0,"builtin");if("%"==c)return e.eatWhile(/[^,\s()]/),a.beforeParams=!0,"string";if(i.test(c))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return n&&n.propertyIsEnumerable(d)?"keyword":r&&r.propertyIsEnumerable(d)?(a.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function s(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function l(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=a;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}))}(n(23326))},65994:(e,t,n)=>{!function(e){"use strict";e.defineMode("mllike",(function(t,n){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},i=n.extraWords||{};for(var o in i)i.hasOwnProperty(o)&&(r[o]=n.extraWords[o]);var a=[];for(var s in r)a.push(s);function l(e,t){var i=e.next();if('"'===i)return t.tokenize=u,t.tokenize(e,t);if("{"===i&&e.eat("|"))return t.longString=!0,t.tokenize=d,t.tokenize(e,t);if("("===i&&e.match(/^\*(?!\))/))return t.commentLevel++,t.tokenize=c,t.tokenize(e,t);if("~"===i||"?"===i)return e.eatWhile(/\w/),"variable-2";if("`"===i)return e.eatWhile(/\w/),"quote";if("/"===i&&n.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===i&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===i&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){e.eatWhile(/[\w\xa1-\uffff]/);var o=e.current();return r.hasOwnProperty(o)?r[o]:"variable"}return null}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}function d(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=l),"string"}return e.registerHelper("hintWords","mllike",a),{startState:function(){return{tokenize:l,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}})),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(23326))},51755:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("modelica",(function(t,n){var r=t.indentUnit,i=n.keywords||{},o=n.builtin||{},a=n.atoms||{},s=/[;=\(:\),{}.*<>+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,u=/[0-9]/,c=/[_a-zA-Z]/;function d(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function f(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function h(e,t){for(e.eatWhile(u);e.eat(u)||e.eat(c););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function m(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function g(e,t){return e.eatWhile(u),e.eat(".")&&e.eatWhile(u),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(u)),t.tokenize=null,t.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=d;else if("/"==n&&e.eat("*"))t.tokenize=f;else{if(l.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(s.test(n))return t.tokenize=null,"operator";if(c.test(n))t.tokenize=h;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=m;else if('"'==n)t.tokenize=p;else{if(!u.test(n))return t.tokenize=null,"error";t.tokenize=g}}return t.tokenize(e,t)},indent:function(t,n){if(null!=t.tokenize)return e.Pass;var i=t.level;return/(algorithm)/.test(n)&&i--,/(equation)/.test(n)&&i--,/(initial algorithm)/.test(n)&&i--,/(initial equation)/.test(n)&&i--,/(end)/.test(n)&&i--,i>0?r*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}));!function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-modelica"],{name:"modelica",keywords:t("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),builtin:t("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),atoms:t("Real Boolean Integer String")})}(n(23326))},88907:(e,t,n)=>{!function(e){"use strict";var t={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};function n(e){return new RegExp("^\\b(?:"+e.join("|")+")\\b","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")","i")}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function o(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}e.defineMode("mscgen",(function(e,a){return{startState:i,copyState:o,token:(s=t[a&&a.language||"mscgen"],function(e,t){if(e.match(r(s.brackets),!0,!0))return"bracket";if(!t.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return t.inComment=!0,"comment";if(e.match(r(s.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(t.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?t.inComment=!1:e.skipToEnd(),"comment";if(!t.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return t.inString=!0,"string";if(t.inString)return e.match(/[^\"]*\"/,!0,!0)?t.inString=!1:e.skipToEnd(),"string";if(s.keywords&&e.match(n(s.keywords),!0,!0))return"keyword";if(e.match(n(s.options),!0,!0))return"keyword";if(e.match(n(s.arcsWords),!0,!0))return"keyword";if(e.match(r(s.arcsOthers),!0,!0))return"keyword";if(s.operators&&e.match(r(s.operators),!0,!0))return"operator";if(s.constants&&e.match(r(s.constants),!0,!0))return"variable";if(!s.inAttributeList&&s.attributes&&e.match("[",!0,!0))return s.inAttributeList=!0,"bracket";if(s.inAttributeList){if(null!==s.attributes&&e.match(n(s.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return s.inAttributeList=!1,"bracket"}return e.next(),"base"}),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"};var s})),e.defineMIME("text/x-mscgen","mscgen"),e.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),e.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})}(n(23326))},81482:(e,t,n)=>{!function(e){"use strict";e.defineMode("mumps",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),n=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),r=new RegExp("^[\\.,:]"),i=new RegExp("[()]"),o=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=e(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),s=e(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);return{startState:function(){return{label:!1,commandMode:0}},token:function(e,l){var u=function(e,l){e.sol()&&(l.label=!0,l.commandMode=0);var u=e.peek();return" "==u||"\t"==u?(l.label=!1,0==l.commandMode?l.commandMode=1:(l.commandMode<0||2==l.commandMode)&&(l.commandMode=0)):"."!=u&&l.commandMode>0&&(l.commandMode=":"==u?-1:2),"("!==u&&"\t"!==u||(l.label=!1),";"===u?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==u?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(n)||e.match(t)?"operator":e.match(r)?null:i.test(u)?(e.next(),"bracket"):l.commandMode>0&&e.match(s)?"variable-2":e.match(a)?"builtin":e.match(o)?"variable":"$"===u||"^"===u?(e.next(),"builtin"):"@"===u?(e.next(),"string-2"):/[\w%]/.test(u)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,l);return l.label?"tag":u}}})),e.defineMIME("text/x-mumps","mumps")}(n(23326))},77549:(e,t,n)=>{!function(e){"use strict";e.defineMode("nginx",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=t("http mail events server types location upstream charset_map limit_except if geo map"),o=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit;function s(e,t){return n=t,e}function l(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(r.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"variable-2";if(o.propertyIsEnumerable(n))return"string-2";var a,d=e.next();return"@"==d?(e.eatWhile(/[\w\\\-]/),s("meta",e.current())):"/"==d&&e.eat("*")?(t.tokenize=u,u(e,t)):"<"==d&&e.eat("!")?(t.tokenize=c,c(e,t)):"="!=d?"~"!=d&&"|"!=d||!e.eat("=")?'"'==d||"'"==d?(t.tokenize=(a=d,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=a||r);)r=!r&&"\\"==n;return r||(t.tokenize=l),s("string","string")}),t.tokenize(e,t)):"#"==d?(e.skipToEnd(),s("comment","comment")):"!"==d?(e.match(/^\s*\w*/),s("keyword","important")):/\d/.test(d)?(e.eatWhile(/[\w.%]/),s("number","unit")):/[,.+>*\/]/.test(d)?s(null,"select-op"):/[;{}:\[\]]/.test(d)?s(null,d):(e.eatWhile(/[\w\\\-]/),s("variable","variable")):s(null,"compare"):void s(null,"compare")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=l;break}r="*"==n}return s("comment","comment")}function c(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=l;break}r="-"==n?r+1:0}return s("comment","comment")}return{startState:function(e){return{tokenize:l,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;n=null;var r=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"hash"==n&&"rule"==i?r="atom":"variable"==r&&("rule"==i?r="number":i&&"@media{"!=i||(r="tag")),"rule"==i&&/^[\{\};]$/.test(n)&&t.stack.pop(),"{"==n?"@media"==i?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==n?t.stack.pop():"@media"==n?t.stack.push("@media"):"{"==i&&"comment"!=n&&t.stack.push("rule"),r},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}(n(23326))},13939:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\!\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")}(n(23326),n(81094))},53921:(e,t,n)=>{!function(e){"use strict";e.defineMode("ntriples",(function(){var e=0,t=1,n=2,r=3,i=4,o=5,a=6,s=7,l=8,u=9,c=10,d=11,f=12;function p(p,h){var m,g=p.location;m=g==e&&"<"==h?t:g==e&&"_"==h?n:g==r&&"<"==h?i:g==o&&"<"==h?a:g==o&&"_"==h?s:g==o&&'"'==h?l:g==t&&">"==h||g==n&&" "==h?r:g==i&&">"==h?o:g==a&&">"==h||g==s&&" "==h||g==l&&'"'==h||g==u&&" "==h||g==c&&">"==h?d:g==l&&"@"==h?u:g==l&&"^"==h?c:" "!=h||g!=e&&g!=r&&g!=o&&g!=d?g==d&&"."==h?e:f:g,p.location=m}return{startState:function(){return{location:e,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){p(t,n);var r="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(r+=e,!0)})),t.uris.push(r),e.match("#",!1)||(e.next(),p(t,">")),"variable"}if("#"==n){var i="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(i+=e,!0)})),t.anchors.push(i),"variable-2"}if(">"==n)return p(t,">"),"variable";if("_"==n){p(t,n);var o="";return e.eatWhile((function(e){return" "!=e&&(o+=e,!0)})),t.bnodes.push(o),e.next(),p(t," "),"builtin"}if('"'==n)return p(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&p(t,'"'),"string";if("@"==n){p(t,"@");var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.langs.push(a),e.next(),p(t," "),"string-2"}if("^"==n){e.next(),p(t,"^");var s="";return e.eatWhile((function(e){return">"!=e&&(s+=e,!0)})),t.types.push(s),e.next(),p(t,">"),"variable"}" "==n&&p(t,n),"."==n&&p(t,n)}}})),e.defineMIME("application/n-triples","ntriples"),e.defineMIME("application/n-quads","ntriples"),e.defineMIME("text/n-triples","ntriples")}(n(23326))},55118:(e,t,n)=>{!function(e){"use strict";e.defineMode("octave",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),n=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),r=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),i=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),o=new RegExp("^((>>=)|(<<=))"),a=new RegExp("^[\\]\\)]"),s=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),l=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),u=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function c(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=f,f(e,t)):(e.next(),t.tokenize=f,"operator")}function d(e,t){return e.match(/^.*%}/)?(t.tokenize=f,"comment"):(e.skipToEnd(),"comment")}function f(p,h){if(p.eatSpace())return null;if(p.match("%{"))return h.tokenize=d,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=f,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(p.match(e(["nan","NaN","inf","Inf"])))return"number";var m=p.match(/^"(?:[^"]|"")*("|$)/)||p.match(/^'(?:[^']|'')*('|$)/);return m?m[1]?"string":"string error":p.match(u)?"keyword":p.match(l)?"builtin":p.match(s)?"variable":p.match(t)||p.match(r)?"operator":p.match(n)||p.match(i)||p.match(o)?null:p.match(a)?(h.tokenize=c,null):(p.next(),"error")}return{startState:function(){return{tokenize:f}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=c),n},lineComment:"%",fold:"indent"}})),e.defineMIME("text/x-octave","octave")}(n(23326))},46768:(e,t,n)=>{!function(e){"use strict";e.defineMode("oz",(function(e){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=/[\^@!\|<>#~\.\*\-\+\\/,=]/,i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,o=/(:::)|(\.\.\.)|(=<:)|(>=:)/,a=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],l=t(["true","false","nil","unit"]),u=t(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),c=t(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),d=t(a),f=t(s);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(o)||e.match(i))return"operator";if(e.match(l))return"atom";var n=e.match(c);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=g:"class"==n[0]?t.tokenize=h:"meth"==n[0]&&(t.tokenize=m),"keyword";if(e.match(d)||e.match(u))return"keyword";if(e.match(f))return t.currentIndent--,"keyword";var a,s=e.next();if('"'==s||"'"==s)return t.tokenize=(a=s,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==a&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=v,v(e,t)):r.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function h(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"variable-3")}function m(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function g(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}return{startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(d)||r.match(/(\[])/)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit},fold:"indent",electricInput:(n=a.concat(s),new RegExp("[\\[\\]]|("+n.join("|")+")$")),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-oz","oz")}(n(23326))},44199:(e,t,n)=>{!function(e){"use strict";e.defineMode("pascal",(function(){var e=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),t={null:!0},n=/[+\-*&%=<>!?|\/]/;function r(r,a){var s,l=r.next();if("#"==l&&a.startOfLine)return r.skipToEnd(),"meta";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(r,a);if("("==l&&r.eat("*"))return a.tokenize=i,i(r,a);if("{"==l)return a.tokenize=o,o(r,a);if(/[\[\]\(\),;\:\.]/.test(l))return null;if(/\d/.test(l))return r.eatWhile(/[\w\.]/),"number";if("/"==l&&r.eat("/"))return r.skipToEnd(),"comment";if(n.test(l))return r.eatWhile(n),"operator";r.eatWhile(/[\w\$_]/);var u=r.current();return e.propertyIsEnumerable(u)?"keyword":t.propertyIsEnumerable(u)?"atom":"variable"}function i(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function o(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||r)(e,t)},electricChars:"{}"}})),e.defineMIME("text/x-pascal","pascal")}(n(23326))},6575:(e,t,n)=>{!function(e){"use strict";e.defineMode("pegjs",(function(t){var n=e.getMode(t,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,r){if(r.inString||r.inComment||'"'!=t.peek()&&"'"!=t.peek()||(r.stringType=t.peek(),t.next(),r.inString=!0),r.inString||r.inComment||!t.match("/*")||(r.inComment=!0),r.inString){for(;r.inString&&!t.eol();)t.peek()===r.stringType?(t.next(),r.inString=!1):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return r.lhs?"property string":"string"}if(r.inComment){for(;r.inComment&&!t.eol();)t.match("*/")?r.inComment=!1:t.match(/^.[^\*]*/);return"comment"}if(r.inCharacterClass)for(;r.inCharacterClass&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||(r.inCharacterClass=!1);else{if("["===t.peek())return t.next(),r.inCharacterClass=!0,"bracket";if(t.match("//"))return t.skipToEnd(),"comment";if(r.braced||"{"===t.peek()){null===r.localState&&(r.localState=e.startState(n));var i=n.token(t,r.localState),o=t.current();if(!i)for(var a=0;a<o.length;a++)"{"===o[a]?r.braced++:"}"===o[a]&&r.braced--;return i}if(function(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}(t))return":"===t.peek()?"variable":"variable-2";if(-1!=["[","]","(",")"].indexOf(t.peek()))return t.next(),"bracket";t.eatSpace()||t.next()}return null}}}),"javascript")}(n(23326),n(49055))},82193:(e,t,n)=>{!function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t<n?t:r)}function i(e,t){var n,r=e.pos+t;r<=0?e.pos=0:r>=(n=e.string.length-1)?e.pos=n:e.pos=r}e.defineMode("perl",(function(){var e={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",a=/[goseximacplud]/;function s(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=u,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function l(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=u),e.skipToEnd(),"string"},t.tokenize(e,t)}function u(u,c){if(u.eatSpace())return null;if(c.chain)return s(u,c,c.chain,c.style,c.tail);if(u.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(u.match(/^<<(?=[_a-zA-Z])/))return u.eatWhile(/\w/),l(u,c,u.current().substr(2));if(u.sol()&&u.match(/^\=item(?!\w)/))return l(u,c,"=cut");var d=u.next();if('"'==d||"'"==d){if(n(u,3)=="<<"+d){var f=u.pos;u.eatWhile(/\w/);var p=u.current().substr(1);if(p&&u.eat(d))return l(u,c,p);u.pos=f}return s(u,c,[d],"string")}if(!("q"!=d||(h=t(u,-2))&&/\w/.test(h)))if("x"==(h=t(u,0))){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if("q"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"string");if("["==h)return i(u,2),s(u,c,["]"],"string");if("{"==h)return i(u,2),s(u,c,["}"],"string");if("<"==h)return i(u,2),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"string")}else if("w"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"bracket");if("["==h)return i(u,2),s(u,c,["]"],"bracket");if("{"==h)return i(u,2),s(u,c,["}"],"bracket");if("<"==h)return i(u,2),s(u,c,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"bracket")}else if("r"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(u,1),s(u,c,[")"],"string");if("["==h)return i(u,1),s(u,c,["]"],"string");if("{"==h)return i(u,1),s(u,c,["}"],"string");if("<"==h)return i(u,1),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return s(u,c,[u.eat(h)],"string")}if("m"==d&&(!(h=t(u,-2))||!/\w/.test(h))&&(h=u.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return s(u,c,[h],o,a);if("("==h)return s(u,c,[")"],o,a);if("["==h)return s(u,c,["]"],o,a);if("{"==h)return s(u,c,["}"],o,a);if("<"==h)return s(u,c,[">"],o,a)}if("s"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("y"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("t"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat("r"))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("`"==d)return s(u,c,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(u))?s(u,c,[d],o,a):"operator";if("$"==d){if(f=u.pos,u.eatWhile(/\d/)||u.eat("{")&&u.eatWhile(/\d/)&&u.eat("}"))return"variable-2";u.pos=f}if(/[$@%]/.test(d)){if(f=u.pos,u.eat("^")&&u.eat(/[A-Z]/)||!/[@$%&]/.test(t(u,-2))&&u.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=u.current();if(e[h])return"variable-2"}u.pos=f}if(/[$@%&]/.test(d)&&(u.eatWhile(/[\w$]/)||u.eat("{")&&u.eatWhile(/[\w$]/)&&u.eat("}")))return h=u.current(),e[h]?"variable-2":"variable";if("#"==d&&"$"!=t(u,-2))return u.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){if(f=u.pos,u.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),e[u.current()])return"operator";u.pos=f}if("_"==d&&1==u.pos){if("_END__"==r(u,6))return s(u,c,["\0"],"comment");if("_DATA__"==r(u,7))return s(u,c,["\0"],"variable-2");if("_C__"==r(u,7))return s(u,c,["\0"],"string")}if(/\w/.test(d)){if(f=u.pos,"{"==t(u,-2)&&("}"==t(u,0)||u.eatWhile(/\w/)&&"}"==t(u,0)))return"string";u.pos=f}if(/[A-Z]/.test(d)){var m=t(u,-2);if(f=u.pos,u.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(u,0)))return(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta";u.pos=f}return/[a-zA-Z_]/.test(d)?(m=t(u,-2),u.eatWhile(/\w/),(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"):null}return{startState:function(){return{tokenize:u,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||u)(e,t)},lineComment:"#"}})),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}(n(23326))},98800:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,i){return 0==e.length?r(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=r(t,i),"string"}}function r(e,t){return function(r,i){return function(e,t,r,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/^->\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}(r,i,e,t)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(o),builtin:t(a),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,s);return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:function(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=r.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),u=l.search(/<\?/);return-1!=u&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-u)),a},indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}(n(23326),n(38425),n(80011))},20997:(e,t,n)=>{!function(e){"use strict";e.defineMode("pig",(function(e,t){var n=t.keywords,r=t.builtins,i=t.types,o=t.multiLineStrings,a=/[*+\-%<>=&?:\/!|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function u(e,t){var c,d=e.next();return'"'==d||"'"==d?s(e,t,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return(i||!r&&!o)&&(t.tokenize=u),"error"})):/[\[\]{}\(\),;\.]/.test(d)?null:/\d/.test(d)?(e.eatWhile(/[\w\.]/),"number"):"/"==d?e.eat("*")?s(e,t,l):(e.eatWhile(a),"operator"):"-"==d?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(a),"operator"):a.test(d)?(e.eatWhile(a),"operator"):(e.eatWhile(/[\w\$_]/),n&&n.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:u,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),function(){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",r="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",i="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";e.defineMIME("text/x-pig",{name:"pig",builtins:t(n),keywords:t(r),types:t(i)}),e.registerHelper("hintWords","pig",(n+i+r).split(" "))}()}(n(23326))},50261:(e,t,n)=>{!function(e){"use strict";var t;(t=n(23326)).defineMode("powershell",(function(){function e(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i<e.length;i++)e[i]instanceof RegExp?e[i]=e[i].source:e[i]=e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+r,"i")}var t="(?=[^A-Za-z\\d\\-_]|$)",n=/[\w\-:]/,r=e([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:t}),i=e(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),o=e([i,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),a=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),s=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),l={keyword:r,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:o,builtin:e([/[A-Z]:|%|\?/i,a,s],{suffix:t}),punctuation:/[\[\]{},;`\\\.]|@[({]/,identifier:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function u(e,t){var r=t.returnStack[t.returnStack.length-1];if(r&&r.shouldReturnFrom(t))return t.tokenize=r.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var i in l)if(e.match(l[i]))return i;var o=e.next();if("'"===o)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=u,"string";return"error"}(e,t);if("$"===o)return g(e,t);if('"'===o)return c(e,t);if("<"===o&&e.eat("#"))return t.tokenize=m,m(e,t);if("#"===o)return e.skipToEnd(),"comment";if("@"===o){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=y,t.startQuote=a[0],y(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(n))return g(e,t)}return"error"}function c(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=d,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=u,"string"}else e.next()}return"error"}function d(e,t){return h(e,t,c)}function f(e,t){return t.tokenize=y,t.startQuote='"',y(e,t)}function p(e,t){return h(e,t,f)}function h(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=u,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=g,t.tokenize(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=u;break}r="#"===n}return"comment"}function g(e,t){var r=e.peek();return e.eat("{")?(t.tokenize=v,v(e,t)):null!=r&&r.match(n)?(e.eatWhile(n),t.tokenize=u,"variable-2"):(t.tokenize=u,"error")}function v(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=u;break}return"variable-2"}function y(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=u;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=p,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:u}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"}})),t.defineMIME("application/x-powershell","powershell")}()},16557:(e,t,n)=>{!function(e){"use strict";e.defineMode("properties",(function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}})),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")}(n(23326))},38487:(e,t,n)=>{!function(e){"use strict";var t=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],n=new RegExp("^(("+t.join(")|(")+"))\\b","i");e.registerHelper("hintWords","protobuf",t);var r=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");function i(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(r)?"variable":(e.next(),null)}e.defineMode("protobuf",(function(){return{token:i,fold:"brace"}})),e.defineMIME("text/x-protobuf","protobuf")}(n(23326))},12904:(e,t,n)=>{!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r="meta",i="builtin",o="qualifier",a={"{":"}","(":")","[":"]"},s=e.getMode(t,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(s),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function u(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function c(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),f(n,r,i),"atom"}function d(t,n){if(n.isAttrs){if(a[t.peek()]&&n.attrsNest.push(a[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(")"))return n.isAttrs=!1,"punctuation";if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return"="!==t.peek()&&"!"!==t.peek()||(n.inAttributeName=!1,n.jsState=e.startState(s),"script"===n.lastTag&&"type"===t.current().trim().toLowerCase()?n.attributeIsType=!0:n.attributeIsType=!1),"attribute";var r=s.token(t,n.jsState);if(n.attributeIsType&&"string"===r&&(n.scriptType=t.current().toString()),0===n.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+n.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),n.inAttributeName=!0,n.attrValue="",t.backUp(t.current().length),d(t,n)}catch(e){}return n.attrValue+=t.current(),r||!0}}function f(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function p(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}return l.prototype.copy=function(){var t=new l;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(s,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:function(){return new l},copyState:function(e){return e.copy()},token:function(e,t){var a=p(e,t)||function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(e,t)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return s.token(e,t.jsState)||!0}}(e,t)||function(e,t){if(t.isIncludeFiltered){var n=c(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(e,t)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(e,t)||d(e,t)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=s.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(e,t)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):s.token(e,t.jsState)||!0)}(e,t)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(e,t)||function(e){if(e.match(/^yield\b/))return"keyword"}(e)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return r}(e)||u(e,t)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}(e,t)||function(e){if(e.match(/^default\b/))return n}(e)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}(e,t)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}(e,t)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}(e,t)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,u(e,t)):void 0}(e,t)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}(e,t)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}(e,t)||c(e,t)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(e,t)||function(e){if(e.match(/^#([\w-]+)/))return i}(e)||function(e){if(e.match(/^\.([\w-]+)/))return o}(e)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(e,t)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(e,t)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(e)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(f(e,t,"htmlmixed"),t.innerModeForLine=!0,p(e,t,!0)):void 0}(e,t)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(e,t)||function(e){if(e.match(/^: */))return"colon"}(e)||function(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),f(e,t,n),"dot"}}(e,t)||function(e){return e.next(),null}(e);return!0===a?null:a}}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(23326),n(49055),n(98627),n(38425))},47912:(e,t,n)=>{!function(e){"use strict";e.defineMode("puppet",(function(){var e={},t=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function n(t,n){for(var r=n.split(" "),i=0;i<r.length;i++)e[r[i]]=t}function r(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return n("keyword","class define site node include import inherits"),n("keyword","case if else in and elsif default or"),n("atom","false true running present absent file directory undef"),n("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"),{startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(n,i){return n.eatSpace()?null:function(n,i){var o=n.match(/[\w]+/,!1),a=n.match(/(\s+)?\w+\s+=>.*/,!1),s=n.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=n.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=n.next();if("$"===u)return n.match(t)?i.continueString?"variable-2":"variable":"error";if(i.continueString)return n.backUp(1),r(n,i);if(i.inDefinition){if(n.match(/(\s+)?[\w:_]+(\s+)?/))return"def";n.match(/\s+{/),i.inDefinition=!1}return i.inInclude?(n.match(/(\s+)?\S+(\s+)?/),i.inInclude=!1,"def"):n.match(/(\s+)?\w+\(/)?(n.backUp(1),"def"):a?(n.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(n.backUp(1),n.match(/[\w]+/),n.match(/\s+\S+\s+{/,!1)&&(i.inDefinition=!0),"include"==o&&(i.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(n.backUp(1),n.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(n.match(/(\s+)?[\w:_]+/),"def"):l?(n.match(/(\s+)?[@]{1,2}/),"special"):"#"==u?(n.skipToEnd(),"comment"):"'"==u||'"'==u?(i.pending=u,r(n,i)):"{"==u||"}"==u?"bracket":"/"==u?(n.match(/^[^\/]*\//),"variable-3"):u.match(/[0-9]/)?(n.eatWhile(/[0-9]+/),"number"):"="==u?(">"==n.peek()&&n.next(),"operator"):(n.eatWhile(/[\w-]/),null)}(n,i)}}})),e.defineMIME("text/x-puppet","puppet")}(n(23326))},56141:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function o(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i).concat(["exec","print"])),e.defineMode("python",(function(a,s){for(var l="error",u=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,c=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],d=0;d<c.length;d++)c[d]||c.splice(d--,1);var f=s.hangingIndent||a.indentUnit,p=r,h=i;null!=s.extra_keywords&&(p=p.concat(s.extra_keywords)),null!=s.extra_builtins&&(h=h.concat(s.extra_builtins));var m=!(s.version&&Number(s.version)<3);if(m){var g=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;p=p.concat(["nonlocal","None","aiter","anext","async","await","breakpoint","match","case"]),h=h.concat(["ascii","bytes","exec","print"]);var v=new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))","i")}else g=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,p=p.concat(["exec","print"]),h=h.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","None"]),v=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var y=t(p),b=t(h);function w(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==o(t).type){var r=o(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?x(t):i<r&&E(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var a=_(e,t);return r>0&&E(e,t)&&(a+=" "+l),a}return _(e,t)}function _(e,t,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(v))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=_(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):o)),r}}function o(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return a.tokenize=t,r;if(o.match("{{"))return r;if(o.match("{",!1))return a.tokenize=i(0),o.current()?r:a.tokenize(o,a);if(o.match("}}"))return r;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;a.tokenize=t}return r}return o.isString=!0,o}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=t,r;i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;o.tokenize=t}return r}return i.isString=!0,i}(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a<c.length;a++)if(e.match(c[a]))return"operator";return e.match(u)?"punctuation":"."==t.lastToken&&e.match(g)?"property":e.match(y)||e.match(n)?"keyword":e.match(b)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(g)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),r?null:l)}function x(e){for(;"py"!=o(e).type;)e.scopes.pop();e.scopes.push({offset:o(e).offset+a.indentUnit,type:"py",align:null})}function E(e,t){for(var n=e.indentation();t.scopes.length>1&&o(t).offset>n;){if("py"!=o(t).type)return!0;t.scopes.pop()}return o(t).offset!=n}function k(e,t){e.sol()&&(t.beginningOfLine=!0,t.dedent=!1);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(g,!1)?"meta":m?"operator":l;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent=!0),"lambda"==r&&(t.lambda=!0),":"==r&&!t.lambda&&"py"==o(t).type&&e.match(/^\s*(?:#|$)/,!1)&&x(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+f,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(o(t).type!=r)return l;t.indent=t.scopes.pop().offset-f}}return t.dedent&&e.eol()&&"py"==o(t).type&&t.scopes.length>1&&t.scopes.pop(),n}return{startState:function(e){return{tokenize:w,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=k(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+l:r},indent:function(t,n){if(t.tokenize!=w)return t.tokenize.isString?e.Pass:0;var r=o(t),i=r.type==n.charAt(0)||"py"==r.type&&!t.dedent&&/^(else:|elif |except |finally:)/.test(n);return null!=r.align?r.align-(i?1:0):r.offset-(i?f:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python");var a;e.defineMIME("text/x-cython",{name:"python",extra_keywords:(a="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",a.split(" "))})}(n(23326))},68106:(e,t,n)=>{!function(e){"use strict";e.defineMode("q",(function(e){var t,n=e.indentUnit,r=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),i=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function o(e,n){var s=e.sol(),c=e.next();if(t=null,s){if("/"==c)return(n.tokenize=a)(e,n);if("\\"==c)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=l)(e):n.tokenize=o,"comment"):(n.tokenize=o,"builtin")}if(/\s/.test(c))return"/"==e.peek()?(e.skipToEnd(),"comment"):"whitespace";if('"'==c)return(n.tokenize=u)(e,n);if("`"==c)return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if("."==c&&/\d/.test(e.peek())||/\d/.test(c)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(c=e.peek())&&!i.test(c)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(c)?(e.eatWhile(/[A-Za-z._\d]/),r.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)||/[{}\(\[\]\)]/.test(c)?null:"error"}function a(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=s)(e,t):t.tokenize=o,"comment"}function s(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=o),"comment"}function l(e){return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}function c(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function d(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)c(n,")",e.column());else if("["==t)c(n,"]",e.column());else if("{"==t)c(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)d(n);n.context&&t==n.context.type&&d(n)}else"."==t&&n.context&&"pattern"==n.context.type?d(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?c(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0}}})),e.defineMIME("text/x-q","q")}(n(23326))},32848:(e,t,n)=>{!function(e){"use strict";e.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",(function(t){function n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var r=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],i=["list","quote","bquote","eval","return","call","parse","deparse"],o=["if","else","repeat","while","function","for","in","next","break"];e.registerHelper("hintWords","r",r.concat(i,o));var a,s=n(r),l=n(i),u=n(o),c=n(["if","else","repeat","while","function","for"]),d=/[+\-*\/^<>=!&|~$:]/;function f(e,t){a=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string-2"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=f;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"variable-3";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return s.propertyIsEnumerable(i)?"atom":u.propertyIsEnumerable(i)?(c.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(a="block"),"keyword"):l.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)?"operator arrow":"="==r&&t.ctx.argList?"arg-is":d.test(r)?"$"==r?"operator dollar":(e.eatWhile(d),"operator"):/[\(\){}\[\];]/.test(r)?(a=r,";"==r?"semi":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function h(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function m(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:f,ctx:{type:"top",indent:-t.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&m(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&h(t,1),";"!=a&&"{"!=a&&"}"!=a||"block"!=t.ctx.type||m(t),"{"==a?p(t,"}",e):"("==a?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==a?p(t,"]",e):"block"==a?p(t,"block",e):a==t.ctx.type?m(t):"block"==t.ctx.type&&"comment"!=n&&h(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,n){if(e.tokenize!=f)return 0;var r=n&&n.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:t.indentUnit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:t.indentUnit)},lineComment:"#"}})),e.defineMIME("text/x-rsrc","r")}(n(23326))},87660:(e,t,n)=>{!function(e){"use strict";e.defineMode("rpm-changes",(function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}})),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",(function(){var e=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,s){if("#"==a.peek())return a.skipToEnd(),"comment";if(a.sol()){if(a.match(t))return"header";if(a.match(n))return"atom"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(i))return"keyword";if(a.match(r))return s.controlFlow=!0,"keyword";if(s.controlFlow){if(a.match(o))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(s.controlFlow=!1)}if(a.match(e))return a.eol()&&(s.controlFlow=!1),"number";if(a.match(/^%[\w]+/))return a.match("(")&&(s.macroParameters=!0),"keyword";if(s.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(")"))return s.macroParameters=!1,"keyword"}return a.match(/^%\{\??[\w \-\:\!]+\}/)?(a.eol()&&(s.controlFlow=!1),"def"):(a.next(),null)}}})),e.defineMIME("text/x-rpm-spec","rpm-spec")}(n(23326))},93315:(e,t,n)=>{!function(e){"use strict";e.defineMode("rst",(function(t,n){var r=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,i=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,o=/^``[^`\s](?:[^`]*[^`\s])``/,a=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,u=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),c={token:function(e){if(e.match(r)&&e.match(/\W+|$/,!1))return"strong";if(e.match(i)&&e.match(/\W+|$/,!1))return"em";if(e.match(o)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(a))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(u))return"link";for(;!(null==e.next()||e.match(r,!1)||e.match(i,!1)||e.match(o,!1)||e.match(a,!1)||e.match(s,!1)||e.match(l,!1)||e.match(u,!1)););return null}},d=e.getMode(t,n.backdrop||"rst-base");return e.overlayMode(d,c,!0)}),"python","stex"),e.defineMode("rst-base",(function(t){function n(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}var r=e.getMode(t,"python"),i=e.getMode(t,"stex"),o="\\s+",a="(?:\\s*|\\W|$)",s=new RegExp(n("^{0}",a)),l="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",u=new RegExp(n("^{0}",l)),c=n("(?:{0}|`{1}`)",l,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),d="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",f="(?:[^\\`]+)",p=new RegExp(n("^{0}",f)),h=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),m=new RegExp(n("^\\.\\.{0}",o)),g=new RegExp(n("^_{0}:{1}|^__:{1}",c,a)),v=new RegExp(n("^{0}::{1}",c,a)),y=new RegExp(n("^\\|{0}\\|{1}{2}::{3}",d,o,c,a)),b=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}",c,a)),w=new RegExp(n("^\\[{0}\\]{1}",c,a)),_=new RegExp(n("^\\|{0}\\|",d)),x=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_",c)),E=new RegExp(n("^\\[{0}\\]_",c)),k=new RegExp(n("^{0}__?",c)),C=new RegExp(n("^`{0}`_",f)),S=new RegExp(n("^:{0}:`{1}`{2}",l,f,a)),A=new RegExp(n("^`{1}`:{0}:{2}",l,f,a)),T=new RegExp(n("^:{0}:{1}",l,a)),O=new RegExp(n("^{0}",c)),P=new RegExp(n("^::{0}",a)),R=new RegExp(n("^\\|{0}\\|",d)),M=new RegExp(n("^{0}",o)),D=new RegExp(n("^{0}",c)),I=new RegExp(n("^::{0}",a)),L=new RegExp("^_"),j=new RegExp(n("^{0}|_",c)),N=new RegExp(n("^:{0}",a)),F=new RegExp("^::\\s*$"),B=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function U(t,n){var o=null;if(t.sol()&&t.match(B,!1))V(n,H,{mode:r,local:e.startState(r)});else if(t.sol()&&t.match(m))V(n,z),o="meta";else if(t.sol()&&t.match(h))V(n,U),o="header";else if(Z(n)==S||t.match(S,!1))switch(K(n)){case 0:V(n,U,G(S,1)),t.match(/^:/),o="meta";break;case 1:V(n,U,G(S,2)),t.match(u),o="keyword",t.current().match(/^(?:math|latex)/)&&(n.tmp_stex=!0);break;case 2:V(n,U,G(S,3)),t.match(/^:`/),o="meta";break;case 3:if(n.tmp_stex&&(n.tmp_stex=void 0,n.tmp={mode:i,local:e.startState(i)}),n.tmp){if("`"==t.peek()){V(n,U,G(S,4)),n.tmp=void 0;break}o=n.tmp.mode.token(t,n.tmp.local);break}V(n,U,G(S,4)),t.match(p),o="string";break;case 4:V(n,U,G(S,5)),t.match(/^`/),o="meta";break;case 5:V(n,U,G(S,6)),t.match(s);break;default:V(n,U)}else if(Z(n)==A||t.match(A,!1))switch(K(n)){case 0:V(n,U,G(A,1)),t.match(/^`/),o="meta";break;case 1:V(n,U,G(A,2)),t.match(p),o="string";break;case 2:V(n,U,G(A,3)),t.match(/^`:/),o="meta";break;case 3:V(n,U,G(A,4)),t.match(u),o="keyword";break;case 4:V(n,U,G(A,5)),t.match(/^:/),o="meta";break;case 5:V(n,U,G(A,6)),t.match(s);break;default:V(n,U)}else if(Z(n)==T||t.match(T,!1))switch(K(n)){case 0:V(n,U,G(T,1)),t.match(/^:/),o="meta";break;case 1:V(n,U,G(T,2)),t.match(u),o="keyword";break;case 2:V(n,U,G(T,3)),t.match(/^:/),o="meta";break;case 3:V(n,U,G(T,4)),t.match(s);break;default:V(n,U)}else if(Z(n)==_||t.match(_,!1))switch(K(n)){case 0:V(n,U,G(_,1)),t.match(R),o="variable-2";break;case 1:V(n,U,G(_,2)),t.match(/^_?_?/)&&(o="link");break;default:V(n,U)}else if(t.match(x))V(n,U),o="quote";else if(t.match(E))V(n,U),o="quote";else if(t.match(k))V(n,U),t.peek()&&!t.peek().match(/^\W$/)||(o="link");else if(Z(n)==C||t.match(C,!1))switch(K(n)){case 0:!t.peek()||t.peek().match(/^\W$/)?V(n,U,G(C,1)):t.match(C);break;case 1:V(n,U,G(C,2)),t.match(/^`/),o="link";break;case 2:V(n,U,G(C,3)),t.match(p);break;case 3:V(n,U,G(C,4)),t.match(/^`_/),o="link";break;default:V(n,U)}else t.match(F)?V(n,W):t.next()&&V(n,U);return o}function z(t,n){var o=null;if(Z(n)==y||t.match(y,!1))switch(K(n)){case 0:V(n,z,G(y,1)),t.match(R),o="variable-2";break;case 1:V(n,z,G(y,2)),t.match(M);break;case 2:V(n,z,G(y,3)),t.match(D),o="keyword";break;case 3:V(n,z,G(y,4)),t.match(I),o="meta";break;default:V(n,U)}else if(Z(n)==v||t.match(v,!1))switch(K(n)){case 0:V(n,z,G(v,1)),t.match(O),o="keyword",t.current().match(/^(?:math|latex)/)?n.tmp_stex=!0:t.current().match(/^python/)&&(n.tmp_py=!0);break;case 1:V(n,z,G(v,2)),t.match(P),o="meta",(t.match(/^latex\s*$/)||n.tmp_stex)&&(n.tmp_stex=void 0,V(n,H,{mode:i,local:e.startState(i)}));break;case 2:V(n,z,G(v,3)),(t.match(/^python\s*$/)||n.tmp_py)&&(n.tmp_py=void 0,V(n,H,{mode:r,local:e.startState(r)}));break;default:V(n,U)}else if(Z(n)==g||t.match(g,!1))switch(K(n)){case 0:V(n,z,G(g,1)),t.match(L),t.match(j),o="link";break;case 1:V(n,z,G(g,2)),t.match(N),o="meta";break;default:V(n,U)}else t.match(b)||t.match(w)?(V(n,U),o="quote"):(t.eatSpace(),t.eol()?V(n,U):(t.skipToEnd(),V(n,q),o="comment"));return o}function q(e,t){return $(e,t,"comment")}function W(e,t){return $(e,t,"meta")}function $(e,t,n){return e.eol()||e.eatSpace()?(e.skipToEnd(),n):(V(t,U),null)}function H(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||V(t,U),null):t.ctx.mode.token(e,t.ctx.local):(V(t,U),null)}function G(e,t,n,r){return{phase:e,stage:t,mode:n,local:r}}function V(e,t,n){e.tok=t,e.ctx=n||{}}function K(e){return e.ctx.stage||0}function Z(e){return e.ctx.phase}return{startState:function(){return{tok:U,ctx:G(void 0,0)}},copyState:function(t){var n=t.ctx,r=t.tmp;return n.local&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),r&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),{tok:t.tok,ctx:n,tmp:r}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}}),"python","stex"),e.defineMIME("text/x-rst","rst")}(n(23326),n(56141),n(38234),n(19962))},53019:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var n=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],r=t(n),i=t(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),o=t(["end","until"]),a={"[":"]","{":"}","(":")"},s={"]":"[","}":"{",")":"("};e.defineMode("ruby",(function(t){var n;function l(e,t,n){return n.tokenize.push(e),e(t,n)}function u(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(p),"comment";if(e.eatSpace())return null;var r,i,o,s=e.next();if("`"==s||"'"==s||'"'==s)return l(f(s,"string",'"'==s||"`"==s),e,t);if("/"==s)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?l(f(s,"string-2",!0),e,t):"operator";if("%"==s){var u="string",c=!0;e.eat("s")?u="atom":e.eat(/[WQ]/)?u="string":e.eat(/[r]/)?u="string-2":e.eat(/[wxq]/)&&(u="string",c=!1);var d=e.eat(/[^\w\s=]/);return d?(a.propertyIsEnumerable(d)&&(d=a[d]),l(f(d,u,c,!0),e,t)):"operator"}if("#"==s)return e.skipToEnd(),"comment";if("<"==s&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l((i=r[2],o=r[1],function(e,t){return o&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==s)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(s))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==s){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==s)return e.eat("'")?l(f("'","atom",!1),e,t):e.eat('"')?l(f('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==s&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==s)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(s))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=s||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(s))return n=s,null;if("-"==s&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(s)){var h=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=s||h||(n="."),"operator"}return null}return n="|",null}function c(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=c(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=c(e+1));return u(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,u(t,n))}}function f(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(c());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(d());break}}s=!s&&"\\"==a}return t}}function p(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[u],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){n=null,e.sol()&&(t.indented=e.indentation());var a,s=t.tokenize[t.tokenize.length-1](e,t),l=n;if("ident"==s){var u=e.current();"keyword"==(s="."==t.lastTok?"property":r.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=u,i.propertyIsEnumerable(u)?a="indent":o.propertyIsEnumerable(u)?a="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented<t.indented&&(a="indent"):a="indent")}return(n||s&&"comment"!=s)&&(t.lastTok=l),"|"==n&&(t.varList=!t.varList),"indent"==a||/[\(\[\{]/.test(n)?t.context={prev:t.context,type:n||s,indented:t.indented}:("dedent"==a||/[\)\]\}]/.test(n))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==n||"operator"==s),s},indent:function(n,r){if(n.tokenize[n.tokenize.length-1]!=u)return e.Pass;var i=r&&r.charAt(0),o=n.context,a=o.type==s[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(r);return o.indented+(a?0:t.indentUnit)+(n.continuedLine?t.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-ruby","ruby"),e.registerHelper("hintWords","ruby",n)}(n(23326))},56987:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}(n(23326),n(81094))},17547:(e,t,n)=>{!function(e){"use strict";e.defineMode("sas",(function(){var e={},t={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},n=/(<=|>=|!=|<>)/,r=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(t,n,r){if(r)for(var i=n.split(" "),o=0;o<i.length;o++)e[i[o]]={style:t,state:r}}return i("def","stack pgm view source debug nesting nolist",["inDataStep"]),i("def","if while until for do do; end end; then else cancel",["inDataStep"]),i("def","label format _n_ _error_",["inDataStep"]),i("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]),i("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]),i("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]),i("def","zipfips zipname zipnamel zipstate",["inDataStep"]),i("def","put putc putn",["inDataStep"]),i("builtin","data run",["inDataStep"]),i("def","data",["inProc"]),i("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]),i("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]),i("def","footnote title libname ods",["ALL"]),i("def","%let %put %global %sysfunc %eval ",["ALL"]),i("variable","&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext",["ALL"]),i("def","source2 nosource2 page pageno pagesize",["ALL"]),i("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max",["inDataStep","inProc"]),i("operator","and not ",["inDataStep","inProc"]),{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(i,o){return i.eatSpace()?null:function(i,o){var a=i.next();if("/"===a&&i.eat("*"))return o.continueComment=!0,"comment";if(!0===o.continueComment)return"*"===a&&"/"===i.peek()?(i.next(),o.continueComment=!1):i.skipTo("*")?(i.skipTo("*"),i.next(),i.eat("/")&&(o.continueComment=!1)):i.skipToEnd(),"comment";if("*"==a&&i.column()==i.indentation())return i.skipToEnd(),"comment";var s,l=a+i.peek();if(!('"'!==a&&"'"!==a||o.continueString))return o.continueString=a,"string";if(o.continueString)return o.continueString==a?o.continueString=null:i.skipTo(o.continueString)?(i.next(),o.continueString=null):i.skipToEnd(),"string";if(null!==o.continueString&&i.eol())return i.skipTo(o.continueString)||i.skipToEnd(),"string";if(/[\d\.]/.test(a))return"."===a?i.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"===a?i.match(/^[xX][0-9a-fA-F]+/)||i.match(/^0[0-7]+/):i.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(n.test(a+i.peek()))return i.next(),"operator";if(t.hasOwnProperty(l)){if(i.next()," "===i.peek())return t[l.toLowerCase()]}else if(r.test(a))return"operator";if(null!=i.match(/[%&;\w]+/,!1)){if(s=a+i.match(/[%&;\w]+/,!0),/&/.test(s))return"variable"}else s=a;if(o.nextword)return i.match(/[\w]+/),"."===i.peek()&&i.skipTo(" "),o.nextword=!1,"variable-2";if(s=s.toLowerCase(),o.inDataStep){if("run;"===s||i.match(/run\s;/))return o.inDataStep=!1,"builtin";if(s&&"."===i.next())return/\w/.test(i.peek())?"variable-2":"variable";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inDataStep")||-1!==e[s].state.indexOf("ALL"))){i.start<i.pos&&i.backUp(i.pos-i.start);for(var u=0;u<s.length;++u)i.next();return e[s].style}}if(o.inProc){if("run;"===s||"quit;"===s)return o.inProc=!1,"builtin";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inProc")||-1!==e[s].state.indexOf("ALL")))return i.match(/[\w]+/),e[s].style}return o.inMacro?"%mend"===s?(";"===i.peek()&&i.next(),o.inMacro=!1,"builtin"):s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL"))?(i.match(/[\w]+/),e[s].style):"atom":s&&e.hasOwnProperty(s)?(i.backUp(1),i.match(/[\w]+/),"data"===s&&!1===/=/.test(i.peek())?(o.inDataStep=!0,o.nextword=!0,"builtin"):"proc"===s?(o.inProc=!0,o.nextword=!0,"builtin"):"%macro"===s?(o.inMacro=!0,o.nextword=!0,"builtin"):/title[1-9]/.test(s)?"def":"footnote"===s?(i.eat(/[1-9]/),"def"):!0===o.inDataStep&&-1!==e[s].state.indexOf("inDataStep")||!0===o.inProc&&-1!==e[s].state.indexOf("inProc")||!0===o.inMacro&&-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL")?e[s].style:null):null}(i,o)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-sas","sas")}(n(23326))},67838:(e,t,n)=>{!function(e){"use strict";e.defineMode("sass",(function(t){var n=e.mimeModes["text/css"],r=n.propertyKeywords||{},i=n.colorKeywords||{},o=n.valueKeywords||{},a=n.fontProperties||{};var s,l=new RegExp("^"+["true","false","null","auto"].join("|")),u=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),c=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function f(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=y,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=h(e.next()),"string"):(t.tokenizer=h(")",!1),"string")}function p(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),"comment")}}function h(e,t){return null==t&&(t=!0),function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=y,"string"):"#"===o&&"{"===a?(i.tokenizer=m(n),r.next(),"operator"):"string"}}function m(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):y(t,n)}}function g(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){1!=e.scopes.length&&e.scopes.shift()}function y(e,t){var n=e.peek();if(e.match("/*"))return t.tokenizer=p(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=p(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=m(y),"operator";if('"'===n||"'"===n)return e.next(),t.tokenizer=h(n),"string";if(t.cursorHalf){if("#"===n&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(l))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,d(e)&&(t.cursorHalf=0),"atom";if("$"===n)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===n)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(u))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),s=e.current().toLowerCase(),o.hasOwnProperty(s)?"atom":i.hasOwnProperty(s)?"keyword":r.hasOwnProperty(s)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===n&&e.match(/^-\w+-/))return"meta";if("."===n){if(e.next(),e.match(/^[\w-]+/))return g(t),"qualifier";if("#"===e.peek())return g(t),"tag"}if("#"===n){if(e.next(),e.match(/^[\w-]+/))return g(t),"builtin";if("#"===e.peek())return g(t),"tag"}if("$"===n)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(l))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,"atom";if("="===n&&e.match(/^=[\w-]+/))return g(t),"meta";if("+"===n&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===n&&e.match("@extend")&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return g(t),"def";if("@"===n)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){s=e.current().toLowerCase();var b=t.prevProp+"-"+s;return r.hasOwnProperty(b)?"property":r.hasOwnProperty(s)?(t.prevProp=s,"property"):a.hasOwnProperty(s)?"property":"tag"}return e.match(/ *:/,!1)?(g(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||g(t),"tag")}if(":"===n)return e.match(c)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(u)?"operator":(e.next(),null)}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,n){var r=function(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||v(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s<n.scopes.length;s++){var l=n.scopes[s];l.offset<=o&&a.push(l)}n.scopes=a}return r}(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e){return e.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),"css"),e.defineMIME("text/x-sass","sass")}(n(23326),n(98627))},84169:(e,t,n)=>{!function(e){"use strict";e.defineMode("scheme",(function(){var e="comment",t="string",n="symbol",r="atom",i="number",o="bracket";function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var s=a("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),l=a("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function u(e,t,n){this.indent=e,this.type=t,this.prev=n}function c(e,t,n){e.indentStack=new u(t,n,e.indentStack)}var d=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),f=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),p=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),h=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function m(e){return e.match(d)}function g(e){return e.match(f)}function v(e,t){return!0===t&&e.backUp(1),e.match(h)}function y(e){return e.match(p)}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(a,u){if(null==u.indentStack&&a.sol()&&(u.indentation=a.indentation()),a.eatSpace())return null;var d=null;switch(u.mode){case"string":b(a,{token:'"',state:u}),d=t;break;case"symbol":b(a,{token:"|",state:u}),d=n;break;case"comment":for(var f,p=!1;null!=(f=a.next());){if("#"==f&&p){u.mode=!1;break}p="|"==f}d=e;break;case"s-expr-comment":if(u.mode=!1,"("!=a.peek()&&"["!=a.peek()){a.eatWhile(/[^\s\(\)\[\]]/),d=e;break}u.sExprComment=0;default:var h=a.next();if('"'==h)u.mode="string",d=t;else if("'"==h)"("==a.peek()||"["==a.peek()?("number"!=typeof u.sExprQuote&&(u.sExprQuote=0),d=r):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=r);else if("|"==h)u.mode="symbol",d=n;else if("#"==h)if(a.eat("|"))u.mode="comment",d=e;else if(a.eat(/[tf]/i))d=r;else if(a.eat(";"))u.mode="s-expr-comment",d=e;else{var w=null,_=!1,x=!0;a.eat(/[ei]/i)?_=!0:a.backUp(1),a.match(/^#b/i)?w=m:a.match(/^#o/i)?w=g:a.match(/^#x/i)?w=y:a.match(/^#d/i)?w=v:a.match(/^[-+0-9.]/,!1)?(x=!1,w=v):_||a.eat("#"),null!=w&&(x&&!_&&a.match(/^#[ei]/i),w(a)&&(d=i))}else if(/^[-+0-9.]/.test(h)&&v(a,!0))d=i;else if(";"==h)a.skipToEnd(),d=e;else if("("==h||"["==h){for(var E,k="",C=a.column();null!=(E=a.eat(/[^\s\(\[\;\)\]]/));)k+=E;k.length>0&&l.propertyIsEnumerable(k)?c(u,C+2,h):(a.eatSpace(),a.eol()||";"==a.peek()?c(u,C+1,h):c(u,C+a.current().length,h)),a.backUp(a.current().length-1),"number"==typeof u.sExprComment&&u.sExprComment++,"number"==typeof u.sExprQuote&&u.sExprQuote++,d=o}else")"==h||"]"==h?(d=o,null!=u.indentStack&&u.indentStack.type==(")"==h?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(u),"number"==typeof u.sExprComment&&0==--u.sExprComment&&(d=e,u.sExprComment=!1),"number"==typeof u.sExprQuote&&0==--u.sExprQuote&&(d=r,u.sExprQuote=!1))):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=s&&s.propertyIsEnumerable(a.current())?"builtin":"variable")}return"number"==typeof u.sExprComment?e:"number"==typeof u.sExprQuote?r:d},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-scheme","scheme")}(n(23326))},25397:(e,t,n)=>{!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r,i=e.sol(),o=e.next();if("\\"===o)return e.next(),null;if("'"===o||'"'===o||"`"===o)return n.tokens.unshift(s(o,"`"===o?"quote":"string")),c(e,n);if("#"===o)return i&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===o)return n.tokens.unshift(u),c(e,n);if("+"===o||"="===o)return"operator";if("-"===o)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==o){if(e.match("<<"))return"operator";var a=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(a)return n.tokens.unshift((r=a[1],function(e,t){return e.sol()&&e.string==r&&t.tokens.shift(),e.skipToEnd(),"string-2"})),"string-2"}if(/\d/.test(o)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var l=e.current();return"="===e.peek()&&/\w+/.test(l)?"def":t.hasOwnProperty(l)?t[l]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(u);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),c(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),c(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var u=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function c(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return c(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(23326))},84712:(e,t,n)=>{!function(e){"use strict";e.defineMode("sieve",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n=t("if elsif else stop require"),r=t("true false not"),i=e.indentUnit;function o(e,t){var i,l=e.next();if("/"==l&&e.eat("*"))return t.tokenize=s,s(e,t);if("#"===l)return e.skipToEnd(),"comment";if('"'==l)return t.tokenize=(i=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=i||r);)r=!r&&"\\"==n;return r||(t.tokenize=o),"string"}),t.tokenize(e,t);if("("==l)return t._indent.push("("),t._indent.push("{"),null;if("{"===l)return t._indent.push("{"),null;if(")"==l&&(t._indent.pop(),t._indent.pop()),"}"===l)return t._indent.pop(),null;if(","==l)return null;if(";"==l)return null;if(/[{}\(\),;]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==l)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var u=e.current();return"text"==u&&e.eat(":")?(t.tokenize=a,"string"):n.propertyIsEnumerable(u)?"keyword":r.propertyIsEnumerable(u)?"atom":null}function a(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=o),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function s(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=o;break}r="*"==n}return"comment"}return{startState:function(e){return{tokenize:o,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||o)(e,t)},indent:function(e,t){var n=e._indent.length;return t&&"}"==t[0]&&n--,n<0&&(n=0),n*i},electricChars:"}"}})),e.defineMIME("application/sieve","sieve")}(n(23326))},1051:(e,t,n)=>{!function(e){"use strict";e.defineMode("slim",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby"),i={html:n,ruby:r},o={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},a=function(e){var t=[];for(var n in e)t.push(n);return new RegExp("^("+t.join("|")+"):")}(o),s={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},l={"{":"}","[":"]","(":")"},u="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>",c=u+"\\-0-9·̀-ͯ‿-⁀",d=new RegExp("^[:"+u+"](?::["+c+"]|["+c+"]*)"),f=new RegExp("^[:"+u+"][:\\."+c+"]*(?=\\s*=)"),p=new RegExp("^[:"+u+"][:\\."+c+"]*"),h=/^\.-?[_a-zA-Z]+[\w\-]*/,m=/^#[_a-zA-Z]+[\w\-]*/;function g(e,t){e.stack={parent:e.stack,style:"continuation",indented:t,tokenize:e.line},e.line=e.tokenize}function v(e){e.line==e.tokenize&&(e.line=e.stack.tokenize,e.stack=e.stack.parent)}function y(e,t){return function(n,r){return n.peek()==e&&1==r.rubyState.tokenize.length?(n.next(),r.tokenize=t,"closeAttributeTag"):w(n,r)}}function b(t){var n,i=function(e,r){if(1==r.rubyState.tokenize.length&&!r.rubyState.context.prev){if(e.backUp(1),e.eatSpace())return r.rubyState=n,r.tokenize=t,t(e,r);e.next()}return w(e,r)};return function(t,o){return n=o.rubyState,o.rubyState=e.startState(r),o.tokenize=i,w(t,o)}}function w(e,t){return r.token(e,t.rubyState)}function _(e,t){return e.match(/^#\{/)?(t.tokenize=y("}",t.tokenize),null):function(e,t,n,r,i){var o=e.current(),a=o.search(n);return a>-1&&(t.tokenize=function(e,t,n){var r=function(r,i){return i.tokenize=t,r.pos<e?(r.pos=e,n):i.tokenize(r,i)};return function(e,n){return n.tokenize=r,t(e,n)}}(e.pos,t.tokenize,i),e.backUp(o.length-a-r)),i}(e,t,/[^\\]#\{/,1,n.token(e,t.htmlState))}function x(e){return function(t,n){var r=function(e,t){return e.match(/^\\$/)?"lineContinuation":_(e,t)}(t,n);return t.eol()&&(n.tokenize=e),r}}function E(e,t,n){return t.stack={parent:t.stack,style:"html",indented:e.column()+n,tokenize:t.line},t.line=t.tokenize=_,null}function k(e,t){return e.skipToEnd(),t.stack.style}function C(e,t){return e.eat(t.stack.endQuote)?(t.line=t.stack.line,t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,null):e.match(p)?(t.tokenize=S,"slimAttribute"):(e.next(),null)}function S(e,t){return e.match(/^==?/)?(t.tokenize=A,null):C(e,t)}function A(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=z(n,"string",!0,!1,C),e.next(),t.tokenize(e,t)):"["==n?b(C)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=C,"keyword"):b(C)(e,t)}function T(t,n){if(t.match(/^#\{/))return n.tokenize=y("}",n.tokenize),null;var r=new e.StringStream(t.string.slice(n.stack.indented),t.tabSize);r.pos=t.pos-n.stack.indented,r.start=t.start-n.stack.indented,r.lastColumnPos=t.lastColumnPos-n.stack.indented,r.lastColumnValue=t.lastColumnValue-n.stack.indented;var i=n.subMode.token(r,n.subState);return t.pos=r.pos+n.stack.indented,i}function O(e,t){return t.stack.indented=e.column(),t.line=t.tokenize=T,t.tokenize(e,t)}function P(n){return i.hasOwnProperty(n)?i[n]:i[n]=function(n){var r=o[n],i=e.mimeModes[r];if(i)return e.getMode(t,i);var a=e.modes[r];return a?a(t,{name:r}):e.getMode(t,"null")}(n)}function R(e,t){return e.skipToEnd(),"slimDoctype"}function M(t,n){if("<"==t.peek())return(n.tokenize=x(n.tokenize))(t,n);if(t.match(/^[|']/))return E(t,n,1);if(t.match(/^\/(!|\[\w+])?/))return function(e,t){return t.stack={parent:t.stack,style:"comment",indented:t.indented+1,tokenize:t.line},t.line=k,k(e,t)}(t,n);if(t.match(/^(-|==?[<>]?)/))return n.tokenize=function(e,t){return function(n,r){if(v(r),n.match(/^\\$/))return g(r,e),"lineContinuation";var i=t(n,r);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),i}}(t.column(),(r=t.column(),i=w,function(e,t){v(t);var n=i(e,t);return e.eol()&&e.current().match(/,$/)&&g(t,r),n})),"slimSwitch";var r,i;if(t.match(/^doctype\b/))return n.tokenize=R,"keyword";var o=t.match(a);return o?function(t,n){var r=P(t),i=e.startState(r);return n.subMode=r,n.subState=i,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=O,"slimSubmode"}(o[1],n):I(t,n)}function D(e,t){return t.startOfLine?M(e,t):I(e,t)}function I(e,t){return e.eat("*")?(t.tokenize=b(L),null):e.match(d)?(t.tokenize=L,"slimTag"):j(e,t)}function L(e,t){return e.match(/^(<>?|><?)/)?(t.tokenize=j,null):j(e,t)}function j(e,t){return e.match(m)?(t.tokenize=j,"slimId"):e.match(h)?(t.tokenize=j,"slimClass"):N(e,t)}function N(e,t){return e.match(/^([\[\{\(])/)?function(e,t,n){return e.stack={parent:e.stack,style:"wrapper",indented:e.indented+1,tokenize:n,line:e.line,endQuote:t},e.line=e.tokenize=C,null}(t,l[RegExp.$1],N):e.match(f)?(t.tokenize=F,"slimAttribute"):"*"==e.peek()?(e.next(),t.tokenize=b(q),null):q(e,t)}function F(e,t){return e.match(/^==?/)?(t.tokenize=B,null):N(e,t)}function B(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=z(n,"string",!0,!1,N),e.next(),t.tokenize(e,t)):"["==n?b(N)(e,t):":"==n?b(U)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=N,"keyword"):b(N)(e,t)}function U(e,t){return e.backUp(1),e.match(/^[^\s],(?=:)/)?(t.tokenize=b(U),null):(e.next(),N(e,t))}function z(e,t,n,r,i){return function(o,a){v(a);var s=0==o.current().length;if(o.match(/^\\$/,s))return s?(g(a,a.indented),"lineContinuation"):t;if(o.match(/^#\{/,s))return s?(a.tokenize=y("}",a.tokenize),null):t;for(var l,u=!1;null!=(l=o.next());){if(l==e&&(r||!u)){a.tokenize=i;break}if(n&&"#"==l&&!u&&o.eat("{")){o.backUp(2);break}u=!u&&"\\"==l}return o.eol()&&u&&o.backUp(1),t}}function q(e,t){return e.match(/^==?/)?(t.tokenize=w,"slimSwitch"):e.match(/^\/$/)?(t.tokenize=D,null):e.match(/^:/)?(t.tokenize=I,"slimSwitch"):(E(e,t,0),t.tokenize(e,t))}var W={startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),stack:null,last:null,tokenize:D,line:D,indented:0}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),subMode:t.subMode,subState:t.subMode&&e.copyState(t.subMode,t.subState),stack:t.stack,last:t.last,tokenize:t.tokenize,line:t.line}},token:function(e,t){if(e.sol())for(t.indented=e.indentation(),t.startOfLine=!0,t.tokenize=t.line;t.stack&&t.stack.indented>t.indented&&"slimSubmode"!=t.last;)t.line=t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,t.subMode=null,t.subState=null;if(e.eatSpace())return null;var n=t.tokenize(e,t);return t.startOfLine=!1,n&&(t.last=n),s.hasOwnProperty(n)?s[n]:n},blankLine:function(e){if(e.subMode&&e.subMode.blankLine)return e.subMode.blankLine(e.subState)},innerMode:function(e){return e.subMode?{state:e.subState,mode:e.subMode}:{state:e,mode:W}}};return W}),"htmlmixed","ruby"),e.defineMIME("text/x-slim","slim"),e.defineMIME("application/x-slim","slim")}(n(23326),n(38425),n(53019))},57434:(e,t,n)=>{!function(e){"use strict";e.defineMode("smalltalk",(function(e){var t=/[+\-\/\\*~<>=@%|&?!.,:;^]/,n=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},i=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(t){this.userIndentationDelta=t>0?t/e.indentUnit-this.indentation:0};var a=function(e,o,a){var d=new i(null,o,!1),f=e.next();return'"'===f?d=s(e,new r(s,o)):"'"===f?d=l(e,new r(l,o)):"#"===f?"'"===e.peek()?(e.next(),d=u(e,new r(u,o))):e.eatWhile(/[^\s.{}\[\]()]/)?d.name="string-2":d.name="meta":"$"===f?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),d.name="string-2"):"|"===f&&a.expectVariable?d.context=new r(c,o):/[\[\]{}()]/.test(f)?(d.name="bracket",d.eos=/[\[{(]/.test(f),"["===f?a.indentation++:"]"===f&&(a.indentation=Math.max(0,a.indentation-1))):t.test(f)?(e.eatWhile(t),d.name="operator",d.eos=";"!==f):/\d/.test(f)?(e.eatWhile(/[\w\d]/),d.name="number"):/[\w_]/.test(f)?(e.eatWhile(/[\w\d_]/),d.name=a.expectVariable?n.test(e.current())?"keyword":"variable":null):d.eos=a.expectVariable,d},s=function(e,t){return e.eatWhile(/[^"]/),new i("comment",e.eat('"')?t.parent:t,!0)},l=function(e,t){return e.eatWhile(/[^']/),new i("string",e.eat("'")?t.parent:t,!1)},u=function(e,t){return e.eatWhile(/[^']/),new i("string-2",e.eat("'")?t.parent:t,!1)},c=function(e,t){var n=new i(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};return{startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation()),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var r=t.context.next===a&&n&&"]"===n.charAt(0)?-1:t.userIndentationDelta;return(t.indentation+r)*e.indentUnit},electricChars:"]"}})),e.defineMIME("text/x-stsrc",{name:"smalltalk"})}(n(23326))},69595:(e,t,n)=>{!function(e){"use strict";e.defineMode("smarty",(function(t,n){var r,i=n.rightDelimiter||"}",o=n.leftDelimiter||"{",a=n.version||2,s=e.getMode(t,n.baseMode||"null"),l=["debug","extends","function","include","literal"],u={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/};function c(e,t){return r=t,e}function d(e,t){return null==t&&(t=e.pos),3===a&&"{"==o&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function f(e,t){for(var n=e.string,a=e.pos;;){var l=n.indexOf(o,a);if(a=l+o.length,-1==l||!d(e,l+o.length))break}if(l==e.pos)return e.match(o),e.eat("*")?function(e,t,n){return t.tokenize=n,n(e,t)}(e,t,(u="comment",c="*"+i,function(e,t){for(;!e.eol();){if(e.match(c)){t.tokenize=f;break}e.next()}return u})):(t.depth++,t.tokenize=p,r="startTag","tag");var u,c;l>-1&&(e.string=n.slice(0,l));var h=s.token(e,t.base);return l>-1&&(e.string=n),h}function p(e,t){if(e.match(i,!0))return 3===a?(t.depth--,t.depth<=0&&(t.tokenize=f)):t.tokenize=f,c("tag",null);if(e.match(o,!0))return t.depth++,c("tag","startTag");var n,s=e.next();if("$"==s)return e.eatWhile(u.validIdentifier),c("variable-2","variable");if("|"==s)return c("operator","pipe");if("."==s)return c("operator","property");if(u.stringChar.test(s))return t.tokenize=(n=s,function(e,t){for(var r=null,i=null;!e.eol();){if(i=e.peek(),e.next()==n&&"\\"!==r){t.tokenize=p;break}r=i}return"string"}),c("string","string");if(u.operatorChars.test(s))return e.eatWhile(u.operatorChars),c("operator","operator");if("["==s||"]"==s)return c("bracket","bracket");if("("==s||")"==s)return c("bracket","operator");if(/\d/.test(s))return e.eatWhile(/\d/),c("number","number");if("variable"==t.last){if("@"==s)return e.eatWhile(u.validIdentifier),c("property","property");if("|"==s)return e.eatWhile(u.validIdentifier),c("qualifier","modifier")}else{if("pipe"==t.last)return e.eatWhile(u.validIdentifier),c("qualifier","modifier");if("whitespace"==t.last)return e.eatWhile(u.validIdentifier),c("attribute","modifier")}if("property"==t.last)return e.eatWhile(u.validIdentifier),c("property",null);if(/\s/.test(s))return r="whitespace",null;var d="";"/"!=s&&(d+=s);for(var h=null;h=e.eat(u.validIdentifier);)d+=h;for(var m=0,g=l.length;m<g;m++)if(l[m]==d)return c("keyword","keyword");return/\s/.test(s)?null:c("tag","tag")}return{startState:function(){return{base:e.startState(s),tokenize:f,last:null,depth:0}},copyState:function(t){return{base:e.copyState(s,t.base),tokenize:t.tokenize,last:t.last,depth:t.depth}},innerMode:function(e){if(e.tokenize==f)return{mode:s,state:e.base}},token:function(e,t){var n=t.tokenize(e,t);return t.last=r,n},indent:function(t,n,r){return t.tokenize==f&&s.indent?s.indent(t.base,n,r):e.Pass},blockCommentStart:o+"*",blockCommentEnd:"*"+i}})),e.defineMIME("text/x-smarty","smarty")}(n(23326))},83172:(e,t,n)=>{!function(e){"use strict";e.defineMode("solr",(function(){var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/i;function r(t){return function(r,o){for(var a=t;(t=r.peek())&&null!=t.match(e);)a+=r.next();return o.tokenize=i,n.test(a)?"operator":function(e){return parseFloat(e).toString()===e}(a)?"number":":"==r.peek()?"field":"string"}}function i(n,o){var a,s,l=n.next();return'"'==l?o.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=i),"string"}):t.test(l)?o.tokenize=(a=l,function(e,t){var n="operator";return"+"==a?n+=" positive":"-"==a?n+=" negative":"|"==a?e.eat(/\|/):"&"==a?e.eat(/\&/):"^"==a&&(n+=" boost"),t.tokenize=i,n}):e.test(l)&&(o.tokenize=r(l)),o.tokenize!=i?o.tokenize(n,o):null}return{startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-solr","solr")}(n(23326))},34785:(e,t,n)=>{!function(e){"use strict";var t={noEndTag:!0,soyState:"param-def"},n={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@attribute":t,"@attribute?":t,"@param":t,"@param?":t,"@inject":t,"@inject?":t,"@state":t,template:{soyState:"templ-def",variableScope:!0},extern:{soyState:"param-def"},export:{soyState:"export"},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},javaimpl:{},jsimpl:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0},velog:{},const:{soyState:"const-def"}},r=Object.keys(n).filter((function(e){return!n[e].noEndTag||n[e].reduceIndent}));e.defineMode("soy",(function(t){var i=e.getMode(t,"text/plain"),o={html:e.getMode(t,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),attributes:i,text:i,uri:i,trusted_resource_uri:i,css:e.getMode(t,"text/css"),js:e.getMode(t,{name:"text/javascript",statementIndent:2*t.indentUnit})};function a(e){return e[e.length-1]}function s(e,t,n){if(e.sol()){for(var r=0;r<t.indent&&e.eat(/\s/);r++);if(r)return null}var i=e.string,o=n.exec(i.substr(e.pos));o&&(e.string=i.substr(0,e.pos+o.index));var s=e.hideFirstChars(t.indent,(function(){var n=a(t.localStates);return n.mode.token(e,n.state)}));return e.string=i,s}function l(e,t){return{element:t,next:e}}function u(e){e.context&&(e.context.scope&&(e.variables=e.context.scope),e.context=e.context.previousContext)}function c(e,t,n){return function(e,t){for(;e;){if(e.element===t)return!0;e=e.next}return!1}(e,t)?"variable-2":n?"variable":"variable-2 error"}function d(e,t,n){this.previousContext=e,this.tag=t,this.kind=null,this.scope=n}function f(e,t){var n;return e.match(/[[]/)?(t.soyState.push("list-literal"),t.context=new d(t.context,"list-literal",t.variables),t.lookupVariables=!1,null):e.match(/\bmap(?=\()/)?(t.soyState.push("map-literal"),"keyword"):e.match(/\brecord(?=\()/)?(t.soyState.push("record-literal"),"keyword"):e.match(/([\w]+)(?=\()/)?"variable callee":(n=e.match(/^["']/))?(t.soyState.push("string"),t.quoteKind=n[0],"string"):e.match(/^[(]/)?(t.soyState.push("open-parentheses"),null):e.match(/(null|true|false)(?!\w)/)||e.match(/0x([0-9a-fA-F]{2,})/)||e.match(/-?([0-9]*[.])?[0-9]+(e[0-9]*)?/)?"atom":e.match(/(\||[+\-*\/%]|[=!]=|\?:|[<>]=?)/)?"operator":(n=e.match(/^\$([\w]+)/))?c(t.variables,n[1],!t.lookupVariables):(n=e.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(n[0])?"keyword":null:(e.next(),null)}return{startState:function(){return{soyState:[],variables:l(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:o.html,state:e.startState(o.html)}]}},copyState:function(t){return{tag:t.tag,soyState:t.soyState.concat([]),variables:t.variables,context:t.context,indent:t.indent,quoteKind:t.quoteKind,lookupVariables:t.lookupVariables,localStates:t.localStates.map((function(t){return{mode:t.mode,state:e.copyState(t.mode,t.state)}}))}},token:function(i,p){switch(a(p.soyState)){case"comment":if(i.match(/^.*?\*\//)?p.soyState.pop():i.skipToEnd(),!p.context||!p.context.scope)for(var h=/@param\??\s+(\S+)/g,m=i.current();g=h.exec(m);)p.variables=l(p.variables,g[1]);return"comment";case"string":var g;return(g=i.match(/^.*?(["']|\\[\s\S])/))?g[1]==p.quoteKind&&(p.quoteKind=null,p.soyState.pop()):i.skipToEnd(),"string"}if(!p.soyState.length||"literal"!=a(p.soyState)){if(i.match(/^\/\*/))return p.soyState.push("comment"),"comment";if(i.match(i.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(a(p.soyState)){case"templ-def":return(g=i.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(p.soyState.pop(),"def"):(i.next(),null);case"templ-ref":return(g=i.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(p.soyState.pop(),"."==g[0][0]?"variable-2":"variable"):(g=i.match(/^\$([\w]+)/))?(p.soyState.pop(),c(p.variables,g[1],!p.lookupVariables)):(i.next(),null);case"namespace-def":return(g=i.match(/^\.?([\w\.]+)/))?(p.soyState.pop(),"variable"):(i.next(),null);case"param-def":return(g=i.match(/^\*/))?(p.soyState.pop(),p.soyState.push("param-type"),"type"):(g=i.match(/^\w+/))?(p.variables=l(p.variables,g[0]),p.soyState.pop(),p.soyState.push("param-type"),"def"):(i.next(),null);case"param-ref":return(g=i.match(/^\w+/))?(p.soyState.pop(),"property"):(i.next(),null);case"open-parentheses":return i.match(/[)]/)?(p.soyState.pop(),null):f(i,p);case"param-type":var v=i.peek();return-1!="}]=>,".indexOf(v)?(p.soyState.pop(),null):"["==v?(p.soyState.push("param-type-record"),null):"("==v?(p.soyState.push("param-type-template"),null):"<"==v?(p.soyState.push("param-type-parameter"),null):(g=i.match(/^([\w]+|[?])/))?"type":(i.next(),null);case"param-type-record":return"]"==(v=i.peek())?(p.soyState.pop(),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"property"):(i.next(),null);case"param-type-parameter":return i.match(/^[>]/)?(p.soyState.pop(),null):i.match(/^[<,]/)?(p.soyState.push("param-type"),null):(i.next(),null);case"param-type-template":return i.match(/[>]/)?(p.soyState.pop(),p.soyState.push("param-type"),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"def"):(i.next(),null);case"var-def":return(g=i.match(/^\$([\w]+)/))?(p.variables=l(p.variables,g[1]),p.soyState.pop(),"def"):(i.next(),null);case"for-loop":return i.match(/\bin\b/)?(p.soyState.pop(),"keyword"):"$"==i.peek()?(p.soyState.push("var-def"),null):(i.next(),null);case"record-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("record-key"),null):(i.next(),null);case"map-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("map-value"),null):(i.next(),null);case"list-literal":return i.match("]")?(p.soyState.pop(),p.lookupVariables=!0,u(p),null):i.match(/\bfor\b/)?(p.lookupVariables=!0,p.soyState.push("for-loop"),"keyword"):f(i,p);case"record-key":return i.match(/[\w]+/)?"property":i.match(/^[:]/)?(p.soyState.pop(),null):(i.next(),null);case"map-value":return")"==i.peek()||","==i.peek()||i.match(/^[:)]/)?(p.soyState.pop(),null):f(i,p);case"import":return i.eat(";")?(p.soyState.pop(),p.indent-=2*t.indentUnit,null):i.match(/\w+(?=\s+as\b)/)?"variable":(g=i.match(/\w+/))?/\b(from|as)\b/.test(g[0])?"keyword":"def":(g=i.match(/^["']/))?(p.soyState.push("string"),p.quoteKind=g[0],"string"):(i.next(),null);case"tag":void 0===p.tag?(E=!0,C=""):C=(E="/"==p.tag[0])?p.tag.substring(1):p.tag;var y=n[C];if(i.match(/^\/?}/)){var b="/}"==i.current();return b&&!E&&u(p),"/template"==p.tag||"/deltemplate"==p.tag?(p.variables=l(null,"ij"),p.indent=0):p.indent-=t.indentUnit*(b||-1==r.indexOf(p.tag)?2:1),p.soyState.pop(),"keyword"}if(i.match(/^([\w?]+)(?==)/)){if(p.context&&p.context.tag==C&&"kind"==i.current()&&(g=i.match(/^="([^"]+)/,!1))){var w=g[1];p.context.kind=w;var _=o[w]||o.html;(T=a(p.localStates)).mode.indent&&(p.indent+=T.mode.indent(T.state,"","")),p.localStates.push({mode:_,state:e.startState(_)})}return"attribute"}return f(i,p);case"template-call-expression":return i.match(/^([\w-?]+)(?==)/)?"attribute":i.eat(">")||i.eat("/>")?(p.soyState.pop(),"keyword"):f(i,p);case"literal":return i.match("{/literal}",!1)?(p.soyState.pop(),this.token(i,p)):s(i,p,/\{\/literal}/);case"export":if(g=i.match(/\w+/)){if(p.soyState.pop(),"const"==g)return p.soyState.push("const-def"),"keyword";if("extern"==g)return p.soyState.push("param-def"),"keyword"}else i.next();return null;case"const-def":return i.match(/^\w+/)?(p.soyState.pop(),"def"):(i.next(),null)}if(i.match("{literal}"))return p.indent+=t.indentUnit,p.soyState.push("literal"),p.context=new d(p.context,"literal",p.variables),"keyword";if(g=i.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var x=p.tag;p.tag=g[1];var E="/"==p.tag[0],k=!!n[p.tag],C=E?p.tag.substring(1):p.tag;y=n[C],"/switch"!=p.tag&&(p.indent+=((E||y&&y.reduceIndent)&&"switch"!=x?1:2)*t.indentUnit),p.soyState.push("tag");var S=!1;if(y)if(E||y.soyState&&p.soyState.push(y.soyState),y.noEndTag||!k&&E){if(E){var A="extern"==C&&p.context&&"export"==p.context.tag;if(!p.context||p.context.tag!=C&&!A)S=!0;else if(p.context){var T;p.context.kind&&(p.localStates.pop(),(T=a(p.localStates)).mode.indent&&(p.indent-=T.mode.indent(T.state,"",""))),u(p)}}}else p.context=new d(p.context,p.tag,y.variableScope?p.variables:null);else E&&(S=!0);return(S?"error ":"")+"keyword"}return i.eat("{")?(p.tag="print",p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):!p.context&&i.sol()&&i.match(/import\b/)?(p.soyState.push("import"),p.indent+=2*t.indentUnit,"keyword"):(g=i.match("<{"))?(p.soyState.push("template-call-expression"),p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):(g=i.match("</>"))?(p.indent-=1*t.indentUnit,"keyword"):s(i,p,/\{|\s+\/\/|\/\*/)},indent:function(n,r,i){var o=n.indent,s=a(n.soyState);if("comment"==s)return e.Pass;if("literal"==s)/^\{\/literal}/.test(r)&&(o-=t.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(r))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(r)&&(o-=t.indentUnit),"switch"!=n.tag&&/^\{(case|default)\b/.test(r)&&(o-=t.indentUnit),/^\{\/switch\b/.test(r)&&(o-=t.indentUnit)}var l=a(n.localStates);return o&&l.mode.indent&&(o+=l.mode.indent(l.state,r,i)),o},innerMode:function(e){return e.soyState.length&&"literal"!=a(e.soyState)?null:a(e.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}}),"htmlmixed"),e.registerHelper("wordChars","soy",/[\w$]/),e.registerHelper("hintWords","soy",Object.keys(n).concat(["css","debugger"])),e.defineMIME("text/x-soy","soy")}(n(23326),n(38425))},16683:(e,t,n)=>{!function(e){"use strict";e.defineMode("sparql",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),o=r(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),a=/[*+\-<>=&|\^\/!\?]/,s="[A-Za-z_\\-0-9]",l=new RegExp("[A-Za-z]"),u=new RegExp("(("+s+"|\\.)*("+s+"))?:");function c(e,n){var r,s=e.next();if(t=null,"$"==s||"?"==s)return"?"==s&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if("<"==s&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=c;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,"bracket";if("#"==s)return e.skipToEnd(),"comment";if(a.test(s))return"operator";if(":"==s)return d(e),"atom";if("@"==s)return e.eatWhile(/[a-z\d\-]/i),"meta";if(l.test(s)&&e.match(u))return d(e),"atom";e.eatWhile(/[_\w\d]/);var f=e.current();return i.test(f)?"builtin":o.test(f)?"keyword":"variable"}function d(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function f(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function p(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)f(n,")",e.column());else if("["==t)f(n,"]",e.column());else if("{"==t)f(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)p(n);n.context&&t==n.context.type&&(p(n),"}"==t&&n.context&&"pattern"==n.context.type&&p(n))}else"."==t&&n.context&&"pattern"==n.context.type?p(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?f(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("application/sparql-query","sparql")}(n(23326))},77977:(e,t,n)=>{!function(e){"use strict";e.defineMode("spreadsheet",(function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}})),e.defineMIME("text/x-spreadsheet","spreadsheet")}(n(23326))},14149:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},s=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(a),u=n.keywords||o(i),c=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},f=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(f[n]){var i=f[n](e,t);if(!1!==i)return i}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]*'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(c.test(n))return e.eatWhile(c),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return p.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(o)?"atom":l.hasOwnProperty(o)?"type":u.hasOwnProperty(o)?"keyword":r.hasOwnProperty(o)?"builtin":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):v:t.skipToEnd(),"comment"}}function w(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?w(e,t,")"):"["==r?w(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:n}}));var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var a="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:o(i+"begin"),builtin:o(a),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(i+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(i+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-trino",{name:"sql",keywords:o("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:o("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:o("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:o("date time timestamp zone"),support:o("decimallessFloat zerolessFloat hexNumber")})}(n(23326))},38234:(e,t,n)=>{!function(e){"use strict";e.defineMode("stex",(function(e,t){function n(e,t){e.cmdState.push(t)}function r(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function i(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var o={};function a(e,t){e.f=t}function s(e,t){var i;if(e.match(/^\\[a-zA-Z@]+/)){var s=e.current().slice(1);return n(t,i=new(i=o.hasOwnProperty(s)?o[s]:o.DEFAULT)),a(t,u),i.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return a(t,(function(e,t){return l(e,t,"\\]")})),"keyword";if(e.match("\\("))return a(t,(function(e,t){return l(e,t,"\\)")})),"keyword";if(e.match("$$"))return a(t,(function(e,t){return l(e,t,"$$")})),"keyword";if(e.match("$"))return a(t,(function(e,t){return l(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(t))?(i.closeBracket(c),a(t,u),"bracket"):"error":"{"==c||"["==c?(n(t,i=new(i=o.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(i=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(t)).name&&(i.argument=e.current()),i.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return a(t,s),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function u(e,t){var n=e.peek();return"{"==n||"["==n?(r(t).openBracket(n),e.eat(n),a(t,s),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(a(t,s),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),s(e,t))}return o.importmodule=i("importmodule","tag",["string","builtin"]),o.documentclass=i("documentclass","tag",["","atom"]),o.usepackage=i("usepackage","tag",["atom"]),o.begin=i("begin","tag",["atom"]),o.end=i("end","tag",["atom"]),o.label=i("label","tag",["atom"]),o.ref=i("ref","tag",["atom"]),o.eqref=i("eqref","tag",["atom"]),o.cite=i("cite","tag",["atom"]),o.bibitem=i("bibitem","tag",["atom"]),o.Bibitem=i("Bibitem","tag",["atom"]),o.RBibitem=i("RBibitem","tag",["atom"]),o.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return l(e,t)}:s}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=s,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(23326))},98660:(e,t,n)=>{!function(e){"use strict";e.defineMode("stylus",(function(e){for(var p,g,v,y,b=e.indentUnit,w="",_=m(t),x=/^(a|b|i|s|col|em)$/i,E=m(o),k=m(a),C=m(u),S=m(l),A=m(n),T=h(n),O=m(i),P=m(r),R=m(s),M=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,D=h(c),I=m(d),L=new RegExp(/^\-(moz|ms|o|webkit)-/i),j=m(f),N="",F={};w.length<b;)w+=" ";function B(e,t){if(N=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),p=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=U,U(e,t);if('"'==p||"'"==p)return e.next(),t.tokenize=z(p),t.tokenize(e,t);if("@"==p)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==p){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(L)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==p?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==p&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(T)?("("==e.peek()&&(t.tokenize=q),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(D)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!V(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(M)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(p)?(e.next(),[null,p]):(e.next(),[null,null])}function U(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function z(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function q(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=z(")"),[null,"("]}function W(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function $(e,t,n,r){return r=r>=0?r:b,e.context=new W(n,t.indentation()+r,e.context),n}function H(e,t){var n=e.context.indent-b;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function G(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return F[n.context.type](e,t,n)}(e,t,n)}function V(e){return e.toLowerCase()in _}function K(e){return(e=e.toLowerCase())in E||e in R}function Z(e){return e.toLowerCase()in I}function Y(e){return e.toLowerCase().match(L)}function X(e){var t=e.toLowerCase(),n="variable-2";return V(e)?n="tag":Z(e)?n="block-keyword":K(e)?n="property":t in C||t in j?n="atom":"return"==t||t in S?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function Q(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function J(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function re(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return F.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return $(n,t,"block",0);if(J(e,t))return $(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!V(re(t)))return $(n,t,"block",0);if(Q(e,t))return $(n,t,"block");if("}"==e&&ne(t))return $(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||Z(re(t))?$(n,t,"variableName"):$(n,t,"variableName",0);if("="==e)return ne(t)||Z(re(t))?$(n,t,"block"):$(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return y="tag",$(n,t,"block");if(ee(e,t))return $(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return $(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return $(n,t,"keyframes");if(/@extends?/.test(e))return $(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&K(t.current().slice(1))?(y="variable-2","block"):/(@import|@require|@charset)/.test(e)?$(n,t,"block",0):$(n,t,"block");if("reference"==e&&ne(t))return $(n,t,"block");if("("==e)return $(n,t,"parens");if("vendor-prefixes"==e)return $(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(y=X(r)))return te(t)?$(n,t,"block",0):(y="atom","block");if("tag"==y){if(/embed|menu|pre|progress|sub|table/.test(r)&&K(re(t)))return y="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return y="atom","block";if(x.test(r)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!V(re(t))))return y="variable-2",Z(re(t))?"block":$(n,t,"block",0);if(ne(t))return $(n,t,"block")}if("block-keyword"==y)return y="keyword",t.current(/(if|unless)/)&&!te(t)?"block":$(n,t,"block");if("return"==r)return $(n,t,"block",0);if("variable-2"==y&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return $(n,t,"block")}return n.context.type},F.parens=function(e,t,n){if("("==e)return $(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?H(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||Z(re(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(re(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&V(re(t))?$(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?$(n,t,"block",0):ne(t)?$(n,t,"block"):$(n,t,"block",0);if(e&&"@"==e.charAt(0)&&K(t.current().slice(1))&&(y="variable-2"),"word"==e){var r=t.current();"tag"==(y=X(r))&&x.test(r)&&(y="variable-2"),"property"!=y&&"to"!=r||(y="atom")}return"variable-name"==e?$(n,t,"variableName"):ee(e,t)?$(n,t,"pseudo"):n.context.type},F.vendorPrefixes=function(e,t,n){return"word"==e?(y="property",$(n,t,"block",0)):H(n)},F.pseudo=function(e,t,n){return K(re(t.string))?G(e,t,n):(t.match(/^[a-z-]+/),y="variable-3",ne(t)?$(n,t,"block"):H(n))},F.atBlock=function(e,t,n){if("("==e)return $(n,t,"atBlock_parens");if(Q(e,t))return $(n,t,"block");if(J(e,t))return $(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(y=/^(only|not|and|or)$/.test(r)?"keyword":A.hasOwnProperty(r)?"tag":P.hasOwnProperty(r)?"attribute":O.hasOwnProperty(r)?"property":k.hasOwnProperty(r)?"string-2":X(t.current()))&&ne(t))return $(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(y="keyword"),n.context.type},F.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?$(n,t,"block"):$(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return y=X(r),/^(max|min)/.test(r)&&(y="property"),"tag"==y&&(y=x.test(r)?"variable-2":"atom"),n.context.type}return F.atBlock(e,t,n)},F.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||V(t.current()))?G(e,t,n):"{"==e?$(n,t,"keyframes"):"}"==e?te(t)?H(n,!0):$(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?$(n,t,"keyframes"):"word"==e&&"block-keyword"==(y=X(t.current()))?(y="keyword",$(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?$(n,t,ne(t)?"block":"atBlock"):"mixin"==e?$(n,t,"block",0):n.context.type},F.interpolation=function(e,t,n){return"{"==e&&H(n)&&$(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&V(re(t))?$(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?$(n,t,"block",0):$(n,t,"block"):"variable-name"==e?$(n,t,"variableName",0):("word"==e&&"tag"==(y=X(t.current()))&&(y="atom"),n.context.type)},F.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?H(n):"word"==e?(y=X(t.current()),"extend"):H(n)},F.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(y="variable-2"),"variableName"):G(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new W("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||B)(e,t))&&"object"==typeof g&&(v=g[1],g=g[0]),y=g,t.state=F[t.state](v,e,t),y)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=re(t),s=n.match(/^\s*/)[0].replace(/\t/g,w).length,l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-b:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||Z(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||V(a)?o=/\,\s*$/.test(l)?u:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||V(l))?s<=u?u:u+b:s:/,\s*$/.test(n)||!Y(a)&&!K(a)||(o=Z(l)?s<=u?u:u+b:/^\{/.test(l)?s<=u?s:u+b:Y(l)||K(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||V(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+b:s)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],u=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],c=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],p=t.concat(n,r,i,o,a,l,u,s,c,d,f,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function h(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}e.registerHelper("hintWords","stylus",p),e.defineMIME("text/x-styl","stylus")}(n(23326))},93251:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var n=t(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),r=t(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),i=t(["true","false","nil","self","super","_"]),o=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),a="+-/*%=|&<>~^?!",s=":;,.(){}[]",l=/^\-?0b[01][01_]*/,u=/^\-?0o[0-7][0-7_]*/,c=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,d=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,f=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,p=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,h=/^\#[A-Za-z]+/,m=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function g(e,t,g){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var v,w=e.peek();if("/"==w){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(b),b(e,t)}if(e.match(h))return"builtin";if(e.match(m))return"attribute";if(e.match(l))return"number";if(e.match(u))return"number";if(e.match(c))return"number";if(e.match(d))return"number";if(e.match(p))return"property";if(a.indexOf(w)>-1)return e.next(),"operator";if(s.indexOf(w)>-1)return e.next(),e.match(".."),"punctuation";if(v=e.match(/("""|"|')/)){var _=y.bind(null,v[0]);return t.tokenize.push(_),_(e,t)}if(e.match(f)){var x=e.current();return o.hasOwnProperty(x)?"variable-2":i.hasOwnProperty(x)?"atom":n.hasOwnProperty(x)?(r.hasOwnProperty(x)&&(t.prev="define"),"keyword"):"define"==g?"def":"variable"}return e.next(),null}function v(){var e=0;return function(t,n,r){var i=g(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function y(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(v()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function b(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(b);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function w(e,t,n){this.prev=e,this.align=t,this.indented=n}function _(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new w(e.context,n,e.indented)}function x(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||g)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?x:_)(t,e)}return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}(n(23326))},27220:(e,t,n)=>{!function(e){"use strict";e.defineMode("tcl",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),n=e("if elseif else and not or eq ne in ni for foreach while switch"),r=/[+\-*&%=<>!?^\/\|]/;function i(e,t,n){return t.tokenize=n,n(e,t)}function o(e,l){var u=l.beforeParams;l.beforeParams=!1;var c,d=e.next();if('"'!=d&&"'"!=d||!l.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&u?l.inParams=!0:")"==d&&(l.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?i(e,l,a):"#"==d&&e.match(/ *\[ *\[/)?i(e,l,s):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),l.beforeParams=!0,"builtin";if(r.test(d))return e.eatWhile(r),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)?(l.beforeParams=!0,"keyword"):null}return i(e,l,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}))}function a(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=o;break}r="*"==n}return"comment"}function s(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=o;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},lineComment:"#"}})),e.defineMIME("text/x-tcl","tcl")}(n(23326))},17028:(e,t,n)=>{!function(e){"use strict";var t={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(e,n,o){if("_"===o)return e.eat("_")?r(e,n,"italic",/__/,2):r(e,n,"em",/_/,1);if("*"===o)return e.eat("*")?r(e,n,"bold",/\*\*/,2):r(e,n,"strong",/\*/,1);if("["===o)return e.match(/\d+\]/)&&(n.footCite=!0),i(n);if("("===o&&e.match(/^(r|tm|c)\)/))return a(n,t.specialChar);if("<"===o&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return a(n,t.html);if("?"===o&&e.eat("?"))return r(e,n,"cite",/\?\?/,2);if("="===o&&e.eat("="))return r(e,n,"notextile",/==/,2);if("-"===o&&!e.eat("-"))return r(e,n,"deletion",/-/,1);if("+"===o)return r(e,n,"addition",/\+/,1);if("~"===o)return r(e,n,"sub",/~/,1);if("^"===o)return r(e,n,"sup",/\^/,1);if("%"===o)return r(e,n,"span",/%/,1);if("@"===o)return r(e,n,"code",/@/,1);if("!"===o){var s=r(e,n,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),s}return i(n)}function r(e,t,n,r,o){var a=e.pos>o?e.string.charAt(e.pos-o-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&a&&/\S/.test(a)){var l=i(t);return t[n]=!1,l}}else(!a||/\W/.test(a))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return i(t)}function i(e){var n=o(e);if(n)return n;var r=[];return e.layoutType&&r.push(t[e.layoutType]),r=r.concat(function(e){for(var n=[],r=1;r<arguments.length;++r)e[arguments[r]]&&n.push(t[arguments[r]]);return n}(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),"header"===e.layoutType&&r.push(t.header+"-"+e.header),r.length?r.join(" "):null}function o(e){var n=e.layoutType;switch(n){case"notextile":case"code":case"pre":return t[n];default:return e.notextile?t.notextile+(n?" "+t[n]:""):null}}function a(e,t){var n=o(e);if(n)return n;var r=i(e);return t?r?r+" "+t:t:r}function s(e){var t=e.spanningLayout,n=e.layoutType;for(var r in e)e.hasOwnProperty(r)&&delete e[r];e.mode=c.newLayout,t&&(e.layoutType=n,e.spanningLayout=!0)}var l={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t<arguments.length;++t){var n=arguments[t];e+="string"==typeof n?n:n.source}return new RegExp(e)},choiceRe:function(){for(var e=[arguments[0]],t=1;t<arguments.length;++t)e[2*t-1]="|",e[2*t]=arguments[t];return e.unshift("(?:"),e.push(")"),l.makeRe.apply(null,e)}};function u(e){return l.cache[e]||(l.cache[e]=l.createRe(e))}var c={newLayout:function(e,t){return e.match(u("typeLayout"),!1)?(t.spanningLayout=!1,(t.mode=c.blockType)(e,t)):(o(t)||(e.match(u("listLayout"),!1)?n=c.list:e.match(u("drawTable"),!1)?n=c.table:e.match(u("linkDefinition"),!1)?n=c.linkDefinition:e.match(u("definitionList"))?n=c.definitionList:e.match(u("html"),!1)&&(n=c.html)),(t.mode=n||c.text)(e,t));var n},blockType:function(e,t){var n,r;return t.layoutType=null,(n=e.match(u("type")))?((n=(r=n[0]).match(u("header")))?(t.layoutType="header",t.header=parseInt(n[0][1])):r.match(u("bq"))?t.layoutType="quote":r.match(u("bc"))?t.layoutType="code":r.match(u("foot"))?t.layoutType="footnote":r.match(u("notextile"))?t.layoutType="notextile":r.match(u("pre"))?t.layoutType="pre":r.match(u("div"))?t.layoutType="div":r.match(u("table"))&&(t.layoutType="table"),t.mode=c.attributes,i(t)):(t.mode=c.text)(e,t)},text:function(e,t){if(e.match(u("text")))return i(t);var r=e.next();return'"'===r?(t.mode=c.link)(e,t):n(e,t,r)},attributes:function(e,n){return n.mode=c.layoutLength,e.match(u("attributes"))?a(n,t.attributes):i(n)},layoutLength:function(e,t){return e.eat(".")&&e.eat(".")&&(t.spanningLayout=!0),t.mode=c.text,i(t)},list:function(e,t){var n=e.match(u("list"));t.listDepth=n[0].length;var r=(t.listDepth-1)%3;return t.layoutType=r?1===r?"list2":"list3":"list1",t.mode=c.attributes,i(t)},link:function(e,n){return n.mode=c.text,e.match(u("link"))?(e.match(/\S+/),a(n,t.link)):i(n)},linkDefinition:function(e,n){return e.skipToEnd(),a(n,t.linkDefinition)},definitionList:function(e,t){return e.match(u("definitionList")),t.layoutType="definitionList",e.match(/\s*$/)?t.spanningLayout=!0:t.mode=c.attributes,i(t)},html:function(e,n){return e.skipToEnd(),a(n,t.html)},table:function(e,t){return t.layoutType="table",(t.mode=c.tableCell)(e,t)},tableCell:function(e,t){return e.match(u("tableHeading"))?t.tableHeading=!0:e.eat("|"),t.mode=c.tableCellAttributes,i(t)},tableCellAttributes:function(e,n){return n.mode=c.tableText,e.match(u("tableCellAttributes"))?a(n,t.attributes):i(n)},tableText:function(e,t){return e.match(u("tableText"))?i(t):"|"===e.peek()?(t.mode=c.tableCell,i(t)):n(e,t,e.next())}};e.defineMode("textile",(function(){return{startState:function(){return{mode:c.newLayout}},token:function(e,t){return e.sol()&&function(e,t){t.mode=c.newLayout,t.tableHeading=!1,"definitionList"===t.layoutType&&t.spanningLayout&&e.match(u("definitionListEnd"),!1)&&(t.spanningLayout=!1)}(e,t),t.mode(e,t)},blankLine:s}})),e.defineMIME("text/x-textile","textile")}(n(23326))},2362:(e,t,n)=>{!function(e){"use strict";e.defineMode("tiddlywiki",(function(){var e={},t={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},n=/[\w_\-]/i,r=/^\-\-\-\-+$/,i=/^\/\*\*\*$/,o=/^\*\*\*\/$/,a=/^<<<$/,s=/^\/\/\{\{\{$/,l=/^\/\/\}\}\}$/,u=/^<!--\{\{\{-->$/,c=/^<!--\}\}\}-->$/,d=/^\{\{\{$/,f=/^\}\}\}$/,p=/.*?\}\}\}/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(t,f){var p=t.sol(),m=t.peek();if(f.block=!1,p&&/[<\/\*{}\-]/.test(m)){if(t.match(d))return f.block=!0,h(t,f,y);if(t.match(a))return"quote";if(t.match(i)||t.match(o))return"comment";if(t.match(s)||t.match(l)||t.match(u)||t.match(c))return"comment";if(t.match(r))return"hr"}if(t.next(),p&&/[\/\*!#;:>|]/.test(m)){if("!"==m)return t.skipToEnd(),"header";if("*"==m)return t.eatWhile("*"),"comment";if("#"==m)return t.eatWhile("#"),"comment";if(";"==m)return t.eatWhile(";"),"comment";if(":"==m)return t.eatWhile(":"),"comment";if(">"==m)return t.eatWhile(">"),"quote";if("|"==m)return"header"}if("{"==m&&t.match("{{"))return h(t,f,y);if(/[hf]/i.test(m)&&/[ti]/i.test(t.peek())&&t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==m)return"string";if("~"==m)return"brace";if(/[\[\]]/.test(m)&&t.match(m))return"brace";if("@"==m)return t.eatWhile(n),"link";if(/\d/.test(m))return t.eatWhile(/\d/),"number";if("/"==m){if(t.eat("%"))return h(t,f,g);if(t.eat("/"))return h(t,f,b)}if("_"==m&&t.eat("_"))return h(t,f,w);if("-"==m&&t.eat("-")){if(" "!=t.peek())return h(t,f,_);if(" "==t.peek())return"brace"}return"'"==m&&t.eat("'")?h(t,f,v):"<"==m&&t.eat("<")?h(t,f,x):(t.eatWhile(/[\w\$_]/),e.propertyIsEnumerable(t.current())?"keyword":null)}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="%"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=m;break}r="'"==n}return"strong"}function y(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(p)||n&&e.sol()&&e.match(f)?(t.tokenize=m,"comment"):(e.next(),"comment")}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="/"==n}return"em"}function w(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=m;break}r="_"==n}return"underlined"}function _(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=m;break}r="-"==n}return"strikethrough"}function x(e,n){if("<<"==e.current())return"macro";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),n.tokenize=m,"macro"):(e.eatWhile(/[\w\$_]/),t.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=m,null)}return{startState:function(){return{tokenize:m}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-tiddlywiki","tiddlywiki")}(n(23326))},19750:(e,t,n)=>{!function(e){"use strict";e.defineMode("tiki",(function(e){function t(e,t,n){return function(i,o){for(;!i.eol();){if(i.match(t)){o.tokenize=r;break}i.next()}return n&&(o.tokenize=n),e}}function n(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=r,e}}function r(e,i){function o(t){return i.tokenize=t,t(e,i)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),i.tokenize=u,"tag";case"_":if(e.eat("_"))return o(t("strong","__",r));break;case"'":if(e.eat("'"))return o(t("em","''",r));break;case"(":if(e.eat("("))return o(t("variable-2","))",r));break;case"[":return o(t("variable-3","]",r));case"|":if(e.eat("|"))return o(t("comment","||"));break;case"-":if(e.eat("="))return o(t("header string","=-",r));if(e.eat("-"))return o(t("error tw-deleted","--",r));break;case"=":if(e.match("=="))return o(t("tw-underline","===",r));break;case":":if(e.eat(":"))return o(t("comment","::"));break;case"^":return o(t("tw-box","^"));case"~":if(e.match("np~"))return o(t("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),o(n("header string"));case"*":case"#":case"+":return o(n("tw-listitem bracket"))}return null}var i,o,a,s,l=e.indentUnit;function u(e,t){var n,i=e.next(),a=e.peek();return"}"==i?(t.tokenize=r,"tag"):"("==i||")"==i?"bracket":"="==i?(o="equals",">"==a&&(e.next(),a=e.peek()),/[\'\"]/.test(a)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(i)?(t.tokenize=(n=i,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function c(){for(var e=arguments.length-1;e>=0;e--)a.cc.push(arguments[e])}function d(){return c.apply(null,arguments),!0}function f(e,t){var n=a.context&&a.context.noIndent;a.context={prev:a.context,pluginName:e,indent:a.indented,startOfLine:t,noIndent:n}}function p(){a.context&&(a.context=a.context.prev)}function h(e){if("openPlugin"==e)return a.pluginName=i,d(m,(t=a.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?d():"endPlugin"==e?(f(a.pluginName,t),d()):d()}));var t;if("closePlugin"==e){var n=!1;return a.context?(n=a.context.pluginName!=i,p()):n=!0,n&&(s="error"),d(function(e){return function(t){return e&&(s="error"),"endPlugin"==t?d():c()}}(n))}return"string"==e?(a.context&&"!cdata"==a.context.name||f("!cdata"),a.tokenize==r&&p(),d()):d()}function m(e){return"keyword"==e?(s="attribute",d(m)):"equals"==e?d(g,m):c()}function g(e){return"keyword"==e?(s="string",d()):"string"==e?d(v):c()}function v(e){return"string"==e?d(v):c()}return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=o=i=null;var n=t.tokenize(e,t);if((n||o)&&"comment"!=n)for(a=t;!(t.cc.pop()||h)(o||n););return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+l:0},electricChars:"/"}})),e.defineMIME("text/tiki","tiki")}(n(23326))},218:(e,t,n)=>{!function(e){"use strict";e.defineMode("toml",(function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}}})),e.defineMIME("text/x-toml","toml")}(n(23326))},87815:(e,t,n)=>{!function(e){"use strict";e.defineMode("tornado:inner",(function(){var e=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];function t(n,r){n.eatWhile(/[^\{]/);var i,o=n.next();if("{"==o&&(o=n.eat(/\{|%|#/)))return r.tokenize=("{"==(i=o)&&(i="}"),function(n,r){return n.next()==i&&n.eat("}")?(r.tokenize=t,"tag"):n.match(e)?"keyword":"#"==i?"comment":"string"}),"tag"}return e=new RegExp("^(("+e.join(")|(")+"))\\b"),{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)}}})),e.defineMode("tornado",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"tornado:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-tornado","tornado")}(n(23326),n(38425),n(19962))},40957:(e,t,n)=>{!function(e){"use strict";e.defineMode("troff",(function(){var e={};function t(t){if(t.eatSpace())return null;var n=t.sol(),r=t.next();if("\\"===r)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===r||"'"===r)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(n&&"."===r){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var i=t.current();return e.hasOwnProperty(i)?e[i]:null}function n(e,n){return(n.tokens[0]||t)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)}}})),e.defineMIME("text/troff","troff"),e.defineMIME("text/x-troff","troff"),e.defineMIME("application/x-troff","troff")}(n(23326))},78175:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn-cfg",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.fileNCtrlMaskOptions||{},a=t.externalCommands||{},s=t.multiLineStrings,l=!1!==t.indentStatements,u=/[\|]/;function c(e,t){var r,l=e.next();if('"'==l||"'"==l)return t.tokenize=(r=l,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!s)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[:=]/.test(l))return n=l,"punctuation";if("#"==l)return e.skipToEnd(),"comment";if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(u.test(l))return e.eatWhile(u),"operator";if("["==l)return e.eatWhile(/[\w_\]]/),"number sectionTitle";e.eatWhile(/[\w\$_]/);var c=e.current();return i.propertyIsEnumerable(c)?"keyword":o.propertyIsEnumerable(c)?"negative fileNCtrlMaskOptions":a.propertyIsEnumerable(c)?"negative externalCommands":"variable"}function d(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function p(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new d((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||c)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)f(t,e.column(),"}");else if("["==n)f(t,e.column(),"]");else if("("==n)f(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=p(t);for("}"==r.type&&(r=p(t));"statement"==r.type;)r=p(t)}else n==r.type?p(t):l&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&f(t,e.column(),"statement");else p(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-ttcn-cfg",{name:"ttcn-cfg",keywords:t("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:t("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:t("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0})}(n(23326))},95655:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.builtin||{},a=t.timerOps||{},s=t.portOps||{},l=t.configOps||{},u=t.verdictOps||{},c=t.sutOps||{},d=t.functionOps||{},f=t.verdictConsts||{},p=t.booleanConsts||{},h=t.otherConsts||{},m=t.types||{},g=t.visibilityModifiers||{},v=t.templateMatch||{},y=t.multiLineStrings,b=!1!==t.indentStatements,w=/[+\-*&@=<>!\/]/;function _(e,t){var r,b=e.next();if('"'==b||"'"==b)return t.tokenize=(r=b,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!y)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(b))return n=b,"punctuation";if("#"==b)return e.skipToEnd(),"atom preprocessor";if("%"==b)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(b))return e.eatWhile(/[\w\.]/),"number";if("/"==b){if(e.eat("*"))return t.tokenize=x,x(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(w.test(b))return"@"==b&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(w),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var _=e.current();return i.propertyIsEnumerable(_)?"keyword":o.propertyIsEnumerable(_)?"builtin":a.propertyIsEnumerable(_)?"def timerOps":l.propertyIsEnumerable(_)?"def configOps":u.propertyIsEnumerable(_)?"def verdictOps":s.propertyIsEnumerable(_)?"def portOps":c.propertyIsEnumerable(_)?"def sutOps":d.propertyIsEnumerable(_)?"def functionOps":f.propertyIsEnumerable(_)?"string verdictConsts":p.propertyIsEnumerable(_)?"string booleanConsts":h.propertyIsEnumerable(_)?"string otherConsts":m.propertyIsEnumerable(_)?"builtin types":g.propertyIsEnumerable(_)?"builtin visibilityModifiers":v.propertyIsEnumerable(_)?"atom templateMatch":"variable"}function x(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function E(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function k(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new E(r,t,n,null,e.context)}function C(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new E((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||_)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)k(t,e.column(),"}");else if("["==n)k(t,e.column(),"]");else if("("==n)k(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=C(t);for("}"==r.type&&(r=C(t));"statement"==r.type;)r=C(t)}else n==r.type?C(t):b&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&k(t,e.column(),"statement");else C(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.timerOps),i(n.portOps),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-ttcn","text/x-ttcn3","text/x-ttcnpp"],{name:"ttcn",keywords:t("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:t("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:t("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:t("read running start stop timeout"),portOps:t("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:t("create connect disconnect done kill killed map unmap"),verdictOps:t("getverdict setverdict"),sutOps:t("action"),functionOps:t("apply derefers refers"),verdictConsts:t("error fail inconc none pass"),booleanConsts:t("true false"),otherConsts:t("null NULL omit"),visibilityModifiers:t("private public friend"),templateMatch:t("complement ifpresent subset superset permutation"),multiLineStrings:!0})}(n(23326))},42944:(e,t,n)=>{!function(e){"use strict";e.defineMode("turtle",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}r([]);var i=r(["@prefix","@base","a"]),o=/[*+\-<>=&|]/;function a(e,n){var r,s=e.next();if(t=null,"<"!=s||e.match(/^[\s\u00a0=]/,!1)){if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=a;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,null;if("#"==s)return e.skipToEnd(),"comment";if(o.test(s))return e.eatWhile(o),null;if(":"==s)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variable-3";var l=e.current();return i.test(l)?"meta":s>="A"&&s<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function l(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)s(n,")",e.column());else if("["==t)s(n,"]",e.column());else if("{"==t)s(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)l(n);n.context&&t==n.context.type&&l(n)}else"."==t&&n.context&&"pattern"==n.context.type?l(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?s(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("text/turtle","turtle")}(n(23326))},21649:(e,t,n)=>{!function(e){"use strict";e.defineMode("twig:inner",(function(){var e=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(o,a){return function(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}(o,a)}}})),e.defineMode("twig",(function(t,n){var r=e.getMode(t,"twig:inner");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-twig","twig")}(n(23326),n(15718))},35053:(e,t,n)=>{!function(e){"use strict";e.defineMode("vb",(function(t,n){var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),s=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),l=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),u=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),c=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),d=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],f=["else","elseif","case","catch","finally"],p=["next","loop"],h=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],m=i(h),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],v=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],y=i(g),b=i(v),w='"',_=i(d),x=i(f),E=i(p),k=i(["end"]),C=i(["do"]);function S(e,t){t.currentIndent++}function A(e,t){t.currentIndent--}function T(e,t){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(i=!0),i)return e.eat(/J/i),"number";var d=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?d=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),d=!0):e.match(/^0(?![\dx])/i)&&(d=!0),d)return e.eat(/L/i),"number"}return e.match(w)?(t.tokenize=(f=e.current(),p=1==f.length,h="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(f))return t.tokenize=T,h;e.eat(/['"]/)}if(p){if(n.singleLineStringErrors)return r;t.tokenize=T}return h}),t.tokenize(e,t)):e.match(u)||e.match(l)?null:e.match(s)||e.match(o)||e.match(m)?"operator":e.match(a)?null:e.match(C)?(S(0,t),t.doInCurrentLine=!0,"keyword"):e.match(_)?(t.doInCurrentLine?t.doInCurrentLine=!1:S(0,t),"keyword"):e.match(x)?"keyword":e.match(k)?(A(0,t),A(0,t),"keyword"):e.match(E)?(A(0,t),"keyword"):e.match(b)||e.match(y)?"keyword":e.match(c)?"variable":(e.next(),r);var f,p,h}return e.registerHelper("hintWords","vb",d.concat(f).concat(p).concat(h).concat(g).concat(v)),{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:T,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&S(0,t),-1!==(o="])}".indexOf(i))&&A(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(E)||r.match(k)||r.match(x)?t.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.indentUnit},lineComment:"'"}})),e.defineMIME("text/x-vb","vb")}(n(23326))},29048:(e,t,n)=>{!function(e){"use strict";e.defineMode("vbscript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),o=new RegExp("^((<>)|(<=)|(>=))"),a=new RegExp("^[\\.,]"),s=new RegExp("^[\\(\\)]"),l=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),u=r(["and","or","not","xor","is","mod","eqv","imp"]),c=["WScript","err","debug","RegExp"],d=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);c=c.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(c=c.concat(["server","response","request","session","application"]),d=d.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var f=r(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),p=r(["true","false","nothing","empty","null"]),h=r(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),m=r(c),g=r(d),v='"',y=r(["class","sub","select","while","if","function","property","with","for"]),b=r(["else","elseif","case"]),w=r(["next","loop","wend"]),_=r(["end"]),x=r(["do"]),E=r(["on error resume next","exit"]),k=r(["rem"]);function C(e,t){t.currentIndent++}function S(e,t){t.currentIndent--}function A(e,r){if(e.eatSpace())return"space";if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(k))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var c=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(c=!0),c)return e.eat(/J/i),"number";var d=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?d=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),d=!0):e.match(/^0(?![\dx])/i)&&(d=!0),d)return e.eat(/L/i),"number"}return e.match(v)?(r.tokenize=(T=e.current(),O=1==T.length,P="string",function(e,r){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(T))return r.tokenize=A,P;e.eat(/['"]/)}if(O){if(t.singleLineStringErrors)return n;r.tokenize=A}return P}),r.tokenize(e,r)):e.match(o)||e.match(i)||e.match(u)?"operator":e.match(a)?null:e.match(s)?"bracket":e.match(E)?(r.doInCurrentLine=!0,"keyword"):e.match(x)?(C(0,r),r.doInCurrentLine=!0,"keyword"):e.match(y)?(r.doInCurrentLine?r.doInCurrentLine=!1:C(0,r),"keyword"):e.match(b)?"keyword":e.match(_)?(S(0,r),S(0,r),"keyword"):e.match(w)?(r.doInCurrentLine?r.doInCurrentLine=!1:S(0,r),"keyword"):e.match(f)?"keyword":e.match(p)?"atom":e.match(g)?"variable-2":e.match(h)?"builtin":e.match(m)?"variable-2":e.match(l)?"variable":(e.next(),n);var T,O,P}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:A,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=function(e,t){var r=t.tokenize(e,t),i=e.current();return"."===i?(r=t.tokenize(e,t),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?n:("builtin"!==r&&"keyword"!==r||(r="variable"),d.indexOf(i.substr(1))>-1&&(r="variable-2"),r)):r}(e,t);return t.lastToken={style:r,content:e.current()},"space"===r&&(r=null),r},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(w)||r.match(_)||r.match(b)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}})),e.defineMIME("text/vbscript","vbscript")}(n(23326))},8989:(e,t,n)=>{!function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),n=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),r=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),i=/[+\-*&%=<>!?:\/|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var c=a.beforeParams;a.beforeParams=!1;var d=e.next();if("'"==d&&!a.inString&&a.inParams)return a.lastTokenWasBuiltin=!1,o(e,a,s(d));if('"'!=d){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&c?a.inParams=!0:")"==d&&(a.inParams=!1,a.lastTokenWasBuiltin=!0),null;if(/\d/.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==d&&e.eat("*"))return a.lastTokenWasBuiltin=!1,o(e,a,l);if("#"==d&&e.match(/ *\[ *\[/))return a.lastTokenWasBuiltin=!1,o(e,a,u);if("#"==d&&e.eat("#"))return a.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==d)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),r&&r.propertyIsEnumerable(e.current())?"keyword":(a.lastTokenWasBuiltin=!0,a.beforeParams=!0,"builtin");if(i.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}@]/);var f=e.current();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!n||!n.propertyIsEnumerable(f.toLowerCase()))?(a.beforeParams=!0,a.lastTokenWasBuiltin=!1,"keyword"):a.inString?(a.lastTokenWasBuiltin=!1,"string"):e.pos>f.length&&"."==e.string.charAt(e.pos-f.length-1)&&a.lastTokenWasBuiltin?"builtin":(a.lastTokenWasBuiltin=!1,null)}return a.lastTokenWasBuiltin=!1,a.inString?(a.inString=!1,"string"):a.inParams?o(e,a,s(d)):void 0}function s(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=a),"string"}}function l(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=a;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}(n(23326))},24454:(e,t,n)=>{!function(e){"use strict";e.defineMode("verilog",(function(t,n){var r=t.indentUnit,i=n.statementIndentUnit||r,o=n.dontAlignCalls,a=n.compilerDirectivesUseRegularIndentation,s=n.noIndentKeywords||[],l=n.multiLineStrings,u=n.hooks||{};function c(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var d,f,p=c("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),h=/[\+\-\*\/!~&|^%=?:<>]/,m=/[\[\]{}()]/,g=/\d[0-9_]*/,v=/\d*\s*'s?d\s*\d[0-9_]*/i,y=/\d*\s*'s?b\s*[xz01][xz01_]*/i,b=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,w=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,_=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,x=/^((`?\w+)|[)}\]])/,E=/[)}\]]/,k=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),C=/^(`(?:ifdef|ifndef|elsif|else))\b/,S=/^(`(?:elsif|else|endif))\b/,A=c("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),T={};for(var O in A)T[O]="end"+O;for(var P in T.begin="end",T.casex="endcase",T.casez="endcase",T.do="while",T.fork="join;join_any;join_none",T.covergroup="endgroup",T.macro_begin="macro_end",s)O=s[P],T[O]&&(T[O]=void 0);var R=c("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function M(e,t){var n,r,i=e.peek();if(u[i]&&0!=(n=u[i](e,t)))return n;if(u.tokenBase&&0!=(n=u.tokenBase(e,t)))return n;if(/[,;:\.]/.test(i))return d=e.next(),null;if(m.test(i))return d=e.next(),"bracket";if("`"==i){if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(f=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var a=f.substr(0,f.length-5)+"end";T[o]=a,d="newblock"}else{e.eatSpace(),"("==e.peek()&&(d="newmacro");var s=e.current();e.backUp(s.length-o.length)}return"def"}return null}if("$"==i)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==i)return e.next(),e.eatWhile(/[\d_.]/),"def";if("@"==i)return e.next(),e.eatWhile(/[@]/),"def";if('"'==i)return e.next(),t.tokenize=(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return(o||!i&&!l)&&(t.tokenize=M),"string"}),t.tokenize(e,t);if("/"==i){if(e.next(),e.eat("*"))return t.tokenize=D,D(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}return e.match(_)||e.match(v)||e.match(y)||e.match(b)||e.match(w)||e.match(g)||e.match(_)?"number":e.eatWhile(h)?(d=e.current(),"meta"):e.eatWhile(/[\w\$_]/)?(o=e.current(),p[o]?(T[o]&&(d="newblock","fork"===o&&(e.eatSpace(),";"==e.peek()&&(d="newstatement"),e.backUp(e.current().length-o.length))),R[o]&&(d="newstatement"),f=o,"keyword"):"variable"):(e.next(),null)}function D(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=M;break}r="*"==n}return"comment"}function I(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=i,this.prev=o}function L(e,t,n,r){var i=new I(e.indented,t,n,r||"",null,e.context);return e.context=i}function j(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function F(e,t){return null!=e&&(e.scopekind===t||F(e.prev,t))}return{electricInput:function(){var e=[];for(var t in T)if(T[t]){var n=T[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),startState:function(e){var t={tokenize:null,context:new I((e||0)-r,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return u.startState&&u.startState(t),t},token:function(e,t){var n,r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),u.token&&void 0!==(n=u.token(e,t)))return n;if(e.eatSpace())return null;if(d=null,f=null,"comment"==(n=(t.tokenize||M)(e,t))||"meta"==n||"variable"==n)return"="!==d&&"<="!==d||F(r,"assignment")||(L(t,e.column()+d.length,"assignment","assignment"),null==r.align&&(r.align=!0)),n;null==r.align&&(r.align=!0);var o="assignment"==r.type&&E.test(d)&&r.prev&&r.prev.type===d;if(d==r.type||o){if(o&&(r=j(t)),r=j(t),")"==d){if(r&&"macro"===r.type)for(r=j(t);r&&("statement"==r.type||"assignment"==r.type);)r=j(t)}else if("}"==d&&r&&"statement"===r.type)for(;r&&"statement"==r.type;)r=j(t)}else if((";"==d||","==d)&&("statement"==r.type||"assignment"==r.type)||r.type&&N(f,r.type))for(r=j(t);r&&("statement"==r.type||"assignment"==r.type);)r=j(t);else if("{"==d)L(t,e.column(),"}");else if("["==d)L(t,e.column(),"]");else if("("==d)L(t,e.column(),")");else if(r&&"endcase"==r.type&&":"==d)L(t,e.column(),"statement","case");else if("newstatement"==d)L(t,e.column(),"statement",f);else if("newblock"==d){if("function"!=f||!r||"statement"!=r.type&&"endgroup"!=r.type)if("task"==f&&r&&"statement"==r.type);else if("class"==f&&r&&"statement"==r.type);else{var a=T[f];L(t,e.column(),a,f)}}else("newmacro"==d||f&&f.match(k))&&("newmacro"==d&&L(t,e.column(),"macro","macro"),f.match(S)&&(t.compilerDirectiveIndented-=i),f.match(C)&&(t.compilerDirectiveIndented+=i));return t.startOfLine=!1,n},indent:function(t,n){if(t.tokenize!=M&&null!=t.tokenize)return e.Pass;if(u.indent){var s=u.indent(t);if(s>=0)return s}var l=t.context,c=n&&n.charAt(0);"statement"==l.type&&"}"==c&&(l=l.prev);var d=!1,f=n.match(x);return f&&(d=N(f[0],l.type)),!a&&n.match(k)?n.match(S)?t.compilerDirectiveIndented-i:t.compilerDirectiveIndented:"statement"==l.type?l.indented+("{"==c?0:i):!E.test(l.type)&&"assignment"!=l.type||!l.align||o?")"!=l.type||d?l.indented+(d?0:r):l.indented+i:l.column+(d?0:1)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}})),e.defineMIME("text/x-verilog",{name:"verilog"}),e.defineMIME("text/x-systemverilog",{name:"verilog"});var t={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},n={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,i=/^[! ] /,o=/^[! ] */,a=/^\/[\/\*]/;function s(e,t,n){var r=t/3;return"tlv-"+e.tlvIndentationStyle[r]+"-"+n}e.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,l){var u=void 0;if(e.sol()&&!l.tlvInBlockComment){"\\"==e.peek()&&(u="def",e.skipToEnd(),e.string.match(/\\SV/)?l.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&0==e.pos&&0==l.indented&&(g=e.match(o,!1))&&(l.indented=g[0].length);var c=l.indented,d=c/3;if(d<=l.tlvIndentationStyle.length){var f=e.string.length==c,p=3*d;if(p<e.string.length){var h=e.string.slice(p),m=h[0];n[m]&&(g=h.match(r))&&t[g[1]]&&(c+=3,"\\"==m&&p>0||(l.tlvIndentationStyle[d]=n[m],d++))}if(!f)for(;l.tlvIndentationStyle.length>d;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=c}if(l.tlvCodeActive){var g,v=!1;if(void 0!==u)u+=" "+s(l,0,"scope-ident");else if(e.pos/3<l.tlvIndentationStyle.length&&(g=e.match(e.sol()?i:/^ /)))u="tlv-indent-"+(e.pos%2==0?"even":"odd")+" "+s(l,e.pos-3,"indent"),"!"==g[0].charAt(0)&&(u+=" tlv-alert-line-prefix"),function(e){var t;return(t=e.match(r,!1))&&t[2].length>0}(e)&&(u+=" "+s(l,e.pos,"before-scope-ident"));else if(l.tlvInBlockComment)e.match(/^.*?\*\//)?l.tlvInBlockComment=!1:e.skipToEnd(),u="comment";else if((g=e.match(a))&&!l.tlvInBlockComment)"//"==g[0]?e.skipToEnd():l.tlvInBlockComment=!0,u="comment";else if(g=e.match(r)){var y=g[1],b=g[2];t.hasOwnProperty(y)&&(b.length>0||e.eol())?(u=t[y],e.column()==l.indented&&(u+=" "+s(l,e.column(),"scope-ident"))):(e.backUp(e.current().length-1),u="tlv-default")}else e.match(/^\t+/)?u="tlv-tab":e.match(/^[\[\]{}\(\);\:]+/)?u="meta":(g=e.match(/^[mM]4([\+_])?[\w\d_]*/))?u="+"==g[1]?"tlv-m4-plus":"tlv-m4":e.match(/^ +/)?u=e.eol()?"error":"tlv-default":e.match(/^[\w\d_]+/)?u="number":(e.next(),u="tlv-default");v&&(u+=" tlv-statement")}else e.match(/^[mM]4([\w\d_]*)/)&&(u="tlv-m4");return u},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})}(n(23326))},41838:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(","),r=0;r<n.length;++r){var i=n[r].toUpperCase(),o=n[r].charAt(0).toUpperCase()+n[r].slice(1);t[n[r]]=!0,t[i]=!0,t[o]=!0}return t}function n(e){return e.eatWhile(/[\w\$_]/),"meta"}e.defineMode("vhdl",(function(e,r){var i,o=e.indentUnit,a=r.atoms||t("null"),s=r.hooks||{"`":n,$:n},l=r.multiLineStrings,u=t("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),c=t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),d=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;function f(e,t){var n,r=e.next();if(s[r]){var o=s[r](e,t);if(!1!==o)return o}if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(t.tokenize=f),"string-2"}),t.tokenize(e,t);if("'"==r)return t.tokenize=function(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(n.tokenize=f),"string"}}(r),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/[\d']/.test(r))return e.eatWhile(/[\w\.']/),"number";if("-"==r&&e.eat("-"))return e.skipToEnd(),"comment";if(d.test(r))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_]/);var p=e.current();return u.propertyIsEnumerable(p.toLowerCase())?(c.propertyIsEnumerable(p)&&(i="newstatement"),"keyword"):a.propertyIsEnumerable(p)?"atom":"variable"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new p((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||f)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)h(t,e.column(),"}");else if("["==i)h(t,e.column(),"]");else if("("==i)h(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=m(t);for("}"==n.type&&(n=m(t));"statement"==n.type;)n=m(t)}else i==n.type?m(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&h(t,e.column(),"statement");else m(t);return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=f&&null!=e.tokenize)return 0;var n=t&&t.charAt(0),r=e.context,i=n==r.type;return"statement"==r.type?r.indented+("{"==n?0:o):r.align?r.column+(i?0:1):r.indented+(i?0:o)},electricChars:"{}"}})),e.defineMIME("text/x-vhdl","vhdl")}(n(23326))},58568:(e,t,n)=>{!function(e){"use strict";var t,r;t=n(23326),n(19962),n(9812),n(49055),n(86386),n(98627),n(67838),n(98660),n(12904),n(42336),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}})})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},69693:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:new RegExp(["align","block","br(_if|_table|_on_(cast|data|func|i31|null))?","call(_indirect|_ref)?","current_memory","\\bdata\\b","catch(_all)?","delegate","drop","elem","else","end","export","\\bextern\\b","\\bfunc\\b","global(\\.(get|set))?","if","import","local(\\.(get|set|tee))?","loop","module","mut","nop","offset","param","result","rethrow","return(_call(_indirect|_ref)?)?","select","start","table(\\.(size|get|set|size|grow|fill|init|copy))?","then","throw","try","type","unreachable","unwind","i(32|64)\\.(store(8|16)|(load(8|16)_[su]))","i64\\.(load32_[su]|store32)","[fi](32|64)\\.(const|load|store)","f(32|64)\\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)","i(32|64)\\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)","i64\\.extend_[su]_i32","i32\\.wrap_i64","i(32|64)\\.trunc_f(32|64)_[su]","f(32|64)\\.convert_i(32|64)_[su]","f64\\.promote_f32","f32\\.demote_f64","f32\\.reinterpret_i32","i32\\.reinterpret_f32","f64\\.reinterpret_i64","i64\\.reinterpret_f64","memory(\\.((atomic\\.(notify|wait(32|64)))|grow|size))?","i64.atomic\\.(load32_u|store32|rmw32\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)","i(32|64)\\.atomic\\.(load((8|16)_u)?|store(8|16)?|rmw(\\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))","v128\\.load(8x8|16x4|32x2)_[su]","v128\\.load(8|16|32|64)_splat","v128\\.(load|store)(8|16|32|64)_lane","v128\\.load(32|64)_zero","v128.(load|store|const|not|andnot|and|or|xor|bitselect|any_true)","i(8x16|16x8)\\.(extract_lane_[su]|(add|sub)_sat_[su]|avgr_u)","i(8x16|16x8|32x4|64x2)\\.(neg|add|sub|abs|shl|shr_[su]|all_true|bitmask|eq|ne|[lg][te]_s)","(i(8x16|16x8|32x4|64x2)|f(32x4|64x2)).(splat|replace_lane)","i(8x16|16x8|32x4)\\.(([lg][te]_u)|((min|max)_[su]))","f(32x4|64x2)\\.(neg|add|sub|abs|nearest|eq|ne|[lg][te]|sqrt|mul|div|min|max|ceil|floor|trunc)","[fi](32x4|64x2)\\.extract_lane","i8x16\\.(shuffle|swizzle|popcnt|narrow_i16x8_[su])","i16x8\\.(narrow_i32x4_[su]|mul|extadd_pairwise_i8x16_[su]|q15mulr_sat_s)","i16x8\\.(extend|extmul)_(low|high)_i8x16_[su]","i32x4\\.(mul|dot_i16x8_s|trunc_sat_f64x2_[su]_zero)","i32x4\\.((extend|extmul)_(low|high)_i16x8_|trunc_sat_f32x4_|extadd_pairwise_i16x8_)[su]","i64x2\\.(mul|(extend|extmul)_(low|high)_i32x4_[su])","f32x4\\.(convert_i32x4_[su]|demote_f64x2_zero)","f64x2\\.(promote_low_f32x4|convert_low_i32x4_[su])","\\bany\\b","array\\.len","(array|struct)(\\.(new_(default_)?with_rtt|get(_[su])?|set))?","\\beq\\b","field","i31\\.(new|get_[su])","\\bnull\\b","ref(\\.(([ai]s_(data|func|i31))|cast|eq|func|(is_|as_non_)?null|test))?","rtt(\\.(canon|sub))?"].join("|")),token:"keyword"},{regex:/\b((any|data|eq|extern|i31|func)ref|[fi](32|64)|i(8|16))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")}(n(23326),n(81094))},29178:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],r=t(n),i=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],o=t(i),a=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],s=t(a),l=["true","false","Infinity","NaN","null"],u=t(l);e.registerHelper("hintWords","webidl",n.concat(i).concat(a).concat(l));var c=t(["callback","dictionary","enum","interface"]),d=t(["typedef"]),f=/^[:<=>?]/,p=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,v=/^"[^"]*"/,y=/^\/\*.*?\*\//,b=/^\/\*.*/,w=/^.*?\*\//;e.defineMode("webidl",(function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(w)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(y))return"comment";if(e.match(b))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(p)||e.match(h)))return"number";if(e.match(v))return"string";if(t.startDef&&e.match(m))return"def";if(t.endDef&&e.match(g))return t.endDef=!1,"def";if(e.match(s))return"keyword";if(e.match(o)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"variable-3"}return e.match(r)?"builtin":e.match(u)?"atom":e.match(m)?"variable":e.match(f)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=c.test(i),t.endDef=t.endDef||d.test(i)):t.startDef=!1}return n}}})),e.defineMIME("text/x-webidl","webidl")}(n(23326))},9812:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"},r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=h(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=h(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?_:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,0,n)):(a="error",w)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",x):(a="tag error",E)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",E)}function x(e,t,n){return"endTag"!=e?(a="error",x):(v(n),b)}function E(e,t,n){return a="error",x(e,0,n)}function k(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(m(r))?y(n,r):(y(n,r),n.context=new g(n,r,i==n.indented)),b}return a="error",k}function C(e,t,n){return"equals"==e?S:(l.allowMissing||(a="error"),k(e,0,n))}function S(e,t,n){return"string"==e?A:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,0,n))}function A(e,t,n){return"string"==e?A:k(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[m(i.tagName)];if(!a||!a.hasOwnProperty(m(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==S&&(e.state=k)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(23326))},58757:(e,t,n)=>{!function(e){"use strict";e.defineMode("xquery",(function(){var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a<s;a++)i[o[a]]=e(o[a]);var l=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(a=0,s=l.length;a<s;a++)i[l[a]]=n;var u=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a<s;a++)i[u[a]]=t;var c=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(a=0,s=c.length;a<s;a++)i[c[a]]=r;return i}();function t(e,t,n){return t.tokenize=n,n(e,t)}function n(d,m){var g=d.next(),v=!1,y=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(d);if("<"==g){if(d.match("!--",!0))return t(d,m,s);if(d.match("![CDATA",!1))return m.tokenize=l,"tag";if(d.match("?",!1))return t(d,m,u);var b=d.eat("/");d.eatSpace();for(var w,_="";w=d.eat(/[^\s\u00a0=<>\"\'\/?]/);)_+=w;return t(d,m,function(e,t){return function(r,i){return r.eatSpace(),t&&r.eat(">")?(h(i),i.tokenize=n,"tag"):(r.eat("/")||p(i,{type:"tag",name:e,tokenize:n}),r.eat(">")?(i.tokenize=n,"tag"):(i.tokenize=a,"tag"))}}(_,b))}if("{"==g)return p(m,{type:"codeblock"}),null;if("}"==g)return h(m),null;if(c(m))return">"==g?"tag":"/"==g&&d.eat(">")?(h(m),"tag"):"variable";if(/\d/.test(g))return d.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&d.eat(":"))return p(m,{type:"comment"}),t(d,m,r);if(y||'"'!==g&&"'"!==g){if("$"===g)return t(d,m,o);if(":"===g&&d.eat("="))return"keyword";if("("===g)return p(m,{type:"paren"}),null;if(")"===g)return h(m),null;if("["===g)return p(m,{type:"bracket"}),null;if("]"===g)return h(m),null;var x=e.propertyIsEnumerable(g)&&e[g];if(y&&'"'===g)for(;'"'!==d.next(););if(y&&"'"===g)for(;"'"!==d.next(););x||d.eatWhile(/[\w\$_-]/);var E=d.eat(":");!d.eat(":")&&E&&d.eatWhile(/[\w\$_-]/),d.match(/^[ \t]*\(/,!1)&&(v=!0);var k=d.current();return x=e.propertyIsEnumerable(k)&&e[k],v&&!x&&(x={type:"function_call",style:"variable def"}),function(e){return f(e,"xmlconstructor")}(m)?(h(m),"variable"):("element"!=k&&"attribute"!=k&&"axis_specifier"!=x.type||p(m,{type:"xmlconstructor"}),x?x.style:"variable")}return t(d,m,i(g))}function r(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){h(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function i(e,t){return function(r,o){var a;if(function(e){return f(e,"string")}(o)&&r.current()==e)return h(o),t&&(o.tokenize=t),"string";if(p(o,{type:"string",name:e,tokenize:i(e,t)}),r.match("{",!1)&&d(o))return o.tokenize=n,"string";for(;a=r.next();){if(a==e){h(o),t&&(o.tokenize=t);break}if(r.match("{",!1)&&d(o))return o.tokenize=n,"string"}return"string"}}function o(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function a(e,r){var o=e.next();return"/"==o&&e.eat(">")?(d(r)&&h(r),c(r)&&h(r),"tag"):">"==o?(d(r)&&h(r),"tag"):"="==o?null:'"'==o||"'"==o?t(e,r,i(o,a)):(d(r)||p(r,{type:"attribute",tokenize:a}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(h(r),r.tokenize=n),"attribute")}function s(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function l(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"comment meta"}function c(e){return f(e,"tag")}function d(e){return f(e,"attribute")}function f(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function p(e,t){e.stack.push(t)}function h(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}return{startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(:",blockCommentEnd:":)"}})),e.defineMIME("application/xquery","xquery")}(n(23326))},82644:(e,t,n)=>{!function(e){"use strict";e.defineMode("yacas",(function(t,n){var r=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),i="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",o=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),a=new RegExp(i),s=new RegExp(i+"?_"+i),l=new RegExp(i+"\\s*\\(");function u(e,t){var n;if('"'===(n=e.next()))return t.tokenize=c,t.tokenize(e,t);if("/"===n){if(e.eat("*"))return t.tokenize=d,t.tokenize(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var i=e.match(/^(\w+)\s*\(/,!1);null!==i&&r.hasOwnProperty(i[1])&&t.scopes.push("bodied");var u=f(t);if("bodied"===u&&"["===n&&t.scopes.pop(),"["!==n&&"{"!==n&&"("!==n||t.scopes.push(n),("["===(u=f(t))&&"]"===n||"{"===u&&"}"===n||"("===u&&")"===n)&&t.scopes.pop(),";"===n)for(;"bodied"===u;)t.scopes.pop(),u=f(t);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(o,!0,!1)?"number":e.match(s,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(l,!0,!1)?(e.backUp(1),"variable"):e.match(a,!0,!1)?"variable-2":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}return{startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(n,r){if(n.tokenize!==u&&null!==n.tokenize)return e.Pass;var i=0;return"]"!==r&&"];"!==r&&"}"!==r&&"};"!==r&&");"!==r||(i=-1),(n.scopes.length+i)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-yacas",{name:"yacas"})}(n(23326))},19515:(e,t,n)=>{var r;r=n(23326),n(35306),r.defineMode("yaml-frontmatter",(function(e,t){var n=r.getMode(e,"yaml"),i=r.getMode(e,t&&t.base||"gfm");function o(e){return 1==e.state?{mode:n,state:e.yaml}:{mode:i,state:e.inner}}return{startState:function(){return{state:0,yaml:null,inner:r.startState(i)}},copyState:function(e){return{state:e.state,yaml:e.yaml&&r.copyState(n,e.yaml),inner:r.copyState(i,e.inner)}},token:function(e,t){if(0==t.state)return e.match("---",!1)?(t.state=1,t.yaml=r.startState(n),n.token(e,t.yaml)):(t.state=2,i.token(e,t.inner));if(1==t.state){var o=e.sol()&&e.match(/(---|\.\.\.)/,!1),a=n.token(e,t.yaml);return o&&(t.state=2,t.yaml=null),a}return i.token(e,t.inner)},innerMode:o,indent:function(e,t,n){var i=o(e);return i.mode.indent?i.mode.indent(i.state,t,n):r.Pass},blankLine:function(e){var t=o(e);if(t.mode.blankLine)return t.mode.blankLine(t.state)}}}))},35306:(e,t,n)=>{!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(23326))},76215:(e,t,n)=>{!function(e){"use strict";e.defineMode("z80",(function(e,t){var n,r,i=t.ez80;i?(n=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(n=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var o=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,a=/^(n?[zc]|p[oe]?|m)\b/i,s=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,l=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var u;if(e.eatWhile(/\w/)){if(i&&e.eat(".")&&e.eatWhile(/\w/),u=e.current(),!e.indentation())return e.match(l)?"number":null;if((1==t.context||4==t.context)&&o.test(u))return t.context=4,"var2";if(2==t.context&&a.test(u))return t.context=4,"var3";if(n.test(u))return t.context=1,"keyword";if(r.test(u))return t.context=2,"keyword";if(4==t.context&&l.test(u))return"number";if(s.test(u))return"error"}else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(u=e.next())&&'"'!=u;)"\\"==u&&e.next();return"string"}if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}})),e.defineMIME("text/x-z80","z80"),e.defineMIME("text/x-ez80",{name:"z80",ez80:!0})}(n(23326))},52106:(e,t,n)=>{var r={"./apl/apl.js":66317,"./asciiarmor/asciiarmor.js":64617,"./asn.1/asn.1.js":34474,"./asterisk/asterisk.js":94147,"./brainfuck/brainfuck.js":91352,"./clike/clike.js":80011,"./clojure/clojure.js":3463,"./cmake/cmake.js":26055,"./cobol/cobol.js":25619,"./coffeescript/coffeescript.js":86386,"./commonlisp/commonlisp.js":98824,"./crystal/crystal.js":67400,"./css/css.js":98627,"./cypher/cypher.js":28320,"./d/d.js":76184,"./dart/dart.js":31061,"./diff/diff.js":16357,"./django/django.js":51872,"./dockerfile/dockerfile.js":72694,"./dtd/dtd.js":39974,"./dylan/dylan.js":49024,"./ebnf/ebnf.js":5807,"./ecl/ecl.js":53002,"./eiffel/eiffel.js":57921,"./elm/elm.js":12589,"./erlang/erlang.js":93710,"./factor/factor.js":20601,"./fcl/fcl.js":5801,"./forth/forth.js":45729,"./fortran/fortran.js":81640,"./gas/gas.js":37471,"./gfm/gfm.js":48239,"./gherkin/gherkin.js":41028,"./go/go.js":68459,"./groovy/groovy.js":36275,"./haml/haml.js":88099,"./handlebars/handlebars.js":42336,"./haskell-literate/haskell-literate.js":93476,"./haskell/haskell.js":88216,"./haxe/haxe.js":45930,"./htmlembedded/htmlembedded.js":39119,"./htmlmixed/htmlmixed.js":38425,"./http/http.js":58527,"./idl/idl.js":91017,"./javascript/javascript.js":49055,"./jinja2/jinja2.js":81032,"./jsx/jsx.js":27968,"./julia/julia.js":38519,"./livescript/livescript.js":70688,"./lua/lua.js":41574,"./markdown/markdown.js":48033,"./mathematica/mathematica.js":87448,"./mbox/mbox.js":80704,"./mirc/mirc.js":13038,"./mllike/mllike.js":65994,"./modelica/modelica.js":51755,"./mscgen/mscgen.js":88907,"./mumps/mumps.js":81482,"./nginx/nginx.js":77549,"./nsis/nsis.js":13939,"./ntriples/ntriples.js":53921,"./octave/octave.js":55118,"./oz/oz.js":46768,"./pascal/pascal.js":44199,"./pegjs/pegjs.js":6575,"./perl/perl.js":82193,"./php/php.js":98800,"./pig/pig.js":20997,"./powershell/powershell.js":50261,"./properties/properties.js":16557,"./protobuf/protobuf.js":38487,"./pug/pug.js":12904,"./puppet/puppet.js":47912,"./python/python.js":56141,"./q/q.js":68106,"./r/r.js":32848,"./rpm/rpm.js":87660,"./rst/rst.js":93315,"./ruby/ruby.js":53019,"./rust/rust.js":56987,"./sas/sas.js":17547,"./sass/sass.js":67838,"./scheme/scheme.js":84169,"./shell/shell.js":25397,"./sieve/sieve.js":84712,"./slim/slim.js":1051,"./smalltalk/smalltalk.js":57434,"./smarty/smarty.js":69595,"./solr/solr.js":83172,"./soy/soy.js":34785,"./sparql/sparql.js":16683,"./spreadsheet/spreadsheet.js":77977,"./sql/sql.js":14149,"./stex/stex.js":38234,"./stylus/stylus.js":98660,"./swift/swift.js":93251,"./tcl/tcl.js":27220,"./textile/textile.js":17028,"./tiddlywiki/tiddlywiki.js":2362,"./tiki/tiki.js":19750,"./toml/toml.js":218,"./tornado/tornado.js":87815,"./troff/troff.js":40957,"./ttcn-cfg/ttcn-cfg.js":78175,"./ttcn/ttcn.js":95655,"./turtle/turtle.js":42944,"./twig/twig.js":21649,"./vb/vb.js":35053,"./vbscript/vbscript.js":29048,"./velocity/velocity.js":8989,"./verilog/verilog.js":24454,"./vhdl/vhdl.js":41838,"./vue/vue.js":58568,"./wast/wast.js":69693,"./webidl/webidl.js":29178,"./xml/xml.js":9812,"./xquery/xquery.js":58757,"./yacas/yacas.js":82644,"./yaml-frontmatter/yaml-frontmatter.js":19515,"./yaml/yaml.js":35306,"./z80/z80.js":76215};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=52106},38925:e=>{"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},97327:(e,t)=>{"use strict";t.parse=function(e){for(var t,r=[],o=String(e||i),a=o.indexOf(n),s=0,l=!1;!l;)-1===a&&(a=o.length,l=!0),!(t=o.slice(s,a).trim())&&l||r.push(t),s=a+1,a=o.indexOf(n,s);return r},t.stringify=function(e,t){var o=t||{},a=!1===o.padLeft?i:r,s=o.padRight?r:i;return e[e.length-1]===i&&(e=e.concat(i)),e.join(s+n+a).trim()};var n=",",r=" ",i=""},13856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TemplateTag:()=>l,codeBlock:()=>x,commaLists:()=>b,commaListsAnd:()=>w,commaListsOr:()=>_,html:()=>x,inlineArrayTransformer:()=>m,inlineLists:()=>O,oneLine:()=>k,oneLineCommaLists:()=>S,oneLineCommaListsAnd:()=>T,oneLineCommaListsOr:()=>A,oneLineInlineLists:()=>P,oneLineTrim:()=>C,removeNonPrintingValuesTransformer:()=>y,replaceResultTransformer:()=>d,replaceStringTransformer:()=>p,replaceSubstitutionTransformer:()=>f,safeHtml:()=>E,source:()=>x,splitStringTransformer:()=>g,stripIndent:()=>R,stripIndentTransformer:()=>c,stripIndents:()=>M,trimResultTransformer:()=>u});var r,i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=["",""],i=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}}))),s=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return o(e,[{key:"interimTag",value: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 this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce((function(e,t){return t.onString?t.onString(e):e}),e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce((function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e}),e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce((function(e,t){return t.onEndResult?t.onEndResult(e):e}),e)}}]),e}();const l=s,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map((function(e){return e.length}))));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},d=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},f=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},p=function(e,t){return{onString:function(n){if(null==e||null==t)throw new Error("replaceStringTransformer requires at least 2 arguments.");return n.replace(e,t)}}};var h={separator:"",conjunction:"",serial:!1};const m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},g=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var v=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};const y=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(v):v(e)?e:""}}},b=new l(m({separator:","}),c,u),w=new l(m({separator:",",conjunction:"and"}),c,u),_=new l(m({separator:",",conjunction:"or"}),c,u),x=new l(g("\n"),y,m,c,u),E=new l(g("\n"),m,c,u,f(/&/g,"&"),f(/</g,"<"),f(/>/g,">"),f(/"/g,"""),f(/'/g,"'"),f(/`/g,"`")),k=new l(d(/(?:\n(?:\s*))+/g," "),u),C=new l(d(/(?:\n\s*)/g,""),u),S=new l(m({separator:","}),d(/(?:\s+)/g," "),u),A=new l(m({separator:",",conjunction:"or"}),d(/(?:\s+)/g," "),u),T=new l(m({separator:",",conjunction:"and"}),d(/(?:\s+)/g," "),u),O=new l(m,c,u),P=new l(m,d(/(?:\s+)/g," "),u),R=new l(c,u),M=new l(c("all"),u)},64114:e=>{e.exports=function(e,n){for(var r=[],i=0;i<e.length;i++){var o=n(e[i],i);t(o)?r.push.apply(r,o):r.push(o)}return r};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},29764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(40272),i=n.n(r),o=n(82609),a=n.n(o)()(i());a.push([e.id,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n","",{version:3,sources:["webpack://./../../node_modules/codemirror/lib/codemirror.css"],names:[],mappings:"AAAA,WAAW;;AAEX;EACE,gEAAgE;EAChE,sBAAsB;EACtB,aAAa;EACb,YAAY;EACZ,cAAc;AAChB;;AAEA,YAAY;;AAEZ;EACE,cAAc,EAAE,oCAAoC;AACtD;AACA;;EAEE,cAAc,EAAE,kCAAkC;AACpD;;AAEA;EACE,uBAAuB,EAAE,iDAAiD;AAC5E;;AAEA,WAAW;;AAEX;EACE,4BAA4B;EAC5B,yBAAyB;EACzB,mBAAmB;AACrB;AACA,yBAAyB;AACzB;EACE,oBAAoB;EACpB,eAAe;EACf,iBAAiB;EACjB,WAAW;EACX,mBAAmB;AACrB;;AAEA,2BAA2B,YAAY,EAAE;AACzC,kCAAkC,WAAW,EAAE;;AAE/C,WAAW;;AAEX;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,QAAQ;AACV;AACA,6CAA6C;AAC7C;EACE,6BAA6B;AAC/B;AACA;EACE,WAAW;EACX,oBAAoB;EACpB,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;;2DAE2D,uBAAuB,EAAE;AACpF;;gEAEgE,uBAAuB,EAAE;AACzF,iBAAiB,wBAAwB,EAAE;AAC3C;EACE,IAAI;EACJ,MAAM,6BAA6B,EAAE;EACrC,MAAM;AACR;AACA;EACE,IAAI;EACJ,MAAM,6BAA6B,EAAE;EACrC,MAAM;AACR;AACA;EACE,IAAI;EACJ,MAAM,6BAA6B,EAAE;EACrC,MAAM;AACR;;AAEA,8DAA8D;AAC9D,0CAA0C;;AAE1C,UAAU,qBAAqB,EAAE,wBAAwB,EAAE;;AAE3D;EACE,kBAAkB;EAClB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS;EACxC,gBAAgB;AAClB;AACA;EACE,2BAA2B;EAC3B,MAAM,EAAE,SAAS;EACjB,kBAAkB;AACpB;;AAEA,kBAAkB;;AAElB,0BAA0B,WAAW,CAAC;AACtC,yBAAyB,WAAW,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,wBAAwB,iBAAiB,CAAC;AAC1C,QAAQ,kBAAkB,CAAC;AAC3B,UAAU,0BAA0B,CAAC;AACrC,mBAAmB,6BAA6B,CAAC;;AAEjD,2BAA2B,WAAW,CAAC;AACvC,wBAAwB,WAAW,CAAC;AACpC,0BAA0B,WAAW,CAAC;AACtC,uBAAuB,WAAW,CAAC;AACnC;;;4BAG4B;AAC5B,8BAA8B,WAAW,CAAC;AAC1C,sDAAsD,WAAW,CAAC;AAClE,2BAA2B,WAAW,CAAC;AACvC,0BAA0B,WAAW,CAAC;AACtC,4BAA4B,WAAW,CAAC;AACxC,wBAAwB,WAAW,CAAC;AACpC,6BAA6B,WAAW,CAAC;AACzC,2BAA2B,WAAW,CAAC;AACvC,2BAA2B,WAAW,CAAC;AACvC,uBAAuB,WAAW,CAAC;AACnC,6BAA6B,WAAW,CAAC;AACzC,sBAAsB,WAAW,CAAC;AAClC,wBAAwB,WAAW,CAAC;;AAEpC,yBAAyB,WAAW,CAAC;AACrC,iBAAiB,WAAW,CAAC;;AAE7B,wBAAwB,wBAAwB,EAAE;;AAElD,qCAAqC;;AAErC,gDAAgD,WAAW,CAAC;AAC5D,mDAAmD,WAAW,CAAC;AAC/D,0BAA0B,iCAAiC,EAAE;AAC7D,mCAAmC,mBAAmB,CAAC;;AAEvD,SAAS;;AAET;mDACmD;;AAEnD;EACE,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,2BAA2B,EAAE,4CAA4C;EACzE,wEAAwE;EACxE,wCAAwC;EACxC,oBAAoB,EAAE,mBAAmB;EACzC,oBAAoB;EACpB,YAAY;EACZ,aAAa,EAAE,mDAAmD;EAClE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,oCAAoC;AACtC;;AAEA;;0BAE0B;AAC1B;EACE,kBAAkB;EAClB,UAAU;EACV,aAAa;EACb,aAAa;AACf;AACA;EACE,QAAQ,EAAE,MAAM;EAChB,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,SAAS,EAAE,OAAO;EAClB,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,QAAQ,EAAE,SAAS;AACrB;AACA;EACE,OAAO,EAAE,SAAS;AACpB;;AAEA;EACE,kBAAkB,EAAE,OAAO,EAAE,MAAM;EACnC,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,YAAY;EACZ,qBAAqB;EACrB,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,2BAA2B;EAC3B,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,MAAM,EAAE,SAAS;EACjB,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,UAAU;AACZ;AACA,yCAAyC,8BAA8B;AACvE,8CAA8C,8BAA8B;;AAE5E;EACE,YAAY;EACZ,eAAe,EAAE,0CAA0C;AAC7D;AACA;;EAEE,+DAA+D;EAC/D,qBAAqB,EAAE,wBAAwB,EAAE,gBAAgB;EACjE,eAAe;EACf,uBAAuB;EACvB,oBAAoB;EACpB,kBAAkB;EAClB,SAAS;EACT,gBAAgB;EAChB,iBAAiB;EACjB,oBAAoB;EACpB,cAAc;EACd,UAAU;EACV,kBAAkB;EAClB,iBAAiB;EACjB,wCAAwC;EACxC,0CAA0C;EAC1C,kCAAkC;AACpC;AACA;;EAEE,qBAAqB;EACrB,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS;EACpC,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,cAAc,EAAE,yDAAyD;AAC3E;;AAEA,oBAAoB;;AAEpB,sBAAsB,cAAc,EAAE;;AAEtC;EACE,aAAa;AACf;;AAEA,iEAAiE;AACjE;;;;;EAKE,4BAA4B;EAC5B,uBAAuB;AACzB;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,SAAS;EACT,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA,0BAA0B,gBAAgB,EAAE;;AAE5C;EACE,kBAAkB;EAClB,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;;AAEA,uBAAuB,mBAAmB,EAAE;AAC5C,2CAA2C,mBAAmB,EAAE;AAChE,wBAAwB,iBAAiB,EAAE;AAC3C,6GAA6G,mBAAmB,EAAE;AAClI,4HAA4H,mBAAmB,EAAE;;AAEjJ;EACE,sBAAsB;EACtB,uCAAuC;AACzC;;AAEA,4CAA4C;AAC5C,mBAAmB,mBAAmB,EAAE;;AAExC;EACE,kCAAkC;EAClC;IACE,kBAAkB;EACpB;AACF;;AAEA,oBAAoB;AACpB,0BAA0B,WAAW,EAAE;;AAEvC,iEAAiE;AACjE,+BAA+B,gBAAgB,EAAE",sourcesContent:["/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n"],sourceRoot:""}]);const s=a},19467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(40272),i=n.n(r),o=n(82609),a=n.n(o)()(i());a.push([e.id,"/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n","",{version:3,sources:["webpack://./../../node_modules/codemirror/theme/material.css"],names:[],mappings:"AAAA;;;;CAIC;;AAED;EACE,yBAAyB;EACzB,cAAc;AAChB;;AAEA;EACE,mBAAmB;EACnB,cAAc;EACd,YAAY;AACd;;AAEA;;;EAGE,cAAc;AAChB;;AAEA;EACE,8BAA8B;AAChC;AACA;EACE,sCAAsC;AACxC;AACA;EACE,sCAAsC;AACxC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;;;EAGE,oCAAoC;AACtC;;AAEA;;;EAGE,oCAAoC;AACtC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,cAAc;AAChB;;;AAGA;EACE,+BAA+B;EAC/B,yBAAyB;AAC3B;;AAEA;EACE,0BAA0B;EAC1B,uBAAuB;AACzB",sourcesContent:["/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n"],sourceRoot:""}]);const s=a},61077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(40272),i=n.n(r),o=n(82609),a=n.n(o)()(i());a.push([e.id,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-singlebar-even{\n background-color: #000000;\n}\n.ol-scale-singlebar-odd{\n background-color: #ffffff;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',"",{version:3,sources:["webpack://./../../node_modules/ol/ol.css"],names:[],mappings:"AAAA;EACE,sBAAsB;EACtB,kBAAkB;EAClB,oCAAoC;EACpC,uCAAuC;AACzC;;AAEA;EACE,QAAQ;EACR,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,WAAW;EACX,SAAS;EACT,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,WAAW;EACX,4BAA4B;EAC5B,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,SAAS;AACX;AACA;EACE,UAAU;EACV,YAAY;EACZ,yBAAyB;EACzB,YAAY;EACZ,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,eAAe;EACf,WAAW;EACX,cAAc;EACd,yEAAyE;AAC3E;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,yEAAyE;AAC3E;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,UAAU;EACV,sBAAsB;EACtB,uBAAuB;AACzB;;AAEA;EACE,aAAa;AACf;AACA;EACE,2BAA2B;EAC3B,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,iBAAiB;EACjB,0CAA0C;AAC5C;AACA;EACE,UAAU;AACZ;AACA;EACE,8BAA8B;EAC9B,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,oBAAoB;EACpB,iBAAiB;EACjB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,uCAAuC;EACvC,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,uCAAuC;AACzC;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;EACE,SAAS;EACT,WAAW;EACX,qDAAqD;AACvD;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,0DAA0D;AAC5D;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;;AAEA;EACE,cAAc;EACd,WAAW;EACX,UAAU;EACV,YAAY;EACZ,iBAAiB;EACjB,qBAAqB;EACrB,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,iBAAiB;EACjB,oCAAoC;EACpC,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,gBAAgB;EAChB,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,qBAAqB;EACrB,oCAAoC;AACtC;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;;;AAGA;EACE,iBAAiB;EACjB,YAAY;EACZ,WAAW;EACX,6BAA6B;EAC7B,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,SAAS;EACT,iBAAiB;EACjB,WAAW;EACX,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,iCAAiC;AACnC;AACA;EACE,SAAS;EACT,QAAQ;EACR,sBAAsB;AACxB;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;;AAEA;EACE,UAAU;EACV,UAAU;EACV,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,YAAY;AACd;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,aAAa;AACf;AACA;EACE,SAAS;EACT,OAAO;EACP,wBAAwB;AAC1B;AACA;;EAEE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,aAAa;EACb,WAAW;EACX,YAAY;AACd;AACA;EACE,WAAW;EACX,SAAS;EACT,kBAAkB;AACpB;AACA;;EAEE,aAAa;AACf;AACA;EACE,iCAAiC;AACnC;AACA;EACE,qCAAqC;AACvC;;AAEA;EACE,YAAY;AACd",sourcesContent:['.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-singlebar-even{\n background-color: #000000;\n}\n.ol-scale-singlebar-odd{\n background-color: #ffffff;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n'],sourceRoot:""}]);const s=a},82609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},40272:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},28879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",l="month",u="quarter",c="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:d,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[w])},x=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},E=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=v;k.l=x,k.i=_,k.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return E(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<E(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!k.u(t)||t,f=k.p(e),p=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case c:return u?p(1,0):p(31,11);case l:return u?p(1,g):p(0,g+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(u?v-w:v+(6-w),g);case a:case d:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,u=k.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[c]=f+"FullYear",s[o]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(n,u){var d,f=this;n=Number(n);var p=k.p(u),h=function(e){var t=E(f);return k.w(t.date(t.date()+Math.round(e*n)),f)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var m=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},p=function(e){return k.s(o%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=this,m=k.p(d),g=E(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return k.m(h,g)};switch(m){case c:p=b()/12;break;case l:p=b();break;case u:p=b()/3;break;case s:p=(y-v)/6048e5;break;case a:p=(y-v)/864e5;break;case o:p=y/t;break;case i:p=y/e;break;case r:p=y/1e3;break;default:p=y}return f?p:k.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=C.prototype;return E.prototype=S,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",l],["$y",c],["$D",d]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,C,E),e.$i=!0),E},E.locale=x,E.isDayjs=_,E.unix=function(e){return E(1e3*e)},E.en=b[y],E.Ls=b,E.p={},E}()},89945:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=d[u],f=c&&c[0],p=c&&c[1];a[l]=p?{regex:f,parser:p}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,u=e.slice(r),c=o.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],u=!0===a[3],c=l||u,d=a[2];u&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=u||0,w=c||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},33147:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},10264:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},39714:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},75195:(e,t,n)=>{"use strict";var r=n(70999),i=n(48342),o=n(5408),a=n(50326);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},14926:(e,t,n)=>{"use strict";var r=n(33464),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(75195),l=n(81181)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};c.supportsDescriptors=!!l,e.exports=c},17994:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o,a,s=t||4,l=[],u=0,c=0,d=-1;if("string"!=typeof e)throw new Error("detab expected string");for(;c<e.length;)i.lastIndex=c,a=(o=i.exec(e))?o.index:e.length,9===e.charCodeAt(a)?(n=s-(d+a-c+1)%s,l.push(e.slice(u,a),r(" ",n)),d+=a-c+n,u=a+1):d=-1,c=a+1;return l.push(e.slice(u)),l.join("")};var r=n(34076),i=/[\t\n\r]/g},63449:(e,t)=>{t.remove=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return r[e]||e}))};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r={},i=0;i<n.length;i+=1)for(var o=n[i].chars,a=0;a<o.length;a+=1)r[o[a]]=n[i].base;t.replacementList=n,t.diacriticsMap=r},93636:e=>{"use strict";e.exports=function(e){return e=String(e||""),r.test(e)?"rtl":i.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",r=new RegExp("^[^"+n+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+n+"]")},35368:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,i){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.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)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,c=Object.freeze,d=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,h=p.apply,m=p.construct;h||(h=function(e,t,n){return e.apply(t,n)}),c||(c=function(e){return e}),d||(d=function(e){return e}),m||(m=function(e,t){return n(e,r(t))});var g,v=T(Array.prototype.forEach),y=T(Array.prototype.pop),b=T(Array.prototype.push),w=T(String.prototype.toLowerCase),_=T(String.prototype.toString),x=T(String.prototype.match),E=T(String.prototype.replace),k=T(String.prototype.indexOf),C=T(String.prototype.trim),S=T(RegExp.prototype.test),A=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(g,t)});function T(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h(e,t,r)}}function O(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:w,a&&a(e,null);for(var i=t.length;i--;){var o=t[i];if("string"==typeof o){var l=n(o);l!==o&&(s(t)||(t[i]=l),o=l)}e[o]=!0}return e}function P(e){var t,n=f(null);for(t in e)!0===h(o,e,[t])&&(n[t]=e[t]);return n}function R(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var M=c(["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","section","select","shadow","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"]),D=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=c(["animate","color-profile","cursor","discard","fedropshadow","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"]),j=c(["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"]),N=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=c(["#text"]),B=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=c(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),z=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),q=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=d(/<%[\w\W]*|[\w\W]*%>/gm),H=d(/\${[\w\W]*}/gm),G=d(/^data-[\-\w.\u00B7-\uFFFF]/),V=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),Y=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),i=function(e){return t(e)};if(i.version="2.4.7",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,u=n.Node,d=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,T=n.trustedTypes,J=d.prototype,ee=R(J,"cloneNode"),te=R(J,"nextSibling"),ne=R(J,"childNodes"),re=R(J,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var oe=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(T,o),ae=oe?oe.createHTML(""):"",se=a,le=se.implementation,ue=se.createNodeIterator,ce=se.createDocumentFragment,de=se.getElementsByTagName,fe=o.importNode,pe={};try{pe=P(a).documentMode?a.documentMode:{}}catch(e){}var he={};i.isSupported="function"==typeof re&&le&&void 0!==le.createHTMLDocument&&9!==pe;var me,ge,ve=W,ye=$,be=H,we=G,_e=V,xe=Z,Ee=Y,ke=K,Ce=null,Se=O({},[].concat(r(M),r(D),r(I),r(j),r(F))),Ae=null,Te=O({},[].concat(r(B),r(U),r(z),r(q))),Oe=Object.seal(Object.create(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}})),Pe=null,Re=null,Me=!0,De=!0,Ie=!1,Le=!0,je=!1,Ne=!1,Fe=!1,Be=!1,Ue=!1,ze=!1,qe=!1,We=!0,$e=!1,He=!0,Ge=!1,Ve={},Ke=null,Ze=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,Xe=O({},["audio","video","img","source","image","track"]),Qe=null,Je=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,it=!1,ot=null,at=O({},[et,tt,nt],_),st=["application/xhtml+xml","text/html"],lt=null,ut=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){lt&<===t||(t&&"object"===e(t)||(t={}),t=P(t),me=me=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===me?_:w,Ce="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,ge):Se,Ae="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,ge):Te,ot="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,_):at,Qe="ADD_URI_SAFE_ATTR"in t?O(P(Je),t.ADD_URI_SAFE_ATTR,ge):Je,Ye="ADD_DATA_URI_TAGS"in t?O(P(Xe),t.ADD_DATA_URI_TAGS,ge):Xe,Ke="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,ge):Ze,Pe="FORBID_TAGS"in t?O({},t.FORBID_TAGS,ge):{},Re="FORBID_ATTR"in t?O({},t.FORBID_ATTR,ge):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,je=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Ue=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,$e=t.SANITIZE_NAMED_PROPS||!1,He=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,rt=t.NAMESPACE||nt,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(De=!1),ze&&(Ue=!0),Ve&&(Ce=O({},r(F)),Ae=[],!0===Ve.html&&(O(Ce,M),O(Ae,B)),!0===Ve.svg&&(O(Ce,D),O(Ae,U),O(Ae,q)),!0===Ve.svgFilters&&(O(Ce,I),O(Ae,U),O(Ae,q)),!0===Ve.mathMl&&(O(Ce,j),O(Ae,z),O(Ae,q))),t.ADD_TAGS&&(Ce===Se&&(Ce=P(Ce)),O(Ce,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Ae===Te&&(Ae=P(Ae)),O(Ae,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&O(Qe,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ke===Ze&&(Ke=P(Ke)),O(Ke,t.FORBID_CONTENTS,ge)),He&&(Ce["#text"]=!0),Ne&&O(Ce,["html","head","body"]),Ce.table&&(O(Ce,["tbody"]),delete Pe.tbody),c&&c(t),lt=t)},ft=O({},["mi","mo","mn","ms","mtext"]),pt=O({},["foreignobject","desc","title","annotation-xml"]),ht=O({},["title","style","font","a","script"]),mt=O({},D);O(mt,I),O(mt,L);var gt=O({},j);O(gt,N);var vt=function(e){b(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},yt=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Ue||ze)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t,n;if(Be)e="<remove></remove>"+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(rt===nt)try{t=(new g).parseFromString(i,me)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(rt,"template",null);try{t.documentElement.innerHTML=it?ae:i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),rt===nt?de.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:o},wt=function(e){return ue.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},_t=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,n){he[e]&&v(he[e],(function(e){e.call(i,t,n,lt)}))},Et=function(e){var t,n;if(xt("beforeSanitizeElements",e,null),(n=e)instanceof m&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof h)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return vt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var r=ge(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===r&&S(/<template/i,e.innerHTML))return vt(e),!0;if(!Ce[r]||Pe[r]){if(!Pe[r]&&Ct(r)){if(Oe.tagNameCheck instanceof RegExp&&S(Oe.tagNameCheck,r))return!1;if(Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(r))return!1}if(He&&!Ke[r]){var o=re(e)||e.parentNode,a=ne(e)||e.childNodes;if(a&&o)for(var s=a.length-1;s>=0;--s)o.insertBefore(ee(a[s],!0),te(e))}return vt(e),!0}return e instanceof d&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||ft[r]):Boolean(mt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&pt[r]:Boolean(gt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!pt[r])&&!(t.namespaceURI===et&&!ft[r])&&!gt[n]&&(ht[n]||!mt[n]):!("application/xhtml+xml"!==me||!ot[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(je&&3===e.nodeType&&(t=e.textContent,t=E(t,ve," "),t=E(t,ye," "),t=E(t,be," "),e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(vt(e),!0)},kt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in a||n in ut))return!1;if(De&&!Re[t]&&S(we,t));else if(Me&&S(_e,t));else if(!Ae[t]||Re[t]){if(!(Ct(e)&&(Oe.tagNameCheck instanceof RegExp&&S(Oe.tagNameCheck,e)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(e))&&(Oe.attributeNameCheck instanceof RegExp&&S(Oe.attributeNameCheck,t)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(t))||"is"===t&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&S(Oe.tagNameCheck,n)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))))return!1}else if(Qe[t]);else if(S(ke,E(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ye[e])if(Ie&&!S(xe,E(n,Ee,"")));else if(n)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},St=function(t){var n,r,o,a;xt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(a=s.length;a--;){var u=n=s[a],c=u.name,d=u.namespaceURI;if(r="value"===c?n.value:C(n.value),o=ge(c),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(yt(c,t),l.keepAttr))if(Le||!S(/\/>/i,r)){je&&(r=E(r,ve," "),r=E(r,ye," "),r=E(r,be," "));var f=ge(t.nodeName);if(kt(f,o,r)){if(!$e||"id"!==o&&"name"!==o||(yt(c,t),r="user-content-"+r),oe&&"object"===e(T)&&"function"==typeof T.getAttributeType)if(d);else switch(T.getAttributeType(f,o)){case"TrustedHTML":r=oe.createHTML(r);break;case"TrustedScriptURL":r=oe.createScriptURL(r)}try{d?t.setAttributeNS(d,c,r):t.setAttribute(c,r),y(i.removed)}catch(e){}}}else yt(c,t)}xt("afterSanitizeAttributes",t,null)}},At=function e(t){var n,r=wt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof s&&e(n.content),St(n));xt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(t){var r,a,l,c,d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_t(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!i.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(_t(t))return n.toStaticHTML(t.outerHTML)}return t}if(Fe||dt(f),i.removed=[],"string"==typeof t&&(Ge=!1),Ge){if(t.nodeName){var p=ge(t.nodeName);if(!Ce[p]||Pe[p])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(a=(r=bt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Ue&&!je&&!Ne&&-1===t.indexOf("<"))return oe&&qe?oe.createHTML(t):t;if(!(r=bt(t)))return Ue?null:qe?ae:""}r&&Be&&vt(r.firstChild);for(var h=wt(Ge?t:r);l=h.nextNode();)3===l.nodeType&&l===c||Et(l)||(l.content instanceof s&&At(l.content),St(l),c=l);if(c=null,Ge)return t;if(Ue){if(ze)for(d=ce.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return(Ae.shadowroot||Ae.shadowrootmod)&&(d=fe.call(o,d,!0)),d}var m=Ne?r.outerHTML:r.innerHTML;return Ne&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(X,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),je&&(m=E(m,ve," "),m=E(m,ye," "),m=E(m,be," ")),oe&&qe?oe.createHTML(m):m},i.setConfig=function(e){dt(e),Fe=!0},i.clearConfig=function(){lt=null,Fe=!1},i.isValidAttribute=function(e,t,n){lt||dt({});var r=ge(e),i=ge(t);return kt(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],b(he[e],t))},i.removeHook=function(e){if(he[e])return y(he[e])},i.removeHooks=function(e){he[e]&&(he[e]=[])},i.removeAllHooks=function(){he={}},i}()}()},70999:(e,t,n)=>{"use strict";var r=n(67286)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},69654:e=>{"use strict";e.exports=EvalError},42321:e=>{"use strict";e.exports=Error},48205:e=>{"use strict";e.exports=RangeError},2976:e=>{"use strict";e.exports=ReferenceError},48342:e=>{"use strict";e.exports=SyntaxError},5408:e=>{"use strict";e.exports=TypeError},82885:e=>{"use strict";e.exports=URIError},42977:(e,t,n)=>{"use strict";var r=n(5408);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},22699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},85978:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},24401:(e,t,n)=>{"use strict";var r=n(22777);function i(e,t){for(var n in t)o(t,n)&&(e[n]=t[n])}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){r(e)||(e={});for(var t=arguments.length,n=1;n<t;n++){var o=arguments[n];r(o)&&i(e,o)}return e}},49385:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},69378:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},85695:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<l.length;n++){var u=l[n],c=e(t[u]);c&&(a&&(a+=","),a+=JSON.stringify(u)+":"+c)}return o.splice(s,1),"{"+a+"}"}}(e)}},56297:e=>{function t(e){var t,n,r=(e=e||{}).keybindings||{};for(t in this._settings={keybindings:{next:r.next||{keyCode:40},prev:r.prev||{keyCode:38},first:r.first,last:r.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[],this._settings.keybindings)(n=this._settings.keybindings[t])&&[].concat(n).forEach(function(e){e.metaKey=e.metaKey||!1,e.ctrlKey=e.ctrlKey||!1,e.altKey=e.altKey||!1,e.shiftKey=e.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:e})}.bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}function n(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}t.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this},t.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this},t.prototype._handleKeydownEvent=function(e){if(-1!==this._getActiveElementIndex()){var t=!1;this._keybindingsLookup.forEach(function(n){if(function(e,t){for(var n in e)if(void 0!==t[n]&&e[n]!==t[n])return!1;return!0}(n.eventMatcher,e))switch(t=!0,e.preventDefault(),n.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}.bind(this)),t||this._handleUnboundKey(e)}},t.prototype.moveFocusForward=function(){var e,t=this._getActiveElementIndex();return e=t<this._members.length-1?t+1:this._settings.wrap?0:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusBack=function(){var e,t=this._getActiveElementIndex();return e=t>0?t-1:this._settings.wrap?this._members.length-1:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)},t.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)},t.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(""!==this._searchString&&(" "===e.key||32===e.keyCode))return e.preventDefault(),-1;if(!((t=e.keyCode)>=65&&t<=90))return-1;var t;if(e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}},t.prototype._clearSearchString=function(){this._searchString=""},t.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()},t.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout((function(){e._clearSearchString()}),this._settings.stringSearchDelay)},t.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)},t.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)},t.prototype.moveFocusByString=function(e){for(var t,r=0,i=this._members.length;r<i;r++)if((t=this._members[r]).text&&0===t.text.indexOf(e))return n(t.node)},t.prototype._findIndexOfNode=function(e){for(var t=0,n=this._members.length;t<n;t++)if(this._members[t].node===e)return t;return-1},t.prototype._getActiveElementIndex=function(){return this._findIndexOfNode(document.activeElement)},t.prototype.focusNodeAtIndex=function(e){var t=this._members[e];return t&&n(t.node),this},t.prototype.addMember=function(e,t){var n=e.node||e,r=e.text||n.getAttribute("data-focus-group-text")||n.textContent||"";this._checkNode(n);var i={node:n,text:r.replace(/[\W_]/g,"").toLowerCase()};return null!=t?this._members.splice(t,0,i):this._members.push(i),this},t.prototype.removeMember=function(e){var t="number"==typeof e?e:this._findIndexOfNode(e);if(-1!==t)return this._members.splice(t,1),this},t.prototype.clearMembers=function(){return this._members=[],this},t.prototype.setMembers=function(e){this.clearMembers();for(var t=0,n=e.length;t<n;t++)this.addMember(e[t]);return this},t.prototype.getMembers=function(){return this._members},t.prototype._checkNode=function(e){if(!e.nodeType||e.nodeType!==window.Node.ELEMENT_NODE)throw new Error("focus-group: only DOM nodes allowed");return e},e.exports=function(e){return new t(e)}},37795:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=1,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments),s=n(0,i.length-a.length),l=[],u=0;u<s;u++)l[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=",");return n}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},4090:(e,t,n)=>{"use strict";var r=n(37795);e.exports=Function.prototype.bind||r},14478:e=>{var t;t={},e.exports=t,t.simpleFilter=function(e,n){return n.filter((function(n){return t.test(e,n)}))},t.test=function(e,n){return null!==t.match(e,n)},t.match=function(e,t,n){n=n||{};var r,i=0,o=[],a=t.length,s=0,l=0,u=n.pre||"",c=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)r=t[f],d[f]===e[i]?(r=u+r+c,i+=1,l+=1+l):l=0,s+=l,o[o.length]=r;return i===e.length?(s=d===e?1/0:s,{rendered:o.join(""),score:s}):null},t.filter=function(e,n,r){return n&&0!==n.length?"string"!=typeof e?n:(r=r||{},n.reduce((function(n,i,o,a){var s=i;r.extract&&(s=r.extract(i));var l=t.match(e,s,r);return null!=l&&(n[n.length]={string:l.rendered,score:l.score,index:o,original:i}),n}),[]).sort((function(e,t){return t.score-e.score||e.index-t.index}))):[]}},67286:(e,t,n)=>{"use strict";var r,i=n(42321),o=n(69654),a=n(48205),s=n(2976),l=n(48342),u=n(5408),c=n(82885),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new u},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=n(32636)(),v=n(18486)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));_["%Error.prototype%"]=x}var E=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&y&&(n=y(i.prototype))}return _[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(4090),S=n(72196),A=C.call(Function.call,Array.prototype.concat),T=C.call(Function.apply,Array.prototype.splice),O=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),R=C.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,I=function(e,t){var n,r=e;if(S(k,r)&&(r="%"+(n=k[r])[0]+"%"),S(_,r)){var i=_[r];if(i===b&&(i=E(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return O(e,M,(function(e,t,n,i){r[r.length]=n?O(i,D,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=I("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],T(n,A([0,1],c)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=P(h,0,1),g=P(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),S(_,o="%"+(r+="."+h)+"%"))a=_[o];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=S(a,h),a=a[h];f&&!s&&(_[o]=a)}}return a}},50326:(e,t,n)=>{"use strict";var r=n(67286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},3959:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.user=t}var t,r;return t=e,r=[{key:"listUsers",value:function(e){return this.user._request("/admin/users",{method:"GET",audience:e})}},{key:"getUser",value:function(e){return this.user._request("/admin/users/".concat(e.id))}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.user._request("/admin/users/".concat(e.id),{method:"PUT",body:JSON.stringify(t)})}},{key:"createUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.email=e,n.password=t,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(n)})}},{key:"deleteUser",value:function(e){return this.user._request("/admin/users/".concat(e.id),{method:"DELETE"})}}],r&&n(t.prototype,r),e}();t.default=r},28005:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(71955)),a=(i=n(54676))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=/^http:\/\//,c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.APIUrl,r=void 0===n?"/.netlify/identity":n,i=t.audience,a=void 0===i?"":i,s=t.setCookie,l=void 0!==s&&s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.match(u)&&console.warn("Warning:\n\nDO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER!\nGoTrue REQUIRES HTTPS to work securely."),a&&(this.audience=a),this.setCookie=l,this.api=new o.default(r)}var t,n;return t=e,n=[{key:"_request",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.headers=t.headers||{};var n=t.audience||this.audience;return n&&(t.headers["X-JWT-AUD"]=n),this.api.request(e,t).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(e,t,n){return this._request("/signup",{method:"POST",body:JSON.stringify({email:e,password:t,data:n})})}},{key:"login",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(e),"&password=").concat(encodeURIComponent(t))}).then((function(e){return a.default.removeSavedSession(),r.createUser(e,n)}))}},{key:"loginExternalUrl",value:function(e){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e)}},{key:"confirm",value:function(e,t){return this._setRememberHeaders(t),this.verify("signup",e,t)}},{key:"requestPasswordRecovery",value:function(e){return this._request("/recover",{method:"POST",body:JSON.stringify({email:e})})}},{key:"recover",value:function(e,t){return this._setRememberHeaders(t),this.verify("recovery",e,t)}},{key:"acceptInvite",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:e,password:t,type:"signup"})}).then((function(e){return r.createUser(e,n)}))}},{key:"acceptInviteExternalUrl",value:function(e,t){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e,"&invite_token=").concat(t)}},{key:"createUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._setRememberHeaders(t),new a.default(this.api,e,this.audience).getUserData().then((function(e){return t&&e._saveSession(),e}))}},{key:"currentUser",value:function(){var e=a.default.recoverSession(this.api);return e&&this._setRememberHeaders(e._fromStorage),e}},{key:"verify",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:t,type:e})}).then((function(e){return r.createUser(e,n)}))}},{key:"_setRememberHeaders",value:function(e){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=e?"1":"session")}}],n&&l(t.prototype,n),e}();t.default=c,"undefined"!=typeof window&&(window.GoTrue=c)},54676:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(71955)),a=(i=n(3959))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d="gotrue.user",f={},p=null,h={api:1,token:1,audience:1,url:1},m={api:1},g=function(){return"undefined"!=typeof window},v=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.url=t.apiURL,this.audience=r,this._processTokenResponse(n),p=this}var t,n,r;return t=e,n=[{key:"update",value:function(e){var t=this;return this._request("/user",{method:"PUT",body:JSON.stringify(e)}).then((function(e){return t._saveUserData(e)._refreshSavedSession()}))}},{key:"jwt",value:function(e){var t=this.tokenDetails();if(null==t)return Promise.reject(new Error("Gotrue-js: failed getting jwt access token"));var n=t.expires_at,r=t.refresh_token,i=t.access_token;return e||n-6e4<Date.now()?this._refreshToken(r):Promise.resolve(i)}},{key:"logout",value:function(){return this._request("/logout",{method:"POST"}).then(this.clearSession.bind(this)).catch(this.clearSession.bind(this))}},{key:"_refreshToken",value:function(e){var t=this;return f[e]?f[e]:f[e]=this.api.request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=refresh_token&refresh_token=".concat(e)}).then((function(n){return delete f[e],t._processTokenResponse(n),t._refreshSavedSession(),t.token.access_token})).catch((function(n){return delete f[e],t.clearSession(),Promise.reject(n)}))}},{key:"_request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.headers=n.headers||{};var r=n.audience||this.audience;return r&&(n.headers["X-JWT-AUD"]=r),this.jwt().then((function(r){return t.api.request(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({headers:Object.assign(n.headers,{Authorization:"Bearer ".concat(r)})},n)).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}))}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(t,n){for(var r in t)r in e.prototype||r in h||(this[r]=t[r]);return n&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(e){this.token=e;try{var t=JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}var n=window.atob(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}(e.access_token.split(".")[1]));this.token.expires_at=1e3*t.exp}catch(e){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(e)))}}},{key:"_refreshSavedSession",value:function(){return g()&&localStorage.getItem(d)&&this._saveSession(),this}},{key:"_saveSession",value:function(){return g()&&localStorage.setItem(d,JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){e.removeSavedSession(),this.token=null,p=null}},{key:"admin",get:function(){return new a.default(this)}},{key:"_details",get:function(){var t={};for(var n in this)n in e.prototype||n in m||(t[n]=this[n]);return t}}],r=[{key:"removeSavedSession",value:function(){g()&&localStorage.removeItem(d)}},{key:"recoverSession",value:function(t){if(p)return p;var n=g()&&localStorage.getItem(d);if(n)try{var r=JSON.parse(n),i=r.url,a=r.token,s=r.audience;return i&&a?new e(t||new o.default(i,{}),a,s)._saveUserData(r,!0):null}catch(e){return console.error(new Error("Gotrue-js: Error recovering session: ".concat(e))),null}return null}}],n&&c(t.prototype,n),r&&c(t,r),e}();t.default=v},21488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ge,disableExperimentalFragmentVariables:()=>ue,disableFragmentWarnings:()=>se,enableExperimentalFragmentVariables:()=>le,gql:()=>oe,resetCaches:()=>ae});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return l(e.source,a(e.source,e.start))}function l(e,t){var n=e.locationOffset.column-1,r=c(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,d="".concat(e.name,":").concat(a,":").concat(l,"\n"),f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){for(var h=Math.floor(l/80),m=l%80,g=[],v=0;v<p.length;v+=80)g.push(p.slice(v,v+80));return d+u([["".concat(a),g[0]]].concat(g.slice(1,h+1).map((function(e){return["",e]})),[[" ",c(m-1)+"^"],["",g[h+1]]]))}return d+u([["".concat(a-1),f[i-1]],["".concat(a),p],["",c(l-1)+"^"],["".concat(a+1),f[i+1]]])}function u(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return c(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function c(e){return Array(e+1).join(" ")}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)},v(e)}function y(e,t,n){return y=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&w(i,n.prototype),i},y.apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(d,e);var t,n,r,u,c=(t=d,n=b(),function(){var e,r=_(t);if(n){var i=_(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return m(this,e)});function d(e,t,n,r,o,s,l){var u,h,v,y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(y=c.call(this,e)).name="GraphQLError",y.originalError=null!=s?s:void 0,y.nodes=E(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],w=0,_=null!==(x=y.nodes)&&void 0!==x?x:[];w<_.length;w++){var x,k=_[w].loc;null!=k&&b.push(k)}b=E(b),y.source=null!=n?n:null===(u=b)||void 0===u?void 0:u[0].source,y.positions=null!=r?r:null===(h=b)||void 0===h?void 0:h.map((function(e){return e.start})),y.locations=r&&n?r.map((function(e){return a(n,e)})):null===(v=b)||void 0===v?void 0:v.map((function(e){return a(e.source,e.start)})),y.path=null!=o?o:void 0;var C,S=null==s?void 0:s.extensions;return null==l&&"object"==i(C=S)&&null!==C?y.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},S):y.extensions=null!=l?l:{},Object.defineProperties(g(y),{message:{enumerable:!0},locations:{enumerable:null!=y.locations},path:{enumerable:null!=y.path},extensions:{enumerable:null!=y.extensions&&Object.keys(y.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(g(y),"stack",{value:s.stack,writable:!0,configurable:!0}),m(y)):(Error.captureStackTrace?Error.captureStackTrace(g(y),d):Object.defineProperty(g(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return r=d,(u=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+l(e.source,u)}return t}(this)}},{key:o,get:function(){return"Object"}}])&&h(r.prototype,u),d}(v(Error));function E(e){return void 0===e||0===e.length?void 0:e}function k(e,t,n){return new x("Syntax Error: ".concat(n),void 0,e,[t])}var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});const S="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function A(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,S&&(e.prototype[S]=t)}var T=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();A(T);var O=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();A(O);var P=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function M(e,t){switch(R(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(S)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:M(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(M(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+M(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function D(e,t){if(!Boolean(e))throw new Error(t)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var L=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||D(0,"Body must be a string. Received: ".concat(M(e,[]),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||D(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||D(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:o,get:function(){return"Source"}}])&&I(t.prototype,n),e}(),j=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function N(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&F(t[i]);)++i;for(var o=t.length;o>i&&F(t[o-1]);)--o;return t.slice(i,o).join("\n")}function F(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var B=function(){function e(e){var t=new O(P.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==P.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=z(this,e)}while(e.kind===P.COMMENT);return e},e}();function U(e){return isNaN(e)?P.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function z(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,l=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new O(P.BANG,o,o+1,s,l,t);case 35:return W(n,o,s,l,t);case 36:return new O(P.DOLLAR,o,o+1,s,l,t);case 38:return new O(P.AMP,o,o+1,s,l,t);case 40:return new O(P.PAREN_L,o,o+1,s,l,t);case 41:return new O(P.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new O(P.SPREAD,o,o+3,s,l,t);break;case 58:return new O(P.COLON,o,o+1,s,l,t);case 61:return new O(P.EQUALS,o,o+1,s,l,t);case 64:return new O(P.AT,o,o+1,s,l,t);case 91:return new O(P.BRACKET_L,o,o+1,s,l,t);case 93:return new O(P.BRACKET_R,o,o+1,s,l,t);case 123:return new O(P.BRACE_L,o,o+1,s,l,t);case 124:return new O(P.PIPE,o,o+1,s,l,t);case 125:return new O(P.BRACE_R,o,o+1,s,l,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?V(n,o,s,l,t,e):G(n,o,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return $(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Z(n,o,s,l,t)}throw k(n,o,q(a))}var u=e.line,c=1+o-e.lineStart;return new O(P.EOF,i,i,u,c,t)}function q(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(U(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(U(e),".")}function W(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new O(P.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function $(e,t,n,r,i,o){var a=e.body,s=n,l=t,u=!1;if(45===s&&(s=a.charCodeAt(++l)),48===s){if((s=a.charCodeAt(++l))>=48&&s<=57)throw k(e,l,"Invalid number, unexpected digit after 0: ".concat(U(s),"."))}else l=H(e,l,s),s=a.charCodeAt(l);if(46===s&&(u=!0,s=a.charCodeAt(++l),l=H(e,l,s),s=a.charCodeAt(l)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++l))&&45!==s||(s=a.charCodeAt(++l)),l=H(e,l,s),s=a.charCodeAt(l)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw k(e,l,"Invalid number, expected digit but got: ".concat(U(s),"."));return new O(u?P.FLOAT:P.INT,t,l,r,i,o,a.slice(t,l))}function H(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw k(e,i,"Invalid number, expected digit but got: ".concat(U(o),"."))}function G(e,t,n,r,i){for(var o,a,s,l,u=e.body,c=t+1,d=c,f=0,p="";c<u.length&&!isNaN(f=u.charCodeAt(c))&&10!==f&&13!==f;){if(34===f)return p+=u.slice(d,c),new O(P.STRING,t,c+1,n,r,i,p);if(f<32&&9!==f)throw k(e,c,"Invalid character within String: ".concat(U(f),"."));if(++c,92===f){switch(p+=u.slice(d,c-1),f=u.charCodeAt(c)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var h=(o=u.charCodeAt(c+1),a=u.charCodeAt(c+2),s=u.charCodeAt(c+3),l=u.charCodeAt(c+4),K(o)<<12|K(a)<<8|K(s)<<4|K(l));if(h<0){var m=u.slice(c+1,c+5);throw k(e,c,"Invalid character escape sequence: \\u".concat(m,"."))}p+=String.fromCharCode(h),c+=4;break;default:throw k(e,c,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}d=++c}}throw k(e,c,"Unterminated string.")}function V(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,u=0,c="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return c+=a.slice(l,s),new O(P.BLOCK_STRING,t,s+3,n,r,i,N(c));if(u<32&&9!==u&&10!==u&&13!==u)throw k(e,s,"Invalid character within String: ".concat(U(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(c+=a.slice(l,s)+'"""',l=s+=4):++s}throw k(e,s,"Unterminated string.")}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Z(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new O(P.NAME,t,s,n,r,i,o.slice(t,s))}var Y=function(){function e(e,t){var n=function(e){return e instanceof L}(e)?e:new L(e);this._lexer=new B(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(P.NAME);return{kind:C.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:C.DOCUMENT,definitions:this.many(P.SOF,this.parseDefinition,P.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(P.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(P.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(P.BRACE_L))return{kind:C.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(P.NAME)&&(t=this.parseName()),{kind:C.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(P.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(P.PAREN_L,this.parseVariableDefinition,P.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:C.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(P.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(P.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(P.DOLLAR),{kind:C.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:C.SELECTION_SET,selections:this.many(P.BRACE_L,this.parseSelection,P.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(P.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(P.COLON)?(e=r,t=this.parseName()):t=r,{kind:C.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(P.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(P.PAREN_L,t,P.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(P.COLON),{kind:C.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:C.ARGUMENT,name:this.parseName(),value:(this.expectToken(P.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(P.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(P.NAME)?{kind:C.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:C.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:C.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:C.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case P.BRACKET_L:return this.parseList(e);case P.BRACE_L:return this.parseObject(e);case P.INT:return this._lexer.advance(),{kind:C.INT,value:t.value,loc:this.loc(t)};case P.FLOAT:return this._lexer.advance(),{kind:C.FLOAT,value:t.value,loc:this.loc(t)};case P.STRING:case P.BLOCK_STRING:return this.parseStringLiteral();case P.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:C.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:C.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:C.NULL,loc:this.loc(t)};default:return{kind:C.ENUM,value:t.value,loc:this.loc(t)}}case P.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:C.STRING,value:e.value,block:e.kind===P.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:C.LIST,values:this.any(P.BRACKET_L,(function(){return t.parseValueLiteral(e)}),P.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:C.OBJECT,fields:this.any(P.BRACE_L,(function(){return t.parseObjectField(e)}),P.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(P.COLON),{kind:C.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(P.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(P.AT),{kind:C.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(P.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(P.BRACKET_R),e={kind:C.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(P.BANG)?{kind:C.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:C.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===P.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(P.STRING)||this.peek(P.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);return{kind:C.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(P.COLON);var n=this.parseNamedType();return{kind:C.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:C.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:C.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(P.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(P.AMP)||this.peek(P.NAME));return t}return this.delimitedMany(P.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(P.BRACE_L)&&this._lexer.lookahead().kind===P.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(P.BRACE_L,this.parseFieldDefinition,P.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(P.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:C.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(P.PAREN_L,this.parseInputValueDef,P.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(P.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(P.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:C.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:C.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:C.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(P.EQUALS)?this.delimitedMany(P.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:C.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(P.BRACE_L,this.parseEnumValueDefinition,P.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:C.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:C.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(P.BRACE_L,this.parseInputValueDef,P.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===P.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:C.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:C.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:C.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:C.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:C.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:C.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:C.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(P.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:C.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(P.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==j[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new T(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw k(this._lexer.source,t.start,"Expected ".concat(Q(e),", found ").concat(X(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==P.NAME||t.value!==e)throw k(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(X(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===P.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return k(this._lexer.source,t.start,"Unexpected ".concat(X(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function X(e){var t=e.value;return Q(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Q(e){return function(e){return e===P.BANG||e===P.DOLLAR||e===P.AMP||e===P.PAREN_L||e===P.PAREN_R||e===P.SPREAD||e===P.COLON||e===P.EQUALS||e===P.AT||e===P.BRACKET_L||e===P.BRACKET_R||e===P.BRACE_L||e===P.PIPE||e===P.BRACE_R}(e)?'"'.concat(e,'"'):e}var J=new Map,ee=new Map,te=!0,ne=!1;function re(e){return e.replace(/[\s,]+/g," ").trim()}function ie(e){var t,n,i,o=re(e);if(!J.has(o)){var a=function(e,t){return new Y(e,t).parseDocument()}(e,{experimentalFragmentVariables:ne,allowLegacyFragmentVariables:ne});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");J.set(o,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,i=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,r=re((a=e.loc).source.body.substring(a.start,a.end)),o=ee.get(t);o&&!o.has(r)?te&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ee.set(t,o=new Set),o.add(r),n.has(r)||(n.add(r),i.push(e))}else i.push(e);var a})),r(r({},t),{definitions:i}))))}return J.get(o)}function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),ie(r)}function ae(){J.clear(),ee.clear()}function se(){te=!1}function le(){ne=!0}function ue(){ne=!1}var ce,de=oe,fe=ae,pe=se,he=le,me=ue;(ce=oe||(oe={})).gql=de,ce.resetCaches=fe,ce.disableFragmentWarnings=pe,ce.enableExperimentalFragmentVariables=he,ce.disableExperimentalFragmentVariables=me,oe.default=oe;const ge=oe},72678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r=o(n(75006)),i=o(n(98019));function o(e){return e&&e.__esModule?e:{default:e}}},98048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,[])};var r,i=(r=n(98019))&&r.__esModule?r:{default:r};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=10,s=2;function l(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var o=r.call(e);if(o!==e)return"string"==typeof o?o:l(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>s)return"[Array]";for(var n=Math.min(a,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(l(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>s?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+l(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},75006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},98019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},64560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,i=(r=n(72678))&&r.__esModule?r:{default:r},o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},49501:(e,t)=>{"use strict";function n(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function r(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),i=r(e);if(0!==i)for(var o=1;o<t.length;o++)t[o]=t[o].slice(i);for(var a=0;a<t.length&&n(t[a]);)++a;for(var s=t.length;s>a&&n(t[s-1]);)--s;return t.slice(a,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,l="";return!s||r&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}},33083:(e,t,n)=>{"use strict";t.S=function(e){return(0,r.visit)(e,{leave:o})};var r=n(82624),i=n(49501),o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",s(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u("",t,": ")+n,l=a+u("(",s(r,", "),")");return l.length>80&&(l=a+u("(\n",c(s(r,"\n")),"\n)")),s([l,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",u("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(u("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),l(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+r+u(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,u("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),l(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),l(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),l(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function l(e){return u("{\n",c(s(e,"\n")),"\n}")}function u(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},82624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===c.length,w=b&&0!==f.length;if(b){if(h=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),w){if(u)p=p.slice();else{for(var _={},x=0,E=Object.keys(p);x<E.length;x++){var k=E[x];_[k]=p[k]}p=_}for(var C=0,S=0;S<f.length;S++){var A=f[S][0],T=f[S][1];u&&(A-=C),u&&null===T?(p.splice(A,1),C++):p[A]=T}}d=r.index,c=r.keys,f=r.edits,u=r.inArray,r=r.prev}else{if(h=m?u?d:c[d]:void 0,null==(p=m?m[h]:y))continue;m&&g.push(h)}var O,P=void 0;if(!Array.isArray(p)){if(!(0,o.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,i.default)(p),"."));var R=l(t,p.kind,b);if(R){if((P=R.call(t,p,h,m,g,v))===s)break;if(!1===P){if(!b){g.pop();continue}}else if(void 0!==P&&(f.push([h,P]),!b)){if(!(0,o.isNode)(P)){g.pop();continue}p=P}}}void 0===P&&w&&f.push([h,p]),b?g.pop():(r={inArray:u,index:d,keys:c,edits:f,prev:r},c=(u=Array.isArray(p))?p:null!==(O=n[p.kind])&&void 0!==O?O:[],d=-1,f=[],m&&v.push(m),m=p)}while(void 0!==r);return 0!==f.length&&(y=f[f.length-1][1]),y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===s)t[r]=s;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===s)t[r]=s;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=n(98048))&&r.__esModule?r:{default:r},o=n(64560),a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var s=Object.freeze({});function l(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}t.BREAK=s},61035:(e,t,n)=>{"use strict";const r=n(68906),i=n(24162),o=n(30793),a=n(66213),s=n(88708),l=n(84118),u=n(5526),c=n(83651),d=n(24547);function f(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let n=u(e);const r=f.cache[n.content];if(!t){if(r)return n=Object.assign({},r),n.orig=r.orig,n;f.cache[n.content]=n}return function(e,t){const n=o(t),r=n.delimiters[0],a="\n"+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const u=r.length;if(!d.startsWith(l,r,u))return s(e,n),e;if(l.charAt(u)===r.slice(-1))return e;l=l.slice(u);const p=l.length,h=f.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let m=l.indexOf(a);-1===m&&(m=p),e.matter=l.slice(0,m);return""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=c(e.language,e.matter,n),m===p?e.content="":(e.content=l.slice(m+a.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1))),s(e,n),(!0===n.sections||"function"==typeof n.section)&&i(e,n.section),e}(n,t)}f.engines=l,f.stringify=function(e,t,n){return"string"==typeof e&&(e=f(e,n)),a(e,t,n)},f.read=function(e,t){const n=f(r.readFileSync(e,"utf8"),t);return n.path=e,n},f.test=function(e,t){return d.startsWith(e,o(t).delimiters[0])},f.language=function(e,t){const n=o(t).delimiters[0];f.test(e)&&(e=e.slice(n.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},f.cache={},f.clearCache=function(){f.cache={}},e.exports=f},30793:(e,t,n)=>{"use strict";const r=n(84118),i=n(24547);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},98760:e=>{"use strict";e.exports=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n}},84118:(module,exports,__webpack_require__)=>{"use strict";const yaml=__webpack_require__(16640),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},88708:(e,t,n)=>{"use strict";const r=n(30793);e.exports=function(e,t){const n=r(t);if(null==e.data&&(e.data={}),"function"==typeof n.excerpt)return n.excerpt(e,n);const i=e.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return e;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],a=e.content.indexOf(o);return-1!==a&&(e.excerpt=e.content.slice(0,a)),e}},83651:(e,t,n)=>{"use strict";const r=n(98760),i=n(30793);e.exports=function(e,t,n){const o=i(n),a=r(e,o);if("function"!=typeof a.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return a.parse(t,o)}},66213:(e,t,n)=>{"use strict";const r=n(91366),i=n(98760),o=n(30793);function a(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,n){if(null==t&&null==n)switch(r(e)){case"object":t=e.data,n={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const s=e.content,l=o(n);if(null==t){if(!l.data)return e;t=l.data}const u=e.language||l.language,c=i(u,l);if("function"!=typeof c.stringify)throw new TypeError('expected "'+u+'.stringify" to be a function');t=Object.assign({},e.data,t);const d=l.delimiters[0],f=l.delimiters[1],p=c.stringify(t,n).trim();let h="";return"{}"!==p&&(h=a(d)+a(p)+a(f)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===s.indexOf(e.excerpt.trim())&&(h+=a(e.excerpt)+a(f)),h+a(s)}},5526:(e,t,n)=>{"use strict";const r=n(91366),i=n(66213),o=n(24547);e.exports=function(e){return"object"!==r(e)&&(e={content:e}),"object"!==r(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),o.define(e,"orig",o.toBuffer(e.content)),o.define(e,"language",e.language||""),o.define(e,"matter",e.matter||""),o.define(e,"stringify",(function(t,n){return n&&n.language&&(e.language=n.language),i(e,t,n)})),e.content=o.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},24547:(e,t,n)=>{"use strict";var r=n(48834).Buffer;const i=n(42014),o=n(91366);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=function(e){return"buffer"===o(e)},t.isObject=function(e){return"object"===o(e)},t.toBuffer=function(e){return"string"==typeof e?r.from(e):e},t.toString=function(e){if(t.isBuffer(e))return i(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return i(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}},16640:(e,t,n)=>{"use strict";var r=n(81391);e.exports=r},81391:(e,t,n)=>{"use strict";var r=n(10704),i=n(48766);function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(81446),e.exports.Schema=n(43210),e.exports.FAILSAFE_SCHEMA=n(85936),e.exports.JSON_SCHEMA=n(85311),e.exports.CORE_SCHEMA=n(410),e.exports.DEFAULT_SAFE_SCHEMA=n(74654),e.exports.DEFAULT_FULL_SCHEMA=n(86720),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=i.dump,e.exports.safeDump=i.safeDump,e.exports.YAMLException=n(23908),e.exports.MINIMAL_SCHEMA=n(85936),e.exports.SAFE_SCHEMA=n(74654),e.exports.DEFAULT_SCHEMA=n(86720),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},86730:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}},48766:(e,t,n)=>{"use strict";var r=n(86730),i=n(23908),o=n(86720),a=n(74654),s=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=9,c=10,d=13,f=32,p=33,h=34,m=35,g=37,v=38,y=39,b=42,w=44,_=45,x=58,E=61,k=62,C=63,S=64,A=91,T=93,O=96,P=123,R=124,M=125,D={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function L(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}function j(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,a,s,u;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)a=r[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=e.compiledTypeMap.fallback[a])&&l.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function N(e,t){for(var n,i=r.repeat(" ",t),o=0,a=-1,s="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(s+=i),s+=n;return s}function F(e,t){return"\n"+r.repeat(" ",e.indent*t)}function B(e){return e===f||e===u}function U(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function z(e,t){return U(e)&&65279!==e&&e!==w&&e!==A&&e!==T&&e!==P&&e!==M&&e!==x&&(e!==m||t&&function(e){return U(e)&&!B(e)&&65279!==e&&e!==d&&e!==c}(t))}function q(e){return/^\n* /.test(e)}var W=1,$=2,H=3,G=4,V=5;function K(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==I.indexOf(t))return"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,i){var o,a,s,l,u=!1,d=!1,f=-1!==r,D=-1,I=U(l=e.charCodeAt(0))&&65279!==l&&!B(l)&&l!==_&&l!==C&&l!==x&&l!==w&&l!==A&&l!==T&&l!==P&&l!==M&&l!==m&&l!==v&&l!==b&&l!==p&&l!==R&&l!==E&&l!==k&&l!==y&&l!==h&&l!==g&&l!==S&&l!==O&&!B(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!U(a=e.charCodeAt(o)))return V;s=o>0?e.charCodeAt(o-1):null,I=I&&z(a,s)}else{for(o=0;o<e.length;o++){if((a=e.charCodeAt(o))===c)u=!0,f&&(d=d||o-D-1>r&&" "!==e[D+1],D=o);else if(!U(a))return V;s=o>0?e.charCodeAt(o-1):null,I=I&&z(a,s)}d=d||f&&o-D-1>r&&" "!==e[D+1]}return u||d?n>9&&q(e)?V:d?G:H:I&&!i(e)?W:$}(t,s,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}))){case W:return t;case $:return"'"+t.replace(/'/g,"''")+"'";case H:return"|"+Z(t,e.indent)+Y(N(t,o));case G:return">"+Z(t,e.indent)+Y(N(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(i=-1!==(i=e.indexOf("\n"))?i:e.length,o.lastIndex=i,X(e.slice(0,i),t)),s="\n"===e[0]||" "===e[0];r=o.exec(e);){var l=r[1],u=r[2];n=" "===u[0],a+=l+(s||n||""===u?"":"\n")+X(u,t),s=n}return a}(t,a),o));case V:return'"'+function(e){for(var t,n,r,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(i+=L(1024*(t-55296)+n-56320+65536),o++):i+=!(r=D[t])&&U(t)?e[o]:r||L(t);return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function Z(e,t){var n=q(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function Y(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function X(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,l="";n=i.exec(e);)(s=n.index)-o>t&&(r=a>o?a:s,l+="\n"+e.slice(o,r),o=r+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function Q(e,t,n){var r,o,a,u,c,d;for(a=0,u=(o=n?e.explicitTypes:e.implicitTypes).length;a<u;a+=1)if(((c=o[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=n?c.tag:"?",c.represent){if(d=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===s.call(c.represent))r=c.represent(t,d);else{if(!l.call(c.represent,d))throw new i("!<"+c.tag+'> tag resolver accepts not "'+d+'" style');r=c.represent[d](t,d)}e.dump=r}return!0}return!1}function J(e,t,n,r,o,a){e.tag=null,e.dump=n,Q(e,n,!1)||Q(e,n,!0);var l=s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,f="[object Object]"===l||"[object Array]"===l;if(f&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(o=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(f&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var o,a,s,l,u,d,f="",p=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,a=h.length;o<a;o+=1)d="",r&&0===o||(d+=F(e,t)),l=n[s=h[o]],J(e,t+1,s,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&c===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=F(e,t)),J(e,t+1,l,!0,u)&&(e.dump&&c===e.dump.charCodeAt(0)?d+=":":d+=": ",f+=d+=e.dump));e.tag=p,e.dump=f||"{}"}(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,o,a,s,l="",u=e.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)s="",0!==r&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=c[r]],J(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),J(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(function(e,t,n,r){var i,o,a="",s=e.tag;for(i=0,o=n.length;i<o;i+=1)J(e,t+1,n[i],!0,!0)&&(r&&0===i||(a+=F(e,t)),e.dump&&c===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,p,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)J(e,t,n[r],!1,!1)&&(0!==r&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,p,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump))}else{if("[object String]"!==l){if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&K(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function ee(e,t){var n,r,i=[],o=[];for(te(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function te(e,t,n){var r,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)te(e[i],t,n);else for(i=0,o=(r=Object.keys(e)).length;i<o;i+=1)te(e[r[i]],t,n)}function ne(e,t){var n=new j(t=t||{});return n.noRefs||ee(e,n),J(n,0,e,!0,!0)?n.dump+"\n":""}e.exports.dump=ne,e.exports.safeDump=function(e,t){return ne(e,r.extend({schema:a},t))}},23908:e=>{"use strict";function t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=t},10704:(e,t,n)=>{"use strict";var r=n(86730),i=n(23908),o=n(43536),a=n(74654),s=n(86720),l=Object.prototype.hasOwnProperty,u=1,c=2,d=3,f=4,p=1,h=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,b=/^(?:!|!!|![a-z\-]+!)$/i,w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _(e){return Object.prototype.toString.call(e)}function x(e){return 10===e||13===e}function E(e){return 9===e||32===e}function k(e){return 9===e||32===e||10===e||13===e}function C(e){return 44===e||91===e||93===e||123===e||125===e}function S(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function T(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),P=new Array(256),R=0;R<256;R++)O[R]=A(R)?1:0,P[R]=A(R);function M(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function D(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function I(e,t){throw D(e,t)}function L(e,t){e.onWarning&&e.onWarning.call(null,D(e,t))}var j={YAML:function(e,t,n){var r,i,o;null!==e.version&&I(e,"duplication of %YAML directive"),1!==n.length&&I(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&I(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&I(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&L(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&I(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],b.test(r)||I(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,r)&&I(e,'there is a previously declared suffix for "'+r+'" tag handle'),w.test(i)||I(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function N(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||I(e,"expected valid JSON character");else g.test(s)&&I(e,"the stream contains non-printable characters");e.result+=s}}function F(e,t,n,i){var o,a,s,u;for(r.isObject(n)||I(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,u=(o=Object.keys(n)).length;s<u;s+=1)a=o[s],l.call(t,a)||(t[a]=n[a],i[a]=!0)}function B(e,t,n,r,i,o,a,s){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&I(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===_(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===_(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)F(e,t,o[u],n);else F(e,t,o,n);else e.json||l.call(n,i)||!l.call(t,i)||(e.line=a||e.line,e.position=s||e.position,I(e,"duplicated mapping key")),t[i]=o,delete n[i];return t}function U(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):I(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function z(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;E(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!x(i))break;for(U(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&L(e,"deficient indentation"),r}function q(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!k(t)))}function W(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function $(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&k(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,z(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,V(e,t,d,!1,!0),a.push(e.result),z(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)I(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function H(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&I(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):I(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!k(i);)33===i&&(a?I(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),b.test(n)||I(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),y.test(r)&&I(e,"tag suffix cannot contain flow indicator characters")}return r&&!w.test(r)&&I(e,"tag name cannot contain such characters: "+r),o?e.tag=r:l.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:I(e,'undeclared tag handle "'+n+'"'),!0}function G(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&I(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!k(n)&&!C(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&I(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function V(e,t,n,i,o){var a,s,g,v,y,b,w,_,A=1,R=!1,M=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=g=f===n||d===n,i&&z(e,!0,-1)&&(R=!0,e.lineIndent>t?A=1:e.lineIndent===t?A=0:e.lineIndent<t&&(A=-1)),1===A)for(;H(e)||G(e);)z(e,!0,-1)?(R=!0,g=a,e.lineIndent>t?A=1:e.lineIndent===t?A=0:e.lineIndent<t&&(A=-1)):g=!1;if(g&&(g=R||o),1!==A&&f!==n||(w=u===n||c===n?t:t+1,_=e.position-e.lineStart,1===A?g&&($(e,_)||function(e,t,n){var r,i,o,a,s,l=e.tag,u=e.anchor,d={},p={},h=null,m=null,g=null,v=!1,y=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),s=e.input.charCodeAt(e.position);0!==s;){if(r=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!k(r)){if(!V(e,n,c,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);E(s);)s=e.input.charCodeAt(++e.position);if(58===s)k(s=e.input.charCodeAt(++e.position))||I(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(B(e,d,p,h,m,null),h=m=g=null),y=!0,v=!1,i=!1,h=e.tag,m=e.result;else{if(!y)return e.tag=l,e.anchor=u,!0;I(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=l,e.anchor=u,!0;I(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(v&&(B(e,d,p,h,m,null),h=m=g=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):I(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=r;if((e.line===o||e.lineIndent>t)&&(V(e,t,f,!0,i)&&(v?m=e.result:g=e.result),v||(B(e,d,p,h,m,g,o,a),h=m=g=null),z(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)I(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&B(e,d,p,h,m,null),y&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=d),y}(e,_,w))||function(e,t){var n,r,i,o,a,s,l,c,d,f,p=!0,h=e.tag,m=e.anchor,g={};if(91===(f=e.input.charCodeAt(e.position)))i=93,s=!1,r=[];else{if(123!==f)return!1;i=125,s=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),f=e.input.charCodeAt(++e.position);0!==f;){if(z(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=m,e.kind=s?"mapping":"sequence",e.result=r,!0;p||I(e,"missed comma between flow collection entries"),d=null,o=a=!1,63===f&&k(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,z(e,!0,t)),n=e.line,V(e,t,u,!1,!0),c=e.tag,l=e.result,z(e,!0,t),f=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==f||(o=!0,f=e.input.charCodeAt(++e.position),z(e,!0,t),V(e,t,u,!1,!0),d=e.result),s?B(e,r,g,c,l,d):o?r.push(B(e,null,g,c,l,d)):r.push(l),z(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}I(e,"unexpected end of the stream within a flow collection")}(e,w)?M=!0:(s&&function(e,t){var n,i,o,a,s,l=p,u=!1,c=!1,d=t,f=0,g=!1;if(124===(a=e.input.charCodeAt(e.position)))i=!1;else{if(62!==a)return!1;i=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)p===l?l=43===a?m:h:I(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===o?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?I(e,"repeat of an indentation width identifier"):(d=t+o-1,c=!0)}if(E(a)){do{a=e.input.charCodeAt(++e.position)}while(E(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!x(a)&&0!==a)}for(;0!==a;){for(U(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<d)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>d&&(d=e.lineIndent),x(a))f++;else{if(e.lineIndent<d){l===m?e.result+=r.repeat("\n",u?1+f:f):l===p&&u&&(e.result+="\n");break}for(i?E(a)?(g=!0,e.result+=r.repeat("\n",u?1+f:f)):g?(g=!1,e.result+=r.repeat("\n",f+1)):0===f?u&&(e.result+=" "):e.result+=r.repeat("\n",f):e.result+=r.repeat("\n",u?1+f:f),u=!0,c=!0,f=0,n=e.position;!x(a)&&0!==a;)a=e.input.charCodeAt(++e.position);N(e,n,e.position,!1)}}return!0}(e,w)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(N(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else x(n)?(N(e,r,i,!0),W(e,z(e,!1,t)),r=i=e.position):e.position===e.lineStart&&q(e)?I(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);I(e,"unexpected end of the stream within a single quoted scalar")}(e,w)||function(e,t){var n,r,i,o,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return N(e,n,e.position,!0),e.position++,!0;if(92===s){if(N(e,n,e.position,!0),x(s=e.input.charCodeAt(++e.position)))z(e,!1,t);else if(s<256&&O[s])e.result+=P[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(i=a,o=0;i>0;i--)(a=S(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:I(e,"expected hexadecimal character");e.result+=T(o),e.position++}else I(e,"unknown escape sequence");n=r=e.position}else x(s)?(N(e,n,r,!0),W(e,z(e,!1,t)),n=r=e.position):e.position===e.lineStart&&q(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}I(e,"unexpected end of the stream within a double quoted scalar")}(e,w)?M=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!k(r)&&!C(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&I(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),l.call(e.anchorMap,n)||I(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],z(e,!0,-1),!0}(e)?(M=!0,null===e.tag&&null===e.anchor||I(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,s,l,u,c,d=e.kind,f=e.result;if(k(c=e.input.charCodeAt(e.position))||C(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(k(r=e.input.charCodeAt(e.position+1))||n&&C(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==c;){if(58===c){if(k(r=e.input.charCodeAt(e.position+1))||n&&C(r))break}else if(35===c){if(k(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||n&&C(c))break;if(x(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,z(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}}a&&(N(e,i,o,!1),W(e,e.line-s),i=o=e.position,a=!1),E(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return N(e,i,o,!1),!!e.result||(e.kind=d,e.result=f,!1)}(e,w,u===n)&&(M=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===A&&(M=g&&$(e,_))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&I(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),v=0,y=e.implicitTypes.length;v<y;v+=1)if((b=e.implicitTypes[v]).resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else l.call(e.typeMap[e.kind||"fallback"],e.tag)?(b=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&b.kind!==e.kind&&I(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result)?(e.result=b.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):I(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||M}function K(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(z(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!k(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&I(e,"directive name must not be less than one character in length");0!==i;){for(;E(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!x(i));break}if(x(i))break;for(t=e.position;0!==i&&!k(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&U(e),l.call(j,n)?j[n](e,n,r):L(e,'unknown document directive "'+n+'"')}z(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,z(e,!0,-1)):a&&I(e,"directives end mark is expected"),V(e,e.lineIndent-1,f,!1,!0),z(e,!0,-1),e.checkLineBreaks&&v.test(e.input.slice(o,e.position))&&L(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,z(e,!0,-1)):e.position<e.length-1&&I(e,"end of the stream or a document separator is expected")}function Z(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new M(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,I(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)K(n);return n.documents}function Y(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=Z(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function X(e,t){var n=Z(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=Y,e.exports.load=X,e.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),Y(e,t,r.extend({schema:a},n))},e.exports.safeLoad=function(e,t){return X(e,r.extend({schema:a},t))}},43536:(e,t,n)=>{"use strict";var r=n(86730);function i(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=i},43210:(e,t,n)=>{"use strict";var r=n(86730),i=n(23908),o=n(81446);function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof o})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},410:(e,t,n)=>{"use strict";var r=n(43210);e.exports=new r({include:[n(85311)]})},86720:(e,t,n)=>{"use strict";var r=n(43210);e.exports=r.DEFAULT=new r({include:[n(74654)],explicit:[n(93514),n(20594),n(32179)]})},74654:(e,t,n)=>{"use strict";var r=n(43210);e.exports=new r({include:[n(410)],implicit:[n(68892),n(72637)],explicit:[n(74281),n(89235),n(14404),n(47347)]})},85936:(e,t,n)=>{"use strict";var r=n(43210);e.exports=new r({explicit:[n(65946),n(45535),n(84033)]})},85311:(e,t,n)=>{"use strict";var r=n(43210);e.exports=new r({include:[n(85936)],implicit:[n(46219),n(18124),n(46145),n(85017)]})},81446:(e,t,n)=>{"use strict";var r=n(23908),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},74281:(e,t,n)=>{"use strict";var r;try{r=n(48834).Buffer}catch(e){}var i=n(81446),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,a=o;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=o,l=0,u=[];for(t=0;t<a;t++)t%4==0&&t&&(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)),l=l<<6|s.indexOf(i.charAt(t));return 0==(n=a%4*6)?(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)):18===n?(u.push(l>>10&255),u.push(l>>2&255)):12===n&&u.push(l>>4&255),r?r.from?r.from(u):new r(u):u},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,a=e.length,s=o;for(t=0;t<a;t++)t%3==0&&t&&(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}})},18124:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},85017:(e,t,n)=>{"use strict";var r=n(86730),i=n(81446),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,i;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,r=1,i.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},46145:(e,t,n)=>{"use strict";var r=n(86730),i=n(81446);function o(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,s=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;s=!0}return s&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s&&"_"!==t}for(;i<r;i++)if("_"!==(t=e[i])){if(!o(e.charCodeAt(i)))return!1;s=!0}return s&&"_"!==t}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(":"===t)break;if(!a(e.charCodeAt(i)))return!1;s=!0}return!(!s||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(i)))},construct:function(e){var t,n,r=e,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(i=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach((function(e){o.unshift(parseInt(e,10))})),r=0,n=1,o.forEach((function(e){r+=e*n,n*=60})),i*r):i*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},32179:(e,t,n)=>{"use strict";var r;try{r=n(Object(function(){var e=new Error("Cannot find module 'esprima'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var i=n(81446);e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",i=r.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(e){o.push(e.name)})),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(t[0]+1,t[1]-1)):new Function(o,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},20594:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},93514:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},84033:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},72637:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},46219:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},89235:(e,t,n)=>{"use strict";var r=n(81446),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,l=[],u=e;for(t=0,n=u.length;t<n;t+=1){if(r=u[t],s=!1,"[object Object]"!==o.call(r))return!1;for(a in r)if(i.call(r,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==l.indexOf(a))return!1;l.push(a)}return!0},construct:function(e){return null!==e?e:[]}})},14404:(e,t,n)=>{"use strict";var r=n(81446),i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==i.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}})},45535:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},47347:(e,t,n)=>{"use strict";var r=n(81446),i=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},65946:(e,t,n)=>{"use strict";var r=n(81446);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},68892:(e,t,n)=>{"use strict";var r=n(81446),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==o.exec(e))},construct:function(e){var t,n,r,a,s,l,u,c,d=0,f=null;if(null===(t=i.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(s=+t[4],l=+t[5],u=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),c=new Date(Date.UTC(n,r,a,s,l,u,d)),f&&c.setTime(c.getTime()-f),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},81181:(e,t,n)=>{"use strict";var r=n(70999),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},18486:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},32636:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(66679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},66679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},72196:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(4090);e.exports=o.call(r,i)},34713:(e,t,n)=>{"use strict";var r=n(13056);e.exports=r(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"])},19776:(e,t,n)=>{"use strict";var r=n(59209),i=n(57956),o=n(70521),a=n(26916),s=n(97078),l=n(22896),u=n(51960),c=n(53404);e.exports=function(e,t){var n,o=t||{};return o.messages?(n=o,o={}):n=o.file,p(e,{schema:"svg"===o.space?i:r,file:n,verbose:o.verbose,location:!1})};var d={}.hasOwnProperty,f={"#document":h,"#document-fragment":h,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function p(e,t){var n,s,l,c=t.schema,h=d.call(f,e.nodeName)?f[e.nodeName]:m;return h===m&&(t.schema=e.namespaceURI===a.svg?i:r),e.childNodes&&(n=function(e,t){for(var n=e.length,r=-1,i=[];++r<n;)i[r]=p(e[r],t);return i}(e.childNodes,t)),s=h(e,n,t),e.sourceCodeLocation&&t.file&&(l=function(e,t,n){var r,i,a,s,l=n.schema,c=n.verbose,d=g(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(d.end=u(r.position.end)),c)){for(a in s={},i=t.attrs)s[o(l,a).property]=g(i[a]);e.data={position:{opening:g(t.startTag),closing:t.endTag?g(t.endTag):null,properties:s}}}return d}(s,e.sourceCodeLocation,t),l&&(t.location=!0,s.position=l)),t.schema=c,s}function h(e,t,n){var r,i={type:"root",children:t,data:{}};return i.data.quirksMode="quirks"===e.mode||"limited-quirks"===e.mode,n.file&&n.location&&(r=String(n.file),i.position={start:{line:1,column:1,offset:0},end:{line:c(r,"\n")+1,column:r.length-r.lastIndexOf("\n"),offset:r.length}}),i}function m(e,t,n){for(var r,i,o,a,u,c="svg"===n.schema.space?s:l,d=e.tagName,f=e.attrs,h=f.length,m={},v=-1;++v<h;)m[((r=f[v]).prefix?r.prefix+":":"")+r.name]=r.value;return i=c(d,m,t),"template"===d&&"content"in e&&(a=(o=e.sourceCodeLocation)&&o.startTag&&g(o.startTag).end,u=o&&o.endTag&&g(o.endTag).start,i.content=p(e.content,n),(a||u)&&n.file&&(i.content.position={start:a,end:u})),i}function g(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(e){return e.line&&e.column?e:null}},36040:e=>{"use strict";var t={}.hasOwnProperty;e.exports=function(e,n){var r,i;return!(!e||!n||"object"!=typeof e||"element"!==e.type)&&(null!=(i=(r=e.properties)&&t.call(r,n)&&r[n])&&!1!==i)}},13056:e=>{"use strict";function t(e){return e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName}e.exports=function e(n){if("string"==typeof n)return function(e){return function(n){return t(n)&&n.tagName===e}}(n);if(null==n)return t;if("object"==typeof n)return r=function(t){for(var n=t.length,r=-1,i=[];++r<n;)i[r]=e(t[r]);return i}(n),i=r.length,function(){for(var e=-1;++e<i;)if(r[e].apply(this,arguments))return!0;return!1};var r,i;if("function"==typeof n)return function(e){return function(n){return t(n)&&Boolean(e.apply(this,arguments))}}(n);throw new Error("Expected function, string, or array as test")}},85909:(e,t,n)=>{"use strict";var r=n(13056);function i(e,t,n,i,o){var a=null!=i,s=null!=n,l=r(t);if(s&&("number"!=typeof n||n<0||n===1/0))throw new Error("Expected positive finite index for child node");if(a&&(!i.type||!i.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(a!==s)throw new Error("Expected both parent and index");return l.call(o,e,n,i)}e.exports=i,i.convert=r},74163:e=>{"use strict";e.exports=function(e,n){for(var r,i,o,a=e||"",s=n||"div",l={},u=0;u<a.length;)t.lastIndex=u,o=t.exec(a),(r=a.slice(u,o?o.index:a.length))&&(i?"#"===i?l.id=r:l.className?l.className.push(r):l.className=[r]:s=r,u+=r.length),o&&(i=o[0],u++);return{type:"element",tagName:s,properties:l,children:[]}};var t=/[#.]/g},51389:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o=t||{},f={};return p.nodeById=f,p.baseFound=!1,p.frozenBaseUrl=null,p.wrapText=!0,p.qNesting=0,p.handlers=o.handlers?s(u,o.handlers):u,p.augment=h,p.document=o.document,p.checked=o.checked||"[x]",p.unchecked=o.unchecked||"[ ]",p.quotes=o.quotes||['"'],a(e,"element",(function(e){var t=r(e,"id")&&String(e.properties.id).toUpperCase();t&&!c.call(f,t)&&(f[t]=e)})),i({newlines:!0===o.newlines})(e),n=l(p,e,null),a(n,"text",(function(e,t,n){var r=n.children[t-1];return r&&e.type===r.type?(r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1):(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),d(n)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),e.value?void 0:(n.children.splice(t,1),t))})),n;function p(e,t,n,r){var i;return!r&&("string"==typeof n||"object"==typeof n&&"length"in n)&&(r=n,n={}),i=s({type:t},n),"string"==typeof r?i.value=r:r&&(i.children=r),h(e,i)}function h(e,t){return e.position&&(t.position=e.position),t}};var r=n(36040),i=n(26653),o=n(2547),a=n(18043),s=n(51960),l=n(25140),u=n(77603),c=n(22843),d=o(["heading","paragraph","root"])},134:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,i=t.children||[],o=[],a=-1;++a<i.length;)(n=r(e,i[a],t))&&(o=o.concat(n));return o};var r=n(25140)},55170:e=>{"use strict";e.exports=function(e,t){e.baseFound||(e.frozenBaseUrl=t.properties.href,e.baseFound=!0)}},34097:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"blockquote",r(e,t))};var r=n(27987)},98035:e=>{"use strict";e.exports=function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")}},34589:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i,d=t.children,f=-1;if(u(t))for(;++f<d.length;)if(c(d[f])&&r(d[f],"className")){n=d[f].properties.className;break}if(n)for(f=-1;++f<n.length;)if(n[f].slice(0,l.length)===l){i=n[f].slice(l.length);break}return e(t,"code",{lang:i||null,meta:null},a(s(e,o(t))))};var r=n(36040),i=n(13056),o=n(95318),a=n(67876),s=n(25084),l="language-",u=i("pre"),c=i("code")},56396:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"html","\x3c!--"+r(e,t.value)+"--\x3e")};var r=n(25084)},7459:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"delete",r(e,t))};var r=n(134)},81911:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,r,o=t.children,c=-1,d=[],f=[],p={titles:[],definitions:[]};++c<o.length;)r=o[c],d=d.concat(a(r)?r.children:r);for(c=-1;++c<d.length;)r=d[c],s(r)?(l(d[c-1])&&(f.push(p),p={titles:[],definitions:[]}),p.titles.push(r)):p.definitions.push(r);for(f.push(p),c=-1,n=[];++c<f.length;)(p=u(e,f[c].titles).concat(u(e,f[c].definitions))).length&&n.push({type:"listItem",spread:p.length>1,checked:null,children:p});if(n.length)return e(t,"list",{ordered:!1,start:null,spread:i(n)},n)};var r=n(13056),i=n(73982),o=n(1693),a=r("div"),s=r("dt"),l=r("dd");function u(e,t){var n=o(e,{children:t});return n.length?1===n.length?n[0].children:[{type:"list",ordered:!1,start:null,spread:i(n),children:n}]:n}},92281:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"emphasis",r(e,t))};var r=n(134)},18969:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i=Number(t.tagName.charAt(1))||1,o=e.wrapText;return e.wrapText=!1,n=e(t,"heading",{depth:i},r(e,t)),e.wrapText=o,n};var r=n(134)},43710:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=t.properties.src,o=t.properties.title;if(n&&o)return{type:"link",title:null,url:r(e,n),children:[{type:"text",value:i(e,o)}]}};var r=n(39654),i=n(25084)},790:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"image",{url:r(e,t.properties.src),title:t.properties.title||null,alt:t.properties.alt||""})};var r=n(39654)},77603:(e,t,n)=>{"use strict";var r=n(134),i=n(27987),o=n(55170),a=n(34097),s=n(98035),l=n(34589),u=n(56396),c=n(7459),d=n(81911),f=n(92281),p=n(18969),h=n(43710),m=n(790),g=n(25450),v=n(75220),y=n(36443),b=n(58898),w=n(59707),_=n(44880),x=n(53043),E=n(89299),k=n(43568),C=n(1649),S=n(91922),A=n(97134),T=n(6),O=n(35621),P=n(71807),R=n(35149),M=n(33222),D=n(45613);function I(){}t.root=k,t.text=P,t.comment=u,t.doctype=I,t.applet=I,t.area=I,t.basefont=I,t.bgsound=I,t.caption=I,t.col=I,t.colgroup=I,t.command=I,t.content=I,t.datalist=I,t.dialog=I,t.element=I,t.embed=I,t.frame=I,t.frameset=I,t.isindex=I,t.keygen=I,t.link=I,t.math=I,t.menu=I,t.menuitem=I,t.meta=I,t.nextid=I,t.noembed=I,t.noframes=I,t.optgroup=I,t.option=I,t.param=I,t.script=I,t.shadow=I,t.source=I,t.spacer=I,t.style=I,t.svg=I,t.template=I,t.title=I,t.track=I,t.abbr=r,t.acronym=r,t.bdi=r,t.bdo=r,t.big=r,t.blink=r,t.button=r,t.canvas=r,t.cite=r,t.data=r,t.details=r,t.dfn=r,t.font=r,t.ins=r,t.label=r,t.map=r,t.marquee=r,t.meter=r,t.nobr=r,t.noscript=r,t.object=r,t.output=r,t.progress=r,t.rb=r,t.rbc=r,t.rp=r,t.rt=r,t.rtc=r,t.ruby=r,t.slot=r,t.small=r,t.span=r,t.sup=r,t.sub=r,t.tbody=r,t.tfoot=r,t.thead=r,t.time=r,t.address=i,t.article=i,t.aside=i,t.body=i,t.center=i,t.div=i,t.fieldset=i,t.figcaption=i,t.figure=i,t.form=i,t.footer=i,t.header=i,t.hgroup=i,t.html=i,t.legend=i,t.main=i,t.multicol=i,t.nav=i,t.picture=i,t.section=i,t.a=y,t.audio=_,t.b=S,t.base=o,t.blockquote=a,t.br=s,t.code=g,t.dir=w,t.dl=d,t.dt=b,t.dd=b,t.del=c,t.em=f,t.h1=p,t.h2=p,t.h3=p,t.h4=p,t.h5=p,t.h6=p,t.hr=M,t.i=f,t.iframe=h,t.img=m,t.image=m,t.input=v,t.kbd=g,t.li=b,t.listing=l,t.mark=f,t.ol=w,t.p=x,t.plaintext=l,t.pre=l,t.q=E,t.s=c,t.samp=g,t.select=C,t.strike=c,t.strong=S,t.summary=x,t.table=O,t.td=A,t.textarea=R,t.th=A,t.tr=T,t.tt=g,t.u=f,t.ul=w,t.var=g,t.video=_,t.wbr=D,t.xmp=l},25450:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"inlineCode",i(e,r(t)))};var r=n(95318),i=n(25084)},75220:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,r=t.properties,c=r.value||r.placeholder,d=[],f=[],p=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",l(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||c?e(t,"image",{url:s(e,r.src),title:r.title&&l(e,r.title)||null,alt:l(e,r.alt||c)}):[];if(c?f=[[c]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(n=String(r.list).toUpperCase(),a.call(e.nodeById,n)&&u(e.nodeById[n])&&(f=o(e,e.nodeById[n],r))),f.length){if("password"===r.type&&(f[0]=[i("•",f[0][0].length)]),"url"===r.type||"email"===r.type){for(;++p<f.length;)c=s(e,f[p][0]),d.push(e(t,"link",{title:null,url:l(e,"email"===r.type?"mailto:"+c:c)},[{type:"text",value:l(e,f[p][1]||c)}])),p!==f.length-1&&d.push({type:"text",value:", "});return d}for(;++p<f.length;)d.push(f[p][1]?f[p][1]+" ("+f[p][0]+")":f[p][0]);return e(t,"text",l(e,d.join(", ")))}}};var r=n(13056),i=n(34076),o=n(82884),a=n(22843),s=n(39654),l=n(25084),u=r("datalist")},36443:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"link",{title:t.properties.title||null,url:i(e,t.properties.href)},r(e,t))};var r=n(134),i=n(39654)},58898:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,r,l,u,c=t.children[0],d=null;return a(c)&&(r=c.children[0],!s(r)||"checkbox"!==r.properties.type&&"radio"!==r.properties.type||(d=Boolean(r.properties.checked),(u=i(c)).children=c.children.slice(1),(l=i(t)).children=[u].concat(t.children.slice(1)))),e(t,"listItem",{spread:(n=o(e,l||t)).length>1,checked:d},n)};var r=n(13056),i=n(25833),o=n(27987),a=r("p"),s=r("input")},59707:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=s(t),r=a(e,t),l=null;return n&&(l=i(t,"start")?t.properties.start:1),e(t,"list",{ordered:n,start:l,spread:o(r)},r)};var r=n(13056),i=n(36040),o=n(73982),a=n(1693),s=r("ol")},44880:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,r=a(e,t),d=c(t)&&t.properties.poster,f=t.properties.src,p=-1;if(o({type:"root",children:r},"link",(function(){return n=!0,o.EXIT})),n||l.needed(r))return r;for(;!f&&++p<t.children.length;)u(t.children[p])&&(f=t.children[p].properties.src);return d&&(r=[{type:"image",title:null,url:s(e,d),alt:i({children:r})}]),{type:"link",title:t.properties.title||null,url:s(e,f),children:r}};var r=n(13056),i=n(75330),o=n(18043),a=n(134),s=n(39654),l=n(76115),u=r("source"),c=r("video")},53043:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=r(e,t);if(n.length)return e(t,"paragraph",n)};var r=n(134)},89299:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i=e.quotes[e.qNesting%e.quotes.length];return e.qNesting++,n=r(e,t),e.qNesting--,n.unshift({type:"text",value:i.charAt(0)}),n.push({type:"text",value:i.length>1?i.charAt(1):i}),n};var r=n(134)},43568:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=r(e,t);return(e.document||i.needed(n))&&(n=i(n)),e(t,"root",n)};var r=n(134),i=n(76115)},1649:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,o=r(e,t),a=-1,s=[];++a<o.length;)n=o[a],s.push(n[1]?n[1]+" ("+n[0]+")":n[0]);if(s.length)return e(t,"text",i(e,s.join(", ")))};var r=n(82884),i=n(25084)},91922:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(134)},97134:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i=e.wrapText;return e.wrapText=!1,n=e(t,"tableCell",r(e,t)),e.wrapText=i,n};var r=n(134)},6:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"tableRow",r(e,t))};var r=n(134)},35621:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=function(e){var t=!0,n=[null],r=0,o=0;return i(e,"element",(function(e){a(e)?t=!1:s(e)?(r++,o=0):l(e)&&(n[o]||(n[o]=e.properties.align||null),t&&r<2&&"th"===e.tagName&&(t=!1),o++)})),{align:n,headless:t}}(t);return e(t,"table",{align:n.align},function(e,t){var n,r,i=[],o=-1;for(t.headless&&i.push({type:"tableRow",children:[]});++o<e.length;)"tableRow"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));for(r&&((n=i[i.length-1]).children=n.children.concat(r)),o=-1;++o<i.length;)(n=i[o]).children=u(n.children,t);return i}(o(e,t),n))};var r=n(13056),i=n(18043),o=n(134),a=r("thead"),s=r("tr"),l=r(["th","td"]);function u(e,t){for(var n,r,i=[],o=-1;++o<e.length;)"tableCell"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));for(r&&((n=i[i.length-1])||(n={type:"tableCell",children:[]},i.push(n)),n.children=n.children.concat(r)),o=i.length-1;++o<t.align.length;)i.push({type:"tableCell",children:[]});return i}},71807:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"text",r(e,t.value))};var r=n(25084)},35149:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"text",i(e,r(t)))};var r=n(95318),i=n(25084)},33222:e=>{"use strict";e.exports=function(e,t){return e(t,"thematicBreak")}},45613:e=>{"use strict";e.exports=function(e,t){return e(t,"text","")}},25140:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var r;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;i.call(e.handlers,t.tagName)&&(r=e.handlers[t.tagName])}else i.call(e.handlers,t.type)&&(r=e.handlers[t.type]);return("function"==typeof r?r:a)(e,t,n)};var r=n(134),i=n(22843),o=n(25084);function a(e,t){return t.value?e(t,"text",o(e,t.value)):r(e,t)}},82884:(e,t,n)=>{"use strict";var r=n(36040),i=n(13056),o=n(95318),a=n(25084);e.exports=function(e,t,n){for(var i,s,u,c,d=n||t.properties,f=l(t),p=Math.min(parseInt(d.size,10),0)||(d.multiple?4:1),h=-1,m=[],g=[];++h<f.length;)r(f[h],"selected")&&m.push(f[h]);for(f=(m.length?m:f).slice(0,p),h=-1;++h<f.length;)i=f[h],u=(s=a(e,o(i)))||i.properties.label,c=i.properties.value||s,g.push([c,u===c?null:u]);return g};var s=i("option");function l(e){for(var t,n=e.children,i=-1,o=[];++i<n.length;)t=n[i],s(t)?r(t,"disabled")||o.push(t):t.children&&(o=o.concat(l(t)));return o}},73982:e=>{"use strict";e.exports=function(e){var t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}},22843:e=>{"use strict";e.exports={}.hasOwnProperty},39654:e=>{"use strict";e.exports=function(e,t){return null==t?"":e.frozenBaseUrl&&"undefined"!=typeof URL?String(new URL(t,e.frozenBaseUrl)):t}},25833:(e,t,n)=>{"use strict";e.exports=function(e){var t,n={};for(t in e)r.call(e,t)&&"children"!==t&&(n[t]=e[t]);return n};var r=n(22843)},27987:(e,t,n)=>{"use strict";e.exports=function(e,t){return i(r(e,t))};var r=n(134),i=n(76115)},1693:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n=r(e,t),i=-1;++i<n.length;)"listItem"!==n[i].type&&(n[i]={type:"listItem",spread:!1,checked:null,children:[n[i]]});return n};var r=n(134)},25084:e=>{"use strict";e.exports=function(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}},76115:(e,t,n)=>{"use strict";e.exports=a,a.needed=l;var r=n(49385),i=n(96967),o=n(25833);function a(e){return s(e,(function(e){var t=e[0];return 1!==e.length||"text"!==t.type||" "!==t.value&&"\n"!==t.value?{type:"paragraph",children:e}:[]}))}function s(e,t,n){for(var r,o,a=n||c,s=function(e){for(var t,n=[],r=-1;++r<e.length;)"delete"!==(t=e[r]).type&&"link"!==t.type||!l(t.children)?n.push(t):n=n.concat(u(t));return n}(e),d=[],f=-1;++f<s.length;)r=s[f],i(r)?(o||(o=[]),o.push(r)):(o&&(d=d.concat(t(o)),o=void 0),d=d.concat(a(r)));return o&&(d=d.concat(t(o))),d}function l(e){for(var t,n=-1;++n<e.length;)if(t=e[n],!i(t)||t.children&&l(t.children))return!0}function u(e){return s(e.children,(function(t){var n=r(!0,{},o(e));return n.children=t,n}),(function(t){var n=r(!0,{},o(e)),i=o(t);return i.children=[n],n.children=t.children,i}))}function c(e){return e}},54332:e=>{e.exports=function(e){return e}},56770:(e,t,n)=>{"use strict";e.exports=l;var r=n(2547),i=n(54332),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,f){var p,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,m.displayName="node ("+i(h.type+(p?"<"+p+">":""))+")"),m;function m(){var i,p,h=f.concat(r),m=[];if((!t||c(r,d,f[f.length-1]||null))&&(m=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,f)),m[0]===s))return m;if(r.children&&m[0]!==a)for(p=(l?r.children.length:-1)+u;p>-1&&p<r.children.length;){if((i=e(r.children[p],p,h)())[0]===s)return i;p="number"==typeof i[1]?i[1]:p+u}return m}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},18043:(e,t,n)=>{"use strict";e.exports=s;var r=n(56770),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},95318:(e,t,n)=>{"use strict";var r=n(34076),i=n(13056),o=n(48313);e.exports=function(e){var t,n,i,o,a=e.children||[],s=p(e),u=y(e,{}),c=-1;if("text"===e.type||"comment"===e.type)return m(e,{whiteSpace:u,breakBefore:!0,breakAfter:!0});for(t=[];++c<a.length;)t=t.concat(h(a[c],0,e,{whiteSpace:u,breakBefore:c?null:s,breakAfter:c<a.length-1?l(a[c+1]):s}));for(c=-1,n=[];++c<t.length;)"number"==typeof(i=t[c])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,l=i("br"),u=i("p"),c=i(["th","td"]),d=i("tr"),f=i(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),p=i(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function h(e,t,n,r){return"element"===e.type?function(e,t,n,r){var i,a,s=y(e,r),m=e.children||[],g=-1,v=[];if(f(e))return v;for(l(e)||d(e)&&o(n,e,d)?a="\n":u(e)?(i=2,a=2):p(e)&&(i=1,a=1);++g<m.length;)v=v.concat(h(m[g],0,e,{whiteSpace:s,breakBefore:g?null:i,breakAfter:g<m.length-1?l(m[g+1]):a}));return c(e)&&o(n,e,c)&&v.push("\t"),i&&v.unshift(i),a&&v.push(a),v}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):g(e)]:[]}function m(e,t){for(var n,r,i,o=String(e.value),s=[],l=[],u=0,c=-1;u<o.length;)a.lastIndex=u,r=(n=a.exec(o))?n.index:o.length,s.push(v(o.slice(u,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),u=r+1;for(;++c<s.length;)8203===s[c].charCodeAt(s[c].length-1)||c<s.length-1&&8203===s[c+1].charCodeAt(0)?(l.push(s[c]),i=""):s[c]&&(i&&l.push(i),l.push(s[c]),i=" ");return l.join("")}function g(e){return String(e.value)}function v(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},67273:e=>{"use strict";e.exports=function(e){var n;if(e&&"object"==typeof e&&"text"===e.type)n=e.value||"";else{if("string"!=typeof e)return!1;n=e}return""===n.replace(t,"")};var t=/[ \t\n\f\r]/g},68924:(e,t,n)=>{"use strict";var r=n(70521),i=n(2939),o=n(74163),a=n(93113).parse,s=n(97327).parse;e.exports=function(e,t,n){var i=n?function(e){for(var t,n=e.length,r=-1,i={};++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),c=a.tagName.toLowerCase();if(a.tagName=i&&l.call(i,c)?i[c]:c,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;return!("input"===e||!n||"string"!=typeof n)&&("object"==typeof t.children&&"length"in t.children||(n=n.toLowerCase(),"button"===e?"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n:"value"in t))}(t.tagName,e)}(n,a)&&(s.unshift(n),n=null),n)for(r in n)d(a.properties,r,n[r]);return u(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a};function d(t,n,i){var o,l,u;null!=i&&i==i&&(l=(o=r(e,n)).property,"string"==typeof(u=i)&&(o.spaceSeparated?u=a(u):o.commaSeparated?u=s(u):o.commaOrSpaceSeparated&&(u=a(s(u).join(" ")))),"style"===l&&"string"!=typeof i&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===l&&t.className&&(u=t.className.concat(u)),t[l]=function(e,t,n){var r,i,o;if("object"!=typeof n||!("length"in n))return c(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=c(e,t,n[r]);return o}(o,l,u))}};var l={}.hasOwnProperty;function u(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)u(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function c(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},88977:(e,t,n)=>{"use strict";var r=n(59209),i=n(68924)(r,"div");i.displayName="html",e.exports=i},22896:(e,t,n)=>{"use strict";e.exports=n(88977)},97078:(e,t,n)=>{"use strict";var r=n(57956),i=n(98176),o=n(68924)(r,"g",i);o.displayName="svg",e.exports=o},70809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBrowserHistory:()=>k,createHashHistory:()=>P,createLocation:()=>g,createMemoryHistory:()=>M,createPath:()=>m,locationsAreEqual:()=>v,parsePath:()=>h});var r=n(7896);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),u=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var u=n(10362);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"==typeof e?(o=h(e)).state=t:(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function w(e,t){t(window.confirm(e))}var _="popstate",x="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function k(e){void 0===e&&(e={}),b||(0,u.Z)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,l=void 0!==s&&s,d=a.getUserConfirmation,h=void 0===d?w:d,v=a.keyLength,k=void 0===v?6:v,C=e.basename?p(c(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return C&&(o=f(o,C)),g(o,r,n)}function A(){return Math.random().toString(36).substr(2,k)}var T=y();function O(e){(0,r.Z)(z,e),z.length=n.length,T.notifyListeners(z.location,z.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(S(e.state))}function R(){D(S(E()))}var M=!1;function D(e){M?(M=!1,O()):T.confirmTransitionTo(e,"POP",h,(function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,N(i))}(e)}))}var I=S(E()),L=[I.key];function j(e){return C+m(e)}function N(e){n.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?(window.addEventListener(_,P),o&&window.addEventListener(x,R)):0===F&&(window.removeEventListener(_,P),o&&window.removeEventListener(x,R))}var U=!1,z={length:n.length,action:"POP",location:I,createHref:j,push:function(e,t){var r="PUSH",o=g(e,t,A(),z.location);T.confirmTransitionTo(o,r,h,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(i)if(n.pushState({key:a,state:s},null,t),l)window.location.href=t;else{var u=L.indexOf(z.location.key),c=L.slice(0,u+1);c.push(o.key),L=c,O({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=g(e,t,A(),z.location);T.confirmTransitionTo(o,r,h,(function(e){if(e){var t=j(o),a=o.key,s=o.state;if(i)if(n.replaceState({key:a,state:s},null,t),l)window.location.replace(t);else{var u=L.indexOf(z.location.key);-1!==u&&(L[u]=o.key),O({action:r,location:o})}else window.location.replace(t)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return U||(B(1),U=!0),function(){return U&&(U=!1,B(-1)),t()}},listen:function(e){var t=T.appendListener(e);return B(1),function(){B(-1),t()}}};return z}var C="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:c},slash:{encodePath:c,decodePath:c}};function A(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(A(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),b||(0,u.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?w:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(c(e.basename)):"",d=S[s],h=d.encodePath,v=d.decodePath;function _(){var e=v(T());return l&&(e=f(e,l)),g(e)}var x=y();function E(e){(0,r.Z)(U,e),U.length=t.length,x.notifyListeners(U.location,U.action)}var k=!1,P=null;function R(){var e,t,n=T(),r=h(n);if(n!==r)O(r);else{var i=_(),a=U.location;if(!k&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===m(i))return;P=null,function(e){if(k)k=!1,E();else{x.confirmTransitionTo(e,"POP",o,(function(t){t?E({action:"POP",location:e}):function(e){var t=U.location,n=L.lastIndexOf(m(t));-1===n&&(n=0);var r=L.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,j(i))}(e)}))}}(i)}}var M=T(),D=h(M);M!==D&&O(D);var I=_(),L=[m(I)];function j(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?window.addEventListener(C,R):0===N&&window.removeEventListener(C,R)}var B=!1,U={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=A(window.location.href)),n+"#"+h(l+m(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,U.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),i=h(l+t);if(T()!==i){P=t,function(e){window.location.hash=e}(i);var o=L.lastIndexOf(m(U.location)),a=L.slice(0,o+1);a.push(t),L=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,U.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),i=h(l+t);T()!==i&&(P=t,O(i));var o=L.indexOf(m(U.location));-1!==o&&(L[o]=t),E({action:n,location:r})}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return U}function R(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,u=void 0===l?6:l,c=y();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,u)}var p=R(s,0,o.length-1),h=o.map((function(e){return g(e,void 0,"string"==typeof e?f():e.key||f())})),v=m;function b(e){var t=R(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r="PUSH",i=g(e,t,f(),w.location);c.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,f(),w.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},73463:(e,t,n)=>{"use strict";var r=n(48570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},62333:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},50340:(e,t)=>{function n(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(e){return!!e&&!!e[K]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Y}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||d(e)||f(e))}function o(e,t,n){void 0===n&&(n=!1),0===a(e)?(n?Object.keys:X)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function a(e){var t=e[K];return t?t.t>3?t.t-4:t.t:Array.isArray(e)?1:d(e)?2:f(e)?3:0}function s(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===a(e)?e.get(t):e[t]}function u(e,t,n){var r=a(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return W&&e instanceof Map}function f(e){return $&&e instanceof Set}function p(e){return e.i||e.u}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[K];for(var n=X(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),v(e)||r(e)||!i(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&o(e,(function(e,t){return m(t,!0)}),!0)),e}function g(){n(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=J[e];return t||n(18,e),t}function b(e,t){J[e]||(J[e]=t)}function w(){return z}function _(e,t){t&&(y("Patches"),e.o=[],e.v=[],e.s=t)}function x(e){E(e),e.p.forEach(C),e.p=null}function E(e){e===z&&(z=e.l)}function k(e){return z={p:[],l:z,h:e,_:!0,m:0}}function C(e){var t=e[K];0===t.t||1===t.t?t.j():t.O=!0}function S(e,t){t.m=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.S||y("ES5").P(t,e,o),o?(r[K].g&&(x(t),n(4)),i(e)&&(e=A(t,e),t.l||O(t,e)),t.o&&y("Patches").M(r[K].u,e,t.o,t.v)):e=A(t,r,[]),x(t),t.o&&t.s(t.o,t.v),e!==G?e:void 0}function A(e,t,n){if(v(t))return t;var r=t[K];if(!r)return o(t,(function(i,o){return T(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.g)return O(e,r.u,!0),r.u;if(!r.R){r.R=!0,r.A.m--;var i=4===r.t||5===r.t?r.i=h(r.k):r.i,a=i,s=!1;3===r.t&&(a=new Set(i),i.clear(),s=!0),o(a,(function(t,o){return T(e,r,i,t,o,n,s)})),O(e,i,!1),n&&e.o&&y("Patches").F(r,n,e.o,e.v)}return r.i}function T(e,t,n,o,a,l,c){if(r(a)){var d=A(e,a,l&&t&&3!==t.t&&!s(t.N,o)?l.concat(o):void 0);if(u(n,o,d),!r(d))return;e._=!1}else c&&n.add(a);if(i(a)&&!v(a)){if(!e.h.D&&e.m<1)return;A(e,a),t&&t.A.l||O(e,a)}}function O(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e._&&m(t,n)}function P(e,t){var n=e[K];return(n?p(n):e)[t]}function R(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function M(e){e.g||(e.g=!0,e.l&&M(e.l))}function D(e){e.i||(e.i=h(e.u))}function I(e,t,n){var r=d(t)?y("MapSet").K(t,n):f(t)?y("MapSet").$(t,n):e.S?function(e,t){var n=Array.isArray(e),r={t:n?1:0,A:t?t.A:w(),g:!1,R:!1,N:{},l:t,u:e,k:null,i:null,j:null,C:!1},i=r,o=ee;n&&(i=[r],o=te);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):y("ES5").I(t,n);return(n?n.A:w()).p.push(r),r}function L(e){return r(e)||n(22,e),function e(t){if(!i(t))return t;var n,r=t[K],s=a(t);if(r){if(!r.g&&(r.t<4||!y("ES5").J(r)))return r.u;r.R=!0,n=j(t,s),r.R=!1}else n=j(t,s);return o(n,(function(t,i){r&&l(r.u,t)===i||u(n,t,e(i))})),3===s?new Set(n):n}(e)}function j(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}function N(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){return ee.get(this[K],e)},set:function(t){ee.set(this[K],e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var r=e[t][K];if(!r.g)switch(r.t){case 5:i(r)&&M(r);break;case 4:n(r)&&M(r)}}}function n(e){for(var t=e.u,n=e.k,r=X(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==K){var a=t[o];if(void 0===a&&!s(t,o))return!0;var l=n[o],u=l&&l[K];if(u?u.u!==a:!c(l,a))return!0}}var d=!!t[K];return r.length!==X(t).length+(d?0:1)}function i(e){var t=e.k;if(t.length!==e.u.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var a={};b("ES5",{I:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=Q(n);delete o[K];for(var a=X(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={t:r?5:4,A:n?n.A:w(),g:!1,R:!1,N:{},l:n,u:t,k:i,i:null,O:!1,C:!1};return Object.defineProperty(i,K,{value:o,writable:!0}),i},P:function(e,n,a){a?r(n)&&n[K].A===e&&t(e.p):(e.o&&function e(t){if(t&&"object"==typeof t){var n=t[K];if(n){var r=n.u,a=n.k,l=n.N,u=n.t;if(4===u)o(a,(function(t){t!==K&&(void 0!==r[t]||s(r,t)?l[t]||e(a[t]):(l[t]=!0,M(n)))})),o(r,(function(e){void 0!==a[e]||s(a,e)||(l[e]=!1,M(n))}));else if(5===u){if(i(n)&&(M(n),l.length=!0),a.length<r.length)for(var c=a.length;c<r.length;c++)l[c]=!1;else for(var d=r.length;d<a.length;d++)l[d]=!0;for(var f=Math.min(a.length,r.length),p=0;p<f;p++)a.hasOwnProperty(p)||(l[p]=!0),void 0===l[p]&&e(a[p])}}}}(e.p[0]),t(e.p))},J:function(e){return 4===e.t?n(e):i(e)}})}function F(){function e(t){if(!i(t))return t;if(Array.isArray(t))return t.map(e);if(d(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(f(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return s(t,V)&&(n[V]=t[V]),n}function t(t){return r(t)?e(t):t}var u="add";b("Patches",{W:function(t,r){return r.forEach((function(r){for(var i=r.path,o=r.op,s=t,c=0;c<i.length-1;c++){var d=a(s),f=i[c];"string"!=typeof f&&"number"!=typeof f&&(f=""+f),0!==d&&1!==d||"__proto__"!==f&&"constructor"!==f||n(24),"function"==typeof s&&"prototype"===f&&n(24),"object"!=typeof(s=l(s,f))&&n(15,i.join("/"))}var p=a(s),h=e(r.value),m=i[i.length-1];switch(o){case"replace":switch(p){case 2:return s.set(m,h);case 3:n(16);default:return s[m]=h}case u:switch(p){case 1:return"-"===m?s.push(h):s.splice(m,0,h);case 2:return s.set(m,h);case 3:return s.add(h);default:return s[m]=h}case"remove":switch(p){case 1:return s.splice(m,1);case 2:return s.delete(m);case 3:return s.delete(r.value);default:return delete s[m]}default:n(17,o)}})),t},F:function(e,n,r,i){switch(e.t){case 0:case 4:case 2:return function(e,n,r,i){var a=e.u,c=e.i;o(e.N,(function(e,o){var d=l(a,e),f=l(c,e),p=o?s(a,e)?"replace":u:"remove";if(d!==f||"replace"!==p){var h=n.concat(e);r.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:f}),i.push(p===u?{op:"remove",path:h}:"remove"===p?{op:u,path:h,value:t(d)}:{op:"replace",path:h,value:t(d)})}}))}(e,n,r,i);case 5:case 1:return function(e,n,r,i){var o=e.u,a=e.N,s=e.i;if(s.length<o.length){var l=[s,o];o=l[0],s=l[1];var c=[i,r];r=c[0],i=c[1]}for(var d=0;d<o.length;d++)if(a[d]&&s[d]!==o[d]){var f=n.concat([d]);r.push({op:"replace",path:f,value:t(s[d])}),i.push({op:"replace",path:f,value:t(o[d])})}for(var p=o.length;p<s.length;p++){var h=n.concat([p]);r.push({op:u,path:h,value:t(s[p])})}o.length<s.length&&i.push({op:"replace",path:n.concat(["length"]),value:o.length})}(e,n,r,i);case 3:return function(e,t,n,r){var i=e.u,o=e.i,a=0;i.forEach((function(e){if(!o.has(e)){var i=t.concat([a]);n.push({op:"remove",path:i,value:e}),r.unshift({op:u,path:i,value:e})}a++})),a=0,o.forEach((function(e){if(!i.has(e)){var o=t.concat([a]);n.push({op:u,path:o,value:e}),r.unshift({op:"remove",path:o,value:e})}a++}))}(e,n,r,i)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===G?void 0:t}),r.push({op:"replace",path:[],value:e})}})}function B(){function e(e,t){function n(){this.constructor=e}s(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.i||(e.N=new Map,e.i=new Map(e.u))}function r(e){e.i||(e.i=new Set,e.u.forEach((function(t){if(i(t)){var n=I(e.A.h,t,e);e.p.set(t,n),e.i.add(n)}else e.i.add(t)})))}function a(e){e.O&&n(3,JSON.stringify(p(e)))}var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},l=function(){function n(e,t){return this[K]={t:2,l:t,A:t?t.A:w(),g:!1,R:!1,i:void 0,N:void 0,u:e,k:this,C:!1,O:!1},this}e(n,Map);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return p(this[K]).size}}),r.has=function(e){return p(this[K]).has(e)},r.set=function(e,n){var r=this[K];return a(r),p(r).has(e)&&p(r).get(e)===n||(t(r),M(r),r.N.set(e,!0),r.i.set(e,n),r.N.set(e,!0)),this},r.delete=function(e){if(!this.has(e))return!1;var n=this[K];return a(n),t(n),M(n),n.u.has(e)?n.N.set(e,!1):n.N.delete(e),n.i.delete(e),!0},r.clear=function(){var e=this[K];a(e),p(e).size&&(t(e),M(e),e.N=new Map,o(e.u,(function(t){e.N.set(t,!1)})),e.i.clear())},r.forEach=function(e,t){var n=this;p(this[K]).forEach((function(r,i){e.call(t,n.get(i),i,n)}))},r.get=function(e){var n=this[K];a(n);var r=p(n).get(e);if(n.R||!i(r))return r;if(r!==n.u.get(e))return r;var o=I(n.A.h,r,n);return t(n),n.i.set(e,o),o},r.keys=function(){return p(this[K]).keys()},r.values=function(){var e,t=this,n=this.keys();return(e={})[Z]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},r.entries=function(){var e,t=this,n=this.keys();return(e={})[Z]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},r[Z]=function(){return this.entries()},n}(),u=function(){function t(e,t){return this[K]={t:3,l:t,A:t?t.A:w(),g:!1,R:!1,i:void 0,u:e,k:this,p:new Map,O:!1,C:!1},this}e(t,Set);var n=t.prototype;return Object.defineProperty(n,"size",{get:function(){return p(this[K]).size}}),n.has=function(e){var t=this[K];return a(t),t.i?!!t.i.has(e)||!(!t.p.has(e)||!t.i.has(t.p.get(e))):t.u.has(e)},n.add=function(e){var t=this[K];return a(t),this.has(e)||(r(t),M(t),t.i.add(e)),this},n.delete=function(e){if(!this.has(e))return!1;var t=this[K];return a(t),r(t),M(t),t.i.delete(e)||!!t.p.has(e)&&t.i.delete(t.p.get(e))},n.clear=function(){var e=this[K];a(e),p(e).size&&(r(e),M(e),e.i.clear())},n.values=function(){var e=this[K];return a(e),r(e),e.i.values()},n.entries=function(){var e=this[K];return a(e),r(e),e.i.entries()},n.keys=function(){return this.values()},n[Z]=function(){return this.values()},n.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();b("MapSet",{K:function(e,t){return new l(e,t)},$:function(e,t){return new u(e,t)}})}var U;Object.defineProperty(t,"__esModule",{value:!0});var z,q="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),W="undefined"!=typeof Map,$="undefined"!=typeof Set,H="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=q?Symbol.for("immer-nothing"):((U={})["immer-nothing"]=!0,U),V=q?Symbol.for("immer-draftable"):"__$immer_draftable",K=q?Symbol.for("immer-state"):"__$immer_state",Z="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y=""+Object.prototype.constructor,X="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q=Object.getOwnPropertyDescriptors||function(e){var t={};return X(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},J={},ee={get:function(e,t){if(t===K)return e;var n=p(e);if(!s(n,t))return function(e,t,n){var r,i=R(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.R||!i(r)?r:r===P(e.u,t)?(D(e),e.i[t]=I(e.A.h,r,e)):r},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=R(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.g){var i=P(p(e),t),o=null==i?void 0:i[K];if(o&&o.u===n)return e.i[t]=n,e.N[t]=!1,!0;if(c(n,i)&&(void 0!==n||s(e.u,t)))return!0;D(e),M(e)}return e.i[t]===n&&(void 0!==n||t in e.i)||Number.isNaN(n)&&Number.isNaN(e.i[t])||(e.i[t]=n,e.N[t]=!0),!0},deleteProperty:function(e,t){return void 0!==P(e.u,t)||t in e.u?(e.N[t]=!1,D(e),M(e)):delete e.N[t],e.i&&delete e.i[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.t||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.u)},setPrototypeOf:function(){n(12)}},te={};o(ee,(function(e,t){te[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),te.deleteProperty=function(e,t){return te.set.call(this,e,t,void 0)},te.set=function(e,t,n){return ee.set.call(this,e[0],t,n,e[0])};var ne=function(){function e(e){var t=this;this.S=H,this.D=!0,this.produce=function(e,r,o){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(i))}))}}var l;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),i(e)){var u=k(t),c=I(t,e,void 0),d=!0;try{l=r(c),d=!1}finally{d?x(u):E(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return _(u,o),S(e,u)}),(function(e){throw x(u),e})):(_(u,o),S(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=r(e))&&(l=e),l===G&&(l=void 0),t.D&&m(l,!0),o){var f=[],p=[];y("Patches").M(e,l,f,p),o(f,p)}return l}n(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||n(8),r(e)&&(e=L(e));var t=k(this),o=I(this,e,void 0);return o[K].C=!0,E(t),o},t.finishDraft=function(e,t){var n=(e&&e[K]).A;return _(n,t),S(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!H&&n(20),this.S=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var o=y("Patches").W;return r(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),re=new ne,ie=re.produce,oe=re.produceWithPatches.bind(re),ae=re.setAutoFreeze.bind(re),se=re.setUseProxies.bind(re),le=re.applyPatches.bind(re),ue=re.createDraft.bind(re),ce=re.finishDraft.bind(re);t.Immer=ne,t.applyPatches=le,t.castDraft=function(e){return e},t.castImmutable=function(e){return e},t.createDraft=ue,t.current=L,t.default=ie,t.enableAllPlugins=function(){N(),B(),F()},t.enableES5=N,t.enableMapSet=B,t.enablePatches=F,t.finishDraft=ce,t.freeze=m,t.immerable=V,t.isDraft=r,t.isDraftable=i,t.nothing=G,t.original=function(e){return r(e)||n(23,e),e[K].u},t.produce=ie,t.produceWithPatches=oe,t.setAutoFreeze=ae,t.setUseProxies=se},30412:(e,t,n)=>{"use strict";e.exports=n(50340)},46670:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:V(e)}function r(e){return s(e)?e:K(e)}function i(e){return l(e)?e:Z(e)}function o(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m="delete",g=5,v=1<<g,y=v-1,b={},w={value:!1},_={value:!1};function x(e){return e.value=!1,e}function E(e){e&&(e.value=!0)}function k(){}function C(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function S(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function A(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function T(){return!0}function O(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return M(e,t,0)}function R(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,I=1,L=2,j="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",F=j||N;function B(e){this.next=e}function U(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function z(){return{value:void 0,done:!0}}function q(e){return!!H(e)}function W(e){return e&&"function"==typeof e.next}function $(e){var t=H(e);return t&&t.call(e)}function H(e){var t=e&&(j&&e[j]||e[N]);if("function"==typeof t)return t}function G(e){return e&&"number"==typeof e.length}function V(e){return null==e?ae():a(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=D,B.VALUES=I,B.ENTRIES=L,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[F]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},V.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(Z,V),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,V),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},V.isSeq=oe,V.Keyed=K,V.Set=Y,V.Indexed=Z;var X,Q,J,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():W(e)?new ie(e).fromEntrySeq():q(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return G(e)?new te(e):W(e)?new ie(e):q(e)?new re(e):void 0}function ce(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new B((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:U(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function fe(e,t){return t?pe(t,e,"",{"":e}):he(e)}function pe(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return pe(e,n,r,t)}))):me(t)?e.call(r,n,K(t).map((function(n,r){return pe(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?Z(e).map(he).toList():me(e)?K(e).map(he).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ge(i[1],e)&&(n||ge(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):i?!ge(t,e.get(r,b)):!ge(e.get(r,b),t))return d=!1,!1}));return d&&e.size===f}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function be(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(J)return J;J=this}}function _e(){throw TypeError("Abstract")}function xe(){}function Ee(){}function ke(){}V.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[A(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new B((function(){return i>r?{value:void 0,done:!0}:U(e,i,n[t?r-i++:i++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new B((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:U(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._iterable),r=0;if(W(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._iterable);if(!W(n))return new B(z);var r=0;return new B((function(){var t=n.next();return t.done?t:U(e,r++,t.value)}))},t(ie,Z),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new B((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return U(e,i,r[i++])}))},t(ye,Z),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ge(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return O(e,t,n)?this:new ye(this._value,R(t,n)-P(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new B((function(){return r<n.size?U(e,r++,n._value):{value:void 0,done:!0}}))},ye.prototype.equals=function(e){return e instanceof ye?ge(this._value,e._value):ve(e)},t(we,Z),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+A(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return O(e,t,this.size)?this:(e=P(e,this.size),(t=R(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},we.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new B((function(){var a=i;return i+=t?-r:r,o>n?{value:void 0,done:!0}:U(e,o++,a)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(_e,n),t(xe,_e),t(Ee,_e),t(ke,_e),_e.Keyed=xe,_e.Indexed=Ee,_e.Set=ke;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function Ae(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>Le?function(e){var t=Fe[e];return void 0===t&&(t=Te(e),Ne===je&&(Ne=0,Fe={}),Ne++,Fe[e]=t),t}(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Me&&void 0!==(t=Re.get(e)))return t;if(void 0!==(t=e[Ie]))return t;if(!Pe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ie]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++De,1073741824&De&&(De=0),Me)Re.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Pe)Object.defineProperty(e,Ie,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ie]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ie]=t}}return t}(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}var Oe=Object.isExtensible,Pe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Re,Me="function"==typeof WeakMap;Me&&(Re=new WeakMap);var De=0,Ie="__immutablehash__";"function"==typeof Symbol&&(Ie=Symbol(Ie));var Le=16,je=255,Ne=0,Fe={};function Be(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?et():ze(e)&&!c(e)?e:et().withMutations((function(t){var n=r(e);Be(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function ze(e){return!(!e||!e[We])}t(Ue,xe),Ue.of=function(){var t=e.call(arguments,0);return et().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return tt(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ue.prototype.remove=function(e){return tt(this,e,b)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ut(this,an(e),t,n);return r===b?void 0:r},Ue.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):et()},Ue.prototype.merge=function(){return ot(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){return ot(this,t,e.call(arguments,1))},Ue.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ue.prototype.mergeDeep=function(){return ot(this,at,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ot(this,st(t),n)},Ue.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ue.prototype.sort=function(e){return Mt(Kt(this,e))},Ue.prototype.sortBy=function(e,t){return Mt(Kt(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new Ye(this,e,t)},Ue.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ue.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Je(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ue.isMap=ze;var qe,We="@@__IMMUTABLE_MAP__@@",$e=Ue.prototype;function He(e,t){this.ownerID=e,this.entries=t}function Ge(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ke(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Qe(e._root)}function Xe(e,t){return U(e,t[0],t[1])}function Qe(e,t){return{node:e,index:0,__prev:t}}function Je(e,t,n,r){var i=Object.create($e);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function et(){return qe||(qe=Je(0))}function tt(e,t,n){var r,i;if(e._root){var o=x(w),a=x(_);if(r=nt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new He(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Je(i,r):et()}function nt(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(E(s),E(a),new Ze(t,r,[i,o]))}function rt(e){return e.constructor===Ze||e.constructor===Ke}function it(e,t,n,r,i){if(e.keyHash===r)return new Ke(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new Ge(t,1<<a|1<<s,a===s?[it(e,t,n+g,r,i)]:(o=new Ze(t,r,i),a<s?[e,o]:[o,e]))}function ot(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=r(s);a(s)||(l=l.map((function(e){return fe(e)}))),i.push(l)}return lt(e,t,i)}function at(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ge(e,t)?e:t}function st(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ge(t,i)?t:i}}function lt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function ut(e,t,n,r){var i=e===b,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}be(i||e&&e.set,"invalid keyPath");var l=o.value,u=i?b:e.get(l,b),c=ut(u,t,n,r);return c===u?e:c===b?e.remove(l):(i?et():e).set(l,c)}function ct(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function dt(e,t,n,r){var i=r?e:C(e);return i[t]=n,i}$e[We]=!0,$e[m]=$e.remove,$e.removeIn=$e.deleteIn,He.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},He.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===b,l=this.entries,u=0,c=l.length;u<c&&!ge(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(E(a),(s||!d)&&E(o),!s||1!==l.length){if(!d&&!s&&l.length>=ft)return function(e,t,n,r){e||(e=new k);for(var i=new Ze(e,Ae(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,l,r,i);var f=e&&e===this.ownerID,p=f?l:C(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new He(e,p)}},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=1<<((0===e?t:t>>>e)&y),o=this.bitmap;return 0==(o&i)?r:this.nodes[ct(o&i-1)].get(e+g,t,n,r)},Ge.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&y,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&i===b)return this;var d=ct(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=nt(p,e,t+g,n,r,i,o,a);if(h===p)return this;if(!c&&h&&f.length>=pt)return function(e,t,n,r,i){for(var o=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Ve(e,o+1,a)}(e,f,u,s,h);if(c&&!h&&2===f.length&&rt(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&rt(h))return h;var m=e&&e===this.ownerID,w=c?h?u:u^l:u|l,_=c?h?dt(f,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(f,d,m):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(f,d,h,m);return m?(this.bitmap=w,this.nodes=_,this):new Ge(e,w,_)},Ve.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=(0===e?t:t>>>e)&y,o=this.nodes[i];return o?o.get(e+g,t,n,r):r},Ve.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&y,l=i===b,u=this.nodes,c=u[s];if(l&&!c)return this;var d=nt(c,e,t+g,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<ht)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new Ge(e,i,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=dt(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ve(e,f,h)},Ke.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ge(n,i[o][0]))return i[o][1];return r},Ke.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=i===b;if(n!==this.keyHash)return s?this:(E(a),E(o),it(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;u<c&&!ge(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(E(a),(s||!d)&&E(o),s&&2===c)return new Ze(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:C(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Ke(e,this.keyHash,p)},Ze.prototype.get=function(e,t,n,r){return ge(n,this.entry[0])?this.entry[1]:r},Ze.prototype.update=function(e,t,n,r,i,o,a){var s=i===b,l=ge(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(E(a),s?void E(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new Ze(e,this.keyHash,[r,i]):(E(o),it(this,e,t,Ae(r),[r,i])))},He.prototype.iterate=Ke.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ge.prototype.iterate=Ve.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Ze.prototype.iterate=function(e,t){return e(this.entry)},t(Ye,B),Ye.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return Xe(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Xe(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Xe(e,o.entry);t=this._stack=Qe(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ft=v/4,pt=v/2,ht=v/4;function mt(e){var t=Ct();if(null==e)return t;if(gt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Be(r),r>0&&r<v?kt(0,r,g,null,new bt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function gt(e){return!(!e||!e[vt])}t(mt,Ee),mt.of=function(){return this(arguments)},mt.prototype.toString=function(){return this.__toString("List [","]")},mt.prototype.get=function(e,t){if((e=A(this,e))>=0&&e<this.size){var n=Tt(this,e+=this._origin);return n&&n.array[e&y]}return t},mt.prototype.set=function(e,t){return function(e,t,n){if((t=A(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ot(e,t).set(0,n):Ot(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=x(_);return t>=Rt(e._capacity)?r=St(r,e.__ownerID,0,t,n,o):i=St(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):kt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},mt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},mt.prototype.insert=function(e,t){return this.splice(e,0,t)},mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ct()},mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ot(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},mt.prototype.pop=function(){return Ot(this,0,-1)},mt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ot(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},mt.prototype.shift=function(){return Ot(this,1)},mt.prototype.merge=function(){return Pt(this,void 0,arguments)},mt.prototype.mergeWith=function(t){return Pt(this,t,e.call(arguments,1))},mt.prototype.mergeDeep=function(){return Pt(this,at,arguments)},mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Pt(this,st(t),n)},mt.prototype.setSize=function(e){return Ot(this,0,e)},mt.prototype.slice=function(e,t){var n=this.size;return O(e,t,n)?this:Ot(this,P(e,n),R(t,n))},mt.prototype.__iterator=function(e,t){var n=0,r=Et(this,t);return new B((function(){var t=r();return t===xt?{value:void 0,done:!0}:U(e,n++,t)}))},mt.prototype.__iterate=function(e,t){for(var n,r=0,i=Et(this,t);(n=i())!==xt&&!1!==e(n,r++,this););return r},mt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?kt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},mt.isList=gt;var vt="@@__IMMUTABLE_LIST__@@",yt=mt.prototype;function bt(e,t){this.array=e,this.ownerID=t}yt[vt]=!0,yt[m]=yt.remove,yt.setIn=$e.setIn,yt.deleteIn=yt.removeIn=$e.removeIn,yt.update=$e.update,yt.updateIn=$e.updateIn,yt.mergeIn=$e.mergeIn,yt.mergeDeepIn=$e.mergeDeepIn,yt.withMutations=$e.withMutations,yt.asMutable=$e.asMutable,yt.asImmutable=$e.asImmutable,yt.wasAltered=$e.wasAltered,bt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new bt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-g,n))===a&&o)return this}if(o&&!i)return this;var s=At(this,e);if(!o)for(var l=0;l<r;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},bt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&y;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-g,n))===o&&i===this.array.length-1)return this}var a=At(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var wt,_t,xt={};function Et(e,t){var n=e._origin,r=e._capacity,i=Rt(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(l===u)return xt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=1+(r-o>>i);return c>v&&(c=v),function(){for(;;){if(s){var e=s();if(e!==xt)return e;s=null}if(u===c)return xt;var n=t?--c:u++;s=a(l&&l[n],i-g,o+(n<<i))}}}(e,s,l)}}function kt(e,t,n,r,i,o,a){var s=Object.create(yt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Ct(){return wt||(wt=kt(0,0,g))}function St(e,t,n,r,i,o){var a,s=r>>>n&y,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var u=e&&e.array[s],c=St(u,t,n-g,r,i,o);return c===u?e:((a=At(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(E(o),a=At(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function At(e,t){return t&&e&&t===e.ownerID?e:new bt(e?e.array.slice():[],t)}function Tt(e,t){if(t>=Rt(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=g;return n}}function Ot(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new bt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=g);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=Rt(o),f=Rt(s);f>=1<<l+g;)u=new bt(u&&u.array.length?[u]:[],r),l+=g;var p=e._tail,h=f<d?Tt(e,s-1):f>d?new bt([],r):p;if(p&&f>d&&a<o&&p.array.length){for(var m=u=At(u,r),v=l;v>g;v-=g){var b=d>>>v&y;m=m.array[b]=At(m.array[b],r)}m.array[d>>>g&y]=p}if(s<o&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=g,u=null,h=h&&h.removeBefore(r,0,a);else if(a>i||f<d){for(c=0;u;){var w=a>>>l&y;if(w!==f>>>l&y)break;w&&(c+=(1<<l)*w),l-=g,u=u.array[w]}u&&a>i&&(u=u.removeBefore(r,l,a-c)),u&&f<d&&(u=u.removeAfter(r,l,f-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):kt(a,s,l,u,h)}function Pt(e,t,n){for(var r=[],o=0,s=0;s<n.length;s++){var l=n[s],u=i(l);u.size>o&&(o=u.size),a(l)||(u=u.map((function(e){return fe(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),lt(e,t,r)}function Rt(e){return e<v?0:e-1>>>g<<g}function Mt(e){return null==e?Lt():Dt(e)?e:Lt().withMutations((function(t){var n=r(e);Be(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Dt(e){return ze(e)&&c(e)}function It(e,t,n,r){var i=Object.create(Mt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Lt(){return _t||(_t=It(et(),Ct()))}function jt(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===b){if(!l)return e;a.size>=v&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):It(r,i)}function Nt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function Bt(e){this._iter=e,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function zt(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new B((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===I?D:I,n)},t}function qt(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(L,i);return new B((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return U(r,s,t.call(n,a[1],s,e),i)}))},r}function Wt(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function $t(e,t,n,r){var i=nn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(L,o),s=0;return new B((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return U(i,r?u:s++,c,o)}}))},i}function Ht(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),O(t,n,i))return e;var o=P(t,i),a=R(n,i);if(o!=o||a!=a)return Ht(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var u=nn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(u.get=function(t,n){return(t=A(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,l=0;return new B((function(){for(;a++<o;)i.next();if(++l>s)return{value:void 0,done:!0};var e=i.next();return r||t===I?e:U(t,l-1,t===D?void 0:e.value[1],e)}))},u}function Gt(e,t,n,r){var i=nn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(L,o),l=!0,u=0;return new B((function(){var e,o,c;do{if((e=s.next()).done)return r||i===I?e:U(i,u++,i===D?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return i===L?e:U(i,o,c,e)}))},i}function Vt(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,u){var c=this;l.__iterate((function(i,l){return(!t||u<t)&&a(i)?e(i,u+1):!1===r(i,n?l:o++,c)&&(s=!0),!s}),i)}(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],l=0;return new B((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===L&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:U(r,l++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Kt(e,t,n){t||(t=on);var r=s(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?K(o):l(e)?Z(o):Y(o)}function Zt(e,t,n){if(t||(t=on),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Yt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Yt(t,e,n)?n:e}))}function Yt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Xt(e,t,r){var i=nn(e);return i.size=new te(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(I,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),$(i?e.reverse():e)})),a=0,s=!1;return new B((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:U(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Qt(e,t){return oe(e)?t:e.constructor(t)}function Jt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return Be(e.size),S(e)}function tn(e){return s(e)?r:l(e)?i:o}function nn(e){return Object.create((s(e)?K:l(e)?Z:Y).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function on(e,t){return e>t?1:e<t?-1:0}function an(e){var t=$(e);if(!t){if(!G(e))throw new TypeError("Expected iterable or array-like: "+e);t=$(n(e))}return t}function sn(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(dn.bind(void 0,e))}catch(e){}})(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ue(o)},i=r.prototype=Object.create(ln);return i.constructor=r,r}t(Mt,Ue),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Lt()},Mt.prototype.set=function(e,t){return jt(this,e,t)},Mt.prototype.remove=function(e){return jt(this,e,b)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?It(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Mt.isOrderedMap=Dt,Mt.prototype[h]=!0,Mt.prototype[m]=Mt.prototype.remove,t(Nt,K),Nt.prototype.get=function(e,t){return this._iter.get(e,t)},Nt.prototype.has=function(e){return this._iter.has(e)},Nt.prototype.valueSeq=function(){return this._iter.valueSeq()},Nt.prototype.reverse=function(){var e=this,t=Wt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Nt.prototype.map=function(e,t){var n=this,r=qt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Nt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?en(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Nt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(I,t),r=t?en(this):0;return new B((function(){var i=n.next();return i.done?i:U(e,t?--r:r++,i.value,i)}))},Nt.prototype[h]=!0,t(Ft,Z),Ft.prototype.includes=function(e){return this._iter.includes(e)},Ft.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Ft.prototype.__iterator=function(e,t){var n=this._iter.__iterator(I,t),r=0;return new B((function(){var t=n.next();return t.done?t:U(e,r++,t.value,t)}))},t(Bt,Y),Bt.prototype.has=function(e){return this._iter.includes(e)},Bt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Bt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(I,t);return new B((function(){var t=n.next();return t.done?t:U(e,t.value,t.value,t)}))},t(Ut,K),Ut.prototype.entrySeq=function(){return this._iter.toSeq()},Ut.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Jt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Ut.prototype.__iterator=function(e,t){var n=this._iter.__iterator(I,t);return new B((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Jt(r);var i=a(r);return U(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},Ft.prototype.cacheResult=Nt.prototype.cacheResult=Bt.prototype.cacheResult=Ut.prototype.cacheResult=rn,t(sn,xe),sn.prototype.toString=function(){return this.__toString(cn(this)+" {","}")},sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=un(this,et()))},sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+cn(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:un(this,n)},sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:un(this,t)},sn.prototype.wasAltered=function(){return this._map.wasAltered()},sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?un(this,t,e):(this.__ownerID=e,this._map=t,this)};var ln=sn.prototype;function un(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function cn(e){return e._name||e.constructor.name||"Record"}function dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function fn(e){return null==e?bn():pn(e)&&!c(e)?e:bn().withMutations((function(t){var n=o(e);Be(n.size),n.forEach((function(e){return t.add(e)}))}))}function pn(e){return!(!e||!e[mn])}ln[m]=ln.remove,ln.deleteIn=ln.removeIn=$e.removeIn,ln.merge=$e.merge,ln.mergeWith=$e.mergeWith,ln.mergeIn=$e.mergeIn,ln.mergeDeep=$e.mergeDeep,ln.mergeDeepWith=$e.mergeDeepWith,ln.mergeDeepIn=$e.mergeDeepIn,ln.setIn=$e.setIn,ln.update=$e.update,ln.updateIn=$e.updateIn,ln.withMutations=$e.withMutations,ln.asMutable=$e.asMutable,ln.asImmutable=$e.asImmutable,t(fn,ke),fn.of=function(){return this(arguments)},fn.fromKeys=function(e){return this(r(e).keySeq())},fn.prototype.toString=function(){return this.__toString("Set {","}")},fn.prototype.has=function(e){return this._map.has(e)},fn.prototype.add=function(e){return vn(this,this._map.set(e,!0))},fn.prototype.remove=function(e){return vn(this,this._map.remove(e))},fn.prototype.clear=function(){return vn(this,this._map.clear())},fn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},fn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},fn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},fn.prototype.merge=function(){return this.union.apply(this,arguments)},fn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},fn.prototype.sort=function(e){return wn(Kt(this,e))},fn.prototype.sortBy=function(e,t){return wn(Kt(this,t,e))},fn.prototype.wasAltered=function(){return this._map.wasAltered()},fn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},fn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},fn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},fn.isSet=pn;var hn,mn="@@__IMMUTABLE_SET__@@",gn=fn.prototype;function vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function yn(e,t){var n=Object.create(gn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function bn(){return hn||(hn=yn(et()))}function wn(e){return null==e?Cn():_n(e)?e:Cn().withMutations((function(t){var n=o(e);Be(n.size),n.forEach((function(e){return t.add(e)}))}))}function _n(e){return pn(e)&&c(e)}gn[mn]=!0,gn[m]=gn.remove,gn.mergeDeep=gn.merge,gn.mergeDeepWith=gn.mergeWith,gn.withMutations=$e.withMutations,gn.asMutable=$e.asMutable,gn.asImmutable=$e.asImmutable,gn.__empty=bn,gn.__make=yn,t(wn,fn),wn.of=function(){return this(arguments)},wn.fromKeys=function(e){return this(r(e).keySeq())},wn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},wn.isOrderedSet=_n;var xn,En=wn.prototype;function kn(e,t){var n=Object.create(En);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Cn(){return xn||(xn=kn(Lt()))}function Sn(e){return null==e?Mn():An(e)?e:Mn().unshiftAll(e)}function An(e){return!(!e||!e[On])}En[h]=!0,En.__empty=Cn,En.__make=kn,t(Sn,Ee),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(e,t){var n=this._head;for(e=A(this,e);n&&e--;)n=n.next;return n?n.value:t},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Rn(e,t)},Sn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Be(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Rn(t,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(e){return this.pushAll(e)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mn()},Sn.prototype.slice=function(e,t){if(O(e,t,this.size))return this;var n=P(e,this.size);if(R(t,this.size)!==this.size)return Ee.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Rn(r,i)},Sn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Rn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Sn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new B((function(){if(r){var t=r.value;return r=r.next,U(e,n++,t)}return{value:void 0,done:!0}}))},Sn.isStack=An;var Tn,On="@@__IMMUTABLE_STACK__@@",Pn=Sn.prototype;function Rn(e,t,n,r){var i=Object.create(Pn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Mn(){return Tn||(Tn=Rn(0))}function Dn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Pn[On]=!0,Pn.withMutations=$e.withMutations,Pn.asMutable=$e.asMutable,Pn.asImmutable=$e.asImmutable,Pn.wasAltered=$e.wasAltered,n.Iterator=B,Dn(n,{toArray:function(){Be(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ft(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Nt(this,!0)},toMap:function(){return Ue(this.toKeyedSeq())},toObject:function(){Be(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Mt(this.toKeyedSeq())},toOrderedSet:function(){return wn(s(this)?this.valueSeq():this)},toSet:function(){return fn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Bt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return mt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Qt(this,function(e,t){var n=s(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var u=new te(i);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ge(t,e)}))},entries:function(){return this.__iterator(L)},every:function(e,t){Be(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Qt(this,$t(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Be(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Be(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return Qt(this,qt(this,e,t))},reduce:function(e,t,n){var r,i;return Be(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qt(this,Wt(this,!0))},slice:function(e,t){return Qt(this,Ht(this,e,t,!0))},some:function(e,t){return!this.every(Fn(e),t)},sort:function(e){return Qt(this,Kt(this,e))},values:function(){return this.__iterator(I)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ue().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(Nn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Fn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(T)},flatMap:function(e,t){return Qt(this,function(e,t,n){var r=tn(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Qt(this,Vt(this,e,!0))},fromEntrySeq:function(){return new Ut(this)},get:function(e,t){return this.find((function(t,n){return ge(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=an(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(c(e)?Mt():Ue()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=tn(e);return i.map((function(t){return Qt(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ge(t,e)}))},keySeq:function(){return this.toSeq().map(jn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Zt(this,e)},maxBy:function(e,t){return Zt(this,t,e)},min:function(e){return Zt(this,e?Bn(e):qn)},minBy:function(e,t){return Zt(this,t?Bn(t):qn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Qt(this,Gt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Fn(e),t)},sortBy:function(e,t){return Qt(this,Kt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Qt(this,function(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(L,i),s=!0;return new B((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?r===L?e:U(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Fn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),Se((t=Ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Wn(Ae(e),Ae(t))|0}:function(e,t){r=r+Wn(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0}),r)}(this))}});var In=n.prototype;In[d]=!0,In[F]=In.values,In.__toJS=In.toArray,In.__toStringMapper=Un,In.inspect=In.toSource=function(){return this.toString()},In.chain=In.flatMap,In.contains=In.includes,Dn(r,{flip:function(){return Qt(this,zt(this))},mapEntries:function(e,t){var n=this,r=0;return Qt(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Qt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Ln=r.prototype;function jn(e,t){return t}function Nn(e,t){return[t,e]}function Fn(e){return function(){return!e.apply(this,arguments)}}function Bn(e){return function(){return-e.apply(this,arguments)}}function Un(e){return"string"==typeof e?JSON.stringify(e):String(e)}function zn(){return C(arguments)}function qn(e,t){return e<t?1:e>t?-1:0}function Wn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ln[f]=!0,Ln[F]=In.entries,Ln.__toJS=In.toObject,Ln.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Un(e)},Dn(i,{toKeyedSeq:function(){return new Nt(this,!1)},filter:function(e,t){return Qt(this,$t(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Qt(this,Wt(this,!1))},slice:function(e,t){return Qt(this,Ht(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return Qt(this,1===n?r:r.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Qt(this,Vt(this,e,!1))},get:function(e,t){return(e=A(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=A(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Qt(this,function(e,t){var n=nn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(I,r),a=0;return new B((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?U(n,a++,t):U(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(C(arguments)),t=Xt(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Qt(this,n)},keySeq:function(){return we(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Qt(this,Gt(this,e,t,!1))},zip:function(){return Qt(this,Xt(this,zn,[this].concat(C(arguments))))},zipWith:function(e){var t=C(arguments);return t[0]=this,Qt(this,Xt(this,e,t))}}),i.prototype[p]=!0,i.prototype[h]=!0,Dn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=In.includes,o.prototype.contains=o.prototype.includes,Dn(K,r.prototype),Dn(Z,i.prototype),Dn(Y,o.prototype),Dn(xe,r.prototype),Dn(Ee,i.prototype),Dn(ke,o.prototype),{Iterable:n,Seq:V,Collection:_e,Map:Ue,OrderedMap:Mt,List:mt,Stack:Sn,Set:fn,OrderedSet:wn,Record:sn,Range:we,Repeat:ye,is:ge,fromJS:fe}}()},91285:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6299:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=y(i);if(n){if(_(),!y(o))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},73756:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},88637:e=>{"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},65279:(e,t,n)=>{"use strict";var r=n(73756),i=n(61278);e.exports=function(e){return r(e)||i(e)}},61278:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},22777:e=>{"use strict";e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},48833:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},87202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)o["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return l(e,t)})),i=function(e){return r.some((function(t){return u(t,e)}))};return null==n?i:i(n)}function l(e,t){var n=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),l=s.length;for(var u in r)a[r[u]]=!1;var f=!0,p=!1,h=void 0;try{for(var m,g=s[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var v=m.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=d(v),w=r[b];if(v.length>1&&!w&&!i[v]&&!o[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==l&&w||(n?a.key=b:a.which=c(v)),w&&(a[w]=!y||null)}}catch(e){p=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(p)throw h}}return a}function u(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function c(e){return e=d(e),o[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),i[e]||e}t.default=s,t.isHotkey=s,t.isCodeHotkey=function(e,t){return s(e,t)},t.isKeyHotkey=function(e,t){return s(e,{byKey:!0},t)},t.parseHotkey=l,t.compareHotkey=u,t.toKeyCode=c,t.toKeyName=d},74898:e=>{"use strict";e.exports=function(e){return n.test("number"==typeof e?t(e):e.charAt(0))};var t=String.fromCharCode,n=/\s/},2821:e=>{"use strict";e.exports=function(e){return n.test("number"==typeof e?t(e):e.charAt(0))};var t=String.fromCharCode,n=/\w/},95978:function(e,t,n){var r=n(48834).Buffer;"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e,t="3.7.5",n=t,i="function"==typeof atob,o="function"==typeof btoa,a="function"==typeof r,s="function"==typeof TextDecoder?new TextDecoder:void 0,l="function"==typeof TextEncoder?new TextEncoder:void 0,u=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(e={},u.forEach((function(t,n){return e[t]=n})),e),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,f=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},h=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},m=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},g=function(e){for(var t,n,r,i,o="",a=e.length%3,s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");o+=u[(t=n<<16|r<<8|i)>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},v=o?function(e){return btoa(e)}:a?function(e){return r.from(e,"binary").toString("base64")}:g,y=a?function(e){return r.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(f.apply(null,e.subarray(n,n+4096)));return v(t.join(""))},b=function(e,t){return void 0===t&&(t=!1),t?h(y(e)):y(e)},w=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?f(192|t>>>6)+f(128|63&t):f(224|t>>>12&15)+f(128|t>>>6&63)+f(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return f(240|t>>>18&7)+f(128|t>>>12&63)+f(128|t>>>6&63)+f(128|63&t)},_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(e){return e.replace(_,w)},E=a?function(e){return r.from(e,"utf8").toString("base64")}:l?function(e){return y(l.encode(e))}:function(e){return v(x(e))},k=function(e,t){return void 0===t&&(t=!1),t?h(E(e)):E(e)},C=function(e){return k(e,!0)},S=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,A=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return f(55296+(t>>>10))+f(56320+(1023&t));case 3:return f((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return f((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},T=function(e){return e.replace(S,A)},O=function(e){if(e=e.replace(/\s+/g,""),!d.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o<e.length;)t=c[e.charAt(o++)]<<18|c[e.charAt(o++)]<<12|(n=c[e.charAt(o++)])<<6|(r=c[e.charAt(o++)]),i+=64===n?f(t>>16&255):64===r?f(t>>16&255,t>>8&255):f(t>>16&255,t>>8&255,255&t);return i},P=i?function(e){return atob(m(e))}:a?function(e){return r.from(e,"base64").toString("binary")}:O,R=a?function(e){return p(r.from(e,"base64"))}:function(e){return p(P(e).split("").map((function(e){return e.charCodeAt(0)})))},M=function(e){return R(I(e))},D=a?function(e){return r.from(e,"base64").toString("utf8")}:s?function(e){return s.decode(R(e))}:function(e){return T(P(e))},I=function(e){return m(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},L=function(e){return D(I(e))},j=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},N=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,j(t))};e("fromBase64",(function(){return L(this)})),e("toBase64",(function(e){return k(this,e)})),e("toBase64URI",(function(){return k(this,!0)})),e("toBase64URL",(function(){return k(this,!0)})),e("toUint8Array",(function(){return M(this)}))},F=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,j(t))};e("toBase64",(function(e){return b(this,e)})),e("toBase64URI",(function(){return b(this,!0)})),e("toBase64URL",(function(){return b(this,!0)}))},B={version:t,VERSION:n,atob:P,atobPolyfill:O,btoa:v,btoaPolyfill:g,fromBase64:L,toBase64:k,encode:k,encodeURI:C,encodeURL:C,utob:x,btou:T,decode:L,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:M,extendString:N,extendUint8Array:F,extendBuiltins:function(){N(),F()},Base64:{}};return Object.keys(B).forEach((function(e){return B.Base64[e]=B[e]})),B}()},91965:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,i=typeof e;if("string"===i){var o,a=[],s=e.length,l=0;for(r=0;r<s;++r)(o=e.charCodeAt(r))<128?a[l++]=o:o<2048?(a[l++]=192|o>>6,a[l++]=128|63&o):o<55296||o>=57344?(a[l++]=224|o>>12,a[l++]=128|o>>6&63,a[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[l++]=240|o>>18,a[l++]=128|o>>12&63,a[l++]=128|o>>6&63,a[l++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,c[r]=54^d}Sha256.call(this,t,n),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(r=e.charCodeAt(o))<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,u=this.h0,c=this.h1,d=this.h2,f=this.h3,p=this.h4,h=this.h5,m=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+n<<0;for(l=c&d,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,g=(i=v[0]-1413257819)-150054599<<0,f=i+24177077<<0):(o=704751109,g=(i=v[0]-210244248)-1521486534<<0,f=i+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(o=u&c)^u&d^l,g=f+(i=g+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&m)+K[e]+v[e])<<0,f=i+(t+r)<<0),t=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(a=f&u)^f&c^o,m=d+(i=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&p^~g&h)+K[e+1]+v[e+1])<<0,t=((d=i+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&f)^d&u^a,h=c+(i=h+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&p)+K[e+2]+v[e+2])<<0,t=((c=i+(t+r)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(l=c&d)^c&f^s,p=u+(i=p+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&m^~h&g)+K[e+3]+v[e+3])<<0,u=i+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+c<<0,this.h2=this.h2+d<<0,this.h3=this.h3+f<<0,this.h4=this.h4+p<<0,this.h5=this.h5+h<<0,this.h6=this.h6+m<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},51949:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:()=>a,default:()=>s}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},91366:e=>{var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(r=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}},75486:(e,t,n)=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h((function(){t(i,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,a=!1;if(!r)return this.resolve([]);for(var s=-1,l=new this(i);++s<r;)n=e[s],t.resolve(n).then((function(e){a||(a=!0,o.resolve(l,e))}),(function(e){a||(a=!0,o.reject(l,e))}));return l}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",f=void 0,p={},h=Object.prototype.toString,m="readonly",g="readwrite";function v(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function y(e){return"boolean"==typeof f?a.resolve(f):function(e){return new a((function(t){var n=e.transaction(d,g),r=o([""]);n.objectStore(d).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return f=e}))}function b(e){var t=p[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function w(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function _(e,t){var n=p[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function x(e,t){return new a((function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);b(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(d)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}}))}function E(e){return x(e,!1)}function k(e){return x(e,!0)}function C(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function S(e){return o([v(atob(e.data))],{type:e.type})}function A(e){return e&&e.__local_forage_encoded_blob}function T(e){var t=this,n=t._initReady().then((function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function O(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),k(e)})).then((function(){return function(e){b(e);for(var t=p[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,E(e).then((function(t){return e.db=t,C(e)?k(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw _(e,t),t}))}(e).then((function(){O(e,t,n,r-1)}))})).catch(n);n(i)}}var P={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=p[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},p[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=T);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var u=i.forages[l];u!==t&&o.push(u._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,E(n)})).then((function(e){return n.db=e,C(n,t._defaultConfig.version)?k(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){O(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;A(r)&&(r=S(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){O(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),A(e)&&(e=S(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===h.call(t)?y(o.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){O(r._dbInfo,g,(function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){O(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){O(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){O(t._dbInfo,m,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){O(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){O(t._dbInfo,m,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var o=e.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):E(e).then((function(t){var n=p[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));n=e.storeName?o.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;b(e);var r=p[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=n}var u=new a((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return u.then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,w(n._dbInfo)}})).catch((function(t){throw(_(e,t)||a.resolve()).catch((function(){})),t}))}})):o.then((function(t){b(e);var n=p[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var s=new a((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return s.then((function(e){n.db=e;for(var t=0;t<r.length;t++)w(r[t]._dbInfo)})).catch((function(t){throw(_(e,t)||a.resolve()).catch((function(){})),t}))}))}else n=a.reject("Invalid arguments");return s(n,t),n}};var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=/^~~local_forage_type~([^~]+)~/,D="__lfsc__:",I="arbf",L="blob",j="si08",N="ui08",F="uic8",B="si16",U="si32",z="ur16",q="ui32",W="fl32",$="fl64",H=Object.prototype.toString;function G(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=R.indexOf(e[t]),r=R.indexOf(e[t+1]),i=R.indexOf(e[t+2]),o=R.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u}function V(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=R[n[t]>>2],r+=R[(3&n[t])<<4|n[t+1]>>4],r+=R[(15&n[t+1])<<2|n[t+2]>>6],r+=R[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(e,t){var n="";if(e&&(n=H.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var r,i=D;e instanceof ArrayBuffer?(r=e,i+=I):(r=e.buffer,"[object Int8Array]"===n?i+=j:"[object Uint8Array]"===n?i+=N:"[object Uint8ClampedArray]"===n?i+=F:"[object Int16Array]"===n?i+=B:"[object Uint16Array]"===n?i+=z:"[object Int32Array]"===n?i+=U:"[object Uint32Array]"===n?i+=q:"[object Float32Array]"===n?i+=W:"[object Float64Array]"===n?i+=$:t(new Error("Failed to get type for BinaryArray"))),t(i+V(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+V(this.result);t(D+L+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==D)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===L&&M.test(n)){var i=n.match(M);t=i[1],n=n.substring(i[0].length)}var a=G(n);switch(r){case I:return a;case L:return o([a],{type:t});case j:return new Int8Array(a);case N:return new Uint8Array(a);case F:return new Uint8ClampedArray(a);case B:return new Int16Array(a);case z:return new Uint16Array(a);case U:return new Int32Array(a);case q:return new Uint32Array(a);case W:return new Float32Array(a);case $:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:G,bufferToString:V};function Z(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Y(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):Z(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,a)}),o)}function X(e,t,n,r){var i=this;e=u(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,u){u?a(u):l.db.transaction((function(n){Y(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(X.apply(i,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(o,n),o}var Q={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(i){Z(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=K,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Y(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Y(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return X.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Y(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Y(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Y(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Y(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Y(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function J(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function ee(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var te={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=J(e,this._defaultConfig),ee()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(i),a++)))return u}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(i,o){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new a((function(t){e.storeName?t(J(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),s(r,t),r}},ne=function(e,t){for(var n=e.length,r=0;r<n;){if((i=e[r])===(o=t)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;r++}var i,o;return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ie={},oe={},ae={INDEXEDDB:P,WEBSQL:Q,LOCALSTORAGE:te},se=[ae.INDEXEDDB._driver,ae.WEBSQL._driver,ae.LOCALSTORAGE._driver],le=["dropInstance"],ue=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(le),ce={description:"",driver:se.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function de(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function fe(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(re(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var pe=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ae)if(ae.hasOwnProperty(n)){var r=ae[n],i=r._driver;this[n]=i,ie[i]||this.defineDriver(r)}this._defaultConfig=fe({},ce),this._config=fe({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=ue.concat("_initStorage"),l=0,u=o.length;l<u;l++){var c=o[l];if((!ne(le,c)||e[c])&&"function"!=typeof e[c])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=le.length;n<r;n++){var i=le[n];e[i]||(e[i]=t(i))}}();var d=function(n){ie[r]&&console.info("Redefining LocalForage driver: "+r),ie[r]=e,oe[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=ie[e]?a.resolve(ie[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(K);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;re(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=u.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!oe[e]},e.prototype._extend=function(e){fe(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ue.length;e<t;e++)de(this,ue[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),he=new pe;t.exports=he},{3:3}]},{},[4])(4)},39515:(e,t,n)=>{var r=n(38761)(n(37772),"DataView");e.exports=r},89612:(e,t,n)=>{var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);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=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},66504:(e,t,n)=>{var r=n(39413),i=n(73620);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},80235:(e,t,n)=>{var r=n(3945),i=n(21846),o=n(88028),a=n(72344),s=n(94769);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=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},45859:(e,t,n)=>{var r=n(39413),i=n(73620);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},10326:(e,t,n)=>{var r=n(38761)(n(37772),"Map");e.exports=r},96738:(e,t,n)=>{var r=n(92411),i=n(36417),o=n(86928),a=n(79493),s=n(24150);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=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},52760:(e,t,n)=>{var r=n(38761)(n(37772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(38761)(n(37772),"Set");e.exports=r},45386:(e,t,n)=>{var r=n(96738),i=n(52842),o=n(52482);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},86571:(e,t,n)=>{var r=n(80235),i=n(15243),o=n(72858),a=n(4417),s=n(8605),l=n(71418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},50857:(e,t,n)=>{var r=n(37772).Symbol;e.exports=r},79162:(e,t,n)=>{var r=n(37772).Uint8Array;e.exports=r},93215:(e,t,n)=>{var r=n(38761)(n(37772),"WeakMap");e.exports=r},49432:e=>{e.exports=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)}},65338:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},72517:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},67552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},38333:(e,t,n)=>{var r=n(77832);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},34893:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},1634:(e,t,n)=>{var r=n(36473),i=n(79631),o=n(86152),a=n(73226),s=n(39045),l=n(77598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),p=n||c||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},50343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},65067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},87064:e=>{e.exports=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}},8589:(e,t,n)=>{var r=n(20256)("length");e.exports=r},50217:e=>{e.exports=function(e){return e.split("")}},28582:(e,t,n)=>{var r=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},60091:(e,t,n)=>{var r=n(13940),i=n(41225),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},22218:(e,t,n)=>{var r=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},12825:(e,t,n)=>{var r=n(24303);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},67993:(e,t,n)=>{var r=n(752),i=n(90249);e.exports=function(e,t){return e&&r(t,i(t),e)}},55906:(e,t,n)=>{var r=n(752),i=n(18582);e.exports=function(e,t){return e&&r(t,i(t),e)}},13940:(e,t,n)=>{var r=n(83043);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},14034:e=>{e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},18874:(e,t,n)=>{var r=n(86571),i=n(72517),o=n(60091),a=n(67993),s=n(55906),l=n(92175),u=n(51522),c=n(7680),d=n(19987),f=n(13483),p=n(76939),h=n(70940),m=n(99917),g=n(8222),v=n(78725),y=n(86152),b=n(73226),w=n(4714),_=n(29259),x=n(43679),E=n(90249),k=n(18582),C="[object Arguments]",S="[object Function]",A="[object Object]",T={};T[C]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[A]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[S]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,O,P,R,M){var D,I=1&n,L=2&n,j=4&n;if(O&&(D=R?O(t,P,R,M):O(t)),void 0!==D)return D;if(!_(t))return t;var N=y(t);if(N){if(D=m(t),!I)return u(t,D)}else{var F=h(t),B=F==S||"[object GeneratorFunction]"==F;if(b(t))return l(t,I);if(F==A||F==C||B&&!R){if(D=L||B?{}:v(t),!I)return L?d(t,s(D,t)):c(t,a(D,t))}else{if(!T[F])return R?t:{};D=g(t,F,I)}}M||(M=new r);var U=M.get(t);if(U)return U;M.set(t,D),x(t)?t.forEach((function(r){D.add(e(r,n,O,r,t,M))})):w(t)&&t.forEach((function(r,i){D.set(i,e(r,n,O,i,t,M))}));var z=N?void 0:(j?L?p:f:L?k:E)(t);return i(z||t,(function(r,i){z&&(r=t[i=r]),o(D,i,e(r,n,O,i,t,M))})),D}},39413:(e,t,n)=>{var r=n(29259),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},85246:(e,t,n)=>{var r=n(45386),i=n(38333),o=n(34893),a=n(50343),s=n(47826),l=n(59950);e.exports=function(e,t,n,u){var c=-1,d=i,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),u?(d=o,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++c<p;){var g=e[c],v=null==n?g:n(g);if(g=u||0!==g?g:0,f&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,u)||h.push(g)}return h}},24303:(e,t,n)=>{var r=n(26548),i=n(92019)(r);e.exports=i},98043:(e,t,n)=>{var r=n(24303);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},21359:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},62034:(e,t,n)=>{var r=n(65067),i=n(95882);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:(e,t,n)=>{var r=n(55463)();e.exports=r},26548:(e,t,n)=>{var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:(e,t,n)=>{var r=n(17297),i=n(33812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},1897:(e,t,n)=>{var r=n(65067),i=n(86152);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},53366:(e,t,n)=>{var r=n(50857),i=n(62107),o=n(37157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},32726:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},20187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:(e,t,n)=>{var r=n(21359),i=n(22195),o=n(66024);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},88390:(e,t,n)=>{var r=n(45386),i=n(38333),o=n(34893),a=n(50343),s=n(47826),l=n(59950),u=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,g=[];p--;){var v=e[p];p&&t&&(v=a(v,s(t))),m=u(v.length,m),h[p]=!n&&(t||d>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var y=-1,b=h[0];e:for(;++y<d&&g.length<m;){var w=v[y],_=t?t(w):w;if(w=n||0!==w?w:0,!(b?l(b,_):c(g,_,n))){for(p=f;--p;){var x=h[p];if(!(x?l(x,_):c(e[p],_,n)))continue e}b&&b.push(_),g.push(w)}}return g}},15183:(e,t,n)=>{var r=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},88746:(e,t,n)=>{var r=n(51952),i=n(15125);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},51952:(e,t,n)=>{var r=n(86571),i=n(74871),o=n(11491),a=n(17416),s=n(70940),l=n(86152),u=n(73226),c=n(77598),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),_=b?f:s(t),x=(w=w==d?p:w)==p,E=(_=_==d?p:_)==p,k=w==_;if(k&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(k&&!x)return v||(v=new r),y||c(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var C=x&&h.call(e,"__wrapped__"),S=E&&h.call(t,"__wrapped__");if(C||S){var A=C?e.value():e,T=S?t.value():t;return v||(v=new r),g(A,T,n,m,v)}}return!!k&&(v||(v=new r),a(e,t,n,m,g,v))}},74511:(e,t,n)=>{var r=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},37036:(e,t,n)=>{var r=n(86571),i=n(88746);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(o)var h=o(d,f,c,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},22195:e=>{e.exports=function(e){return e!=e}},6840:(e,t,n)=>{var r=n(61049),i=n(47394),o=n(29259),a=n(87035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},24333:(e,t,n)=>{var r=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},8109:(e,t,n)=>{var r=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},35522:(e,t,n)=>{var r=n(53366),i=n(61158),o=n(15125),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},68286:(e,t,n)=>{var r=n(26423),i=n(74716),o=n(23059),a=n(86152),s=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},86411:(e,t,n)=>{var r=n(16001),i=n(54248),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:(e,t,n)=>{var r=n(29259),i=n(16001),o=n(62966),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},73620:e=>{e.exports=function(){}},93401:(e,t,n)=>{var r=n(24303),i=n(67878);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},26423:(e,t,n)=>{var r=n(37036),i=n(49882),o=n(73477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},74716:(e,t,n)=>{var r=n(88746),i=n(72579),o=n(95041),a=n(21401),s=n(28792),l=n(73477),u=n(33812);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},84565:(e,t,n)=>{var r=n(86571),i=n(28582),o=n(15308),a=n(25561),s=n(29259),l=n(18582),u=n(52434);e.exports=function e(t,n,c,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,c,e,d,f);else{var p=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},25561:(e,t,n)=>{var r=n(28582),i=n(92175),o=n(6190),a=n(51522),s=n(78725),l=n(79631),u=n(86152),c=n(93746),d=n(73226),f=n(61049),p=n(29259),h=n(97030),m=n(77598),g=n(52434),v=n(63329);e.exports=function(e,t,n,y,b,w,_){var x=g(e,n),E=g(t,n),k=_.get(E);if(k)r(e,n,k);else{var C=w?w(x,E,n+"",e,t,_):void 0,S=void 0===C;if(S){var A=u(E),T=!A&&d(E),O=!A&&!T&&m(E);C=E,A||T||O?u(x)?C=x:c(x)?C=a(x):T?(S=!1,C=i(E,!0)):O?(S=!1,C=o(E,!0)):C=[]:h(E)||l(E)?(C=x,l(x)?C=v(x):p(x)&&!f(x)||(C=s(E))):S=!1}S&&(_.set(E,C),b(C,E,y,w,_),_.delete(E)),r(e,n,C)}}},9655:(e,t,n)=>{var r=n(39045);e.exports=function(e,t){var n=e.length;if(n)return r(t+=t<0?n:0,n)?e[t]:void 0}},23813:(e,t,n)=>{var r=n(50343),i=n(13324),o=n(68286),a=n(93401),s=n(27095),l=n(47826),u=n(18477),c=n(23059),d=n(86152);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,l(o));var p=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(p,(function(e,t){return u(e,t,n)}))}},92602:(e,t,n)=>{var r=n(93759),i=n(95041);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},93759:(e,t,n)=>{var r=n(13324),i=n(82857),o=n(17297);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},20256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:(e,t,n)=>{var r=n(13324);e.exports=function(e){return function(t){return r(t,e)}}},36060:(e,t,n)=>{var r=n(23059),i=n(43114),o=n(75251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},82857:(e,t,n)=>{var r=n(60091),i=n(17297),o=n(39045),a=n(29259),s=n(33812);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},54817:(e,t,n)=>{var r=n(23059),i=n(70529),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},86532:(e,t,n)=>{var r=n(86874),i=n(83043),o=n(23059),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},39872:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},27095:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},36473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var r=n(50857),i=n(50343),o=n(86152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},51704:(e,t,n)=>{var r=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},47826:e=>{e.exports=function(e){return function(t){return e(t)}}},67326:(e,t,n)=>{var r=n(45386),i=n(38333),o=n(34893),a=n(59950),s=n(78803),l=n(16909);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,c=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var g=e[u],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else c(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},29078:(e,t,n)=>{var r=n(17297),i=n(56974),o=n(62721),a=n(33812);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},59950:e=>{e.exports=function(e,t){return e.has(t)}},5642:(e,t,n)=>{var r=n(93746);e.exports=function(e){return r(e)?e:[]}},89419:(e,t,n)=>{var r=n(23059);e.exports=function(e){return"function"==typeof e?e:r}},17297:(e,t,n)=>{var r=n(86152),i=n(21401),o=n(54452),a=n(66188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},23895:(e,t,n)=>{var r=n(39872);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},10768:(e,t,n)=>{var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:(e,t,n)=>{var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},79882:(e,t,n)=>{var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:(e,t,n)=>{e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=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}},34727:(e,t,n)=>{var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:(e,t,n)=>{var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:(e,t,n)=>{var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:(e,t,n)=>{var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},18477:(e,t,n)=>{var r=n(27520);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},11495:e=>{var t=Math.max;e.exports=function(e,n,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=n.length,c=t(a-s,0),d=Array(u+c),f=!i;++l<u;)d[l]=n[l];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}},152:e=>{var t=Math.max;e.exports=function(e,n,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=n.length,d=t(a-l,0),f=Array(d+c),p=!i;++o<d;)f[o]=e[o];for(var h=o;++u<c;)f[h+u]=n[u];for(;++s<l;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}},51522:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},752:(e,t,n)=>{var r=n(60091),i=n(13940);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},7680:(e,t,n)=>{var r=n(752),i=n(80633);e.exports=function(e,t){return r(e,i(e),t)}},19987:(e,t,n)=>{var r=n(752),i=n(12680);e.exports=function(e,t){return r(e,i(e),t)}},24019:(e,t,n)=>{var r=n(37772)["__core-js_shared__"];e.exports=r},61176:e=>{e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},36740:(e,t,n)=>{var r=n(65338),i=n(12825),o=n(68286),a=n(86152);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,u=t?t():{};return l(n,e,o(s,2),u)}}},97263:(e,t,n)=>{var r=n(36060),i=n(82406);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},92019:(e,t,n)=>{var r=n(67878);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},55463:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},23485:(e,t,n)=>{var r=n(52248),i=n(37772);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){return(this&&this!==i&&this instanceof t?a:e).apply(o?n:this,arguments)}}},52248:(e,t,n)=>{var r=n(39413),i=n(29259);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},98462:(e,t,n)=>{var r=n(49432),i=n(52248),o=n(90764),a=n(57891),s=n(13325),l=n(90527),u=n(37772);e.exports=function(e,t,n){var c=i(e);return function i(){for(var d=arguments.length,f=Array(d),p=d,h=s(i);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);return(d-=m.length)<n?a(e,t,o,i.placeholder,void 0,f,m,void 0,void 0,n-d):r(this&&this!==u&&this instanceof i?c:e,this,f)}}},98776:(e,t,n)=>{var r=n(68286),i=n(67878),o=n(90249);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},37541:(e,t,n)=>{var r=n(45859),i=n(29097),o=n(78203),a=n(59350),s=n(86152),l=n(93735);e.exports=function(e){return i((function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(i=d?i:n;++i<n;){c=t[i];var f=a(c),p="wrapper"==f?o(c):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==c.length&&l(c)?d[f]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}},90764:(e,t,n)=>{var r=n(11495),i=n(152),o=n(61176),a=n(52248),s=n(57891),l=n(13325),u=n(33418),c=n(90527),d=n(37772);e.exports=function e(t,n,f,p,h,m,g,v,y,b){var w=128&n,_=1&n,x=2&n,E=24&n,k=512&n,C=x?void 0:a(t);return function S(){for(var A=arguments.length,T=Array(A),O=A;O--;)T[O]=arguments[O];if(E)var P=l(S),R=o(T,P);if(p&&(T=r(T,p,h,E)),m&&(T=i(T,m,g,E)),A-=R,E&&A<b){var M=c(T,P);return s(t,n,e,S.placeholder,f,T,M,v,y,b-A)}var D=_?f:this,I=x?D[t]:t;return A=T.length,v?T=u(T,v):k&&A>1&&T.reverse(),w&&y<A&&(T.length=y),this&&this!==d&&this instanceof S&&(I=C||a(I)),I.apply(D,T)}}},85468:(e,t,n)=>{var r=n(49432),i=n(52248),o=n(37772);e.exports=function(e,t,n,a){var s=1&t,l=i(e);return function t(){for(var i=-1,u=arguments.length,c=-1,d=a.length,f=Array(d+u),p=this&&this!==o&&this instanceof t?l:e;++c<d;)f[c]=a[c];for(;u--;)f[c++]=arguments[++i];return r(p,s?n:this,f)}}},57891:(e,t,n)=>{var r=n(93735),i=n(29890),o=n(15877);e.exports=function(e,t,n,a,s,l,u,c,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?u:void 0,p?void 0:l,p?void 0:u,c,d,f],m=n.apply(void 0,h);return r(e)&&i(m,h),m.placeholder=a,o(m,e,t)}},78803:(e,t,n)=>{var r=n(2143),i=n(34291),o=n(16909),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},87902:(e,t,n)=>{var r=n(54817),i=n(23485),o=n(98462),a=n(90764),s=n(85468),l=n(78203),u=n(79e3),c=n(29890),d=n(15877),f=n(38101),p=Math.max;e.exports=function(e,t,n,h,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=m=void 0),v=void 0===v?v:p(f(v),0),y=void 0===y?y:f(y),w-=m?m.length:0,64&t){var _=h,x=m;h=m=void 0}var E=b?void 0:l(e),k=[e,t,n,h,m,_,x,g,v,y];if(E&&u(k,E),e=k[0],t=k[1],n=k[2],h=k[3],m=k[4],!(y=k[9]=void 0===k[9]?b?0:e.length:p(k[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||16==t?o(e,t,y):32!=t&&33!=t||m.length?a.apply(void 0,k):s(e,t,n,h);else var C=i(e,t,n);return d((E?r:c)(C,k),e,t)}},48642:(e,t,n)=>{var r=n(97030);e.exports=function(e){return r(e)?void 0:e}},83043:(e,t,n)=>{var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:(e,t,n)=>{var r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},11491:(e,t,n)=>{var r=n(50857),i=n(79162),o=n(41225),a=n(74871),s=n(75179),l=n(16909),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,u,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},17416:(e,t,n)=>{var r=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},29097:(e,t,n)=>{var r=n(35676),i=n(43114),o=n(75251);e.exports=function(e){return o(i(e,void 0,r),e+"")}},51242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},13483:(e,t,n)=>{var r=n(1897),i=n(80633),o=n(90249);e.exports=function(e){return r(e,o,i)}},76939:(e,t,n)=>{var r=n(1897),i=n(12680),o=n(18582);e.exports=function(e){return r(e,o,i)}},78203:(e,t,n)=>{var r=n(70529),i=n(34291),o=r?function(e){return r.get(e)}:i;e.exports=o},59350:(e,t,n)=>{var r=n(29212),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},13325:e=>{e.exports=function(e){return e.placeholder}},27937:(e,t,n)=>{var r=n(98304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:(e,t,n)=>{var r=n(28792),i=n(90249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},38761:(e,t,n)=>{var r=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},47353:(e,t,n)=>{var r=n(60241)(Object.getPrototypeOf,Object);e.exports=r},62107:(e,t,n)=>{var r=n(50857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},80633:(e,t,n)=>{var r=n(67552),i=n(30981),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},12680:(e,t,n)=>{var r=n(65067),i=n(47353),o=n(80633),a=n(30981),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},70940:(e,t,n)=>{var r=n(39515),i=n(10326),o=n(52760),a=n(2143),s=n(93215),l=n(53366),u=n(87035),c="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(r),g=u(i),v=u(o),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return c;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},98109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},74842:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},1369:(e,t,n)=>{var r=n(17297),i=n(79631),o=n(86152),a=n(39045),s=n(61158),l=n(33812);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},33880:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52118:(e,t,n)=>{var r=n(99191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},96909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:(e,t,n)=>{var r=n(99191),i=Object.prototype.hasOwnProperty;e.exports=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}},4174:(e,t,n)=>{var r=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},8222:(e,t,n)=>{var r=n(79882),i=n(34727),o=n(96058),a=n(70169),s=n(6190);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(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 s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},78725:(e,t,n)=>{var r=n(39413),i=n(47353),o=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},68442:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},95882:(e,t,n)=>{var r=n(50857),i=n(79631),o=n(86152),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},39045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:(e,t,n)=>{var r=n(41225),i=n(67878),o=n(39045),a=n(29259);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},21401:(e,t,n)=>{var r=n(86152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},98304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},93735:(e,t,n)=>{var r=n(66504),i=n(78203),o=n(59350),a=n(68674);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},47394:(e,t,n)=>{var r,i=n(24019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},16001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:(e,t,n)=>{var r=n(29259);e.exports=function(e){return e==e&&!r(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},21846:(e,t,n)=>{var r=n(22218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},88028:(e,t,n)=>{var r=n(22218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},72344:(e,t,n)=>{var r=n(22218);e.exports=function(e){return r(this.__data__,e)>-1}},94769:(e,t,n)=>{var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:(e,t,n)=>{var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:(e,t,n)=>{var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:(e,t,n)=>{var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:(e,t,n)=>{var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:(e,t,n)=>{var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},73477:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:(e,t,n)=>{var r=n(30733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},79e3:(e,t,n)=>{var r=n(11495),i=n(152),o=n(90527),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],u=n|l,c=u<131,d=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!c&&!d)return e;1&l&&(e[2]=t[2],u|=1&n?0:4);var f=t[3];if(f){var p=e[3];e[3]=p?r(p,f,t[4]):f,e[4]=p?o(e[3],a):t[4]}return(f=t[5])&&(p=e[5],e[5]=p?i(p,f,t[6]):f,e[6]=p?o(e[5],a):t[6]),(f=t[7])&&(e[7]=f),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},70529:(e,t,n)=>{var r=n(93215),i=r&&new r;e.exports=i},99191:(e,t,n)=>{var r=n(38761)(Object,"create");e.exports=r},54248:(e,t,n)=>{var r=n(60241)(Object.keys,Object);e.exports=r},62966:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:(e,t,n)=>{e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},43114:(e,t,n)=>{var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},62721:(e,t,n)=>{var r=n(13324),i=n(39872);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},29212:e=>{e.exports={}},33418:(e,t,n)=>{var r=n(51522),i=n(39045),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var l=t[a];e[a]=i(l,n)?s[l]:void 0}return e}},90527:e=>{var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,i=e.length,o=0,a=[];++r<i;){var s=e[r];s!==n&&s!==t||(e[r]=t,a[o++]=r)}return a}},37772:(e,t,n)=>{var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},52434:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:e=>{e.exports=function(e){return this.__data__.has(e)}},29890:(e,t,n)=>{var r=n(54817),i=n(97787)(r);e.exports=i},16909:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},75251:(e,t,n)=>{var r=n(86532),i=n(97787)(r);e.exports=i},15877:(e,t,n)=>{var r=n(74842),i=n(68442),o=n(75251),a=n(16985);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},97787:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:(e,t,n)=>{var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},71418:(e,t,n)=>{var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},82302:(e,t,n)=>{var r=n(8589),i=n(33880),o=n(35555);e.exports=function(e){return i(e)?o(e):r(e)}},8435:(e,t,n)=>{var r=n(50217),i=n(33880),o=n(63344);e.exports=function(e){return i(e)?o(e):r(e)}},54452:(e,t,n)=>{var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},33812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},87035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},35555:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*",d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+c,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},63344:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*",d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+c,"g");e.exports=function(e){return e.match(f)||[]}},16985:(e,t,n)=>{var r=n(72517),i=n(38333),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},67366:(e,t,n)=>{var r=n(66504),i=n(45859),o=n(51522);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},19534:(e,t,n)=>{var r=n(87902);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},55027:(e,t,n)=>{var r=n(49432),i=n(36060),o=n(85121),a=i((function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},40185:(e,t,n)=>{var r=n(38101);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},54004:(e,t,n)=>{var r=n(18874);e.exports=function(e){return r(e,4)}},9850:(e,t,n)=>{var r=n(18874);e.exports=function(e){return r(e,5)}},22487:(e,t,n)=>{var r=n(65067),i=n(62034),o=n(51522),a=n(86152);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return r(a(n)?o(n):[n],i(t,1))}},86874:e=>{e.exports=function(e){return function(){return e}}},12957:(e,t,n)=>{var r=n(87902);function i(e,t,n){var o=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return o.placeholder=i.placeholder,o}i.placeholder={},e.exports=i},54073:(e,t,n)=>{var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function w(){var e=i();if(b(e))return _(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,c-(e-h)):n}(e))}function _(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function x(){var e=i(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},x.flush=function(){return void 0===f?d:_(i())},x}},48559:(e,t,n)=>{var r=n(14034),i=n(1054),o=n(38101),a=n(66188);e.exports=function(e,t,n){e=a(e),t=i(t);var s=e.length,l=n=void 0===n?s:r(o(n),0,s);return(n-=t.length)>=0&&e.slice(n,l)==t}},41225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},89166:(e,t,n)=>{var r=n(66188),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},90882:(e,t,n)=>{var r=n(67552),i=n(98043),o=n(68286),a=n(86152);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},17452:(e,t,n)=>{var r=n(98776)(n(12982));e.exports=r},12982:(e,t,n)=>{var r=n(21359),i=n(68286),o=n(38101),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},72960:(e,t,n)=>{var r=n(98776)(n(30446));e.exports=r},30446:(e,t,n)=>{var r=n(21359),i=n(68286),o=n(38101),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var u=l-1;return void 0!==n&&(u=o(n),u=n<0?a(l+u,0):s(u,l-1)),r(e,i(t,3),u,!0)}},35838:(e,t,n)=>{var r=n(62034),i=n(16760);e.exports=function(e,t){return r(i(e,t),1)}},35676:(e,t,n)=>{var r=n(62034);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},85395:(e,t,n)=>{var r=n(37541)();e.exports=r},15253:(e,t,n)=>{var r=n(26548),i=n(89419);e.exports=function(e,t){return e&&r(e,i(t))}},18620:(e,t,n)=>{var r=n(80973),i=n(54652),o=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}e.exports=function e(t,n,u,c){var d="function"==typeof n,f=n===Object(n);if(f&&(c=u,u=n,n=void 0),null==u)throw new TypeError;c||(c={});var p={cap:!("cap"in c)||c.cap,curry:!("curry"in c)||c.curry,fixed:!("fixed"in c)||c.fixed,immutable:!("immutable"in c)||c.immutable,rearg:!("rearg"in c)||c.rearg},h=d?u:i,m="curry"in c&&c.curry,g="fixed"in c&&c.fixed,v="rearg"in c&&c.rearg,y=d?u.runInContext():void 0,b=d?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=b.ary,_=b.assign,x=b.clone,E=b.curry,k=b.forEach,C=b.isArray,S=b.isError,A=b.isFunction,T=b.isWeakMap,O=b.keys,P=b.rearg,R=b.toInteger,M=b.toPath,D=O(r.aryMethod),I={castArray:function(e){return function(){var t=arguments[0];return C(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return p.cap&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!A(n))return e(n,Object(t));var r=[];return k(O(t),(function(e){A(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),k(r,(function(e){var t=e[1];A(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return E(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return E(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function L(e,t,n){if(p.fixed&&(g||!r.skipFixed[e])){var i=r.methodSpread[e],a=i&&i.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&o.apply(s,a),t!=r&&o.apply(s,i.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function j(e,t,n){return p.rearg&&n>1&&(v||!r.skipRearg[e])?P(t,r.methodRearg[e]||r.aryRearg[n]):t}function N(e,t){for(var n=-1,r=(t=M(t)).length,i=r-1,o=x(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||A(l)||S(l)||T(l)||(a[s]=x(n==i?l:Object(l))),a=a[s]}return o}function F(t,n){var i=r.aliasToReal[t]||t,o=r.remap[i]||i,a=c;return function(t){var r=d?y:b,s=d?y[o]:n,l=_(_({},a),t);return e(r,i,s,l)}}function B(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=p.rearg?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function U(e,t,n){var i,o=r.aliasToReal[e]||e,u=t,c=I[o];return c?u=c(t):p.immutable&&(r.mutate.array[o]?u=l(t,s):r.mutate.object[o]?u=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[o]&&(u=l(t,N))),k(D,(function(e){return k(r.aryMethod[e],(function(t){if(o==t){var n=r.methodSpread[o],s=n&&n.afterRearg;return i=s?L(o,j(o,u,e),e):j(o,L(o,u,e),e),i=function(e,t,n){return m||p.curry&&n>1?E(t,n):t}(0,i=function(e,t){if(p.cap){var n=r.iterateeRearg[e];if(n)return function(e,t){return B(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(P(a(e,n),t),n)}))}(t,n);var i=!d&&r.iterateeAry[e];if(i)return function(e,t){return B(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,i)}return t}(o,i),e),!1}})),!i})),i||(i=u),i==t&&(i=m?E(i,1):function(){return t.apply(this,arguments)}),i.convert=F(o,t),i.placeholder=t.placeholder=n,i}if(!f)return U(n,u,h);var z=u,q=[];return k(D,(function(e){k(r.aryMethod[e],(function(e){var t=z[r.remap[e]||e];t&&q.push([e,U(e,t,z)])}))})),k(O(z),(function(e){var t=z[e];if("function"==typeof t){for(var n=q.length;n--;)if(q[n][0]==e)return;t.convert=F(e,t),q.push([e,t])}})),k(q,(function(e){z[e[0]]=e[1]})),z.convert=function(e){return z.runInContext.convert(e)(void 0)},z.placeholder=z,k(O(z),(function(e){k(r.realToAlias[e]||[],(function(t){z[t]=z[e]}))})),z}},80973:(e,t)=>{t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},30481:(e,t,n)=>{e.exports={ary:n(19534),assign:n(67993),clone:n(54004),curry:n(12957),forEach:n(72517),isArray:n(86152),isError:n(85121),isFunction:n(61049),isWeakMap:n(8266),iteratee:n(25923),keys:n(86411),rearg:n(30577),toInteger:n(38101),toPath:n(25497)}},42003:(e,t,n)=>{var r=n(18620),i=n(30481);e.exports=function(e,t,n){return r(i,e,t,n)}},58072:(e,t,n)=>{var r=n(42003)("filter",n(90882));r.placeholder=n(54652),e.exports=r},10094:(e,t,n)=>{var r=n(42003)("flow",n(85395));r.placeholder=n(54652),e.exports=r},23162:(e,t,n)=>{var r=n(42003)("fromPairs",n(10017));r.placeholder=n(54652),e.exports=r},65159:(e,t,n)=>{var r=n(42003)("map",n(16760));r.placeholder=n(54652),e.exports=r},54652:e=>{e.exports={}},10017:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},72579:(e,t,n)=>{var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:(e,t,n)=>{var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},93352:(e,t,n)=>{var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:(e,t,n)=>{var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:e=>{e.exports=function(e){return e}},87613:(e,t,n)=>{var r=n(39872);e.exports=function(e){return null!=e&&e.length?r(e,0,-1):[]}},30898:(e,t,n)=>{var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},79631:(e,t,n)=>{var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:e=>{var t=Array.isArray;e.exports=t},67878:(e,t,n)=>{var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:(e,t,n)=>{var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},4335:(e,t,n)=>{var r=n(53366),i=n(15125);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},73226:(e,t,n)=>{e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},45455:(e,t,n)=>{var r=n(86411),i=n(70940),o=n(79631),a=n(86152),s=n(67878),l=n(73226),u=n(16001),c=n(77598),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},18149:(e,t,n)=>{var r=n(88746);e.exports=function(e,t){return r(e,t)}},85121:(e,t,n)=>{var r=n(53366),i=n(15125),o=n(97030);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},61049:(e,t,n)=>{var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:(e,t,n)=>{var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},1842:e=>{e.exports=function(e){return null==e}},80537:(e,t,n)=>{var r=n(53366),i=n(15125);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},29259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},97030:(e,t,n)=>{var r=n(53366),i=n(47353),o=n(15125),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},40859:(e,t,n)=>{var r=n(24333),i=n(47826),o=n(4146),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},43679:(e,t,n)=>{var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},85505:(e,t,n)=>{var r=n(53366),i=n(86152),o=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},4795:(e,t,n)=>{var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:(e,t,n)=>{var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},8266:(e,t,n)=>{var r=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object WeakMap]"==r(e)}},25923:(e,t,n)=>{var r=n(18874),i=n(68286);e.exports=function(e){return i("function"==typeof e?e:r(e,1))}},90249:(e,t,n)=>{var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:(e,t,n)=>{var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16760:(e,t,n)=>{var r=n(50343),i=n(68286),o=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},34519:(e,t,n)=>{var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},30733:(e,t,n)=>{var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:(e,t,n)=>{var r=n(84565),i=n(97263)((function(e,t,n){r(e,t,n)}));e.exports=i},34291:e=>{e.exports=function(){}},61100:(e,t,n)=>{var r=n(37772);e.exports=function(){return r.Date.now()}},77180:(e,t,n)=>{var r=n(9655),i=n(38101);e.exports=function(e,t){return e&&e.length?r(e,i(t)):void 0}},17620:(e,t,n)=>{var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},25291:(e,t,n)=>{var r=n(40185);e.exports=function(e){return r(2,e)}},34498:(e,t,n)=>{var r=n(23813),i=n(86152);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},83465:(e,t,n)=>{var r=n(36060),i=n(87902),o=n(13325),a=n(90527),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},26434:(e,t,n)=>{var r=n(36060),i=n(87902),o=n(13325),a=n(90527),s=r((function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)}));s.placeholder={},e.exports=s},13888:(e,t,n)=>{var r=n(92602),i=n(29097)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},42208:(e,t,n)=>{var r=n(50343),i=n(68286),o=n(93759),a=n(76939);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},65798:(e,t,n)=>{var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},30577:(e,t,n)=>{var r=n(87902),i=n(29097)((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=i},36346:(e,t,n)=>{var r=n(17297),i=n(61049),o=n(33812);e.exports=function(e,t,n){var a=-1,s=(t=r(t,e)).length;for(s||(s=1,e=void 0);++a<s;){var l=null==e?void 0:e[o(t[a])];void 0===l&&(a=s,l=n),e=i(l)?l.call(e):l}return e}},16765:(e,t,n)=>{var r=n(82857);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},829:(e,t,n)=>{var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},37994:(e,t,n)=>{var r=n(14034),i=n(1054),o=n(38101),a=n(66188);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},30981:e=>{e.exports=function(){return[]}},36330:e=>{e.exports=function(){return!1}},85701:(e,t,n)=>{var r=n(39872),i=n(38101);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},12436:(e,t,n)=>{var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},5707:(e,t,n)=>{var r=n(7642);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},38101:(e,t,n)=>{var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:(e,t,n)=>{var r=n(51704),i=n(29259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},25497:(e,t,n)=>{var r=n(50343),i=n(51522),o=n(86152),a=n(4795),s=n(54452),l=n(33812),u=n(66188);e.exports=function(e){return o(e)?r(e,l):a(e)?[e]:i(s(u(e)))}},63329:(e,t,n)=>{var r=n(752),i=n(18582);e.exports=function(e){return r(e,i(e))}},66188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},5648:(e,t,n)=>{var r=n(1054),i=n(51704),o=n(23895),a=n(10768),s=n(51821),l=n(8435),u=n(66188);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return i(e);if(!e||!(t=r(t)))return e;var c=l(e),d=l(t),f=s(c,d),p=a(c,d)+1;return o(c,f,p).join("")}},1573:(e,t,n)=>{var r=n(1054),i=n(23895),o=n(10768),a=n(8435),s=n(66188),l=n(52153);e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t))+1;return i(u,0,c).join("")}},93433:(e,t,n)=>{var r=n(1054),i=n(23895),o=n(51821),a=n(8435),s=n(66188),l=/^\s+/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t));return i(u,c).join("")}},36585:(e,t,n)=>{var r=n(1054),i=n(23895),o=n(33880),a=n(29259),s=n(40859),l=n(82302),u=n(8435),c=n(38101),d=n(66188),f=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var h="separator"in t?t.separator:h;n="length"in t?c(t.length):n,p="omission"in t?r(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=u(e);m=g.length}if(n>=m)return e;var v=n-l(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===h)return y+p;if(g&&(v+=y.length-v),s(h)){if(e.slice(v).search(h)){var b,w=y;for(h.global||(h=RegExp(h.source,d(f.exec(h))+"g")),h.lastIndex=0;b=h.exec(w);)var _=b.index;y=y.slice(0,void 0===_?v:_)}}else if(e.indexOf(r(h),v)!=v){var x=y.lastIndexOf(h);x>-1&&(y=y.slice(0,x))}return y+p}},15316:(e,t,n)=>{var r=n(62034),i=n(68286),o=n(36060),a=n(67326),s=n(93746),l=n(56974),u=o((function(e){var t=l(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))}));e.exports=u},75652:(e,t,n)=>{var r=n(67326);e.exports=function(e){return e&&e.length?r(e):[]}},84636:(e,t,n)=>{var r=n(68286),i=n(67326);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},74930:(e,t,n)=>{var r=n(66188),i=0;e.exports=function(e){var t=++i;return r(e)+t}},17195:(e,t,n)=>{var r=n(29078);e.exports=function(e,t){return null==e||r(e,t)}},67304:(e,t,n)=>{var r=n(85246),i=n(36060),o=n(93746),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},68674:(e,t,n)=>{var r=n(66504),i=n(45859),o=n(73620),a=n(86152),s=n(15125),l=n(67366),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=o.prototype,c.prototype.constructor=c,e.exports=c},6316:e=>{"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");for(n=r=(e=String(e)).indexOf(t);-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},4608:e=>{"use strict";e.exports=i;var t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],n=t.concat(["~","|"]),r=n.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function i(e){var i=e||{};return i.commonmark?r:i.gfm?n:t}i.default=t,i.gfm=n,i.commonmark=r},17591:e=>{"use strict";e.exports=function(e,n){var v,y,b,w,_,x,E,k,C,S,A,T,O=n||{},P=O.delimiter,R=O.start,M=O.end,D=O.align,I=O.stringLength||h,L=0,j=-1,N=e.length,F=[];for(D=D?D.concat():[],null==P&&(P=r+d+r),null==R&&(R=d+r),null==M&&(M=r+d);++j<N;)for(x=-1,(w=e[j]).length>L&&(L=w.length);++x<L;)E=w[x]?g(w[x]):null,F[x]||(F[x]=f),E>F[x]&&(F[x]=E);for("string"==typeof D&&(D=m(L,D).split("")),x=-1;++x<L;)"string"==typeof(v=D[x])&&(v=v.charAt(0).toLowerCase()),v!==u&&v!==c&&v!==l&&v!==a&&(v=""),D[x]=v;for(j=-1,b=[];++j<N;){for(w=e[j],x=-1,_=[];++x<L;)C=p(C=w[x]),D[x]===a?(E=g(C),k=F[x]+(t.test(C)?0:1)-(I(C)-E),_[x]=C+m(k-1)):_[x]=C;b[j]=_}for(F=[],j=-1;++j<N;)for(_=b[j],x=-1;++x<L;)C=_[x],F[x]||(F[x]=f),(k=I(C))>F[x]&&(F[x]=k);for(j=-1;++j<N;){if(_=b[j],x=-1,!1!==O.pad)for(;++x<L;)C=_[x],S=m(E=F[x]-(I(C)||0)),D[x]===c||D[x]===a?C=S+C:D[x]===l?((E/=2)%1==0?(A=E,T=E):(A=E+.5,T=E-.5),C=m(A)+C+m(T)):C+=S,_[x]=C;b[j]=_.join(P)}if(!1!==O.rule){for(x=-1,y=[];++x<L;)S=!1===O.pad?(S=I(p(C=e[0][x])))>f?S:f:F[x],C=(v=D[x])===c||""===v?o:s,C+=m(S-2,o),C+=v!==u&&""!==v?s:o,y[x]=C;b.splice(1,0,y.join(P))}return R+b.join(M+i+R)+M};var t=/\./,n=/\.[^.]*$/,r=" ",i="\n",o="-",a=".",s=":",l="c",u="l",c="r",d="|",f=3;function p(e){return null==e?"":String(e)}function h(e){return String(e).length}function m(e,t){return new Array(e+1).join(t||r)}function g(e){var t=n.exec(e);return t?t.index+1:e.length}},62499:(e,t,n)=>{"use strict";var r=n(9867);function i(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}e.exports=function(e,t){return r(e,(function(e,n,r){var o=r?r.children:[],a=n&&o[n-1];if(a&&e.type===a.type&&i(a,t)&&i(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),o.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n})),e}},99983:(e,t,n)=>{"use strict";var r=n(9867);e.exports=function(e,t){return n=function(e,t){var n={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",t&&t.commonmark?function(e){var t=o(e.identifier);i.call(n,t)||(n[t]=e)}:function(e){n[o(e.identifier)]=e}),n}(e,t),function(e){var t=e&&o(e);return t&&i.call(n,t)?n[t]:null};var n};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},39167:(e,t,n)=>{"use strict";e.exports=function(e,t,n,r){var i,o;return"string"==typeof t||t&&"function"==typeof t.exec?o=[[t,n]]:(o=t,r=n),s(e,i=r||{},function e(t){var n=t[0];return function(r,o){var l,u,c,d,f=n[0],p=n[1],h=[],m=0,g=o.children.indexOf(r);for(f.lastIndex=0,u=f.exec(r.value);u&&(l=u.index,!1!==(d=p.apply(null,[].concat(u,{index:u.index,input:u.input})))&&(m!==l&&h.push({type:"text",value:r.value.slice(m,l)}),"string"==typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(h=[].concat(h,d)),m=l+u[0].length),f.global);)u=f.exec(r.value);if(void 0===l?(h=[r],g--):(m<r.value.length&&h.push({type:"text",value:r.value.slice(m)}),h.unshift(g,1),a.apply(o.children,h)),t.length>1)for(c=e(t.slice(1)),l=-1;++l<h.length;)"text"===(r=h[l]).type?c(r,o):s(r,i,c);return g+h.length+1}}(function(e){var t,n,r=[];if("object"!=typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([l(e[n][0]),u(e[n][1])]);else for(t in e)r.push([l(t),u(e[t])]);return r}(o))),e};var r=n(9318),i=n(2547),o=n(20326),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",(function(e,t){for(var r,i,a=-1;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)})),[]}function l(e){return"string"==typeof e?new RegExp(o(e),"g"):e}function u(e){return"function"==typeof e?e:function(){return e}}},20326:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},15602:e=>{e.exports=function(e){return e}},9318:(e,t,n)=>{"use strict";e.exports=l;var r=n(2547),i=n(15602),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,f){var p,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,m.displayName="node ("+i(h.type+(p?"<"+p+">":""))+")"),m;function m(){var i,p,h=f.concat(r),m=[];if((!t||c(r,d,f[f.length-1]||null))&&(m=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,f)),m[0]===s))return m;if(r.children&&m[0]!==a)for(p=(l?r.children.length:-1)+u;p>-1&&p<r.children.length;){if((i=e(r.children[p],p,h)())[0]===s)return i;p="number"==typeof i[1]?i[1]:p+u}return m}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},67650:(e,t,n)=>{"use strict";e.exports=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){var t=e||{},n=function(e,t){for(var n=-1;++n<t.length;)p(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:g(P),autolinkProtocol:x,autolinkEmail:x,atxHeading:g(A),blockQuote:g((function(){return{type:"blockquote",children:[]}})),characterEscape:x,characterReference:x,codeFenced:g(S),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:g(S,v),codeText:g((function(){return{type:"inlineCode",value:""}}),v),codeTextData:x,data:x,codeFlowValue:x,definition:g((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:g((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:g(T),hardBreakTrailing:g(T),htmlFlow:g(O,v),htmlFlowData:x,htmlText:g(O,v),htmlTextData:x,image:g((function(){return{type:"image",title:null,url:"",alt:null}})),label:v,link:g(P),listItem:g((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){h("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),c("expectingFirstListItemValue"))},listOrdered:g(R,(function(){c("expectingFirstListItemValue",!0)})),listUnordered:g(R),paragraph:g((function(){return{type:"paragraph",children:[]}})),reference:function(){c("referenceType","collapsed")},referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:g(A),strong:g((function(){return{type:"strong",children:[]}})),thematicBreak:g((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:b(),atxHeadingSequence:function(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)},autolink:b(),autolinkEmail:function(e){E.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){E.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:b(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:C,characterReferenceMarkerNumeric:C,characterReferenceValue:function(e){var t,n,r=this.sliceSerialize(e),i=h("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),c("characterReferenceType")):t=d(r),(n=this.stack.pop()).value+=t,n.position.end=m(e.end)},codeFenced:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")})),codeFencedFence:function(){h("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))},codeFencedFenceInfo:function(){var e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:E,codeIndented:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:E,data:E,definition:b(),definitionDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:b(),hardBreakEscape:b(k),hardBreakTrailing:b(k),htmlFlow:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:E,htmlText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:E,image:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")})),label:function(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,c("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t},labelText:function(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()},lineEnding:function(e){var t=this.stack[this.stack.length-1];if(h("atHardBreak"))return t.children[t.children.length-1].position.end=m(e.end),void c("atHardBreak");!h("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(x.call(this,e),E.call(this,e))},link:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")})),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),c("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){c("inReference")},setextHeading:b((function(){c("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){c("setextHeadingSlurpLineEnding",!0)},strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),l={};return function(e){for(var t,r={type:"root",children:[]},a=[],s=[],l=-1,d={stack:[r],tokenStack:a,config:n,enter:y,exit:w,buffer:v,resume:_,setData:c,getData:h};++l<e.length;)"listOrdered"!==e[l][1].type&&"listUnordered"!==e[l][1].type||("enter"===e[l][0]?s.push(l):l=u(e,s.pop(l),l));for(l=-1;++l<e.length;)t=n[e[l][0]],o.call(t,e[l][1].type)&&t[e[l][1].type].call(i({sliceSerialize:e[l][2].sliceSerialize},d),e[l][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+f({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:m(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:m(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<n.transforms.length;)r=n.transforms[l](r)||r;return r};function u(e,t,n){for(var r,i,o,a,s,l,u,c=t-1,d=-1,f=!1;++c<=n;)if("listUnordered"===(s=e[c])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,u=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||u||d||l||(l=c),u=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(u=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=c,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",f=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;l&&(!o||l<o)&&(r._spread=!0),r.end=m(o?e[o][1].start:s[1].end),e.splice(o||c,0,["exit",r,s[2]]),c++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:m(s[1].start)},e.splice(c,0,["enter",r,s[2]]),c++,n++,l=void 0,u=!0)}return e[t][1]._spread=f,n}function c(e,t){l[e]=t}function h(e){return l[e]}function m(e){return{line:e.line,column:e.column,offset:e.offset}}function g(e,t){return function(n){y.call(this,e(n),n),t&&t.call(this,n)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:m(t.start)},e}function b(e){return function(t){e&&e.call(this,t),w.call(this,t)}}function w(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): it’s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+f({start:n.start,end:n.end})+") is open");return t.position.end=m(e.end),t}function _(){return r(this.stack.pop())}function x(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:m(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function E(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=m(e.end)}function k(){c("atHardBreak",!0)}function C(e){c("characterReferenceType",e.type)}function S(){return{type:"code",lang:null,meta:null,value:""}}function A(){return{type:"heading",depth:void 0,children:[]}}function T(){return{type:"break"}}function O(){return{type:"html",value:""}}function P(){return{type:"link",title:null,url:"",children:[]}}function R(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(c(l(n).document().write(u()(e,t,!0))))};var r=n(21979),i=n(38492),o=n(52686),a=n(3797),s=n(24810),l=n(87572),u=n(23294),c=n(17708),d=n(68108),f=n(88062);function p(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},22792:(e,t,n)=>{"use strict";e.exports=n(67650)},21979:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},81017:(e,t,n)=>{var r=n(53404),i=n(39167),o=n(27079),a=n(3081);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function l(e,t,n,i,o){var a,s,l="";return!!c(o)&&(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!!function(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)&&!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(o=o[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),t=(o=o.slice(t+1)).indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s))}function u(e,t,n,r){return!(!c(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,l],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,u]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},57813:(e,t)=>{var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},38327:(e,t)=>{t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},46764:(e,t,n)=>{var r=n(48615);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},68413:(e,t)=>{function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},2166:(e,t,n)=>{"use strict";var r=n(34076);e.exports=function(e,t){for(var n,c,d,f,p,b,w,_,x,E,k,C,S=t||{},A=!1!==S.padding,T=!1!==S.delimiterStart,O=!1!==S.delimiterEnd,P=(S.align||[]).concat(),R=!1!==S.alignDelimiters,M=[],D=S.stringLength||v,I=-1,L=e.length,j=[],N=[],F=[],B=[],U=[],z=0;++I<L;){for(c=-1,F=[],B=[],(d=(n=e[I]).length)>z&&(z=d);++c<d;)b=null==(C=n[c])?"":String(C),!0===R&&(p=D(b),B[c]=p,(void 0===(f=U[c])||p>f)&&(U[c]=p)),F.push(b);j[I]=F,N[I]=B}if(c=-1,d=z,"object"==typeof P&&"length"in P)for(;++c<d;)M[c]=y(P[c]);else for(k=y(P);++c<d;)M[c]=k;for(c=-1,d=z,F=[],B=[];++c<d;)x="",E="",(k=M[c])===m?x=l:k===g?E=l:k===h&&(x=l,E=l),p=R?Math.max(1,U[c]-x.length-E.length):1,b=x+r(s,p)+E,!0===R&&((p=x.length+p+E.length)>U[c]&&(U[c]=p),B[c]=p),F[c]=b;for(j.splice(1,0,F),N.splice(1,0,B),I=-1,L=j.length,w=[];++I<L;){for(F=j[I],B=N[I],c=-1,d=z,_=[];++c<d;)b=F[c]||"",x="",E="",!0===R&&(p=U[c]-(B[c]||0),(k=M[c])===g?x=r(o,p):k===h?p%2==0?E=x=r(o,p/2):(x=r(o,p/2+.5),E=r(o,p/2-.5)):E=r(o,p)),!0===T&&0===c&&_.push(u),!0!==A||!1===R&&""===b||!0!==T&&0===c||_.push(o),!0===R&&_.push(x),_.push(b),!0===R&&_.push(E),!0===A&&_.push(o),!0!==O&&c===d-1||_.push(u);_=_.join(""),!1===O&&(_=_.replace(i,"")),w.push(_)}return w.join(a)};var i=/ +$/,o=" ",a="\n",s="-",l=":",u="|",c=0,d=67,f=76,p=82,h=99,m=108,g=114;function v(e){return e.length}function y(e){var t="string"==typeof e?e.charCodeAt(0):c;return t===f||t===m?m:t===p||t===g?g:t===d||t===h?h:c}},48144:(e,t,n)=>{var r=n(48615),i=n(97370),o=n(2166);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return c(function(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");++r<i;)o[r]=d(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=c([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:u,inlineCode:function(e,t,n){var r=i(e,t,n);return-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function u(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:l,after:l});return i(),o}function c(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=u(n[r],0,t);return a(),o}}},12723:(e,t)=>{function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},47329:(e,t,n)=>{var r=n(48295);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];return"boolean"==typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "}))),i}}},69242:(e,t,n)=>{var r=n(81017),i=n(38327),o=n(68413),a=n(12723),s={}.hasOwnProperty;function l(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){for(var t={transforms:[],canContainEols:[]},n=e.length,r=-1;++r<n;)l(t,e[r]);return t}([r,i,o,a])},73965:(e,t,n)=>{var r=n(57813),i=n(46764),o=n(48144),a=n(47329),s=n(43296);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},96967:(e,t,n)=>{"use strict";var r=n(2547)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);r.displayName="isPhrasing",e.exports=r},31887:(e,t,n)=>{"use strict";e.exports=n(97391)},46862:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,o,a=t.children||[],s=a.length,l=[],u=-1;++u<s;)(n=i(e,a[u],t))&&(u&&"break"===a[u-1].type&&(n.value&&(n.value=r.left(n.value)),(o=n.children&&n.children[0])&&o.value&&(o.value=r.left(o.value))),l=l.concat(n));return l};var r=n(50311),i=n(13161)},81642:(e,t,n)=>{"use strict";e.exports=function(e){var t,n,a,s,l=e.footnotes,u=l.length,c=-1,d=[];if(!u)return null;for(;++c<u;)s=(a=(t=l[c]).children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d[c]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position};return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(76424),i=n(67368),o=n(94327)},50313:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(94327),i=n(46862)},56340:(e,t,n)=>{"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(73610)},75781:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=t.value?r(t.value+"\n"):"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return o&&(a.className=["language-"+o]),e(t.position,"pre",[e(t,"code",a,[i("text",n)])])};var r=n(17994),i=n(73610)},92622:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(46862)},51558:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(46862)},91211:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(73610)},95200:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n=[],i=1,o=e.footnotes,a=o.length,s=-1;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(i));)i++;return i=String(i),o.push({type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position}),r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(91211)},89694:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(46862)},84320:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(73610)},86903:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);return o?(n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title),e(t,"img",n)):i(e,t)};var r=n(81737),i=n(68726)},27453:(e,t,n)=>{"use strict";var r=n(81737);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},81917:(e,t,n)=>{"use strict";function r(){return null}e.exports={blockquote:n(50313),break:n(56340),code:n(75781),delete:n(92622),emphasis:n(51558),footnoteReference:n(91211),footnote:n(95200),heading:n(89694),html:n(84320),imageReference:n(86903),image:n(27453),inlineCode:n(29711),linkReference:n(9146),link:n(49818),listItem:n(2848),list:n(67368),paragraph:n(93146),root:n(91053),strong:n(24323),table:n(50791),text:n(43334),thematicBreak:n(76424),toml:r,yaml:r,definition:r,footnoteDefinition:r}},29711:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"code",[i("text",r(t.value))])};var r=n(38925),i=n(73610)},9146:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,o(e,t))):i(e,t)};var r=n(81737),i=n(68726),o=n(46862)},49818:(e,t,n)=>{"use strict";var r=n(81737),i=n(46862);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}},2848:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var s,l,u,c,d,f=t.children[0],p=o(e,t),h=n?function(e){for(var t=e.spread,n=e.children,r=n.length,i=-1;!t&&++i<r;)t=a(n[i]);return t}(n):a(t),m={};if(h)s=p;else for(s=[],c=p.length,u=-1;++u<c;)"p"===(d=p[u]).tagName?s=s.concat(d.children):s.push(d);return"boolean"==typeof t.checked&&(!h||f&&"paragraph"===f.type||s.unshift(e(null,"p",[])),0!==(l=h?s[0].children:s).length&&l.unshift(r("text"," ")),l.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),m.className=["task-list-item"]),h&&0!==s.length&&(s=i(s,!0)),e(t,"li",m,s)};var r=n(73610),i=n(94327),o=n(46862);function a(e){var t=e.spread;return null==t?e.children.length>1:t}},67368:(e,t,n)=>{"use strict";e.exports=function(e,t){var n={},o=t.ordered?"ol":"ul";return"number"==typeof t.start&&1!==t.start&&(n.start=t.start),e(t,o,n,r(i(e,t),!0))};var r=n(94327),i=n(46862)},93146:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(46862)},91053:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(73610),i=n(94327),o=n(46862)},24323:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(46862)},50791:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,a,s,l,u,c=t.children,d=c.length,f=t.align,p=f.length,h=[];d--;){for(a=c[d].children,l=0===d?"th":"td",n=p,s=[];n--;)u=a[n],s[n]=e(u,l,{align:f[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))};var r=n(9352),i=n(94327),o=n(46862)},43334:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("text",i(t.value)))};var r=n(73610),i=n(66406)},76424:e=>{"use strict";e.exports=function(e,t){return e(t,"hr")}},97391:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{},i=n.allowDangerousHTML;return c.dangerous=i,c.definition=l(e,n),c.footnotes=[],c.augment=u,c.handlers=r(d,n.handlers||{}),o(e,"footnoteDefinition",(function(e){c.footnotes.push(e)})),c;function u(e,t){var n,i;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=r(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),i=e&&e.position?e:{position:e},s(i)||(t.position={start:a.start(i),end:a.end(i)}),t}function c(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),f=u(n,e),p=c(n);return f&&f.children&&p&&(f.children=f.children.concat(i("text","\n"),p)),f};var r=n(51960),i=n(73610),o=n(9867),a=n(9352),s=n(93624),l=n(99983),u=n(13161),c=n(81642),d=n(81917)},13161:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var r=t&&t.type,i=o.call(e.handlers,r)?e.handlers[r]:null;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof i?i:a)(e,t,n)};var r=n(73610),i=n(46862),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}},68726:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((o=(n=i(e,t))[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(73610),i=n(46862)},94327:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;for(t&&n.push(r("text","\n"));++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);return t&&0!==e.length&&n.push(r("text","\n")),n};var r=n(73610)},43296:e=>{e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},97370:(e,t,n)=>{e.exports=i,i.peek=function(){return"`"};var r=n(15505);function i(e,t,n){for(var i,o,a,s,l=e.value||"",u="`",c=-1;new RegExp("(^|[^`])"+u+"([^`]|$)").test(l);)u+="`";for(/[^ \r\n]/.test(l)&&(/[ \r\n`]/.test(l.charAt(0))||/[ \r\n`]/.test(l.charAt(l.length-1)))&&(l=" "+l+" ");++c<n.unsafe.length;)if((i=n.unsafe[c]).atBreak)for(o=r(i);a=o.exec(l);)s=a.index,10===l.charCodeAt(s)&&13===l.charCodeAt(s-1)&&s--,l=l.slice(0,s)+" "+l.slice(a.index+1);return u+l+u}},48295:(e,t,n)=>{e.exports=function(e,t,n){var l,u,c,d=i(n),f=o(n);return t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+"."),l=d.length+1,("tab"===f||"mixed"===f&&(t&&t.spread||e.spread))&&(l=4*Math.ceil(l/4)),c=n.enter("listItem"),u=s(a(e,n),(function(e,t,n){return t?(n?"":r(" ",l))+e:(n?d:d+r(" ",l-d.length))+e})),c(),u};var r=n(34076),i=n(6008),o=n(21370),a=n(39438),s=n(12117)},6008:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},21370:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},39438:(e,t,n)=>{e.exports=function(e,t){for(var n,i=e.children||[],o=[],a=-1;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"==typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(34076)},48615:e=>{e.exports=function(e,t,n){for(var r,i,o,a=e.children||[],s=[],l=-1,u=n.before;++l<a.length;)o=a[l],l+1<a.length?((i=t.handle.handlers[a[l+1].type])&&i.peek&&(i=i.peek),r=i?i(a[l+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===u||"\n"===u)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),u=" "),s.push(t.handle(o,e,t,{before:u,after:r})),u=s[s.length-1].slice(-1);return s.join("")}},12117:e=>{e.exports=function(e,n){for(var r,i=[],o=0,a=0;r=t.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(n(e,a,!e))}};var t=/\r?\n|\r/g},15505:e=>{e.exports=function(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}},75330:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n.join("")}e.exports=t},81737:e=>{"use strict";var t={};function n(e,r,i){var o,a,s,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},36631:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},71955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONHTTPError=t.TextHTTPError=t.HTTPError=t.getPagination=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(64971);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"getPagination",{enumerable:!0,get:function(){return o.getPagination}});var u=t.HTTPError=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.statusText));return n.name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(e.statusText).stack,n.status=e.status,n}return l(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),c=t.TextHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.data=n,r}return l(t,e),t}(u),d=t.JSONHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.json=n,r}return l(t,e),t}(u),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1];a(this,e),this.apiURL=t,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=n&&n.defaultHeaders||{}}return i(e,[{key:"headers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({},this.defaultHeaders,{"Content-Type":"application/json"},e)}},{key:"parseJsonResponse",value:function(e){return e.json().then((function(t){if(!e.ok)return Promise.reject(new d(e,t));var n=(0,o.getPagination)(e);return n?{pagination:n,items:t}:t}))}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.headers(n.headers||{});return this._sameOrigin&&(n.credentials=n.credentials||"same-origin"),fetch(this.apiURL+e,r({},n,{headers:i})).then((function(e){var n=e.headers.get("Content-Type");return n&&n.match(/json/)?t.parseJsonResponse(e):e.ok?e.text().then((function(e){})):e.text().then((function(t){return Promise.reject(new c(e,t))}))}))}}]),e}();t.default=f},64971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.getPagination=function(e){var t=e.headers.get("Link"),r={};if(null==t)return null;t=t.split(",");for(var i=e.headers.get("X-Total-Count"),o=0,a=t.length;o<a;o++){var s=t[o].replace(/(^\s*|\s*$)/,"").split(";"),l=n(s,2),u=l[0],c=l[1],d=u.match(/page=(\d+)/),f=d&&parseInt(d[1],10);c.match(/last/)?r.last=f:c.match(/next/)?r.next=f:c.match(/prev/)?r.prev=f:c.match(/first/)&&(r.first=f)}return r.last=Math.max(r.last||0,r.prev&&r.prev+1||0),r.current=r.next?r.next-1:r.last||1,r.total=i?parseInt(i,10):null,r}},73603:(e,t,n)=>{e.exports=n(24485)},24485:(e,t,n)=>{var r=n(65845),i=n(44355),o=n(40883),a=n(72658),s=n(27079),l=n(3081),u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},c={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(p,c,u)(t):46===t||95===t?e.check(f,c,u)(t):o(t)||l(t)||45!==t&&s(t)?c(t):(e.consume(t),a)}function u(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function c(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(p,t,i)(a):(40===a&&n++,41===a?e.check(f,o,i)(a):w(a)?t(a):b(a)?e.check(f,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):w(i)?t(i):n(i)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return w(e)?t(e):n(e)}},partial:!0},h={tokenize:function(e,t,n){var r=this;return function(t){return 87!==t&&t-32!=87||!x(r.previous)||C(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u,e.attempt(c,e.attempt(d,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:x},m={tokenize:function(e,t,n){var r=this;return function(t){return 72!==t&&t-32!=72||!E(r.previous)||C(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i)};function i(t){return 84===t||t-32==84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 80===t||t-32==80?(e.consume(t),f):n(t)}function f(t){return 83===t||t-32==83?(e.consume(t),p):p(t)}function p(t){return 58===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return o(t)||l(t)||s(t)?n(t):e.attempt(c,e.attempt(d,v),n)(t)}function v(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:E},g={tokenize:function(e,t,n){var r,o=this;return function(t){return _(t)&&k(o.previous)&&!C(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return _(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(f,d,l)(t):45===t||95===t?e.check(f,n,u)(t):i(t)?(e.consume(t),s):d(t)}function l(t){return e.consume(t),r=!0,s}function u(t){return e.consume(t),c}function c(t){return 46===t?e.check(f,n,l)(t):s(t)}function d(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:k},v={};t.text=v;for(var y=48;y<123;)v[y]=g,58==++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function w(e){return null===e||e<0||32===e||60===e}function _(e){return 43===e||45===e||46===e||95===e||i(e)}function x(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function E(e){return null===e||!r(e)}function k(e){return 47!==e&&E(e)}function C(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}v[43]=g,v[45]=g,v[46]=g,v[95]=g,v[72]=[g,m],v[104]=[g,m],v[87]=[g,h],v[119]=[g,h]},12922:(e,t,n)=>{e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return function(t){return 126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){var u,c,d=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,l):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),c=r(a),u._open=!c||2===c&&d,u._close=!d||2===d&&c,n(a))}},resolveAll:function(e,t){for(var n,r,s,l,u=-1;++u<e.length;)if("enter"===e[u][0]&&"strikethroughSequenceTemporary"===e[u][1].type&&e[u][1]._close)for(s=u;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[u][1].end.offset-e[u][1].start.offset==e[s][1].end.offset-e[s][1].start.offset){e[u][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[u][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[u][1].start)},l=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(l,l.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,u),t)),i(l,l.length,0,[["exit",r,t],["enter",e[u][1],t],["exit",e[u][1],t],["exit",n,t]]),i(e,s-1,u-s+3,l),u=s+l.length-2;break}return function(e){for(var t=-1,n=e.length;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:n}}};var r=n(83585),i=n(43416),o=n(12869),a=n(9085)},23858:(e,t,n)=>{e.exports=n(7520)},7520:(e,t,n)=>{t.flow={null:{tokenize:function(e,t,n){var a,s,l=[],u=0;return function(t){return null===t||-5===t||-4===t||-3===t?n(t):(e.enter("table")._align=l,e.enter("tableHead"),e.enter("tableRow"),124===t?c(t):(u++,e.enter("temporaryTableCellContent"),p(t)))};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){return null===t?n(t):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,m,"linePrefix",4)))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,u++),124===t?c(t):(e.enter("temporaryTableCellContent"),p(t)))}function f(t){return-2===t||-1===t||32===t?(e.consume(t),f):(e.exit("whitespace"),d(t))}function p(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function m(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),g(t))}function g(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,l.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function v(t){return-2===t||-1===t||32===t?(e.consume(t),v):(e.exit("whitespace"),g(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l[l.length-1]="left"===l[l.length-1]?"center":"right",w):g(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function w(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function _(t){return e.exit("tableDelimiterRow"),s&&u===l.length?null===t?x(t):e.check(o,x,E)(t):n(t)}function x(n){return e.exit("table"),t(n)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,k,"linePrefix",4)}function k(t){return e.enter("tableBody"),C(t)}function C(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),O(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||-5===t||-4===t||-3===t?function(t){return e.exit("tableRow"),null===t?R(t):e.check(o,R,M)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),T):124===t?S(t):(e.enter("temporaryTableCellContent"),O(t))}function T(t){return-2===t||-1===t||32===t?(e.consume(t),T):(e.exit("whitespace"),A(t))}function O(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?P:O)}function P(t){return 92===t||124===t?(e.consume(t),O):O(t)}function R(t){return e.exit("tableBody"),x(t)}function M(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,C,"linePrefix",4)}},resolve:function(e,t){for(var n,r,i,o,a,s,l,u,c,d,f=e.length,p=-1;++p<f;)n=e[p][1],o&&("temporaryTableCellContent"===n.type&&(u=u||p,c=p),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!c||(l={type:"chunkText",start:(s={type:"tableContent",start:e[u][1].start,end:e[c][1].end}).start,end:s.end,contentType:"text"},e.splice(u,c-u+1,["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]),p-=c-u-3,f=e.length,u=void 0,c=void 0)),"exit"===e[p][0]&&d&&d+1<p&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<p||"whitespace"!==e[d][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[p][1].end},e.splice(p+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),p+=2,f=e.length,d=p+1),"tableRow"===n.type&&(o="enter"===e[p][0])&&(d=p+1),"tableDelimiterRow"===n.type&&(i="enter"===e[p][0])&&(d=p+1),"tableHead"===n.type&&(r="enter"===e[p][0]);return e},interruptible:!0}};var r=n(32397),i={tokenize:function(e,t,n){return function(t){return 45!==t?n(t):(e.enter("setextUnderline"),r(t))};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4==++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},502:(e,t,n)=>{e.exports=n(38750)},38750:(e,t,n)=>{var r=n(21551),i=n(32397),o=n(24722),a={tokenize:function(e,t,n){var r=this;return function(t){return 91===t&&null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,(function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:a}},53977:(e,t,n)=>{e.exports=n(85884)},85884:(e,t,n)=>{var r=n(84e3),i=n(73603),o=n(12922),a=n(23858),s=n(502);e.exports=function(e){return r([i,o(e),a,s])}},65845:(e,t,n)=>{"use strict";var r=n(43744)(/[A-Za-z]/);e.exports=r},44355:(e,t,n)=>{"use strict";var r=n(43744)(/[\dA-Za-z]/);e.exports=r},11465:(e,t,n)=>{"use strict";var r=n(43744)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},40883:e=>{"use strict";e.exports=function(e){return e<32||127===e}},41687:(e,t,n)=>{"use strict";var r=n(43744)(/\d/);e.exports=r},27855:(e,t,n)=>{"use strict";var r=n(43744)(/[\dA-Fa-f]/);e.exports=r},858:(e,t,n)=>{"use strict";var r=n(43744)(/[!-/:-@[-`{-~]/);e.exports=r},21551:e=>{"use strict";e.exports=function(e){return e<0||32===e}},72658:e=>{"use strict";e.exports=function(e){return e<-2}},41727:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},27079:(e,t,n)=>{"use strict";var r=n(1837),i=n(43744)(r);e.exports=i},3081:(e,t,n)=>{"use strict";var r=n(43744)(/\s/);e.exports=r},38492:e=>{"use strict";var t=Object.assign;e.exports=t},2756:e=>{"use strict";var t=String.fromCharCode;e.exports=t},52686:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},87899:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},83206:e=>{"use strict";e.exports=["pre","script","style","textarea"]},36139:e=>{"use strict";var t=[].splice;e.exports=t},1837:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},88731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73354),i=n(74818),o=n(93339),a=n(55597),s=n(74512),l=n(57885),u=n(45396),c=n(28350),d=n(40330),f=n(54953),p=n(74649),h=n(23271),m=n(11217),g=n(21254),v=n(73946),y=n(3216),b=n(71979),w=n(61692),_=n(49393),x=n(77293),E=n(99669),k={42:_,43:_,45:_,48:_,49:_,50:_,51:_,52:_,53:_,54:_,55:_,56:_,57:_,62:a},C={91:f},S={"-2":c,"-1":c,32:c},A={35:h,42:E,45:[x,E],60:m,61:x,95:E,96:u,126:u},T={38:l,92:s},O={"-5":w,"-4":w,"-3":w,33:y,38:l,42:i,60:[o,g],91:b,92:[p,s],93:v,95:i,96:d},P={null:[i,r.resolver]};t.contentInitial=C,t.disable={null:[]},t.document=k,t.flow=A,t.flowInitial=S,t.insideSpan=P,t.string=T,t.text=O},11022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72658),i=n(32397);t.tokenize=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix");e.consume(t)}),(function(t){return e.enter("paragraph"),o(t)}));return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}}},10722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72658),i=n(32397),o=n(3645),a={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},s={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=function(e){var t,n,i,l=this,u=[],c=0,d={tokenize:function(e,r){var i=0;return t={},c;function c(r){return i<u.length?(l.containerState=u[i][1],e.attempt(u[i][0].continuation,d,f)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(l.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,h,m)(r))}function d(e){return i++,l.containerState._closeFlow?h(e):c(e)}function f(t){return n.currentConstruct&&n.currentConstruct.lazy?(l.containerState={},e.attempt(a,h,e.attempt(s,h,e.check(o,h,p)))(t)):h(t)}function p(e){return i=u.length,t.lazy=!0,t.flowContinue=!0,m(e)}function h(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=i,l.interrupt=l.containerState=void 0,r(e)}},partial:!0};return f;function f(t){return c<u.length?(l.containerState=u[c][1],e.attempt(u[c][0].continuation,p,h)(t)):h(t)}function p(e){return c++,f(e)}function h(r){return t&&t.flowContinue?g(r):(l.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,m,g)(r))}function m(e){return u.push([l.currentConstruct,l.containerState]),l.containerState=void 0,h(e)}function g(t){return null===t?(w(0,!0),void e.consume(t)):(n=n||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(t))}function v(t){return null===t?(b(e.exit("chunkFlow")),g(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,y)):(e.consume(t),v)}function y(e){return w(t.continued,t&&t.flowEnd),c=0,f(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(l.sliceStream(e))}function w(t,r){var o=u.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)l.containerState=u[o][1],u[o][0].exit.call(l,e);u.length=t}}},70019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42463),i=n(32397),o=n(3645);t.tokenize=function(e){var t=this,n=e.attempt(o,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},73354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38492),i=n(9085),o=l("text"),a=l("string"),s={resolveAll:u()};function l(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:u("text"===e?c:void 0)}}function u(e){return function(t,n){for(var r,i=-1;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function c(e,t){for(var n,o,a,s,l,u,c,d,f=-1;++f<=e.length;)if((f===e.length||"lineEnding"===e[f][1].type)&&"data"===e[f-1][1].type){for(o=e[f-1][1],s=(n=t.sliceStream(o)).length,l=-1,u=0,c=void 0;s--;)if("string"==typeof(a=n[s])){for(l=a.length;32===a.charCodeAt(l-1);)u++,l--;if(l)break;l=-1}else if(-2===a)c=!0,u++;else if(-1!==a){s++;break}u&&(d={type:f===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-u,offset:o.end.offset-u,_index:o.start._index+s,_bufferIndex:s?l:o.start._bufferIndex+l},end:i(o.end)},o.end=i(d.start),o.start.offset===o.end.offset?r(o,d):(e.splice(f,0,["enter",d,t],["exit",d,t]),f+=2)),f++}return e}t.resolver=s,t.string=a,t.text=o},87572:(e,t,n)=>{"use strict";var r=n(11022),i=n(10722),o=n(70019),a=n(73354),s=n(84e3),l=n(29117),u=n(338),c=n(88731);e.exports=function(e){var t={defined:[],constructs:s([c].concat(u((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return l(t,e,n)}}}},17708:(e,t,n)=>{"use strict";var r=n(96548);e.exports=function(e){for(;!r(e););return e}},23294:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,i="";return function(o,a,s){var l,u,c,d,f,p=[];for(o=i+o.toString(a),c=0,i="",n&&(65279===o.charCodeAt(0)&&c++,n=void 0);c<o.length;){if(t.lastIndex=c,d=(l=t.exec(o))?l.index:o.length,f=o.charCodeAt(d),!l){i=o.slice(c);break}if(10===f&&c===d&&e)p.push(-3),e=void 0;else if(e&&(p.push(-5),e=void 0),c<d&&(p.push(o.slice(c,d)),r+=d-c),0===f)p.push(65533),r++;else if(9===f)for(u=4*Math.ceil(r/4),p.push(-2);r++<u;)p.push(-1);else 10===f?(p.push(-4),r=1):(e=!0,r=1);c=d+1}return s&&(e&&p.push(-5),i&&p.push(i),p.push(null)),p}}},74818:(e,t,n)=>{"use strict";var r=n(94363),i=n(43416),o=n(83585),a=n(2141),s=n(12869),l=n(9085),u={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,l,u,c;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),u=!(l=o(a))||2===l&&r,c=!r||2===r&&l,s._open=42===n?u:u&&(r||!c),s._close=42===n?c:c&&(l||!u),t(a))}},resolveAll:function(e,t){for(var n,o,u,c,d,f,p,h,m=-1;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;c={type:(f=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:a(l(e[n][1].end),-f),end:l(e[n][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:l(e[m][1].start),end:a(l(e[m][1].start),f)},u={type:f>1?"strongText":"emphasisText",start:l(e[n][1].end),end:l(e[m][1].start)},o={type:f>1?"strong":"emphasis",start:l(c.start),end:l(d.end)},e[n][1].end=l(c.start),e[m][1].start=l(d.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=r(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=r(p,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",u,t]]),p=r(p,s(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),p=r(p,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[m][1].end.offset-e[m][1].start.offset?(h=2,p=r(p,[["enter",e[m][1],t],["exit",e[m][1],t]])):h=0,i(e,n-1,m-n+3,p),m=n+p.length-h-2;break}for(m=-1;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=u},93339:(e,t,n)=>{"use strict";var r=n(65845),i=n(44355),o=n(11465),a=n(40883),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return r(t)?(e.consume(t),u):o(t)?f(t):n(t)}function u(e){return 43===e||45===e||46===e||i(e)?c(e):f(e)}function c(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),c):f(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),g(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function f(t){return 64===t?(e.consume(t),s=0,p):o(t)?(e.consume(t),f):n(t)}function p(e){return i(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),s=0,p):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",g(t)):m(t)}function m(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?m:h):n(t)}function g(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},55597:(e,t,n)=>{"use strict";var r=n(41727),i=n(32397),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){return 62===t?(i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o):n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},74512:(e,t,n)=>{"use strict";var r=n(858),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},57885:(e,t,n)=>{"use strict";var r=n(68108),i=n(44355),o=n(41687),a=n(27855);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(r),u={name:"characterReference",tokenize:function(e,t,n){var r,s,u=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),r=31,s=i,p(t))}function f(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,p):(e.enter("characterReferenceValue"),r=7,s=o,p(t))}function p(o){var a;return 59===o&&c?(a=e.exit("characterReferenceValue"),s!==i||l.default(u.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&c++<r?(e.consume(o),p):n(o)}}};e.exports=u},45396:(e,t,n)=>{"use strict";var r=n(72658),i=n(21551),o=n(24722),a=n(32397),s={name:"codeFenced",tokenize:function(e,t,n){var s,l=this,u={tokenize:function(e,t,n){var i=0;return a(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return t===s?(e.consume(t),i++,o):i<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,l,"whitespace")(t))}function l(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},c=o(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,f(t)};function f(t){return t===s?(e.consume(t),d++,f):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,p,"whitespace")(t))}function p(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,m,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function m(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===s?n(t):(e.consume(t),g)}function v(n){return e.exit("codeFencedFence"),l.interrupt?t(n):y(n)}function y(t){return null===t?w(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(u,w,c?a(e,y,"linePrefix",c+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function w(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},28350:(e,t,n)=>{"use strict";var r=n(72658),i=n(43416),o=n(24722),a=n(32397),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(l,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(l,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},l={tokenize:function(e,t,n){var i=this;return a(e,(function s(l){return r(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a(e,s,"linePrefix",5)):o(i.events,"linePrefix")<4?n(l):t(l)}),"linePrefix",5)},partial:!0};e.exports=s},40330:(e,t,n)=>{"use strict";var r=n(72658),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,c(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),u)}function c(n){return 96===n?(e.consume(n),i++,c):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",u(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},42463:(e,t,n)=>{"use strict";var r=n(72658),i=n(24722),o=n(96548),a=n(32397),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(l,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},l={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},54953:(e,t,n)=>{"use strict";var r=n(72658),i=n(21551),o=n(3797),a=n(29145),s=n(64202),l=n(32397),u=n(70653),c=n(96894),d={name:"definition",tokenize:function(e,t,n){var i,c=this;return function(t){return e.enter("definition"),s.call(c,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return i=o(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),u(e,a(e,e.attempt(f,l(e,p,"whitespace"),l(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(o){return null===o||r(o)?(e.exit("definition"),c.parser.defined.indexOf(i)<0&&c.parser.defined.push(i),t(o)):n(o)}}},f={tokenize:function(e,t,n){return function(t){return i(t)?u(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?c(e,l(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},29145:(e,t,n)=>{"use strict";var r=n(40883),i=n(21551),o=n(72658);e.exports=function(e,t,n,a,s,l,u,c,d){var f=d||1/0,p=0;return function(t){return 60===t?(e.enter(a),e.enter(s),e.enter(l),e.consume(t),e.exit(l),h):r(t)||41===t?n(t):(e.enter(a),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),v(t))};function h(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(o){return 40===o?++p>f?n(o):(e.consume(o),v):41===o?p--?(e.consume(o),v):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):null===o||i(o)?p?n(o):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},64202:(e,t,n)=>{"use strict";var r=n(72658),i=n(41727);e.exports=function(e,t,n,o,a,s){var l,u=this,c=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(i){return null===i||91===i||93===i&&!l||94===i&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(i))}function f(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),d(t)):(e.consume(t),l=l||!i(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}}},32397:(e,t,n)=>{"use strict";var r=n(41727);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){return r(i)?(e.enter(n),s(i)):t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},96894:(e,t,n)=>{"use strict";var r=n(72658),i=n(32397);e.exports=function(e,t,n,o,a,s){var l;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),l=40===t?41:t,u};function u(n){return n===l?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),c(n))}function c(t){return t===l?(e.exit(s),u(l)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||r(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?f:d)}function f(t){return t===l||92===t?(e.consume(t),d):d(t)}}},70653:(e,t,n)=>{"use strict";var r=n(72658),i=n(41727),o=n(32397);e.exports=function(e,t){var n;return function a(s){return r(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a):i(s)?o(e,a,n?"linePrefix":"lineSuffix")(s):t(s)}}},74649:(e,t,n)=>{"use strict";var r=n(72658),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},23271:(e,t,n)=>{"use strict";var r=n(72658),i=n(21551),o=n(41727),a=n(43416),s=n(32397),l={name:"headingAtx",tokenize:function(e,t,n){var a=this,l=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),u(t)};function u(r){return 35===r&&l++<6?(e.consume(r),u):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):c(r)):n(r)}function c(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,c,"whitespace")(n):(e.enter("atxHeadingText"),f(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),c(t))}function f(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),f)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}};e.exports=l},11217:(e,t,n)=>{"use strict";var r=n(65845),i=n(44355),o=n(72658),a=n(21551),s=n(41727),l=n(2756),u=n(87899),c=n(83206),d=n(3645),f={name:"htmlFlow",tokenize:function(e,t,n){var d,f,h,m,g,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),x):63===i?(e.consume(i),d=3,v.interrupt?t:q):r(i)?(e.consume(i),h=l(i),f=!0,E):n(i)}function b(i){return 45===i?(e.consume(i),d=2,w):91===i?(e.consume(i),d=5,h="CDATA[",m=0,_):r(i)?(e.consume(i),d=4,v.interrupt?t:q):n(i)}function w(r){return 45===r?(e.consume(r),v.interrupt?t:q):n(r)}function _(r){return r===h.charCodeAt(m++)?(e.consume(r),m===h.length?v.interrupt?t:L:_):n(r)}function x(t){return r(t)?(e.consume(t),h=l(t),E):n(t)}function E(r){return null===r||47===r||62===r||a(r)?47!==r&&f&&c.indexOf(h.toLowerCase())>-1?(d=1,v.interrupt?t(r):L(r)):u.indexOf(h.toLowerCase())>-1?(d=6,47===r?(e.consume(r),k):v.interrupt?t(r):L(r)):(d=7,v.interrupt?n(r):f?S(r):C(r)):45===r||i(r)?(e.consume(r),h+=l(r),E):n(r)}function k(r){return 62===r?(e.consume(r),v.interrupt?t:L):n(r)}function C(t){return s(t)?(e.consume(t),C):D(t)}function S(t){return 47===t?(e.consume(t),D):58===t||95===t||r(t)?(e.consume(t),A):s(t)?(e.consume(t),S):D(t)}function A(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),O):s(t)?(e.consume(t),T):S(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),g=t,P):s(t)?(e.consume(t),O):(g=void 0,R(t))}function P(t){return t===g?(e.consume(t),M):null===t||o(t)?n(t):(e.consume(t),P)}function R(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?T(t):(e.consume(t),R)}function M(e){return 47===e||62===e||s(e)?S(e):n(e)}function D(t){return 62===t?(e.consume(t),I):n(t)}function I(t){return s(t)?(e.consume(t),I):null===t||o(t)?L(t):n(t)}function L(t){return 45===t&&2===d?(e.consume(t),F):60===t&&1===d?(e.consume(t),B):62===t&&4===d?(e.consume(t),W):63===t&&3===d?(e.consume(t),q):93===t&&5===d?(e.consume(t),z):!o(t)||6!==d&&7!==d?null===t||o(t)?j(t):(e.consume(t),L):e.check(p,W,j)(t)}function j(t){return e.exit("htmlFlowData"),N(t)}function N(t){return null===t?$(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N):(e.enter("htmlFlowData"),L(t))}function F(t){return 45===t?(e.consume(t),q):L(t)}function B(t){return 47===t?(e.consume(t),h="",U):L(t)}function U(t){return 62===t&&c.indexOf(h.toLowerCase())>-1?(e.consume(t),W):r(t)&&h.length<8?(e.consume(t),h+=l(t),U):L(t)}function z(t){return 93===t?(e.consume(t),q):L(t)}function q(t){return 62===t?(e.consume(t),W):L(t)}function W(t){return null===t||o(t)?(e.exit("htmlFlowData"),$(t)):(e.consume(t),W)}function $(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){for(var t=e.length;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=f},21254:(e,t,n)=>{"use strict";var r=n(65845),i=n(44355),o=n(72658),a=n(21551),s=n(41727),l=n(32397),u={name:"htmlText",tokenize:function(e,t,n){var u,c,d,f,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),T):63===t?(e.consume(t),S):r(t)?(e.consume(t),R):n(t)}function m(t){return 45===t?(e.consume(t),g):91===t?(e.consume(t),c="CDATA[",d=0,_):r(t)?(e.consume(t),C):n(t)}function g(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),w):o(t)?(f=b,B(t)):(e.consume(t),b)}function w(t){return 45===t?(e.consume(t),z):b(t)}function _(t){return t===c.charCodeAt(d++)?(e.consume(t),d===c.length?x:_):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),E):o(t)?(f=x,B(t)):(e.consume(t),x)}function E(t){return 93===t?(e.consume(t),k):x(t)}function k(t){return 62===t?z(t):93===t?(e.consume(t),k):x(t)}function C(t){return null===t||62===t?z(t):o(t)?(f=C,B(t)):(e.consume(t),C)}function S(t){return null===t?n(t):63===t?(e.consume(t),A):o(t)?(f=S,B(t)):(e.consume(t),S)}function A(e){return 62===e?z(e):S(e)}function T(t){return r(t)?(e.consume(t),O):n(t)}function O(t){return 45===t||i(t)?(e.consume(t),O):P(t)}function P(t){return o(t)?(f=P,B(t)):s(t)?(e.consume(t),P):z(t)}function R(t){return 45===t||i(t)?(e.consume(t),R):47===t||62===t||a(t)?M(t):n(t)}function M(t){return 47===t?(e.consume(t),z):58===t||95===t||r(t)?(e.consume(t),D):o(t)?(f=M,B(t)):s(t)?(e.consume(t),M):z(t)}function D(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),D):I(t)}function I(t){return 61===t?(e.consume(t),L):o(t)?(f=I,B(t)):s(t)?(e.consume(t),I):M(t)}function L(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,j):o(t)?(f=L,B(t)):s(t)?(e.consume(t),L):(e.consume(t),u=void 0,F)}function j(t){return t===u?(e.consume(t),N):null===t?n(t):o(t)?(f=j,B(t)):(e.consume(t),j)}function N(e){return 62===e||47===e||a(e)?M(e):n(e)}function F(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?M(t):(e.consume(t),F)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l(e,U,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function U(t){return e.enter("htmlTextData"),f(t)}function z(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=u},73946:(e,t,n)=>{"use strict";var r=n(21551),i=n(94363),o=n(43416),a=n(3797),s=n(12869),l=n(9085),u=n(29145),c=n(64202),d=n(96894),f=n(70653),p={name:"labelEnd",tokenize:function(e,t,n){for(var r,i,o=this,s=o.events.length;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){return r?r._inactive?u(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(n){return 40===n?e.attempt(h,t,i?t:u)(n):91===n?e.attempt(m,t,i?e.attempt(g,t,u):u)(n):i?t(n):u(n)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){for(var n,r,a,u,c,d,f,p=e.length,h=0;p--;)if(u=e[p][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[p][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(d){if("enter"===e[p][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=p,"labelLink"!==u.type)){h=2;break}}else"labelEnd"===u.type&&(d=p);return n={type:"labelLink"===e[c][1].type?"link":"image",start:l(e[c][1].start),end:l(e[e.length-1][1].end)},r={type:"label",start:l(e[c][1].start),end:l(e[d][1].end)},a={type:"labelText",start:l(e[c+h+2][1].end),end:l(e[d-2][1].start)},f=i(f=[["enter",n,t],["enter",r,t]],e.slice(c+1,c+h+3)),f=i(f,[["enter",a,t]]),f=i(f,s(t.parser.constructs.insideSpan.null,e.slice(c+h+4,d-3),t)),f=i(f,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),f=i(f,e.slice(d+1)),f=i(f,[["exit",n,t]]),o(e,c,e.length,f),e},resolveAll:function(e){for(var t,n=-1;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,i)};function i(t){return 41===t?s(t):u(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?f(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return c.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},g={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=p},3216:(e,t,n)=>{"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(73946).resolveAll};e.exports=r},71979:(e,t,n)=>{"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(73946).resolveAll};e.exports=r},61692:(e,t,n)=>{"use strict";var r=n(32397),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},49393:(e,t,n)=>{"use strict";var r=n(41687),i=n(41727),o=n(24722),a=n(20037),s=n(32397),l=n(3645),u=n(99669),c={name:"list",tokenize:function(e,t,n){var s=this,c=o(s.events,"linePrefix"),f=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(u,n,h)(t):h(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(t)}return n(t)};function p(t){return r(t)&&++f<10?(e.consume(t),p):(!s.interrupt||f<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(l,s.interrupt?n:m,e.attempt(d,v,g))}function m(e){return s.containerState.initialBlankLine=!0,c++,v(e)}function g(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),v):n(t)}function v(n){return s.containerState.size=c+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(l,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!i(n)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(f,t,o)(n))}));function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(c,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=c},3645:(e,t,n)=>{"use strict";var r=n(72658),i=n(32397),o={tokenize:function(e,t,n){return i(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=o},77293:(e,t,n)=>{"use strict";var r=n(72658),i=n(9085),o=n(32397),a={name:"setextUnderline",tokenize:function(e,t,n){for(var i,a,s=this,l=s.events.length;l--;)if("lineEnding"!==s.events[l][1].type&&"linePrefix"!==s.events[l][1].type&&"content"!==s.events[l][1].type){a="paragraph"===s.events[l][1].type;break}return function(t){return s.lazy||!s.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,u(t))};function u(t){return t===i?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),o(e,c,"lineSuffix")(t))}function c(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){for(var n,r,o,a,s=e.length;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);return a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}};e.exports=a},99669:(e,t,n)=>{"use strict";var r=n(72658),i=n(41727),o=n(32397),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,l(t)};function l(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):i(c)?o(e,l,"whitespace")(c):s<3||null!==c&&!r(c)?n(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===a?(e.consume(t),s++,u):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=a},94363:(e,t,n)=>{"use strict";var r=n(43416);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},43416:(e,t,n)=>{"use strict";var r=n(36139);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},83585:(e,t,n)=>{"use strict";var r=n(21551),i=n(27079),o=n(3081);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},84e3:(e,t,n)=>{"use strict";var r=n(52686),i=n(43416),o=n(338);function a(e,t){var n,i,a,l;for(n in t)for(l in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[l]=s(o(a[l]),r.call(i,l)?i[l]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},29117:(e,t,n)=>{"use strict";var r=n(38492),i=n(72658),o=n(94363),a=n(43416),s=n(338),l=n(12869),u=n(73239),c=n(9085),d=n(69827);e.exports=function(e,t,n){var f=n?c(n):{line:1,column:1,offset:0},p={},h=[],m=[],g=[],v={consume:function(e){i(e)?(f.line++,f.column=1,f.offset+=-3===e?2:1,S()):-1!==e&&(f.column++,f.offset++),f._bufferIndex<0?f._index++:(f._bufferIndex++,f._bufferIndex===m[f._index].length&&(f._bufferIndex=-1,f._index++)),y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=_(),y.events.push(["enter",n,y]),g.push(n),n},exit:function(e){var t=g.pop();return t.end=_(),y.events.push(["exit",t,y]),t},attempt:k((function(e,t){C(e,t.from)})),check:k(E),interrupt:k(E,{interrupt:!0}),lazy:k(E,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:w,sliceSerialize:function(e){return u(w(e))},now:_,defineSkip:function(e){p[e.line]=e.column,S()},write:function(e){return m=o(m,e),function(){for(var e,t;f._index<m.length;)if("string"==typeof(t=m[f._index]))for(e=f._index,f._bufferIndex<0&&(f._bufferIndex=0);f._index===e&&f._bufferIndex<t.length;)x(t.charCodeAt(f._bufferIndex));else x(t)}(),null!==m[m.length-1]?[]:(C(t,0),y.events=l(h,y.events,y),y.events)}},b=t.tokenize.call(y,v);return t.resolveAll&&h.push(t),f._index=0,f._bufferIndex=-1,y;function w(e){return d(m,e)}function _(){return c(f)}function x(e){b=b(e)}function E(e,t){t.restore()}function k(e,t){return function(n,i,o){var a,l,u,c;return n.tokenize||"length"in n?d(s(n)):function(e){return e in n||null in n?d(n.null?s(n[e]).concat(s(n.null)):n[e])(e):o(e)};function d(e){return a=e,p(e[l=0])}function p(e){return function(n){var i,o,a,s,l;return i=_(),o=y.previous,a=y.currentConstruct,s=y.events.length,l=Array.from(g),c={restore:function(){f=i,y.previous=o,y.currentConstruct=a,y.events.length=s,g=l,S()},from:s},u=e,e.partial||(y.currentConstruct=e),e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1?m():e.tokenize.call(t?r({},y,t):y,v,h,m)(n)}}function h(t){return e(u,c),i}function m(e){return c.restore(),++l<a.length?p(a[l]):o}}}function C(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function S(){f.line in p&&f.column<2&&(f.column=p[f.line],f.offset+=p[f.line]-1)}}},338:e=>{"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},2141:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},3797:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},24722:(e,t,n)=>{"use strict";var r=n(20037);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},43744:(e,t,n)=>{"use strict";var r=n(2756);e.exports=function(e){return function(t){return e.test(r(t))}}},12869:e=>{"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},24810:(e,t,n)=>{"use strict";var r=n(2756);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"<22>":r(n)}},73239:(e,t,n)=>{"use strict";var r=n(2756);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"==typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},9085:(e,t,n)=>{"use strict";var r=n(38492);e.exports=function(e){return r({},e)}},20037:e=>{"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"==typeof e[t]?e[t].length:1;return n}},69827:e=>{"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},96548:(e,t,n)=>{"use strict";var r=n(38492),i=n(43416),o=n(9085);function a(e,t){for(var n,r,o,a,s,l,u=e[t][1],c=e[t][2],d=t-1,f=[],p=u._tokenizer||c.parser[u.contentType](u.start),h=p.events,m=[],g={};u;){for(;e[++d][1]!==u;);f.push(d),u._tokenizer||(n=c.sliceStream(u),u.next||n.push(null),r&&p.defineSkip(u.start),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=u,u=u.next}for(u=r,o=h.length;o--;)"enter"===h[o][0]?a=!0:a&&h[o][1].type===h[o-1][1].type&&h[o][1].start.line!==h[o][1].end.line&&(v(h.slice(o+1,s)),u._tokenizer=u.next=void 0,u=u.previous,s=o+1);for(p.events=u._tokenizer=u.next=void 0,v(h.slice(0,s)),o=-1,l=0;++o<m.length;)g[l+m[o][0]]=l+m[o][1],l+=m[o][1]-m[o][0]-1;return g;function v(t){var n=f.pop();m.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,l,u,c,d,f={},p=-1;++p<e.length;){for(;p in f;)p=f[p];if(t=e[p],p&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[p-1][1].type&&((s=0)<(c=t[1]._tokenizer.events).length&&"lineEndingBlank"===c[s][1].type&&(s+=2),s<c.length&&"content"===c[s][1].type))for(;++s<c.length&&"content"!==c[s][1].type;)"chunkText"===c[s][1].type&&(c[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(f,a(e,p)),p=f[p],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=p,n=void 0;s--&&("lineEnding"===(l=e[s])[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(n&&(e[n][1].type="lineEndingBlank"),l[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(u=e.slice(n,p)).unshift(t),i(e,n,p-n+1,u))}}return!d}},77339:(e,t,n)=>{e.exports=f,f.Minimatch=p;var r=function(){try{return n(21023)}catch(e){}}()||{sep:"/"};f.sep=r.sep;var i=f.GLOBSTAR=p.GLOBSTAR={},o=n(59766),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",l=s+"*?",u="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function d(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function f(e,t,n){return m(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new p(t,n).match(e)}function p(e,t){if(!(this instanceof p))return new p(e,t);m(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===r.sep||(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function h(e,t){return t||(t=this instanceof p?this.options:{}),e=void 0===e?this.pattern:e,m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}f.filter=function(e,t){return t=t||{},function(n,r,i){return f(n,e,t)}},f.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return f;var t=f,n=function(n,r,i){return t(n,r,d(e,i))};return(n.Minimatch=function(n,r){return new t.Minimatch(n,d(e,r))}).defaults=function(n){return t.defaults(d(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,d(e,r))},n.defaults=function(n){return t.defaults(d(e,n))},n.makeRe=function(n,r){return t.makeRe(n,d(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,d(e,r))},n.match=function(n,r,i){return t.match(n,r,d(e,i))},n},p.defaults=function(e){return f.defaults(e).Minimatch},p.prototype.debug=function(){},p.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0},p.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r<i&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}},f.braceExpand=function(e,t){return h(e,t)},p.prototype.braceExpand=h;var m=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};p.prototype.parse=function(e,t){m(e);var n=this.options;if("**"===e){if(!n.noglobstar)return i;e="*"}if(""===e)return"";var r,o="",c=!!n.nocase,d=!1,f=[],p=[],h=!1,v=-1,y=-1,b="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=this;function _(){if(r){switch(r){case"*":o+=l,c=!0;break;case"?":o+=s,c=!0;break;default:o+="\\"+r}w.debug("clearStateChar %j %j",r,o),r=!1}}for(var x,E=0,k=e.length;E<k&&(x=e.charAt(E));E++)if(this.debug("%s\t%s %s %j",e,E,o,x),d&&u[x])o+="\\"+x,d=!1;else switch(x){case"/":return!1;case"\\":_(),d=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,E,o,x),h){this.debug(" in class"),"!"===x&&E===y+1&&(x="^"),o+=x;continue}w.debug("call clearStateChar %j",r),_(),r=x,n.noext&&_();continue;case"(":if(h){o+="(";continue}if(!r){o+="\\(";continue}f.push({type:r,start:E-1,reStart:o.length,open:a[r].open,close:a[r].close}),o+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,o),r=!1;continue;case")":if(h||!f.length){o+="\\)";continue}_(),c=!0;var C=f.pop();o+=C.close,"!"===C.type&&p.push(C),C.reEnd=o.length;continue;case"|":if(h||!f.length||d){o+="\\|",d=!1;continue}_(),o+="|";continue;case"[":if(_(),h){o+="\\"+x;continue}h=!0,y=E,v=o.length,o+=x;continue;case"]":if(E===y+1||!h){o+="\\"+x,d=!1;continue}var S=e.substring(y+1,E);try{RegExp("["+S+"]")}catch(e){var A=this.parse(S,g);o=o.substr(0,v)+"\\["+A[0]+"\\]",c=c||A[1],h=!1;continue}c=!0,h=!1,o+=x;continue;default:_(),d?d=!1:!u[x]||"^"===x&&h||(o+="\\"),o+=x}for(h&&(S=e.substr(y+1),A=this.parse(S,g),o=o.substr(0,v)+"\\["+A[0],c=c||A[1]),C=f.pop();C;C=f.pop()){var T=o.slice(C.reStart+C.open.length);this.debug("setting tail",o,C),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",T,T,C,o);var O="*"===C.type?l:"?"===C.type?s:"\\"+C.type;c=!0,o=o.slice(0,C.reStart)+O+"\\("+T}_(),d&&(o+="\\\\");var P=!1;switch(o.charAt(0)){case"[":case".":case"(":P=!0}for(var R=p.length-1;R>-1;R--){var M=p[R],D=o.slice(0,M.reStart),I=o.slice(M.reStart,M.reEnd-8),L=o.slice(M.reEnd-8,M.reEnd),j=o.slice(M.reEnd);L+=j;var N=D.split("(").length-1,F=j;for(E=0;E<N;E++)F=F.replace(/\)[+*?]?/,"");var B="";""===(j=F)&&t!==g&&(B="$"),o=D+I+j+B+L}if(""!==o&&c&&(o="(?=.)"+o),P&&(o=b+o),t===g)return[o,c];if(!c)return e.replace(/\\(.)/g,"$1");var U=n.nocase?"i":"";try{var z=new RegExp("^"+o+"$",U)}catch(e){return new RegExp("$.")}return z._glob=e,z._src=o,z};var g={};f.makeRe=function(e,t){return new p(e,t||{}).makeRe()},p.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?l:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",o=e.map((function(e){return e.map((function(e){return e===i?n:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(e){this.regexp=!1}return this.regexp},f.match=function(e,t,n){var r=new p(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},p.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/")),e=e.split(c),this.debug(this.pattern,"split",e);var i,o,a=this.set;for(this.debug(this.pattern,"set",a),o=e.length-1;o>=0&&!(i=e[o]);o--);for(o=0;o<a.length;o++){var s=a[o],l=e;if(n.matchBase&&1===s.length&&(l=[i]),this.matchOne(l,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},p.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,l=t.length;o<s&&a<l;o++,a++){this.debug("matchOne loop");var u,c=t[a],d=e[o];if(this.debug(t,c,d),!1===c)return!1;if(c===i){this.debug("GLOBSTAR",[t,c,d]);var f=o,p=a+1;if(p===l){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;f<s;){var h=e[f];if(this.debug("\nglobstar while",e,f,t,p,h),this.matchOne(e.slice(f),t.slice(p),n))return this.debug("globstar found match!",f,s,h),!0;if("."===h||".."===h||!r.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> no match, partial?",e,f,t,p),f!==s))}if("string"==typeof c?(u=d===c,this.debug("string match",c,d,u)):(u=d.match(c),this.debug("pattern match",c,d,u)),!u)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}},59766:(e,t,n)=>{var r=n(64114),i=n(82294);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),v(function(e){return e.split("\\\\").join(o).split("\\{").join(a).split("\\}").join(s).split("\\,").join(l).split("\\.").join(u)}(e),!0).map(d)):[]};var o="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(o).join("\\").split(a).join("{").split(s).join("}").split(l).join(",").split(u).join(".")}function f(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,o=n.body,a=n.post,s=r.split(",");s[s.length-1]+="{"+o+"}";var l=f(a);return a.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),t.push.apply(t,s),t}function p(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function g(e,t){return e>=t}function v(e,t){var n=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var a,l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),d=l||u,y=o.body.indexOf(",")>=0;if(!d&&!y)return o.post.match(/,.*\}/)?v(e=o.pre+"{"+o.body+s+o.post):[e];if(d)a=o.body.split(/\.\./);else if(1===(a=f(o.body)).length&&1===(a=v(a[0],!1).map(p)).length)return(_=o.post.length?v(o.post,!1):[""]).map((function(e){return o.pre+a[0]+e}));var b,w=o.pre,_=o.post.length?v(o.post,!1):[""];if(d){var x=c(a[0]),E=c(a[1]),k=Math.max(a[0].length,a[1].length),C=3==a.length?Math.abs(c(a[2])):1,S=m;E<x&&(C*=-1,S=g);var A=a.some(h);b=[];for(var T=x;S(T,E);T+=C){var O;if(u)"\\"===(O=String.fromCharCode(T))&&(O="");else if(O=String(T),A){var P=k-O.length;if(P>0){var R=new Array(P+1).join("0");O=T<0?"-"+R+O.slice(1):R+O}}b.push(O)}}else b=r(a,(function(e){return v(e,!1)}));for(var M=0;M<b.length;M++)for(var D=0;D<_.length;D++){var I=w+b[M]+_[D];(!t||d||I)&&n.push(I)}return n}},82512:(e,t,n)=>{"use strict";var r=n(6552),i=n(45982),o=n(72196),a=function(e){i(!1,e)},s=String.prototype.replace,l=String.prototype.split,u="||||",c=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},d={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:c,chinese:function(){return 0},croatian:c,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:c,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2},ukrainian:c},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var p,h=(p={},function(e,t){var n=p[t];return n&&!e.pluralTypes[n]&&(n=null,p[t]=n),n||(n=function(e,t){var n=function(e){for(var t={},n=r(e),i=0;i<n.length;i+=1)for(var o=n[i][0],a=n[i][1],s=0;s<a.length;s+=1)t[a[s]]=o;return t}(e.pluralTypeToLanguages);return n[t]||n[l.call(t,/-/,1)[0]]||n.en}(e,t))&&(p[t]=n),n}),m=/%\{(.*?)\}/g;function g(e,t,n,r,i,a){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var c=e,f=r||m,p=a||s,g="number"==typeof t?{smart_count:t}:t;if(null!=g.smart_count&&e){var v=i||d,y=l.call(e,u),b=function(e,t,n){return e.pluralTypes[t](n)}(v,h(v,n||"en"),g.smart_count);c=s.call(y[b]||y[0],/^[^\S]*|[^\S]*$/g,"")}return p.call(c,f,(function(e,t){return o(g,t)&&null!=g[t]?g[t]:e}))}function v(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?g:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||a,this.replaceImplementation=t.replace||s,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===u||n===u)throw new RangeError('"'+u+'" token is reserved for pluralization');return new RegExp(f(t)+"(.*?)"+f(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||d}v.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},v.prototype.extend=function(e,t){for(var n=r(e||{}),i=0;i<n.length;i+=1){var o=n[i][0],a=n[i][1],s=t?t+"."+o:o;"object"==typeof a?this.extend(a,s):this.phrases[s]=a}},v.prototype.unset=function(e,t){if("string"==typeof e)delete this.phrases[e];else for(var n=r(e||{}),i=0;i<n.length;i+=1){var o=n[i][0],a=n[i][1],s=t?t+"."+o:o;"object"==typeof a?this.unset(a,s):delete this.phrases[s]}},v.prototype.clear=function(){this.phrases={}},v.prototype.replace=function(e){this.clear(),this.extend(e)},v.prototype.t=function(e,t){var n,r,i=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof i._?n=i._:this.onMissingKey?r=(0,this.onMissingKey)(e,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=g(n,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),r},v.prototype.has=function(e){return o(this.phrases,e)},v.transformPhrase=function(e,t,n){return g(e,t,n)},e.exports=v},37320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},99500:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,k=Array.prototype.join,C=Array.prototype.slice,S=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(53260),j=L.custom,N=q(j)?j:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function B(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==H(e)||R&&"object"==typeof e&&R in e)}function z(e){return!("[object RegExp]"!==H(e)||R&&"object"==typeof e&&R in e)}function q(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if($(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!$(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return V(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?I(t,x):x}if("bigint"==typeof t){var S=String(t)+"n";return w?I(t,S):S}var T=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var j,W=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(l,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function K(t,n,r){if(n&&(s=C.call(s)).push(n),r){var o={depth:l.depth};return $(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"==typeof t&&!z(t)){var ee=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=J(t,K);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+k.call(te,", ")+" }":"")}if(q(t)){var ne=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||P?ne:Z(ne)}if((j=t)&&"object"==typeof j&&("undefined"!=typeof HTMLElement&&j instanceof HTMLElement||"string"==typeof j.nodeName&&"function"==typeof j.getAttribute)){for(var re="<"+_.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+F(B(ie[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+_.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ae=J(t,K);return W&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Q(ae,W)+"]":"[ "+k.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||R&&"object"==typeof e&&R in e)}(t)){var se=J(t,K);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(se,", ")+" }":"{ ["+String(t)+"] "+k.call(E.call("[cause]: "+K(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(N&&"function"==typeof t[N]&&L)return L(t,{depth:T-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(K(n,t,!0)+" => "+K(e,t))})),X("Map",o.call(t),le,W)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return c&&c.call(t,(function(e){ue.push(K(e,t))})),X("Set",u.call(t),ue,W)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||R&&"object"==typeof e&&R in e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Z(K(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||R&&"object"==typeof e&&R in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==H(e)||R&&"object"==typeof e&&R in e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==H(e)||R&&"object"==typeof e&&R in e)}(t)&&!z(t)){var ce=J(t,K),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&R&&Object(t)===t&&R in t?y.call(H(t),8,-1):fe?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+k.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ce.length?he+"{}":W?he+"{"+Q(ce,W)+"}":he+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return W.call(e,t)}function H(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function V(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return V(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):k.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=$(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(P){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)$(e,l)&&(n&&String(Number(l))===l&&l<e.length||P&&o["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var u=0;u<a.length;u++)M.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},75691:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(30801),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||f.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=r},33464:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(30801),o=Object.keys,a=o?function(e){return o(e)}:n(75691),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},30801:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},31968:(e,t,n)=>{"use strict";var r=n(42977),i=n(62680),o=i("Object.prototype.propertyIsEnumerable"),a=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)o(t,i)&&a(n,[i,t[i]]);return n}},6552:(e,t,n)=>{"use strict";var r=n(14926),i=n(89429),o=n(31968),a=n(554),s=n(30660),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},554:(e,t,n)=>{"use strict";var r=n(31968);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},30660:(e,t,n)=>{"use strict";var r=n(554),i=n(14926);e.exports=function(){var e=r();return i(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},68108:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},97827:(e,t,n)=>{"use strict";const{DOCUMENT_MODE:r}=n(95218),i="html",o=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=o.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function c(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===i&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:o;if(d(n,e))return r.QUIRKS;if(e=null===t?l:u,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},61445:e=>{"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},52710:(e,t,n)=>{"use strict";const r=n(3183),i=n(95218),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.ATTRS,l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},c=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!(t!==o.FONT||null===r.getTokenAttr(e,s.COLOR)&&null===r.getTokenAttr(e,s.SIZE)&&null===r.getTokenAttr(e,s.FACE))||d[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=l[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=u[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=c[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===o.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===a.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}(e,t))}},95218:(e,t)=>{"use strict";const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},13114:(e,t)=>{"use strict";const n=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="<22>",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},24369:(e,t,n)=>{"use strict";const r=n(60814);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},80171:(e,t,n)=>{"use strict";const r=n(24369),i=n(29954),o=n(23454),a=n(60814);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,i,e.opts),a.install(this.tokenizer,o)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},88184:(e,t,n)=>{"use strict";const r=n(24369),i=n(40279),o=n(60814);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},29954:(e,t,n)=>{"use strict";const r=n(24369),i=n(88184),o=n(60814);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},4007:(e,t,n)=>{"use strict";const r=n(60814);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},39938:(e,t,n)=>{"use strict";const r=n(60814),i=n(3183),o=n(23454),a=n(4007),s=n(95218).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){const n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){const r=t.location,o=this.treeAdapter.getTagName(e);t.type===i.END_TAG_TOKEN&&o===t.tagName?(n.endTag=Object.assign({},r),n.endLine=r.endLine,n.endCol=r.endCol,n.endOffset=r.endOffset):(n.endLine=r.startLine,n.endCol=r.startCol,n.endOffset=r.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a],l=this.treeAdapter.getNodeSourceCodeLocation(s);l?(l.endLine=n.location.endLine,l.endCol=n.location.endCol,l.endOffset=n.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},23454:(e,t,n)=>{"use strict";const r=n(60814),i=n(3183),o=n(40279);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===i.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(i.MODE).forEach((r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].call(this,n)}})),n}}},40279:(e,t,n)=>{"use strict";const r=n(60814);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},43652:e=>{"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===t.MARKER_ENTRY)break;const s=a.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o&&l.length===r&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},68834:(e,t,n)=>{"use strict";const r=n(3183),i=n(23203),o=n(43652),a=n(39938),s=n(80171),l=n(60814),u=n(99132),c=n(58395),d=n(97827),f=n(52710),p=n(61445),h=n(13114),m=n(95218),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},w="hidden",_=8,x=3,E="INITIAL_MODE",k="BEFORE_HTML_MODE",C="BEFORE_HEAD_MODE",S="IN_HEAD_MODE",A="IN_HEAD_NO_SCRIPT_MODE",T="AFTER_HEAD_MODE",O="IN_BODY_MODE",P="TEXT_MODE",R="IN_TABLE_MODE",M="IN_TABLE_TEXT_MODE",D="IN_CAPTION_MODE",I="IN_COLUMN_GROUP_MODE",L="IN_TABLE_BODY_MODE",j="IN_ROW_MODE",N="IN_CELL_MODE",F="IN_SELECT_MODE",B="IN_SELECT_IN_TABLE_MODE",U="IN_TEMPLATE_MODE",z="AFTER_BODY_MODE",q="IN_FRAMESET_MODE",W="AFTER_FRAMESET_MODE",$="AFTER_AFTER_BODY_MODE",H="AFTER_AFTER_FRAMESET_MODE",G={[g.TR]:j,[g.TBODY]:L,[g.THEAD]:L,[g.TFOOT]:L,[g.CAPTION]:D,[g.COLGROUP]:I,[g.TABLE]:R,[g.BODY]:O,[g.FRAMESET]:q},V={[g.CAPTION]:R,[g.COLGROUP]:R,[g.TBODY]:R,[g.TFOOT]:R,[g.THEAD]:R,[g.COL]:I,[g.TR]:L,[g.TD]:j,[g.TH]:j},K={[E]:{[r.CHARACTER_TOKEN]:le,[r.NULL_CHARACTER_TOKEN]:le,[r.WHITESPACE_CHARACTER_TOKEN]:ne,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k},[r.START_TAG_TOKEN]:le,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:le},[k]:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ne,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode=C):ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||ue(e,t)},[r.EOF_TOKEN]:ue},[C]:{[r.CHARACTER_TOKEN]:ce,[r.NULL_CHARACTER_TOKEN]:ce,[r.WHITESPACE_CHARACTER_TOKEN]:ne,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:re,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode=S):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?ce(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:ce},[S]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:re,[r.START_TAG_TOKEN]:de,[r.END_TAG_TOKEN]:fe,[r.EOF_TOKEN]:pe},[A]:{[r.CHARACTER_TOKEN]:he,[r.NULL_CHARACTER_TOKEN]:he,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:re,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?de(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):he(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=S):n===g.BR?he(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:he},[T]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:me,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:re,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=O):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode=q):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),de(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):me(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?me(e,t):n===g.TEMPLATE?fe(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:me},[O]:{[r.CHARACTER_TOKEN]:ve,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:Te,[r.END_TAG_TOKEN]:Me,[r.EOF_TOKEN]:De},[P]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:ne,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[R]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:Le,[r.END_TAG_TOKEN]:je,[r.EOF_TOKEN]:De},[M]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:Fe,[r.DOCTYPE_TOKEN]:Fe,[r.START_TAG_TOKEN]:Fe,[r.END_TAG_TOKEN]:Fe,[r.EOF_TOKEN]:Fe},[D]:{[r.CHARACTER_TOKEN]:ve,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R,e._processToken(t)):Te(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Me(e,t)},[r.EOF_TOKEN]:De},[I]:{[r.CHARACTER_TOKEN]:Be,[r.NULL_CHARACTER_TOKEN]:Be,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?de(e,t):Be(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=R):n===g.TEMPLATE?fe(e,t):n!==g.COL&&Be(e,t)},[r.EOF_TOKEN]:De},[L]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode=j):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=j,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):Le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&je(e,t)},[r.EOF_TOKEN]:De},[j]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode=N,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):Le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&je(e,t)},[r.EOF_TOKEN]:De},[N]:{[r.CHARACTER_TOKEN]:ve,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):Te(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&Me(e,t)},[r.EOF_TOKEN]:De},[F]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:Ue,[r.END_TAG_TOKEN]:ze,[r.EOF_TOKEN]:De},[B]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):Ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):ze(e,t)},[r.EOF_TOKEN]:De},[U]:{[r.CHARACTER_TOKEN]:ve,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)de(e,t);else{const r=V[n]||O;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&fe(e,t)},[r.EOF_TOKEN]:qe},[z]:{[r.CHARACTER_TOKEN]:We,[r.NULL_CHARACTER_TOKEN]:We,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Te(e,t):We(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=$):We(e,t)},[r.EOF_TOKEN]:se},[q]:{[r.CHARACTER_TOKEN]:ne,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&de(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=W))},[r.EOF_TOKEN]:se},[W]:{[r.CHARACTER_TOKEN]:ne,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ae,[r.COMMENT_TOKEN]:ie,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.NOFRAMES&&de(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=H)},[r.EOF_TOKEN]:se},[$]:{[r.CHARACTER_TOKEN]:$e,[r.NULL_CHARACTER_TOKEN]:$e,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:oe,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Te(e,t):$e(e,t)},[r.END_TAG_TOKEN]:$e,[r.EOF_TOKEN]:se},[H]:{[r.CHARACTER_TOKEN]:ne,[r.NULL_CHARACTER_TOKEN]:ne,[r.WHITESPACE_CHARACTER_TOKEN]:ge,[r.COMMENT_TOKEN]:oe,[r.DOCTYPE_TOKEN]:ne,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.NOFRAMES&&de(e,t)},[r.END_TAG_TOKEN]:ne,[r.EOF_TOKEN]:se}};function Z(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Re(e,t),n}function Y(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function X(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=x;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Q(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Q(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function J(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ee(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function te(e,t){let n;for(let r=0;r<_&&(n=Z(e,t),n);r++){const t=Y(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=X(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),J(e,i,r),ee(e,t,n)}}function ne(){}function re(e){e._err(p.misplacedDoctype)}function ie(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function oe(e,t){e._appendCommentNode(t,e.document)}function ae(e,t){e._insertCharacters(t)}function se(e){e.stopped=!0}function le(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=k,e._processToken(t)}function ue(e,t){e._insertFakeRootElement(),e.insertionMode=C,e._processToken(t)}function ce(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=S,e._processToken(t)}function de(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode=A):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U,e._pushTmplInsertionMode(U)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):pe(e,t)}function fe(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=T):n===g.BODY||n===g.BR||n===g.HTML?pe(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function pe(e,t){e.openElements.pop(),e.insertionMode=T,e._processToken(t)}function he(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=S,e._processToken(t)}function me(e,t){e._insertFakeElement(g.BODY),e.insertionMode=O,e._processToken(t)}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ve(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ye(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function be(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function we(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function xe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ee(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function ke(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function Ce(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Se(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function Ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Te(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?we(e,t):n===g.P?ye(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(te(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Ae(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ye(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let o=null;if(n===g.LI&&i===g.LI?o=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?we(e,t):n===g.BR?xe(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,e.ackSelfClosing=!0}(e,t):n===g.RB?Se(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&Ae(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ye(e,t):n===g.PRE?be(e,t):n===g.BIG?we(e,t):n===g.IMG||n===g.WBR?xe(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?Se(e,t):n!==g.COL&&Ae(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?de(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ye(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?we(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(te(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?xe(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&Ae(e,t);break;case 5:n===g.STYLE||n===g.TITLE?de(e,t):n===g.ASIDE?ye(e,t):n===g.SMALL?we(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=R}(e,t):n===g.EMBED?xe(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?Ee(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,xe(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&Ae(e,t);break;case 6:n===g.SCRIPT?de(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ye(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?we(e,t):n===g.APPLET||n===g.OBJECT?_e(e,t):n===g.KEYGEN?xe(e,t):n===g.SOURCE?Ee(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===R||e.insertionMode===D||e.insertionMode===L||e.insertionMode===j||e.insertionMode===N?e.insertionMode=B:e.insertionMode=F}(e,t):n===g.OPTION?Ce(e,t):Ae(e,t);break;case 7:n===g.BGSOUND?de(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ye(e,t):n===g.LISTING?be(e,t):n===g.MARQUEE?_e(e,t):n===g.NOEMBED?ke(e,t):n!==g.CAPTION&&Ae(e,t);break;case 8:n===g.BASEFONT?de(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode=q)}(e,t):n===g.FIELDSET?ye(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P}(e,t):n===g.TEMPLATE?de(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?ke(e,t):Ae(e,t):n===g.OPTGROUP?Ce(e,t):n!==g.COLGROUP&&Ae(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):Ae(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ye(e,t):Ae(e,t);break;default:Ae(e,t)}}function Oe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Pe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Re(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function Me(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?te(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):Re(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Oe(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?te(e,t):Re(e,t);break;case 3:n===g.BIG?te(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Oe(e,t):Re(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=z)}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=z,e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?te(e,t):n===g.MAIN||n===g.MENU?Oe(e,t):Re(e,t);break;case 5:n===g.ASIDE?Oe(e,t):n===g.SMALL?te(e,t):Re(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Oe(e,t):n===g.APPLET||n===g.OBJECT?Pe(e,t):n===g.STRIKE||n===g.STRONG?te(e,t):Re(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Oe(e,t):n===g.MARQUEE?Pe(e,t):Re(e,t);break;case 8:n===g.FIELDSET?Oe(e,t):n===g.TEMPLATE?fe(e,t):Re(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Oe(e,t):Re(e,t);break;default:Re(e,t)}}function De(e,t){e.tmplInsertionModeStackTop>-1?qe(e,t):e.stopped=!0}function Ie(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=M,e._processToken(t)):Ne(e,t)}function Le(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=L,e._processToken(t)}(e,t):Ne(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=I,e._processToken(t)}(e,t):Ne(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ne(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?de(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=L}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w?e._appendElement(t,v.HTML):Ne(e,t),t.ackSelfClosing=!0}(e,t):Ne(e,t);break;case 6:n===g.SCRIPT?de(e,t):Ne(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode=D}(e,t):Ne(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=I}(e,t):n===g.TEMPLATE?de(e,t):Ne(e,t);break;default:Ne(e,t)}}function je(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?fe(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Ne(e,t)}function Ne(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Fe(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ne(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Be(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=R,e._processToken(t))}function Ue(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||de(e,t)}function ze(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&fe(e,t)}function qe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function We(e,t){e.insertionMode=O,e._processToken(t)}function $e(e,t){e.insertionMode=O,e._processToken(t)}e.exports=class{constructor(e){this.options=c(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,a),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(U),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=E,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=P}switchToPlaintextParsing(){this.insertionMode=P,this.originalInsertionMode=O,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return!((e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK||i)&&this._isIntegrationPoint(t,v.MATHML)||(e.type===r.START_TAG_TOKEN||i)&&this._isIntegrationPoint(t,v.HTML)||e.type===r.EOF_TOKEN)}_processToken(e){K[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){K[O][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?ae(this,e):e.type===r.COMMENT_TOKEN?ie(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?f.adjustTokenMathMLAttrs(t):r===v.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=j}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=G[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode=N;break}if(!t&&r===g.HEAD){this.insertionMode=S;break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?T:C;break}if(t){this.insertionMode=O;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode=B)}this.insertionMode=F}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},23203:(e,t,n)=>{"use strict";const r=n(95218),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},3183:(e,t,n)=>{"use strict";const r=n(27567),i=n(13114),o=n(84906),a=n(61445),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE",d="RCDATA_STATE",f="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",w="RCDATA_END_TAG_NAME_STATE",_="RAWTEXT_LESS_THAN_SIGN_STATE",x="RAWTEXT_END_TAG_OPEN_STATE",E="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",C="SCRIPT_DATA_END_TAG_OPEN_STATE",S="SCRIPT_DATA_END_TAG_NAME_STATE",A="SCRIPT_DATA_ESCAPE_START_STATE",T="SCRIPT_DATA_ESCAPE_START_DASH_STATE",O="SCRIPT_DATA_ESCAPED_STATE",P="SCRIPT_DATA_ESCAPED_DASH_STATE",R="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",M="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",D="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",I="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",N="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",U="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",z="BEFORE_ATTRIBUTE_NAME_STATE",q="ATTRIBUTE_NAME_STATE",W="AFTER_ATTRIBUTE_NAME_STATE",$="BEFORE_ATTRIBUTE_VALUE_STATE",H="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",G="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",V="ATTRIBUTE_VALUE_UNQUOTED_STATE",K="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",Y="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",oe="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",le="DOCTYPE_STATE",ue="BEFORE_DOCTYPE_NAME_STATE",ce="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",fe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ge="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ve="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",xe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ee="BOGUS_DOCTYPE_STATE",ke="CDATA_SECTION_STATE",Ce="CDATA_SECTION_BRACKET_STATE",Se="CDATA_SECTION_END_STATE",Ae="CHARACTER_REFERENCE_STATE",Te="NAMED_CHARACTER_REFERENCE_STATE",Oe="AMBIGUOS_AMPERSAND_STATE",Pe="NUMERIC_CHARACTER_REFERENCE_STATE",Re="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Me="DECIMAL_CHARACTER_REFERENCE_START_STATE",De="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Ie="DECIMAL_CHARACTER_REFERENCE_STATE",Le="NUMERIC_CHARACTER_REFERENCE_END_STATE";function je(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Ne(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function Fe(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function Be(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function Ue(e){return Be(e)||Fe(e)}function ze(e){return Ue(e)||Ne(e)}function qe(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function We(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function $e(e){return e+32}function He(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Ge(e){return String.fromCharCode($e(e))}function Ve(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class Ke{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ke.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const o=e.length;let a,l=0,u=t;for(;l<o;l++){if(l>0&&(u=this._consume(),r++),u===s.EOF){i=!1;break}if(a=e[l],u!==a&&(n||u!==$e(a))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==l.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Ke.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ke.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ke.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ke.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ke.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ke.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Ke.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ke.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ke.CHARACTER_TOKEN;je(e)?t=Ke.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ke.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,He(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ke.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=Ve(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?Ve(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===H||this.returnState===G||this.returnState===V}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||ze(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=He(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[c](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=m:e===s.AMPERSAND?(this.returnState=c,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=Ae):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=_:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=k:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=X:e===s.SOLIDUS?this.state=g:Ue(e)?(this._createStartTagToken(),this._reconsumeInState(v)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Y)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(c))}[g](e){Ue(e)?(this._createEndTagToken(),this._reconsumeInState(v)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=c):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Y))}[v](e){je(e)?this.state=z:e===s.SOLIDUS?this.state=Z:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):Fe(e)?this.currentToken.tagName+=Ge(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=He(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){Ue(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChars("</"),this._reconsumeInState(d))}[w](e){if(Fe(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=He(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(je(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[_](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=x):(this._emitChars("<"),this._reconsumeInState(f))}[x](e){Ue(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(f))}[E](e){if(Fe(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=He(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(je(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[k](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=C):e===s.EXCLAMATION_MARK?(this.state=A,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(p))}[C](e){Ue(e)?(this._createEndTagToken(),this._reconsumeInState(S)):(this._emitChars("</"),this._reconsumeInState(p))}[S](e){if(Fe(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=He(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(je(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}}[A](e){e===s.HYPHEN_MINUS?(this.state=T,this._emitChars("-")):this._reconsumeInState(p)}[T](e){e===s.HYPHEN_MINUS?(this.state=R,this._emitChars("-")):this._reconsumeInState(p)}[O](e){e===s.HYPHEN_MINUS?(this.state=P,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=M:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[P](e){e===s.HYPHEN_MINUS?(this.state=R,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=M:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[R](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=M:e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[M](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=D):Ue(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(L)):(this._emitChars("<"),this._reconsumeInState(O))}[D](e){Ue(e)?(this._createEndTagToken(),this._reconsumeInState(I)):(this._emitChars("</"),this._reconsumeInState(O))}[I](e){if(Fe(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=He(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(je(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(O)}}[L](e){je(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?j:O,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push($e(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(O)}[j](e){e===s.HYPHEN_MINUS?(this.state=N,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[N](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=j,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=j,this._emitCodePoint(e))}[F](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=j,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=j,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=U,this._emitChars("/")):this._reconsumeInState(j)}[U](e){je(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?O:j,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push($e(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(j)}[z](e){je(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(W):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q):(this._createAttr(""),this._reconsumeInState(q)))}[q](e){je(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(W),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName($):Fe(e)?this.currentAttr.name+=Ge(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=He(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=He(e)}[W](e){je(e)||(e===s.SOLIDUS?this.state=Z:e===s.EQUALS_SIGN?this.state=$:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(q)))}[$](e){je(e)||(e===s.QUOTATION_MARK?this.state=H:e===s.APOSTROPHE?this.state=G:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState(V))}[H](e){e===s.QUOTATION_MARK?this.state=K:e===s.AMPERSAND?(this.returnState=H,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=He(e)}[G](e){e===s.APOSTROPHE?this.state=K:e===s.AMPERSAND?(this.returnState=G,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=He(e)}[V](e){je(e)?this._leaveAttrValue(z):e===s.AMPERSAND?(this.returnState=V,this.state=Ae):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=He(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=He(e)}[K](e){je(e)?this._leaveAttrValue(z):e===s.SOLIDUS?this._leaveAttrValue(Z):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(z))}[Z](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(z))}[Y](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=He(e)}[X](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=le:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ke:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Y):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Y))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=oe:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=He(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=ie:this._reconsumeInState(oe)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[oe](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=oe):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[le](e){je(e)?this.state=ue:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ue):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ue))}[ue](e){je(e)||(Fe(e)?(this._createDoctypeToken(Ge(e)),this.state=ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=ce):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(He(e)),this.state=ce))}[ce](e){je(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):Fe(e)?this.currentToken.name+=Ge(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=He(e)}[de](e){je(e)||(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=fe:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[fe](e){je(e)?this.state=pe:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[pe](e){je(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[he](e){e===s.QUOTATION_MARK?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=He(e)}[me](e){e===s.APOSTROPHE?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=He(e)}[ge](e){je(e)?this.state=ve:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[ve](e){je(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[ye](e){je(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[be](e){je(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[we](e){e===s.QUOTATION_MARK?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=He(e)}[_e](e){e===s.APOSTROPHE?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=He(e)}[xe](e){je(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ee)))}[Ee](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Ce:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Ce](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Se:(this._emitChars("]"),this._reconsumeInState(ke))}[Se](e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ke))}[Ae](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Pe):ze(e)?this._reconsumeInState(Te):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Te](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Oe}[Oe](e){ze(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=He(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Pe](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Re):this._reconsumeInState(Me)}[Re](e){!function(e){return Ne(e)||qe(e)||We(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(De)}[Me](e){Ne(e)?this._reconsumeInState(Ie):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[De](e){qe(e)?this.charRefCode=16*this.charRefCode+e-55:We(e)?this.charRefCode=16*this.charRefCode+e-87:Ne(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Le:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Le))}[Ie](e){Ne(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Le:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Le))}[Le](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ke.CHARACTER_TOKEN="CHARACTER_TOKEN",Ke.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ke.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ke.START_TAG_TOKEN="START_TAG_TOKEN",Ke.END_TAG_TOKEN="END_TAG_TOKEN",Ke.COMMENT_TOKEN="COMMENT_TOKEN",Ke.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ke.EOF_TOKEN="EOF_TOKEN",Ke.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ke.MODE={DATA:c,RCDATA:d,RAWTEXT:f,SCRIPT_DATA:p,PLAINTEXT:h},Ke.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ke},84906:e=>{"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},27567:(e,t,n)=>{"use strict";const r=n(13114),i=n(61445),o=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,o.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===o.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===o.CARRIAGE_RETURN?(this.skipNextNewLine=!0,o.LINE_FEED):(this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},99132:(e,t,n)=>{"use strict";const{DOCUMENT_MODE:r}=n(95218);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}o(e,i(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,i(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation}},58395:e=>{"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},60814:e=>{"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=t},21023:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,u=a<l?a:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var p="";for(d=i+c+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1);else if(!u){s=c+1;break}return-1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&o?e.slice(1,l):e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},68262:(e,t,n)=>{"use strict";var r=n(23586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},13980:(e,t,n)=>{e.exports=n(68262)()},23586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},70521:(e,t,n)=>{"use strict";var r=n(2939),i=n(54688),o=n(9975),a="data";e.exports=function(e,t){var n=r(t),f=t,p=o;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(l,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return l.test(t)?e:("-"!==(t=t.replace(u,c)).charAt(0)&&(t="-"+t),a+t)}(t),p=i),new p(f,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},59209:(e,t,n)=>{"use strict";var r=n(2706),i=n(62322),o=n(13837),a=n(34551),s=n(12024),l=n(61921);e.exports=r([o,i,a,s,l])},12024:(e,t,n)=>{"use strict";var r=n(87311),i=n(96486),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},61921:(e,t,n)=>{"use strict";var r=n(87311),i=n(96486),o=n(12660),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},34:(e,t,n)=>{"use strict";var r=n(87311),i=n(96486),o=n(72003),a=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},12660:(e,t,n)=>{"use strict";var r=n(72003);e.exports=function(e,t){return r(e,t.toLowerCase())}},72003:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},96486:(e,t,n)=>{"use strict";var r=n(2939),i=n(74362),o=n(54688);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},f={};for(t in u)n=new o(t,c(l,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new i(d,f,a)}},54688:(e,t,n)=>{"use strict";var r=n(9975),i=n(87311);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var u,c=-1;for(l(this,"space",s),r.call(this,e,t);++c<a;)l(this,u=o[c],(n&i[u])===i[u])}function l(e,t,n){n&&(e[t]=n)}},9975:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},2706:(e,t,n)=>{"use strict";var r=n(51960),i=n(74362);e.exports=function(e){for(var t,n,o=e.length,a=[],s=[],l=-1;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},74362:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},87311:(e,t)=>{"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},62322:(e,t,n)=>{"use strict";var r=n(96486);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},13837:(e,t,n)=>{"use strict";var r=n(96486);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},34551:(e,t,n)=>{"use strict";var r=n(96486),i=n(12660);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},2939:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},57956:(e,t,n)=>{"use strict";var r=n(2706),i=n(62322),o=n(13837),a=n(34551),s=n(12024),l=n(34);e.exports=r([o,i,a,s,l])},85527:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},19126:(e,t,n)=>{"use strict";var r=n(66845),i=n(29166),o=n(85527);e.exports={formats:o,parse:i,stringify:r}},29166:(e,t,n)=>{"use strict";var r=n(12493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,g,v=f[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(u,m)?u[m]=r.combine(u[m],g):u[m]=g}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var h=f[p],m=u(h,c[h],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},66845:(e,t,n)=>{"use strict";var r=n(74294),i=n(12493),o=n(85527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,u,d,f,m,g,v,y,b,w,_,x){for(var E,k=t,C=x,S=0,A=!1;void 0!==(C=C.get(h))&&!A;){var T=C.get(t);if(S+=1,void 0!==T){if(T===S)throw new RangeError("Cyclic object value");A=!0}void 0===C.get(h)&&(S=0)}if("function"==typeof f?k=f(n,k):k instanceof Date?k=v(k):"comma"===o&&l(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?v(e):e}))),null===k){if(s)return d&&!w?d(n,p.encoder,_,"key",y):n;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(k))return d?[b(w?n:d(n,p.encoder,_,"key",y))+"="+b(d(k,p.encoder,_,"value",y))]:[b(n)+"="+b(String(k))];var O,P=[];if(void 0===k)return P;if("comma"===o&&l(k))w&&d&&(k=i.maybeMap(k,d)),O=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(f))O=f;else{var R=Object.keys(k);O=m?R.sort(m):R}for(var M=a&&l(k)&&1===k.length?n+"[]":n,D=0;D<O.length;++D){var I=O[D],L="object"==typeof I&&void 0!==I.value?I.value:k[I];if(!u||null!==L){var j=l(k)?"function"==typeof o?o(M,I):M:M+(g?"."+I:"["+I+"]");x.set(t,S);var N=r();N.set(h,x),c(P,e(L,j,o,a,s,u,"comma"===o&&w&&l(k)?null:d,f,m,g,v,y,b,w,_,N))}}return P};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(n=u.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var v=r(),y=0;y<n.length;++y){var b=n[y];u.skipNulls&&null===i[b]||c(f,m(i[b],b,h,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,v))}var w=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},12493:(e,t,n)=>{"use strict";var r=n(85527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},30147:function(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+d)),Math.min(o,Math.floor(r+(s-l)*c/s+d)),a)}var f=n[r],p=i,h=o;for(t(n,i,r),a(n[o],f)>0&&t(n,i,o);p<h;){for(t(n,p,h),p++,h--;a(n[p],f)<0;)p++;for(;a(n[h],f)>0;)h--}0===a(n[i],f)?t(n,i,h):t(n,++h,o),h<=r&&(i=h+1),r<=h&&(o=h-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=h(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function h(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;p(e,s)&&(t.leaf?n.push(a):f(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||f(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=h([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=i(e,a.children,t);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=h(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=h([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));m(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var d=Math.min(c+u-1,n);m(e,c,d,l,this.compareMinY);for(var f=c;f<=d;f+=l){var p=Math.min(f+l-1,d);i.children.push(this._build(e,f,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],u=c(l),d=(f=e,p=l,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u);d<o?(o=d,i=u<i?u:i,a=l):d===o&&u<i&&(i=u,a=l)}t=a||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=h(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=h([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,u,d,f=1/0,p=1/0,h=t;h<=n-t;h++){var m=a(e,0,h,this.toBBox),g=a(e,h,n,this.toBBox),v=(i=m,o=g,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,d-l)),y=c(m)+c(g);v<f?(f=v,r=h,p=y<p?y:p):v===f&&y<p&&(p=y,r=h)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),u=d(o)+d(l),c=t;c<n-t;c++){var f=e.children[c];s(o,e.leaf?i(f):f),u+=d(o)}for(var p=n-t-1;p>=t;p--){var h=e.children[p];s(l,e.leaf?i(h):h),u+=d(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},85242:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(12244),o=n(13980),a=n(12095),s=n(33229).refType,l=n(87216),u={ambManager:o.object.isRequired,children:o.node.isRequired,disabled:o.bool,forwardedRef:s,tag:o.string},c=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=r(this,e.call.apply(e,[this].concat(s))),o.ref=i.createRef(),o.handleKeyDown=function(e){if(!o.props.disabled){var t=o.props.ambManager;switch(e.key){case"ArrowDown":e.preventDefault(),t.isOpen?t.focusItem(0):t.openMenu();break;case"Enter":case" ":e.preventDefault(),t.toggleMenu();break;case"Escape":t.handleMenuKey(e);break;default:t.handleButtonNonArrowKey(e)}}},o.handleClick=function(){o.props.disabled||o.props.ambManager.toggleMenu({},{focusMenu:!1})},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.button=this},t.prototype.componentWillUnmount=function(){this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n={role:"button",tabIndex:e.disabled?"":"0","aria-haspopup":!0,"aria-expanded":t.isOpen,"aria-disabled":e.disabled,onKeyDown:this.handleKeyDown,onClick:this.handleClick},r={};return l(r,u),["button","fieldset","input","optgroup","option","select","textarea"].indexOf(e.tag)>=0&&delete r.disabled,t.options.closeOnBlur&&(n.onBlur=t.handleBlur),l(n,e,r),l(n,{ref:this.setRef}),i.createElement(e.tag,n,e.children)},t}(i.Component);c.propTypes=u,c.defaultProps={tag:"span"},e.exports=i.forwardRef((function(e,t){return i.createElement(a.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return l(r,e,{ambManager:u.ambManager,children:u.children,forwardedRef:u.forwardedRef}),i.createElement(c,r,e.children)}))}))},12095:(e,t,n)=>{"use strict";var r=n(12244).createContext();e.exports=r},3104:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(12244),o=n(13980),a=n(21707),s=n(12095),l=n(33229).refType,u=n(87216),c={ambManager:o.object.isRequired,children:o.oneOfType([o.func,o.node]).isRequired,forwardedRef:l,tag:o.string},d=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=r(this,e.call.apply(e,[this].concat(l))),o.ref=i.createRef(),o.addTapListener=function(){var e=o.ref.current;if(e){var t=e.ownerDocument;t&&(o.tapListener=a(t.documentElement,o.handleTap))}},o.handleTap=function(e){o.ref.current.contains(e.target)||o.props.ambManager.button.ref.current.contains(e.target)||o.props.ambManager.closeMenu()},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.menu=this},t.prototype.componentDidUpdate=function(){var e=this.props.ambManager;e.options.closeOnBlur&&(e.isOpen&&!this.tapListener?this.addTapListener():!e.isOpen&&this.tapListener&&(this.tapListener.remove(),delete this.tapListener),e.isOpen||e.clearItems())},t.prototype.componentWillUnmount=function(){this.tapListener&&this.tapListener.remove(),this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n="function"==typeof e.children?e.children({isOpen:t.isOpen}):!!t.isOpen&&e.children;if(!n)return!1;var r={onKeyDown:t.handleMenuKey,role:"menu",tabIndex:-1};return t.options.closeOnBlur&&(r.onBlur=t.handleBlur),u(r,e,c),u(r,{ref:this.setRef}),i.createElement(e.tag,r,n)},t}(i.Component);d.propTypes=c,d.defaultProps={tag:"div"},e.exports=i.forwardRef((function(e,t){return i.createElement(s.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return u(r,e,{ambManager:c.ambManager,children:c.children,forwardedRef:c.forwardedRef}),i.createElement(d,r,e.children)}))}))},44480:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(12244),o=n(13980),a=n(12095),s=n(33229).refType,l=n(87216),u={ambManager:o.object.isRequired,children:o.node.isRequired,forwardedRef:s,tag:o.string,text:o.string,value:o.any},c=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=r(this,e.call.apply(e,[this].concat(s))),o.ref=i.createRef(),o.handleKeyDown=function(e){"Enter"!==e.key&&" "!==e.key||"a"===o.props.tag&&o.props.href||(e.preventDefault(),o.selectItem(e))},o.selectItem=function(e){var t=void 0!==o.props.value?o.props.value:o.props.children;o.props.ambManager.handleSelection(t,e)},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.addItem({node:this.ref.current,text:this.props.text})},t.prototype.render=function(){var e={onClick:this.selectItem,onKeyDown:this.handleKeyDown,role:"menuitem",tabIndex:"-1",ref:this.setRef};return l(e,this.props,u),i.createElement(this.props.tag,e,this.props.children)},t}(i.Component);c.propTypes=u,c.defaultProps={tag:"div"},e.exports=i.forwardRef((function(e,t){return i.createElement(a.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return l(r,e,{ambManager:u.ambManager,children:u.children,forwardedRef:u.forwardedRef}),i.createElement(c,r,e.children)}))}))},69428:(e,t,n)=>{"use strict";var r=n(12244),i=n(13980),o=n(26127),a=n(12095),s=n(33229).refType,l=n(87216),u={children:i.node.isRequired,forwardedRef:s,onMenuToggle:i.func,onSelection:i.func,closeOnSelection:i.bool,closeOnBlur:i.bool,tag:i.string},c=function(e){return{onMenuToggle:e.onMenuToggle,onSelection:e.onSelection,closeOnSelection:e.closeOnSelection,closeOnBlur:e.closeOnBlur,id:e.id}},d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.manager=o(c(n)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidUpdate=function(){this.manager.updateOptions(c(this.props))},t.prototype.render=function(){var e={};return l(e,this.props,u),r.createElement(a.Provider,{value:this.manager},r.createElement(this.props.tag,e,this.props.children))},t}(r.Component);d.propTypes=u,d.defaultProps={tag:"div"},e.exports=r.forwardRef((function(e,t){var n={forwardedRef:t};return l(n,e,{children:u.children,forwardedRef:u.forwardedRef}),l(n,{forwardedRef:t}),r.createElement(d,n,e.children)}))},26127:(e,t,n)=>{"use strict";var r=n(56297),i=n(86820),o={wrap:!0,stringSearch:!0},a={init:function(e){this.updateOptions(e),this.handleBlur=s.bind(this),this.handleSelection=l.bind(this),this.handleMenuKey=u.bind(this),this.focusGroup=r(o),this.button=null,this.menu=null,this.isOpen=!1},updateOptions:function(e){var t=this.options;this.options=e||this.options||{},void 0===this.options.closeOnSelection&&(this.options.closeOnSelection=!0),void 0===this.options.closeOnBlur&&(this.options.closeOnBlur=!0),this.options.id&&i.registerManager(this.options.id,this),t&&t.id&&t.id!==this.options.id&&i.unregisterManager(this.options.id,this)},focusItem:function(e){this.focusGroup.focusNodeAtIndex(e)},addItem:function(e){this.focusGroup.addMember(e)},clearItems:function(){this.focusGroup.clearMembers()},handleButtonNonArrowKey:function(e){this.focusGroup._handleUnboundKey(e)},destroy:function(){this.button=null,this.menu=null,this.focusGroup.deactivate(),clearTimeout(this.blurTimer),clearTimeout(this.moveFocusTimer)},update:function(){this.menu.setState({isOpen:this.isOpen}),this.button.setState({menuOpen:this.isOpen}),this.options.onMenuToggle&&this.options.onMenuToggle({isOpen:this.isOpen})},openMenu:function(e){if(!this.isOpen&&(void 0===(e=e||{}).focusMenu&&(e.focusMenu=!0),this.isOpen=!0,this.update(),this.focusGroup.activate(),e.focusMenu)){var t=this;this.moveFocusTimer=setTimeout((function(){t.focusItem(0)}),0)}},closeMenu:function(e){this.isOpen&&(e=e||{},this.isOpen=!1,this.update(),e.focusButton&&this.button.ref.current.focus())},toggleMenu:function(e,t){e=e||{},t=t||{},this.isOpen?this.closeMenu(e):this.openMenu(t)}};function s(){var e=this;e.blurTimer=setTimeout((function(){if(e.button){var t=e.button.ref.current;if(t){var n=t.ownerDocument.activeElement;if(!t||n!==t){var r=e.menu.ref.current;r!==n?r&&r.contains(n)||e.isOpen&&e.closeMenu({focusButton:!1}):e.focusItem(0)}}}}),0)}function l(e,t){this.options.closeOnSelection&&this.closeMenu({focusButton:!0}),this.options.onSelection&&this.options.onSelection(e,t)}function u(e){if(this.isOpen)switch(e.key){case"Escape":e.preventDefault(),this.closeMenu({focusButton:!0});break;case"Home":e.preventDefault(),this.focusGroup.moveFocusToFirst();break;case"End":e.preventDefault(),this.focusGroup.moveFocusToLast()}}e.exports=function(e){var t=Object.create(a);return t.init(e),t}},86820:e=>{"use strict";var t={},n="a menu outside a mounted Wrapper with an id, or a menu that does not exist";e.exports={registerManager:function(e,n){t[e]=n},unregisterManager:function(e){delete t[e]},openMenu:function(e,r){var i=t[e];if(!i)throw new Error("Cannot open "+n);i.openMenu(r)},closeMenu:function(e,r){var i=t[e];if(!i)throw new Error("Cannot close "+n);i.closeMenu(r)}}},6448:(e,t,n)=>{"use strict";var r=n(86820);e.exports={Wrapper:n(69428),Button:n(85242),Menu:n(3104),MenuItem:n(44480),openMenu:r.openMenu,closeMenu:r.closeMenu}},33229:(e,t,n)=>{"use strict";var r=n(13980);e.exports={refType:r.oneOfType([r.func,r.shape({current:r.elementType})])}},87216:e=>{"use strict";e.exports=function(e,t,n){for(var r in n=n||{},t)t.hasOwnProperty(r)&&(n[r]||(e[r]=t[r]))}},50730:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnControlled=t.Controlled=void 0;var s,l=n(12244),u="undefined"==typeof navigator||void 0!==n.g&&!0===n.g.PREVENT_CODEMIRROR_RENDER;u||(s=n(23326));var c=function(){function e(){}return e.equals=function(e,t){var n=this,r=Object.keys,o=i(e),a=i(t);return e&&t&&"object"===o&&o===a?r(e).length===r(t).length&&r(e).every((function(r){return n.equals(e[r],t[r])})):e===t},e}(),d=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,n){var r=this.editor.getDoc();n&&this.editor.focus(),t?r.setCursor(e):r.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,n){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(n.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter((function(e){return/^on/.test(e)})).forEach((function(e){switch(e){case"onBlur":t.editor.on("blur",(function(e,n){t.props.onBlur(t.editor,n)}));break;case"onContextMenu":t.editor.on("contextmenu",(function(e,n){t.props.onContextMenu(t.editor,n)}));break;case"onCopy":t.editor.on("copy",(function(e,n){t.props.onCopy(t.editor,n)}));break;case"onCursor":t.editor.on("cursorActivity",(function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())}));break;case"onCursorActivity":t.editor.on("cursorActivity",(function(e){t.props.onCursorActivity(t.editor)}));break;case"onCut":t.editor.on("cut",(function(e,n){t.props.onCut(t.editor,n)}));break;case"onDblClick":t.editor.on("dblclick",(function(e,n){t.props.onDblClick(t.editor,n)}));break;case"onDragEnter":t.editor.on("dragenter",(function(e,n){t.props.onDragEnter(t.editor,n)}));break;case"onDragLeave":t.editor.on("dragleave",(function(e,n){t.props.onDragLeave(t.editor,n)}));break;case"onDragOver":t.editor.on("dragover",(function(e,n){t.props.onDragOver(t.editor,n)}));break;case"onDragStart":t.editor.on("dragstart",(function(e,n){t.props.onDragStart(t.editor,n)}));break;case"onDrop":t.editor.on("drop",(function(e,n){t.props.onDrop(t.editor,n)}));break;case"onFocus":t.editor.on("focus",(function(e,n){t.props.onFocus(t.editor,n)}));break;case"onGutterClick":t.editor.on("gutterClick",(function(e,n,r,i){t.props.onGutterClick(t.editor,n,r,i)}));break;case"onInputRead":t.editor.on("inputRead",(function(e,n){t.props.onInputRead(t.editor,n)}));break;case"onKeyDown":t.editor.on("keydown",(function(e,n){t.props.onKeyDown(t.editor,n)}));break;case"onKeyHandled":t.editor.on("keyHandled",(function(e,n,r){t.props.onKeyHandled(t.editor,n,r)}));break;case"onKeyPress":t.editor.on("keypress",(function(e,n){t.props.onKeyPress(t.editor,n)}));break;case"onKeyUp":t.editor.on("keyup",(function(e,n){t.props.onKeyUp(t.editor,n)}));break;case"onMouseDown":t.editor.on("mousedown",(function(e,n){t.props.onMouseDown(t.editor,n)}));break;case"onPaste":t.editor.on("paste",(function(e,n){t.props.onPaste(t.editor,n)}));break;case"onRenderLine":t.editor.on("renderLine",(function(e,n,r){t.props.onRenderLine(t.editor,n,r)}));break;case"onScroll":t.editor.on("scroll",(function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())}));break;case"onSelection":t.editor.on("beforeSelectionChange",(function(e,n){t.props.onSelection(t.editor,n)}));break;case"onTouchStart":t.editor.on("touchstart",(function(e,n){t.props.onTouchStart(t.editor,n)}));break;case"onUpdate":t.editor.on("update",(function(e){t.props.onUpdate(t.editor)}));break;case"onViewportChange":t.editor.on("viewportChange",(function(e,n,r){t.props.onViewportChange(t.editor,n,r)}))}}))},e}(),f=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedNext=!1,n.appliedUserDefined=!1,n.deferred=null,n.emulating=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&(t.editor.setOption(e,i[e]),t.mirror.setOption(e,i[e]))})),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),n=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:n,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if("undo"===this.deferred.origin?t.undo():"redo"===this.deferred.origin?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var n=t.getCursor();t.setValue(e),t.setCursor(n)}this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.mirror=s((function(){}),this.props.options),this.editor.on("electricInput",(function(){e.mirror.setHistory(e.editor.getDoc().getHistory())})),this.editor.on("cursorActivity",(function(){e.mirror.setCursor(e.editor.getDoc().getCursor())})),this.editor.on("beforeChange",(function(t,n){if(!e.emulating){n.cancel(),e.deferred=n;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,n,e.editor.getValue())})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.Controlled=f;var p=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedUserDefined=!1,n.continueChange=!1,n.detached=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1,n.onBeforeChangeCb=function(){n.continueChange=!0}),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);if(Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&t.editor.setOption(e,i[e])})),!this.hydrated){var o=this.editor.getDoc(),a=o.lastLine(),l=o.getLine(o.lastLine()).length;o.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:l})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.editor.on("beforeChange",(function(t,n){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,n,e.editor.getValue(),e.onBeforeChangeCb)})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,n,e.editor.getValue()):e.props.onChange(e.editor,n,e.editor.getValue()))})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){var n=!0;return u&&(n=!1),this.detached&&e.detach&&(n=!1),n},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.UnControlled=p},20977:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlphaPicker:()=>qn,BlockPicker:()=>Qr,ChromePicker:()=>Vo,CirclePicker:()=>Fo,CompactPicker:()=>Xo,CustomPicker:()=>In,GithubPicker:()=>ea,GooglePicker:()=>Na,HuePicker:()=>ra,MaterialPicker:()=>ia,PhotoshopPicker:()=>fa,SketchPicker:()=>ba,SliderPicker:()=>Ea,SwatchesPicker:()=>Ta,TwitterPicker:()=>Pa,default:()=>Vo});var r=n(12244),i=n.n(r),o=n(7151),a={},s=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(a[i])return a[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return a[i]=o,o},l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e){var t=e.white,n=e.grey,a=e.size,u=e.renderers,c=e.borderRadius,d=e.boxShadow,f=e.children,p=(0,o.ZP)({default:{grid:{borderRadius:c,boxShadow:d,absolute:"0px 0px 0px 0px",background:"url("+s(t,n,a,u.canvas)+") center left"}}});return(0,r.isValidElement)(f)?i().cloneElement(f,l({},f.props,{style:l({},f.props.style,p.grid)})):i().createElement("div",{style:p.grid})};u.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const c=u;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}const h=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f;if(r!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),f(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,o.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:d({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return i().createElement("div",{style:n.alpha},i().createElement("div",{style:n.checkboard},i().createElement(c,{renderers:this.props.renderers})),i().createElement("div",{style:n.gradient}),i().createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i().createElement("div",{style:n.pointer},this.props.pointer?i().createElement(this.props.pointer,this.props):i().createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component);var m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=[38,40],v=1;const y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,g.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+v++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i().createElement("div",{style:t.wrap},i().createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i().createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component);var b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}const _=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=w(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c;if(c=u<0?359:u>o?0:360*(-100*u/o+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(d=l<0?0:l>i?359:100*l/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},w(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),b(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,o.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return i().createElement("div",{style:r.hue},i().createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),i().createElement("div",{style:r.pointer},this.props.pointer?i().createElement(this.props.pointer,this.props):i().createElement("div",{style:r.slider}))))}}]),t}(r.PureComponent||r.Component);var x=n(13980),E=n.n(x);const k=function(e,t){return e===t||e!=e&&t!=t},C=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return-1};var S=Array.prototype.splice;function A(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])}}A.prototype.clear=function(){this.__data__=[],this.size=0},A.prototype.delete=function(e){var t=this.__data__,n=C(t,e);return!(n<0||(n==t.length-1?t.pop():S.call(t,n,1),--this.size,0))},A.prototype.get=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]},A.prototype.has=function(e){return C(this.__data__,e)>-1},A.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const T=A,O="object"==typeof global&&global&&global.Object===Object&&global;var P="object"==typeof self&&self&&self.Object===Object&&self;const R=O||P||Function("return this")(),M=R.Symbol;var D=Object.prototype,I=D.hasOwnProperty,L=D.toString,j=M?M.toStringTag:void 0;var N=Object.prototype.toString;var F=M?M.toStringTag:void 0;const B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=I.call(e,j),n=e[j];try{e[j]=void 0;var r=!0}catch(e){}var i=L.call(e);return r&&(t?e[j]=n:delete e[j]),i}(e):function(e){return N.call(e)}(e)},U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},z=function(e){if(!U(e))return!1;var t=B(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},q=R["__core-js_shared__"];var W,$=(W=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"";var H=Function.prototype.toString;const G=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var V=/^\[object .+?Constructor\]$/,K=Function.prototype,Z=Object.prototype,Y=K.toString,X=Z.hasOwnProperty,Q=RegExp("^"+Y.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const J=function(e){return!(!U(e)||(t=e,$&&$ in t))&&(z(e)?Q:V).test(G(e));var t},ee=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return J(n)?n:void 0},te=ee(R,"Map"),ne=ee(Object,"create");var re=Object.prototype.hasOwnProperty;var ie=Object.prototype.hasOwnProperty;function oe(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])}}oe.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oe.prototype.get=function(e){var t=this.__data__;if(ne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return re.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return ne?void 0!==t[e]:ie.call(t,e)},oe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ne&&void 0===t?"__lodash_hash_undefined__":t,this};const ae=oe,se=function(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 le(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])}}le.prototype.clear=function(){this.size=0,this.__data__={hash:new ae,map:new(te||T),string:new ae}},le.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},le.prototype.get=function(e){return se(this,e).get(e)},le.prototype.has=function(e){return se(this,e).has(e)},le.prototype.set=function(e,t){var n=se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const ue=le;function ce(e){var t=this.__data__=new T(e);this.size=t.size}ce.prototype.clear=function(){this.__data__=new T,this.size=0},ce.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof T){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ue(r)}return n.set(e,t),this.size=n.size,this};const de=ce,fe=function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),pe=function(e,t,n){"__proto__"==t&&fe?fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},he=function(e,t,n){(void 0!==n&&!k(e[t],n)||void 0===n&&!(t in e))&&pe(e,t,n)},me=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};var ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=ge&&"object"==typeof module&&module&&!module.nodeType&&module,ye=ve&&ve.exports===ge?R.Buffer:void 0,be=ye?ye.allocUnsafe:void 0;const we=R.Uint8Array,_e=function(e,t){var n,r,i=t?(n=e.buffer,r=new n.constructor(n.byteLength),new we(r).set(new we(n)),r):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};var xe=Object.create;const Ee=function(){function e(){}return function(t){if(!U(t))return{};if(xe)return xe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ke=function(e,t){return function(n){return e(t(n))}},Ce=ke(Object.getPrototypeOf,Object);var Se=Object.prototype;const Ae=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Se)},Te=function(e){return null!=e&&"object"==typeof e},Oe=function(e){return Te(e)&&"[object Arguments]"==B(e)};var Pe=Object.prototype,Re=Pe.hasOwnProperty,Me=Pe.propertyIsEnumerable;const De=Oe(function(){return arguments}())?Oe:function(e){return Te(e)&&Re.call(e,"callee")&&!Me.call(e,"callee")},Ie=Array.isArray,Le=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},je=function(e){return null!=e&&Le(e.length)&&!z(e)};var Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fe=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,Be=Fe&&Fe.exports===Ne?R.Buffer:void 0;const Ue=(Be?Be.isBuffer:void 0)||function(){return!1};var ze=Function.prototype,qe=Object.prototype,We=ze.toString,$e=qe.hasOwnProperty,He=We.call(Object);var Ge={};Ge["[object Float32Array]"]=Ge["[object Float64Array]"]=Ge["[object Int8Array]"]=Ge["[object Int16Array]"]=Ge["[object Int32Array]"]=Ge["[object Uint8Array]"]=Ge["[object Uint8ClampedArray]"]=Ge["[object Uint16Array]"]=Ge["[object Uint32Array]"]=!0,Ge["[object Arguments]"]=Ge["[object Array]"]=Ge["[object ArrayBuffer]"]=Ge["[object Boolean]"]=Ge["[object DataView]"]=Ge["[object Date]"]=Ge["[object Error]"]=Ge["[object Function]"]=Ge["[object Map]"]=Ge["[object Number]"]=Ge["[object Object]"]=Ge["[object RegExp]"]=Ge["[object Set]"]=Ge["[object String]"]=Ge["[object WeakMap]"]=!1;var Ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=Ve&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ke&&Ke.exports===Ve&&O.process,Ye=function(){try{return Ke&&Ke.require&&Ke.require("util").types||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),Xe=Ye&&Ye.isTypedArray;const Qe=Xe?(Je=Xe,function(e){return Je(e)}):function(e){return Te(e)&&Le(e.length)&&!!Ge[B(e)]};var Je;const et=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var tt=Object.prototype.hasOwnProperty;const nt=function(e,t,n){var r=e[t];tt.call(e,t)&&k(r,n)&&(void 0!==n||t in e)||pe(e,t,n)};var rt=/^(?:0|[1-9]\d*)$/;const it=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&rt.test(e))&&e>-1&&e%1==0&&e<t};var ot=Object.prototype.hasOwnProperty;const at=function(e,t){var n=Ie(e),r=!n&&De(e),i=!n&&!r&&Ue(e),o=!n&&!r&&!i&&Qe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!ot.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||it(u,l))||s.push(u);return s};var st=Object.prototype.hasOwnProperty;const lt=function(e){if(!U(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ae(e),n=[];for(var r in e)("constructor"!=r||!t&&st.call(e,r))&&n.push(r);return n},ut=function(e){return je(e)?at(e,!0):lt(e)},ct=function(e){return function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?pe(n,s,l):nt(n,s,l)}return n}(e,ut(e))},dt=function(e,t,n,r,i,o,a){var s,l=et(e,n),u=et(t,n),c=a.get(u);if(c)he(e,n,c);else{var d=o?o(l,u,n+"",e,t,a):void 0,f=void 0===d;if(f){var p=Ie(u),h=!p&&Ue(u),m=!p&&!h&&Qe(u);d=u,p||h||m?Ie(l)?d=l:Te(s=l)&&je(s)?d=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):h?(f=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=be?be(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(f=!1,d=_e(u,!0)):d=[]:function(e){if(!Te(e)||"[object Object]"!=B(e))return!1;var t=Ce(e);if(null===t)return!0;var n=$e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&We.call(n)==He}(u)||De(u)?(d=l,De(l)?d=ct(l):U(l)&&!z(l)||(d=function(e){return"function"!=typeof e.constructor||Ae(e)?{}:Ee(Ce(e))}(u))):f=!1}f&&(a.set(u,d),i(d,u,r,o,a),a.delete(u)),he(e,n,d)}},ft=function e(t,n,r,i,o){t!==n&&me(n,(function(a,s){if(o||(o=new de),U(a))dt(t,n,s,r,e,i,o);else{var l=i?i(et(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),he(t,s,l)}}),ut)},pt=function(e){return e};var ht=Math.max;const mt=fe?function(e,t){return fe(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:pt;var gt=Date.now;const vt=function(e){var t=0,n=0;return function(){var r=gt(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(mt),yt=function(e,t){return vt(function(e,t,n){return t=ht(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ht(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),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)}(e,this,s)}}(e,t,pt),e+"")},bt=(wt=function(e,t,n){ft(e,t,n)},yt((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=wt.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!U(n))return!1;var r=typeof t;return!!("number"==r?je(n)&&it(t,n.length):"string"==r&&t in n)&&k(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&wt(e,a,n)}return e})));var wt,_t=function(e){var t=e.zDepth,n=e.radius,r=e.background,a=e.children,s=e.styles,l=void 0===s?{}:s,u=(0,o.ZP)(bt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return i().createElement("div",{style:u.wrap},i().createElement("div",{style:u.bg}),i().createElement("div",{style:u.content},a))};_t.propTypes={background:E().string,zDepth:E().oneOf([0,1,2,3,4,5]),radius:E().number,styles:E().object},_t.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const xt=_t,Et=function(){return R.Date.now()};var kt=/\s/;var Ct=/^\s+/;const St=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&kt.test(e.charAt(t)););return t}(e)+1).replace(Ct,""):e},At=function(e){return"symbol"==typeof e||Te(e)&&"[object Symbol]"==B(e)};var Tt=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,Pt=/^0o[0-7]+$/i,Rt=parseInt;const Mt=function(e){if("number"==typeof e)return e;if(At(e))return NaN;if(U(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=U(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=St(e);var n=Ot.test(e);return n||Pt.test(e)?Rt(e.slice(2),n?2:8):Tt.test(e)?NaN:+e};var Dt=Math.max,It=Math.min;const Lt=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=Et();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?It(n,o-(e-u)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function v(){var e=Et(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Mt(t)||0,U(n)&&(c=!!n.leading,o=(d="maxWait"in n)?Dt(Mt(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(Et())},v};var jt=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Nt=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return U(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lt(e,t,{leading:r,maxWait:t,trailing:i})}((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),jt(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,a=t.black,s=t.pointer,l=t.circle,u=(0,o.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:a,pointer:s,circle:l}},{custom:!!this.props.style});return i().createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),i().createElement("div",{style:u.white,className:"saturation-white"},i().createElement("div",{style:u.black,className:"saturation-black"}),i().createElement("div",{style:u.pointer},this.props.pointer?i().createElement(this.props.pointer,this.props):i().createElement("div",{style:u.circle}))))}}]),t}(r.PureComponent||r.Component);const Ft=Nt,Bt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Ut=ke(Object.keys,Object);var zt=Object.prototype.hasOwnProperty;const qt=function(e){return je(e)?at(e):function(e){if(!Ae(e))return Ut(e);var t=[];for(var n in Object(e))zt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Wt=function(e,t){if(null==e)return e;if(!je(e))return function(e,t){return e&&me(e,t,qt)}(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e},$t=function(e,t){return(Ie(e)?Bt:Wt)(e,"function"==typeof(n=t)?n:pt);var n};function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}var Gt=/^\s+/,Vt=/\s+$/;function Kt(e,t){if(t=t||{},(e=e||"")instanceof Kt)return e;if(!(this instanceof Kt))return new Kt(e,t);var n=function(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){e=e.replace(Gt,"").replace(Vt,"").toLowerCase();var t,n=!1;if(fn[e])e=fn[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Cn.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Cn.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Cn.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Cn.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Cn.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Cn.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Cn.hex8.exec(e))?{r:vn(t[1]),g:vn(t[2]),b:vn(t[3]),a:_n(t[4]),format:n?"name":"hex8"}:(t=Cn.hex6.exec(e))?{r:vn(t[1]),g:vn(t[2]),b:vn(t[3]),format:n?"name":"hex"}:(t=Cn.hex4.exec(e))?{r:vn(t[1]+""+t[1]),g:vn(t[2]+""+t[2]),b:vn(t[3]+""+t[3]),a:_n(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=Cn.hex3.exec(e))&&{r:vn(t[1]+""+t[1]),g:vn(t[2]+""+t[2]),b:vn(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==Ht(e)&&(Sn(e.r)&&Sn(e.g)&&Sn(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*mn(t,255),g:255*mn(n,255),b:255*mn(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Sn(e.h)&&Sn(e.s)&&Sn(e.v)?(a=bn(e.s),s=bn(e.v),i=function(e,t,n){e=6*mn(e,360),t=mn(t,100),n=mn(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):Sn(e.h)&&Sn(e.s)&&Sn(e.l)&&(a=bn(e.s),l=bn(e.l),i=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=mn(e,360),t=mn(t,100),n=mn(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),u=!0,c="hsl"),e.hasOwnProperty("a")&&(o=e.a)),o=hn(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Zt(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function Yt(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function Xt(e,t,n,r){var i=[yn(Math.round(e).toString(16)),yn(Math.round(t).toString(16)),yn(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Qt(e,t,n,r){return[yn(wn(r)),yn(Math.round(e).toString(16)),yn(Math.round(t).toString(16)),yn(Math.round(n).toString(16))].join("")}function Jt(e,t){t=0===t?0:t||10;var n=Kt(e).toHsl();return n.s-=t/100,n.s=gn(n.s),Kt(n)}function en(e,t){t=0===t?0:t||10;var n=Kt(e).toHsl();return n.s+=t/100,n.s=gn(n.s),Kt(n)}function tn(e){return Kt(e).desaturate(100)}function nn(e,t){t=0===t?0:t||10;var n=Kt(e).toHsl();return n.l+=t/100,n.l=gn(n.l),Kt(n)}function rn(e,t){t=0===t?0:t||10;var n=Kt(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),Kt(n)}function on(e,t){t=0===t?0:t||10;var n=Kt(e).toHsl();return n.l-=t/100,n.l=gn(n.l),Kt(n)}function an(e,t){var n=Kt(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Kt(n)}function sn(e){var t=Kt(e).toHsl();return t.h=(t.h+180)%360,Kt(t)}function ln(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Kt(e).toHsl(),r=[Kt(e)],i=360/t,o=1;o<t;o++)r.push(Kt({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function un(e){var t=Kt(e).toHsl(),n=t.h;return[Kt(e),Kt({h:(n+72)%360,s:t.s,l:t.l}),Kt({h:(n+216)%360,s:t.s,l:t.l})]}function cn(e,t,n){t=t||6,n=n||30;var r=Kt(e).toHsl(),i=360/n,o=[Kt(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Kt(r));return o}function dn(e,t){t=t||6;for(var n=Kt(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Kt({h:r,s:i,v:o})),o=(o+s)%1;return a}Kt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=hn(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Yt(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Yt(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Zt(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Zt(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Xt(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[yn(Math.round(e).toString(16)),yn(Math.round(t).toString(16)),yn(Math.round(n).toString(16)),yn(wn(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*mn(this._r,255))+"%",g:Math.round(100*mn(this._g,255))+"%",b:Math.round(100*mn(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*mn(this._r,255))+"%, "+Math.round(100*mn(this._g,255))+"%, "+Math.round(100*mn(this._b,255))+"%)":"rgba("+Math.round(100*mn(this._r,255))+"%, "+Math.round(100*mn(this._g,255))+"%, "+Math.round(100*mn(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(pn[Xt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Qt(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=Kt(e);n="#"+Qt(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Kt(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(nn,arguments)},brighten:function(){return this._applyModification(rn,arguments)},darken:function(){return this._applyModification(on,arguments)},desaturate:function(){return this._applyModification(Jt,arguments)},saturate:function(){return this._applyModification(en,arguments)},greyscale:function(){return this._applyModification(tn,arguments)},spin:function(){return this._applyModification(an,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(cn,arguments)},complement:function(){return this._applyCombination(sn,arguments)},monochromatic:function(){return this._applyCombination(dn,arguments)},splitcomplement:function(){return this._applyCombination(un,arguments)},triad:function(){return this._applyCombination(ln,[3])},tetrad:function(){return this._applyCombination(ln,[4])}},Kt.fromRatio=function(e,t){if("object"==Ht(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:bn(e[r]));e=n}return Kt(e,t)},Kt.equals=function(e,t){return!(!e||!t)&&Kt(e).toRgbString()==Kt(t).toRgbString()},Kt.random=function(){return Kt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Kt.mix=function(e,t,n){n=0===n?0:n||50;var r=Kt(e).toRgb(),i=Kt(t).toRgb(),o=n/100;return Kt({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Kt.readability=function(e,t){var n=Kt(e),r=Kt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Kt.isReadable=function(e,t,n){var r,i,o,a,s,l=Kt.readability(e,t);switch(i=!1,(o=n,"AA"!==(a=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(s=(o.size||"small").toLowerCase())&&"large"!==s&&(s="small"),r={level:a,size:s}).level+r.size){case"AAsmall":case"AAAlarge":i=l>=4.5;break;case"AAlarge":i=l>=3;break;case"AAAsmall":i=l>=7}return i},Kt.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=Kt.readability(e,t[u]))>l&&(l=r,s=Kt(t[u]));return Kt.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Kt.mostReadable(e,["#fff","#000"],n))};var fn=Kt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pn=Kt.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(fn);function hn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mn(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function gn(e){return Math.min(1,Math.max(0,e))}function vn(e){return parseInt(e,16)}function yn(e){return 1==e.length?"0"+e:""+e}function bn(e){return e<=1&&(e=100*e+"%"),e}function wn(e){return Math.round(255*parseFloat(e)).toString(16)}function _n(e){return vn(e)/255}var xn,En,kn,Cn=(En="[\\s|\\(]+("+(xn="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+xn+")[,|\\s]+("+xn+")\\s*\\)?",kn="[\\s|\\(]+("+xn+")[,|\\s]+("+xn+")[,|\\s]+("+xn+")[,|\\s]+("+xn+")\\s*\\)?",{CSS_UNIT:new RegExp(xn),rgb:new RegExp("rgb"+En),rgba:new RegExp("rgba"+kn),hsl:new RegExp("hsl"+En),hsla:new RegExp("hsla"+kn),hsv:new RegExp("hsv"+En),hsva:new RegExp("hsva"+kn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Sn(e){return!!Cn.CSS_UNIT.exec(e)}var An=function(e){var t=0,n=0;return $t(["r","g","b","a","h","s","l","v"],(function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)})),t===n&&e},Tn=function(e,t){var n=e.hex?Kt(e.hex):Kt(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},On=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Kt(e).isValid()},Pn=function(e){if(!e)return"#fff";var t=Tn(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Rn=function(e,t){return Kt(t+" ("+e.replace("°","")+")")._ok},Mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();const In=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(An(e)){var r=Tn(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(An(e)){var r=Tn(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=Mn({},Tn(e.color,0)),t.debounce=Lt((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),Dn(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),i().createElement(e,Mn({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return Mn({},Tn(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=Mn({},e.propTypes),t.defaultProps=Mn({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var Ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Nn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const Bn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=Nn(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Nn(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),jn(r,[{key:"render",value:function(){return i().createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},i().createElement(e,Ln({},this.props,this.state)))}}]),r}(i().Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,a=void 0===r?function(){}:r,s=e.onHover,l=e.title,u=void 0===l?t:l,d=e.children,f=e.focus,p=e.focusStyle,h=void 0===p?{}:p,m="transparent"===t,g=(0,o.ZP)({default:{swatch:Fn({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,f?h:{})}}),v={};return s&&(v.onMouseOver=function(e){return s(t,e)}),i().createElement("div",Fn({style:g.swatch,onClick:function(e){return a(t,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},v),d,m&&i().createElement(c,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));var Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn=function(e){var t=e.rgb,n=e.hsl,r=e.width,a=e.height,s=e.onChange,l=e.direction,u=e.style,c=e.renderers,d=e.pointer,f=e.className,p=void 0===f?"":f,m=(0,o.ZP)({default:{picker:{position:"relative",width:r,height:a},alpha:{radius:"2px",style:u}}});return i().createElement("div",{style:m.picker,className:"alpha-picker "+p},i().createElement(h,Un({},m.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:s,direction:l})))};zn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,o.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return i().createElement("div",{style:n.picker})}};const qn=In(zn),Wn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ue;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$n.prototype.has=function(e){return this.__data__.has(e)};const Hn=$n,Gn=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},Vn=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Hn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=a?r(m,h,d,t,e,o):r(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Gn(t,(function(e,t){if(a=t,!p.has(a)&&(h===e||i(h,e,n,r,o)))return p.push(t);var a}))){f=!1;break}}else if(h!==m&&!i(h,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f},Kn=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Zn=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Yn=M?M.prototype:void 0,Xn=Yn?Yn.valueOf:void 0;var Qn=Object.prototype.propertyIsEnumerable,Jn=Object.getOwnPropertySymbols;const er=Jn?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Jn(e),(function(t){return Qn.call(e,t)})))}:function(){return[]},tr=function(e){return function(e,t,n){var r=t(e);return Ie(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,qt,er)};var nr=Object.prototype.hasOwnProperty;const rr=ee(R,"DataView"),ir=ee(R,"Promise"),or=ee(R,"Set"),ar=ee(R,"WeakMap");var sr="[object Map]",lr="[object Promise]",ur="[object Set]",cr="[object WeakMap]",dr="[object DataView]",fr=G(rr),pr=G(te),hr=G(ir),mr=G(or),gr=G(ar),vr=B;(rr&&vr(new rr(new ArrayBuffer(1)))!=dr||te&&vr(new te)!=sr||ir&&vr(ir.resolve())!=lr||or&&vr(new or)!=ur||ar&&vr(new ar)!=cr)&&(vr=function(e){var t=B(e),n="[object Object]"==t?e.constructor:void 0,r=n?G(n):"";if(r)switch(r){case fr:return dr;case pr:return sr;case hr:return lr;case mr:return ur;case gr:return cr}return t});const yr=vr;var br="[object Arguments]",wr="[object Array]",_r="[object Object]",xr=Object.prototype.hasOwnProperty;const Er=function(e,t,n,r,i,o){var a=Ie(e),s=Ie(t),l=a?wr:yr(e),u=s?wr:yr(t),c=(l=l==br?_r:l)==_r,d=(u=u==br?_r:u)==_r,f=l==u;if(f&&Ue(e)){if(!Ue(t))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new de),a||Qe(e)?Vn(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new we(e),new we(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return k(+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 s=Kn;case"[object Set]":var l=1&r;if(s||(s=Zn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Vn(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(Xn)return Xn.call(e)==Xn.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=c&&xr.call(e,"__wrapped__"),h=d&&xr.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new de),i(m,g,n,r,o)}}return!!f&&(o||(o=new de),function(e,t,n,r,i,o){var a=1&n,s=tr(e),l=s.length;if(l!=tr(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:nr.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var v=a?r(g,m,c,t,e,o):r(m,g,c,e,t,o);if(!(void 0===v?m===g||i(m,g,n,r,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},kr=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Te(t)&&!Te(n)?t!=t&&n!=n:Er(t,n,r,i,e,o))},Cr=function(e){return e==e&&!U(e)},Sr=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},Ar=function(e){var t=function(e){for(var t=qt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cr(i)]}return t}(e);return 1==t.length&&t[0][2]?Sr(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new de;if(r)var f=r(u,c,l,e,t,d);if(!(void 0===f?kr(c,u,3,r,d):f))return!1}}return!0}(n,e,t)}};var Tr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Or=/^\w*$/;const Pr=function(e,t){if(Ie(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!At(e))||Or.test(e)||!Tr.test(e)||null!=t&&e in Object(t)};function Rr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Rr.Cache||ue),n}Rr.Cache=ue;var Mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dr=/\\(\\)?/g;const Ir=(Lr=Rr((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Mr,(function(e,n,r,i){t.push(r?i.replace(Dr,"$1"):n||e)})),t}),(function(e){return 500===jr.size&&jr.clear(),e})),jr=Lr.cache,Lr);var Lr,jr,Nr=M?M.prototype:void 0,Fr=Nr?Nr.toString:void 0;const Br=function e(t){if("string"==typeof t)return t;if(Ie(t))return Wn(t,e)+"";if(At(t))return Fr?Fr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Ur=function(e){return null==e?"":Br(e)},zr=function(e,t){return Ie(e)?e:Pr(e,t)?[e]:Ir(Ur(e))},qr=function(e){if("string"==typeof e||At(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Wr=function(e,t){for(var n=0,r=(t=zr(t,e)).length;null!=e&&n<r;)e=e[qr(t[n++])];return n&&n==r?e:void 0},$r=function(e,t){return null!=e&&t in Object(e)},Hr=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=zr(t,e)).length,o=!1;++r<i;){var a=qr(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Le(i)&&it(a,i)&&(Ie(e)||De(e))}(e,t,$r)},Gr=function(e,t){return Pr(e)&&Cr(t)?Sr(qr(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Wr(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Hr(n,e):kr(t,r,3)}},Vr=function(e){return Pr(e)?(t=qr(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Wr(t,e)}}(e);var t},Kr=function(e,t){var n=-1,r=je(e)?Array(e.length):[];return Wt(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},Zr=function(e,t){return(Ie(e)?Wn:Kr)(e,"function"==typeof(n=t)?n:null==n?pt:"object"==typeof n?Ie(n)?Gr(n[0],n[1]):Ar(n):Vr(n));var n},Yr=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,a=(0,o.ZP)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return i().createElement("div",{style:a.swatches},Zr(t,(function(e){return i().createElement(Bn,{key:e,color:e,style:a.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),i().createElement("div",{style:a.clear}))};var Xr=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,l=e.triangle,u=e.styles,d=void 0===u?{}:u,f=e.className,p=void 0===f?"":f,h="transparent"===r,m=function(e,n){On(e)&&t({hex:e,source:"hex"},n)},g=(0,o.ZP)(bt({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Pn(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},d),{"hide-triangle":"hide"===l});return i().createElement("div",{style:g.card,className:"block-picker "+p},i().createElement("div",{style:g.triangle}),i().createElement("div",{style:g.head},h&&i().createElement(c,{borderRadius:"6px 6px 0 0"}),i().createElement("div",{style:g.label},r)),i().createElement("div",{style:g.body},i().createElement(Yr,{colors:a,onClick:m,onSwatchHover:n}),i().createElement(y,{style:{input:g.input},value:r,onChange:m})))};Xr.propTypes={width:E().oneOfType([E().string,E().number]),colors:E().arrayOf(E().string),triangle:E().oneOf(["top","hide"]),styles:E().object},Xr.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};const Qr=In(Xr);var Jr="#ffcdd2",ei="#e57373",ti="#f44336",ni="#d32f2f",ri="#b71c1c",ii="#f8bbd0",oi="#f06292",ai="#e91e63",si="#c2185b",li="#880e4f",ui="#e1bee7",ci="#ba68c8",di="#9c27b0",fi="#7b1fa2",pi="#4a148c",hi="#d1c4e9",mi="#9575cd",gi="#673ab7",vi="#512da8",yi="#311b92",bi="#c5cae9",wi="#7986cb",_i="#3f51b5",xi="#303f9f",Ei="#1a237e",ki="#bbdefb",Ci="#64b5f6",Si="#2196f3",Ai="#1976d2",Ti="#0d47a1",Oi="#b3e5fc",Pi="#4fc3f7",Ri="#03a9f4",Mi="#0288d1",Di="#01579b",Ii="#b2ebf2",Li="#4dd0e1",ji="#00bcd4",Ni="#0097a7",Fi="#006064",Bi="#b2dfdb",Ui="#4db6ac",zi="#009688",qi="#00796b",Wi="#004d40",$i="#c8e6c9",Hi="#81c784",Gi="#4caf50",Vi="#388e3c",Ki="#dcedc8",Zi="#aed581",Yi="#8bc34a",Xi="#689f38",Qi="#33691e",Ji="#f0f4c3",eo="#dce775",to="#cddc39",no="#afb42b",ro="#827717",io="#fff9c4",oo="#fff176",ao="#ffeb3b",so="#fbc02d",lo="#f57f17",uo="#ffecb3",co="#ffd54f",fo="#ffc107",po="#ffa000",ho="#ff6f00",mo="#ffe0b2",go="#ffb74d",vo="#ff9800",yo="#f57c00",bo="#e65100",wo="#ffccbc",_o="#ff8a65",xo="#ff5722",Eo="#e64a19",ko="#bf360c",Co="#d7ccc8",So="#a1887f",Ao="#795548",To="#5d4037",Oo="#3e2723",Po="#cfd8dc",Ro="#90a4ae",Mo="#607d8b",Do="#455a64",Io="#263238",Lo=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,a=e.hover,s=e.active,l=e.circleSize,u=e.circleSpacing,c=(0,o.ZP)({default:{swatch:{width:l,height:l,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:s});return i().createElement("div",{style:c.swatch},i().createElement(Bn,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Lo.defaultProps={circleSize:28,circleSpacing:14};const jo=(0,o.tz)(Lo);var No=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,a=e.colors,s=e.hex,l=e.circleSize,u=e.styles,c=void 0===u?{}:u,d=e.circleSpacing,f=e.className,p=void 0===f?"":f,h=(0,o.ZP)(bt({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),m=function(e,t){return n({hex:e,source:"hex"},t)};return i().createElement("div",{style:h.card,className:"circle-picker "+p},Zr(a,(function(e){return i().createElement(jo,{key:e,color:e,onClick:m,onSwatchHover:r,active:s===e.toLowerCase(),circleSize:l,circleSpacing:d})})))};No.propTypes={width:E().oneOfType([E().string,E().number]),circleSize:E().number,circleSpacing:E().number,styles:E().object},No.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ti,ai,di,gi,_i,Si,Ri,ji,zi,Gi,Yi,to,ao,fo,vo,xo,Ao,Mo],styles:{}};const Fo=In(No),Bo=function(e){return void 0===e};var Uo=n(16331),zo=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),qo=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?On(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Bo(e.s)?n.props.hsl.s:e.s),l:Number(Bo(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),zo(t,[{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i().createElement("div",{style:t.fields,className:"flexbox-fix"},i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i().createElement("div",{style:t.fields,className:"flexbox-fix"},i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i().createElement("div",{style:t.alpha},i().createElement(y,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i().createElement("div",{style:t.fields,className:"flexbox-fix"},i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i().createElement("div",{style:t.field},i().createElement(y,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i().createElement("div",{style:t.alpha},i().createElement(y,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i().createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i().createElement("div",{style:t.toggle},i().createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i().createElement(Uo.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i().Component);qo.defaultProps={view:"hex"};const Wo=qo,$o=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return i().createElement("div",{style:e.picker})},Ho=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return i().createElement("div",{style:e.picker})};var Go=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,a=e.rgb,s=e.hsl,l=e.hsv,u=e.hex,d=e.renderers,f=e.styles,p=void 0===f?{}:f,m=e.className,g=void 0===m?"":m,v=e.defaultView,y=(0,o.ZP)(bt({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},p),{disableAlpha:r});return i().createElement("div",{style:y.picker,className:"chrome-picker "+g},i().createElement("div",{style:y.saturation},i().createElement(Ft,{style:y.Saturation,hsl:s,hsv:l,pointer:Ho,onChange:n})),i().createElement("div",{style:y.body},i().createElement("div",{style:y.controls,className:"flexbox-fix"},i().createElement("div",{style:y.color},i().createElement("div",{style:y.swatch},i().createElement("div",{style:y.active}),i().createElement(c,{renderers:d}))),i().createElement("div",{style:y.toggles},i().createElement("div",{style:y.hue},i().createElement(_,{style:y.Hue,hsl:s,pointer:$o,onChange:n})),i().createElement("div",{style:y.alpha},i().createElement(h,{style:y.Alpha,rgb:a,hsl:s,pointer:$o,renderers:d,onChange:n})))),i().createElement(Wo,{rgb:a,hsl:s,hex:u,view:v,onChange:n,disableAlpha:r})))};Go.propTypes={width:E().oneOfType([E().string,E().number]),disableAlpha:E().bool,styles:E().object,defaultView:E().oneOf(["hex","rgb","hsl"])},Go.defaultProps={width:225,disableAlpha:!1,styles:{}};const Vo=In(Go),Ko=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.active,l=(0,o.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Pn(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i().createElement(Bn,{style:l.color,color:t,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},i().createElement("div",{style:l.dot}))},Zo=function(e){var t=e.hex,n=e.rgb,r=e.onChange,a=(0,o.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return i().createElement("div",{style:a.fields,className:"flexbox-fix"},i().createElement("div",{style:a.active}),i().createElement(y,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:s}),i().createElement(y,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),i().createElement(y,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),i().createElement(y,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))};var Yo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,a=e.hex,s=e.rgb,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,f=(0,o.ZP)(bt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return i().createElement(xt,{style:f.Compact,styles:u},i().createElement("div",{style:f.compact,className:"compact-picker "+d},i().createElement("div",null,Zr(r,(function(e){return i().createElement(Ko,{key:e,color:e,active:e.toLowerCase()===a,onClick:p,onSwatchHover:n})})),i().createElement("div",{style:f.clear})),i().createElement(Zo,{hex:a,rgb:s,onChange:p})))};Yo.propTypes={colors:E().arrayOf(E().string),styles:E().object},Yo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};const Xo=In(Yo),Qo=(0,o.tz)((function(e){var t=e.hover,n=e.color,r=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,o.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return i().createElement("div",{style:l.swatch},i().createElement(Bn,{color:n,onClick:r,onHover:a,focusStyle:s}))}));var Jo=function(e){var t=e.width,n=e.colors,r=e.onChange,a=e.onSwatchHover,s=e.triangle,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,f=(0,o.ZP)(bt({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),p=function(e,t){return r({hex:e,source:"hex"},t)};return i().createElement("div",{style:f.card,className:"github-picker "+d},i().createElement("div",{style:f.triangleShadow}),i().createElement("div",{style:f.triangle}),Zr(n,(function(e){return i().createElement(Qo,{color:e,key:e,onClick:p,onSwatchHover:a})})))};Jo.propTypes={width:E().oneOfType([E().string,E().number]),colors:E().arrayOf(E().string),triangle:E().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:E().object},Jo.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};const ea=In(Jo);var ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.hsl,s=e.direction,l=e.pointer,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=(0,o.ZP)(bt({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return i().createElement("div",{style:p.picker,className:"hue-picker "+f},i().createElement(_,ta({},p.hue,{hsl:a,pointer:l,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:s})))};na.propTypes={styles:E().object},na.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,o.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return i().createElement("div",{style:n.picker})},styles:{}};const ra=In(na),ia=In((function(e){var t=e.onChange,n=e.hex,r=e.rgb,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,c=(0,o.ZP)(bt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),d=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return i().createElement(xt,{styles:s},i().createElement("div",{style:c.material,className:"material-picker "+u},i().createElement(y,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),i().createElement("div",{style:c.split,className:"flexbox-fix"},i().createElement("div",{style:c.third},i().createElement(y,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:d})),i().createElement("div",{style:c.third},i().createElement(y,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:d})),i().createElement("div",{style:c.third},i().createElement(y,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:d})))))})),oa=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,a=e.hex,s=(0,o.ZP)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(e,i){e["#"]?On(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},i)};return i().createElement("div",{style:s.fields},i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(r.h),onChange:l}),i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:l}),i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:l}),i().createElement("div",{style:s.divider}),i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:l}),i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:l}),i().createElement(y,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:l}),i().createElement("div",{style:s.divider}),i().createElement(y,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:a.replace("#",""),onChange:l}),i().createElement("div",{style:s.fieldSymbols},i().createElement("div",{style:s.symbol},"°"),i().createElement("div",{style:s.symbol},"%"),i().createElement("div",{style:s.symbol},"%")))},aa=function(e){var t=e.hsl,n=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return i().createElement("div",{style:n.picker})},sa=function(){var e=(0,o.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return i().createElement("div",{style:e.pointer},i().createElement("div",{style:e.left},i().createElement("div",{style:e.leftInside})),i().createElement("div",{style:e.right},i().createElement("div",{style:e.rightInside})))},la=function(e){var t=e.onClick,n=e.label,r=e.children,a=e.active,s=(0,o.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return i().createElement("div",{style:s.button,onClick:t},n||r)},ua=function(e){var t=e.rgb,n=e.currentColor,r=(0,o.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return i().createElement("div",null,i().createElement("div",{style:r.label},"new"),i().createElement("div",{style:r.swatches},i().createElement("div",{style:r.new}),i().createElement("div",{style:r.current})),i().createElement("div",{style:r.label},"current"))};var ca=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),da=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ca(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,a=void 0===r?"":r,s=(0,o.ZP)(bt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return i().createElement("div",{style:s.picker,className:"photoshop-picker "+a},i().createElement("div",{style:s.head},this.props.header),i().createElement("div",{style:s.body,className:"flexbox-fix"},i().createElement("div",{style:s.saturation},i().createElement(Ft,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:aa,onChange:this.props.onChange})),i().createElement("div",{style:s.hue},i().createElement(_,{direction:"vertical",hsl:this.props.hsl,pointer:sa,onChange:this.props.onChange})),i().createElement("div",{style:s.controls},i().createElement("div",{style:s.top,className:"flexbox-fix"},i().createElement("div",{style:s.previews},i().createElement(ua,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i().createElement("div",{style:s.actions},i().createElement(la,{label:"OK",onClick:this.props.onAccept,active:!0}),i().createElement(la,{label:"Cancel",onClick:this.props.onCancel}),i().createElement(oa,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(i().Component);da.propTypes={header:E().string,styles:E().object},da.defaultProps={header:"Color Picker",styles:{}};const fa=In(da),pa=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.disableAlpha,l=(0,o.ZP)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),u=function(e,i){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return i().createElement("div",{style:l.fields,className:"flexbox-fix"},i().createElement("div",{style:l.double},i().createElement(y,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),i().createElement("div",{style:l.single},i().createElement(y,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),i().createElement("div",{style:l.single},i().createElement(y,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),i().createElement("div",{style:l.single},i().createElement(y,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),i().createElement("div",{style:l.alpha},i().createElement(y,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:u,dragLabel:"true",dragMax:"100"})))};var ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=(0,o.ZP)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),l=function(e,t){r({hex:e,source:"hex"},t)};return i().createElement("div",{style:s.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return i().createElement("div",{key:n,style:s.swatchWrap},i().createElement(Bn,ha({},t,{style:s.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};ma.propTypes={colors:E().arrayOf(E().oneOfType([E().string,E().shape({color:E().string,title:E().string})])).isRequired};const ga=ma;var va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya=function(e){var t=e.width,n=e.rgb,r=e.hex,a=e.hsv,s=e.hsl,l=e.onChange,u=e.onSwatchHover,d=e.disableAlpha,f=e.presetColors,p=e.renderers,m=e.styles,g=void 0===m?{}:m,v=e.className,y=void 0===v?"":v,b=(0,o.ZP)(bt({default:va({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},g),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},g),{disableAlpha:d});return i().createElement("div",{style:b.picker,className:"sketch-picker "+y},i().createElement("div",{style:b.saturation},i().createElement(Ft,{style:b.Saturation,hsl:s,hsv:a,onChange:l})),i().createElement("div",{style:b.controls,className:"flexbox-fix"},i().createElement("div",{style:b.sliders},i().createElement("div",{style:b.hue},i().createElement(_,{style:b.Hue,hsl:s,onChange:l})),i().createElement("div",{style:b.alpha},i().createElement(h,{style:b.Alpha,rgb:n,hsl:s,renderers:p,onChange:l}))),i().createElement("div",{style:b.color},i().createElement(c,null),i().createElement("div",{style:b.activeColor}))),i().createElement(pa,{rgb:n,hsl:s,hex:r,onChange:l,disableAlpha:d}),i().createElement(ga,{colors:f,onClick:l,onSwatchHover:u}))};ya.propTypes={disableAlpha:E().bool,width:E().oneOfType([E().string,E().number]),styles:E().object},ya.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};const ba=In(ya),wa=function(e){var t=e.hsl,n=e.offset,r=e.onClick,a=void 0===r?function(){}:r,s=e.active,l=e.first,u=e.last,c=(0,o.ZP)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:l,last:u});return i().createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},_a=function(e){var t=e.onClick,n=e.hsl,r=(0,o.ZP)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return i().createElement("div",{style:r.swatches},i().createElement("div",{style:r.swatch},i().createElement(wa,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:t,first:!0})),i().createElement("div",{style:r.swatch},i().createElement(wa,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:t})),i().createElement("div",{style:r.swatch},i().createElement(wa,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:t})),i().createElement("div",{style:r.swatch},i().createElement(wa,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:t})),i().createElement("div",{style:r.swatch},i().createElement(wa,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:t,last:!0})),i().createElement("div",{style:r.clear}))};var xa=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,c=(0,o.ZP)(bt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return i().createElement("div",{style:c.wrap||{},className:"slider-picker "+u},i().createElement("div",{style:c.hue},i().createElement(_,{style:c.Hue,hsl:t,pointer:r,onChange:n})),i().createElement("div",{style:c.swatches},i().createElement(_a,{hsl:t,onClick:n})))};xa.propTypes={styles:E().object},xa.defaultProps={pointer:function(){var e=(0,o.ZP)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return i().createElement("div",{style:e.picker})},styles:{}};const Ea=In(xa);var ka=n(47988);const Ca=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.first,l=e.last,u=e.active,c=(0,o.ZP)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Pn(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:l,active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i().createElement(Bn,{color:t,style:c.color,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},i().createElement("div",{style:c.check},i().createElement(ka.Z,null)))},Sa=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,a=e.active,s=(0,o.ZP)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return i().createElement("div",{style:s.group},Zr(r,(function(e,o){return i().createElement(Ca,{key:e,color:e,active:e.toLowerCase()===a,first:0===o,last:o===r.length-1,onClick:t,onSwatchHover:n})})))};var Aa=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.onSwatchHover,s=e.colors,l=e.hex,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=(0,o.ZP)(bt({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return r({hex:e,source:"hex"},t)};return i().createElement("div",{style:p.picker,className:"swatches-picker "+f},i().createElement(xt,null,i().createElement("div",{style:p.overflow},i().createElement("div",{style:p.body},Zr(s,(function(e){return i().createElement(Sa,{key:e.toString(),group:e,active:l,onClick:h,onSwatchHover:a})})),i().createElement("div",{style:p.clear})))))};Aa.propTypes={width:E().oneOfType([E().string,E().number]),height:E().oneOfType([E().string,E().number]),colors:E().arrayOf(E().arrayOf(E().string)),styles:E().object},Aa.defaultProps={width:320,height:240,colors:[[ri,ni,ti,ei,Jr],[li,si,ai,oi,ii],[pi,fi,di,ci,ui],[yi,vi,gi,mi,hi],[Ei,xi,_i,wi,bi],[Ti,Ai,Si,Ci,ki],[Di,Mi,Ri,Pi,Oi],[Fi,Ni,ji,Li,Ii],[Wi,qi,zi,Ui,Bi],["#194D33",Vi,Gi,Hi,$i],[Qi,Xi,Yi,Zi,Ki],[ro,no,to,eo,Ji],[lo,so,ao,oo,io],[ho,po,fo,co,uo],[bo,yo,vo,go,mo],[ko,Eo,xo,_o,wo],[Oo,To,Ao,So,Co],[Io,Do,Mo,Ro,Po],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};const Ta=In(Aa);var Oa=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,l=e.triangle,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=(0,o.ZP)(bt({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),h=function(e,n){On(e)&&t({hex:e,source:"hex"},n)};return i().createElement("div",{style:p.card,className:"twitter-picker "+f},i().createElement("div",{style:p.triangleShadow}),i().createElement("div",{style:p.triangle}),i().createElement("div",{style:p.body},Zr(a,(function(e,t){return i().createElement(Bn,{key:t,color:e,hex:e,style:p.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),i().createElement("div",{style:p.hash},"#"),i().createElement(y,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:h}),i().createElement("div",{style:p.clear})))};Oa.propTypes={width:E().oneOfType([E().string,E().number]),triangle:E().oneOf(["hide","top-left","top-right"]),colors:E().arrayOf(E().string),styles:E().object},Oa.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};const Pa=In(Oa);var Ra=function(e){var t=(0,o.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return i().createElement("div",{style:t.picker})};Ra.propTypes={hsl:E().shape({h:E().number,s:E().number,l:E().number,a:E().number})},Ra.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Ma=Ra;var Da=function(e){var t=(0,o.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return i().createElement("div",{style:t.picker})};Da.propTypes={hsl:E().shape({h:E().number,s:E().number,l:E().number,a:E().number})},Da.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Ia=Da,La=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.hsv,l=function(e,n){if(e.hex)On(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");Rn(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var i=e.hsv.split(",");Rn(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("°",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},n))}else if(e.hsl){var o=e.hsl.split(",");Rn(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==f[1]?f[1]=.01:1==f[2]&&(f[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},n))}},u=(0,o.ZP)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",f=Math.round(s.h)+"°, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return i().createElement("div",{style:u.wrap,className:"flexbox-fix"},i().createElement("div",{style:u.fields},i().createElement("div",{style:u.double},i().createElement(y,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),i().createElement("div",{style:u.column},i().createElement("div",{style:u.single},i().createElement(y,{style:{input:u.input2,label:u.label2},label:"rgb",value:c,onChange:l})),i().createElement("div",{style:u.single},i().createElement(y,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:l})),i().createElement("div",{style:u.single},i().createElement(y,{style:{input:u.input2,label:u.label2},label:"hsl",value:d,onChange:l})))))};var ja=function(e){var t=e.width,n=e.onChange,r=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,u=e.header,c=e.styles,d=void 0===c?{}:c,f=e.className,p=void 0===f?"":f,h=(0,o.ZP)(bt({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return i().createElement("div",{style:h.picker,className:"google-picker "+p},i().createElement("div",{style:h.head},u),i().createElement("div",{style:h.swatch}),i().createElement("div",{style:h.saturation},i().createElement(Ft,{hsl:a,hsv:s,pointer:Ma,onChange:n})),i().createElement("div",{style:h.body},i().createElement("div",{style:h.controls,className:"flexbox-fix"},i().createElement("div",{style:h.hue},i().createElement(_,{style:h.Hue,hsl:a,radius:"4px",pointer:Ia,onChange:n}))),i().createElement(La,{rgb:r,hsl:a,hex:l,hsv:s,onChange:n})))};ja.propTypes={width:E().oneOfType([E().string,E().number]),styles:E().object,header:E().string},ja.defaultProps={width:652,styles:{},header:"Color picker"};const Na=In(ja)},51092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HTML5Backend:()=>F,NativeTypes:()=>r,getEmptyImage:()=>N});var r={};function i(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(r),n.d(r,{FILE:()=>v,HTML:()=>w,TEXT:()=>b,URL:()=>y});var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"entered",[]),a(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e){return i.push(e)})),i}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),e}(),l=i((function(){return/firefox/i.test(navigator.userAgent)})),u=i((function(){return Boolean(window.safari)}));function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"xs",void 0),d(this,"ys",void 0),d(this,"c1s",void 0),d(this,"c2s",void 0),d(this,"c3s",void 0);for(var r=t.length,i=[],o=0;o<r;o++)i.push(o);i.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=[],f=0;f<r-1;f++)a=t[f+1]-t[f],s=n[f+1]-n[f],u.push(a),l.push(s),c.push(s/a);for(var p=[c[0]],h=0;h<u.length-1;h++){var m=c[h],g=c[h+1];if(m*g<=0)p.push(0);else{a=u[h];var v=u[h+1],y=a+v;p.push(3*y/((y+v)/m+(y+a)/g))}}p.push(c[c.length-1]);for(var b,w=[],_=[],x=0;x<p.length-1;x++){b=c[x];var E=p[x],k=1/u[x],C=E+p[x+1]-b-b;w.push((b-E-C)*k),_.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=w,this.c3s=_}var t,n;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=o.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],f=d*d;return n[a]+r[a]*d+i[a]*f+o[a]*d*f}}])&&c(t.prototype,n),e}(),p=1;function h(e){var t=e.nodeType===p?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function m(e){return{x:e.clientX,y:e.clientY}}var g,v="__NATIVE_FILE__",y="__NATIVE_URL__",b="__NATIVE_TEXT__",w="__NATIVE_HTML__";function _(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(x(g={},v,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),x(g,w,{exposeProperties:{html:function(e,t){return _(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),x(g,y,{exposeProperties:{urls:function(e,t){return _(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),x(g,b,{exposeProperties:{text:function(e,t){return _(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),g);function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,"item",void 0),C(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&k(t.prototype,n),e}();function A(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(E).filter((function(e){return E[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,"ownerDocument",null),O(this,"globalContext",void 0),O(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&T(t.prototype,n),e}();function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L,j=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),I(this,"options",void 0),I(this,"actions",void 0),I(this,"monitor",void 0),I(this,"registry",void 0),I(this,"enterLeaveCounter",void 0),I(this,"sourcePreviewNodes",new Map),I(this,"sourcePreviewNodeOptions",new Map),I(this,"sourceNodes",new Map),I(this,"sourceNodeOptions",new Map),I(this,"dragStartSourceIds",null),I(this,"dropTargetIds",[]),I(this,"dragEnterTargetIds",[]),I(this,"currentNativeSource",null),I(this,"currentNativeHandle",null),I(this,"currentDragSourceNode",null),I(this,"altKeyPressed",!1),I(this,"mouseMoveTimeoutTimer",null),I(this,"asyncEndDragFrameId",null),I(this,"dragOverTargetIds",null),I(this,"lastClientOffset",null),I(this,"hoverRafId",null),I(this,"getSourceClientOffset",(function(e){var t=i.sourceNodes.get(e);return t&&h(t)||null})),I(this,"endDragNativeItem",(function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)})),I(this,"isNodeInDocument",(function(e){return Boolean(e&&i.document&&i.document.body&&i.document.body.contains(e))})),I(this,"endDragIfSourceWasRemovedFromDOM",(function(){var e=i.currentDragSourceNode;null==e||i.isNodeInDocument(e)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()})),I(this,"handleTopDragStartCapture",(function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]})),I(this,"handleTopDragStart",(function(e){if(!e.defaultPrevented){var t=i.dragStartSourceIds;i.dragStartSourceIds=null;var n=m(e);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,o=A(r);if(i.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=i.monitor.getSourceId(),s=i.sourceNodes.get(a),c=i.sourcePreviewNodes.get(a)||s;if(c){var d=i.getCurrentSourcePreviewNodeOptions(),p=function(e,t,n,r,i){var o,a,s,c="IMG"===(o=t).nodeName&&(l()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(o))),d=h(c?e:t),p={x:n.x-d.x,y:n.y-d.y},m=e.offsetWidth,g=e.offsetHeight,v=r.anchorX,y=r.anchorY,b=function(e,t,n,r){var i=e?t.width:n,o=e?t.height:r;return u()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(c,t,m,g),w=b.dragPreviewWidth,_=b.dragPreviewHeight,x=i.offsetX,E=i.offsetY,k=0===E||E;return{x:0===x||x?x:new f([0,.5,1],[p.x,p.x/m*w,p.x+w-m]).interpolate(v),y:k?E:(s=new f([0,.5,1],[p.y,p.y/g*_,p.y+_-g]).interpolate(y),u()&&c&&(s+=(window.devicePixelRatio-1)*_),s)}}(s,c,n,{anchorX:d.anchorX,anchorY:d.anchorY},{offsetX:d.offsetX,offsetY:d.offsetY});r.setDragImage(c,p.x,p.y)}}try{null==r||r.setData("application/json",{})}catch(e){}i.setCurrentDragSourceNode(e.target),i.getCurrentSourcePreviewNodeOptions().captureDraggingState?i.actions.publishDragSource():setTimeout((function(){return i.actions.publishDragSource()}),0)}else if(o)i.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}})),I(this,"handleTopDragEndCapture",(function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()})),I(this,"handleTopDragEnterCapture",(function(e){if(i.dragEnterTargetIds=[],i.enterLeaveCounter.enter(e.target)&&!i.monitor.isDragging()){var t=e.dataTransfer,n=A(t);n&&i.beginDragNativeItem(n,t)}})),I(this,"handleTopDragEnter",(function(e){var t=i.dragEnterTargetIds;i.dragEnterTargetIds=[],i.monitor.isDragging()&&(i.altKeyPressed=e.altKey,t.length>0&&i.actions.hover(t,{clientOffset:m(e)}),t.some((function(e){return i.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())))})),I(this,"handleTopDragOverCapture",(function(){i.dragOverTargetIds=[]})),I(this,"handleTopDragOver",(function(e){var t=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));i.altKeyPressed=e.altKey,i.lastClientOffset=m(e),null===i.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(i.hoverRafId=requestAnimationFrame((function(){i.monitor.isDragging()&&i.actions.hover(t||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}))),(t||[]).some((function(e){return i.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))})),I(this,"handleTopDragLeaveCapture",(function(e){i.isDraggingNativeItem()&&e.preventDefault(),i.enterLeaveCounter.leave(e.target)&&i.isDraggingNativeItem()&&setTimeout((function(){return i.endDragNativeItem()}),0)})),I(this,"handleTopDropCapture",(function(e){var t;i.dropTargetIds=[],i.isDraggingNativeItem()?(e.preventDefault(),null===(t=i.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):A(e.dataTransfer)&&e.preventDefault(),i.enterLeaveCounter.reset()})),I(this,"handleTopDrop",(function(e){var t=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(t,{clientOffset:m(e)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()})),I(this,"handleSelectStart",(function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))})),this.options=new P(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new s(this.isNodeInDocument)}var t,n;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return M({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return M({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new S(E[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&D(t.prototype,n),e}();function N(){return L||((L=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),L}var F=function(e,t,n){return new j(e,t,n)}},99273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DndContext:()=>i,DndProvider:()=>Se,DragLayer:()=>Ft,DragPreviewImage:()=>Te,DragSource:()=>bt,DropTarget:()=>Rt,useDrag:()=>rn,useDragDropManager:()=>$t,useDragLayer:()=>pn,useDrop:()=>dn});var r=n(12244),i=(0,r.createContext)({dragDropManager:void 0}),o=n(52322);function a(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}var s="dnd-core/INIT_COORDS",l="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",d="dnd-core/DROP",f="dnd-core/END_DRAG";function p(e,t){return{type:s,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e){return"object"===h(e)}var g={type:s,payload:{clientOffset:null,sourceClientOffset:null}};function v(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,s=n.getSourceClientOffset,u=e.getMonitor(),c=e.getRegistry();e.dispatch(p(o)),function(e,t,n){a(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){a(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,u,c);var d=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,u);if(null!==d){var f=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");!function(e){a("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(s),f=s(d)}e.dispatch(p(o,f));var h=c.getSource(d).beginDrag(u,d);if(null!=h){!function(e){a(m(e),"Item must be an object.")}(h),c.pinSource(d);var v=c.getSourceType(d);return{type:l,payload:{itemType:v,item:h,sourceId:d,clientOffset:o||null,sourceClientOffset:f||null,isSourcePublic:!!i}}}}else e.dispatch(g)}}function y(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function b(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function w(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){a(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){a(t.isDragging(),"Cannot call hover while not dragging."),a(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var i=e[r];a(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array."),a(n.getTarget(i),"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r];b(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,i,o),{type:c,payload:{targetIds:r,clientOffset:n||null}}}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){a(e.isDragging(),"Cannot call drop while not dragging."),a(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var i=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach((function(i,o){var s=function(e,t,n,r){var i=n.getTarget(e),o=i?i.drop(r,e):void 0;return function(e){a(void 0===e||m(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),l={type:d,payload:{dropResult:x(x({},t),s)}};e.dispatch(l)}))}}function C(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){a(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:f}}}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),A(this,"store",void 0),A(this,"monitor",void 0),A(this,"backend",void 0),A(this,"isSetUp",!1),A(this,"handleRefCountChange",(function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:v(e),publishDragSource:y(e),hover:w(e),drop:k(e),endDrag:C(e)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=o.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&S(t.prototype,n),e}(),O=n(74081),P=function(e,t){return e===t};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function L(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case s:case l:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case c:return e=n.clientOffset,t=i.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:M(M({},n),{},{clientOffset:i.clientOffset});case f:case d:return I;default:return n}}var j="dnd-core/ADD_SOURCE",N="dnd-core/ADD_TARGET",F="dnd-core/REMOVE_SOURCE",B="dnd-core/REMOVE_TARGET";function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case l:return z(z({},n),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case u:return z(z({},n),{},{isSourcePublic:!0});case c:return z(z({},n),{},{targetIds:i.targetIds});case B:return-1===n.targetIds.indexOf(i.targetId)?n:z(z({},n),{},{targetIds:(e=n.targetIds,t=i.targetId,e.filter((function(e){return e!==t})))});case d:return z(z({},n),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case f:return z(z({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case j:case N:return e+1;case F:case B:return e-1;default:return e}}var G=[],V=[];function K(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case j:case N:case B:case F:return G;default:return V}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,i=t.prevTargetIds,o=void 0===i?[]:i,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e,t){1===e&&i.push(t)})),i}(r,o),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,o);if(!s)return G;var l=o[o.length-1],u=r[r.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function Z(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:K(n.dirtyHandlerIds,{type:r.type,payload:X(X({},r.payload),{},{prevTargetIds:(e=n,"dragOperation.targetIds",t=[],"dragOperation.targetIds".split(".").reduce((function(e,n){return e&&e[n]?e[n]:t||null}),e))})}),dragOffset:L(n.dragOffset,r),refCount:H(n.refCount,r),dragOperation:$(n.dragOperation,r),stateId:Z(n.stateId)}}function ee(e,t){return{x:e.x-t.x,y:e.y-t.y}}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}G.__IS_NONE__=!0,V.__IS_ALL__=!0;var re,ie=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ne(this,"store",void 0),ne(this,"registry",void 0),this.store=t,this.registry=n}var t,n;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;a("function"==typeof e,"listener must be a function."),a(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var i=t.store.getState(),o=i.stateId;try{var a=o===r||o===r+1&&!function(e,t){return e!==G&&(e===V||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}(i.dirtyHandlerIds,n);a||e()}finally{r=o}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;a("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return a(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return a(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&b(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!b(n,r))return!1;var i=this.getTargetIds();if(!i.length)return!1;var o=i.indexOf(e);return t?o===i.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(e=this.store.getState().dragOffset).clientOffset,i=e.initialClientOffset,o=e.initialSourceClientOffset,r&&i&&o?ee((n=o,{x:(t=r).x+n.x,y:t.y+n.y}),i):null;var e,t,n,r,i,o}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?ee(t,n):null;var e,t,n}}],n&&te(t.prototype,n),e}(),oe=0;function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function se(e,t){t&&Array.isArray(e)?e.forEach((function(e){return se(e,!1)})):a("string"==typeof e||"symbol"===ae(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(re||(re={}));const le="undefined"!=typeof global?global:self,ue=le.MutationObserver||le.WebKitMutationObserver;function ce(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const de="function"==typeof ue?function(e){let t=1;const n=new ue(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:ce;class fe{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const pe=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=de(this.flush),this.requestErrorThrow=ce((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},he=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new fe(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(pe.registerPendingError);function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e){switch(e[0]){case"S":return re.SOURCE;case"T":return re.TARGET;default:a(!1,"Cannot parse handler ID: ".concat(e))}}function be(e,t){var n,r,i=e.entries(),o=!1;do{var a=i.next(),s=a.done;if((n=a.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.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)?ve(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1]===t)return!0;o=!!s}while(!o);return!1}var we=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,"types",new Map),ge(this,"dragSources",new Map),ge(this,"dropTargets",new Map),ge(this,"pinnedSourceId",null),ge(this,"pinnedSource",null),ge(this,"store",void 0),this.store=t}var t,n;return t=e,n=[{key:"addSource",value:function(e,t){se(e),function(e){a("function"==typeof e.canDrag,"Expected canDrag to be a function."),a("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),a("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(re.SOURCE,e,t);return this.store.dispatch(function(e){return{type:j,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){se(e,!0),function(e){a("function"==typeof e.canDrop,"Expected canDrop to be a function."),a("function"==typeof e.hover,"Expected hover to be a function."),a("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(re.TARGET,e,t);return this.store.dispatch(function(e){return{type:N,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return be(this.dragSources,e)||be(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return a(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return a(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return a(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ye(e)===re.SOURCE}},{key:"isTargetId",value:function(e){return ye(e)===re.TARGET}},{key:"removeSource",value:function(e){var t,n=this;a(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:F,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},pe.enqueueTask(he.create(t))}},{key:"removeTarget",value:function(e){a(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:B,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);a(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){a(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(oe++).toString();switch(e){case re.SOURCE:return"S".concat(t);case re.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===re.SOURCE?this.dragSources.set(r,n):e===re.TARGET&&this.dropTargets.set(r,n),r}}],n&&me(t.prototype,n),e}();function _e(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(t=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,(0,O.createStore)(J,t&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))),a=new ie(o,new we(o)),s=new T(o,a),l=e(s,r,i);return s.receiveBackend(l),s}var xe=["children"];function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ke=0,Ce=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Se=(0,r.memo)((function(e){var t,n,a=e.children,s=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[Ce]||(i[Ce]={dragDropManager:_e(e,t,n,r)}),i[Ce]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,xe)),l=(n=2,function(e){if(Array.isArray(e))return e}(t=s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.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)?Ee(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];return(0,r.useEffect)((function(){if(c){var e=Ae();return++ke,function(){0==--ke&&(e[Ce]=null)}}}),[]),(0,o.jsx)(i.Provider,Object.assign({value:u},{children:a}),void 0)}));function Ae(){return void 0!==n.g?n.g:window}var Te=(0,r.memo)((function(e){var t=e.connect,n=e.src;return(0,r.useEffect)((function(){if("undefined"!=typeof Image){var e=!1,r=new Image;return r.src=n,r.onload=function(){t(r),e=!0},function(){e&&t(null)}}})),null}));function Oe(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return[i,function(){return r.removeTarget(i)}]}function Pe(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}function Re(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var i=t;return e(i,n),i}var o=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var s=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return a("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,r.cloneElement)(e,{ref:function(e){Me(n,e),Me(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,s)}}(i);t[n]=function(){return o}}})),t}function Me(e,t){"function"==typeof e?e(t):e.current=t}function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ie(e){return null!==e&&"object"===De(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Le(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,"hooks",Re({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,Ie(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,Ie(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),Ne(this,"handlerId",null),Ne(this,"dragSourceRef",null),Ne(this,"dragSourceNode",void 0),Ne(this,"dragSourceOptionsInternal",null),Ne(this,"dragSourceUnsubscribe",void 0),Ne(this,"dragPreviewRef",null),Ne(this,"dragPreviewNode",void 0),Ne(this,"dragPreviewOptionsInternal",null),Ne(this,"dragPreviewUnsubscribe",void 0),Ne(this,"lastConnectedHandlerId",null),Ne(this,"lastConnectedDragSource",null),Ne(this,"lastConnectedDragSourceOptions",null),Ne(this,"lastConnectedDragPreview",null),Ne(this,"lastConnectedDragPreviewOptions",null),Ne(this,"backend",void 0),this.backend=t}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Le(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Le(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&je(t.prototype,n),e}();function Be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=!1,qe=!1,We=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ue(this,"internalMonitor",void 0),Ue(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){a(!ze,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ze=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ze=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;a(!qe,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return qe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{qe=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Be(t.prototype,n),e}();function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function He(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function Ge(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null==e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function Ve(e){return"function"==typeof e}function Ke(){}function Ze(e){if(!function(e){return"object"===$e(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ye(e,t){return"string"==typeof e||"symbol"===$e(e)||!!t&&Array.isArray(e)&&e.every((function(e){return Ye(e,!1)}))}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Qe(e.prototype,t),n&&Qe(e,n),e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tt=function(){function e(t){Xe(this,e),et(this,"isDisposed",!1),et(this,"action",void 0),this.action=Ve(t)?t:Ke}return Je(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&Ve(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();et(tt,"empty",{dispose:Ke});var nt=function(){function e(){Xe(this,e),et(this,"isDisposed",!1),et(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return Je(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),rt=function(){function e(){Xe(this,e),et(this,"isDisposed",!1),et(this,"current",void 0)}return Je(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),it=n(73463),ot=n.n(it);function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ut(e,t)}function ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e){var t=e.DecoratedComponent,n=e.createHandler,s=e.createMonitor,l=e.createConnector,u=e.registerHandler,c=e.containerDisplayName,d=e.getType,f=e.collect,p=e.options.arePropsEqual,h=void 0===p?Le:p,m=t,g=t.displayName||t.name||"Component",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ut(e,t)}(b,e);var t,c,p,v,y=(p=b,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=dt(p);if(v){var n=dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===at(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ct(e)}(this,e)});function b(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),ft(ct(t=y.call(this,e)),"decoratedRef",(0,r.createRef)()),ft(ct(t),"handlerId",void 0),ft(ct(t),"manager",void 0),ft(ct(t),"handlerMonitor",void 0),ft(ct(t),"handlerConnector",void 0),ft(ct(t),"handler",void 0),ft(ct(t),"disposable",void 0),ft(ct(t),"currentType",void 0),ft(ct(t),"handleChange",(function(){var e=t.getCurrentState();Le(e,t.state)||t.setState(e)})),t.disposable=new rt,t.receiveProps(e),t.dispose(),t}return t=b,(c=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return a(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!h(e,this.props)||!Le(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new rt,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){h(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(d(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(o=u(e,this.handler,this.manager),a=2,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=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(o,a)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.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)?st(e,t):void 0}}(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new nt(new tt(i),new tt(r)))}var o,a}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?f(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,o.jsx)(i.Consumer,{children:function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),(0,o.jsx)(m,Object.assign({},e.props,e.getCurrentState(),{ref:Ge(m)?e.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(a(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",g,g),void 0!==e&&(this.manager=e,this.handlerMonitor=s(e),this.handlerConnector=l(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&<(t.prototype,c),b}(r.Component);return ft(v,"DecoratedComponent",t),ft(v,"displayName","".concat(c,"(").concat(g,")")),ot()(v,t)}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=["canDrag","beginDrag","isDragging","endDrag"],vt=["beginDrag"],yt=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mt(this,"props",null),mt(this,"spec",void 0),mt(this,"monitor",void 0),mt(this,"ref",void 0),mt(this,"beginDrag",(function(){if(i.props)return i.spec.beginDrag(i.props,i.monitor,i.ref.current)})),this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,He(this.ref))}}])&&ht(t.prototype,n),e}();function bt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(a(Ye(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),a(Ze(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var o=function(e){return Object.keys(e).forEach((function(t){a(gt.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',gt.join(", "),t),a("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),vt.forEach((function(t){a("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new yt(e,t,n)}}(t);return a("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),a(Ze(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return pt({containerDisplayName:"DragSource",createHandler:o,registerHandler:Pe,createConnector:function(e){return new Fe(e)},createMonitor:function(e){return new We(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=!1,Et=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_t(this,"internalMonitor",void 0),_t(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;a(!xt,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return xt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{xt=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&wt(t.prototype,n),e}();function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"hooks",Re({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,Ie(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),Ct(this,"handlerId",null),Ct(this,"dropTargetRef",null),Ct(this,"dropTargetNode",void 0),Ct(this,"dropTargetOptionsInternal",null),Ct(this,"unsubscribeDropTarget",void 0),Ct(this,"lastConnectedHandlerId",null),Ct(this,"lastConnectedDropTarget",null),Ct(this,"lastConnectedDropTargetOptions",null),Ct(this,"backend",void 0),this.backend=t}var t,n;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Le(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&kt(t.prototype,n),e}();function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=["canDrop","hover","drop"],Pt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Tt(this,"props",null),Tt(this,"spec",void 0),Tt(this,"monitor",void 0),Tt(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,He(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&At(t.prototype,n),e}();function Rt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(a(Ye(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),a(Ze(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var o=function(e){return Object.keys(e).forEach((function(t){a(Ot.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Ot.join(", "),t),a("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new Pt(e,t,n)}}(t);return a("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),a(Ze(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return pt({containerDisplayName:"DropTarget",createHandler:o,registerHandler:Oe,createMonitor:function(e){return new Et(e)},createConnector:function(e){return new St(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}function Mt(e){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(e)}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t){return It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},It(e,t)}function Lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),a(Ze(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var s=n,l=t.arePropsEqual,u=void 0===l?Le:l,c=s.displayName||s.name||"Component",d=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}(h,t);var n,l,d,f,p=(d=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=jt(d);if(f){var n=jt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lt(e)}(this,e)});function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Nt(Lt(e=p.call.apply(p,[this].concat(n))),"manager",void 0),Nt(Lt(e),"isCurrentlyMounted",!1),Nt(Lt(e),"unsubscribeFromOffsetChange",void 0),Nt(Lt(e),"unsubscribeFromStateChange",void 0),Nt(Lt(e),"ref",(0,r.createRef)()),Nt(Lt(e),"handleChange",(function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();Le(t,e.state)||e.setState(t)}})),e}return n=h,(l=[{key:"getDecoratedComponentInstance",value:function(){return a(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!u(e,this.props)||!Le(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return(0,o.jsx)(i.Consumer,{children:function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?(0,o.jsx)(s,Object.assign({},e.props,e.state,{ref:Ge(s)?e.ref:null}),void 0):null)}},void 0)}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,a("object"===Mt(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&Dt(n.prototype,l),h}(r.Component);return Nt(d,"displayName","DragLayer(".concat(c,")")),Nt(d,"DecoratedComponent",n),ot()(d,n)}}var Bt="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qt(this,"spec",void 0),qt(this,"monitor",void 0),qt(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=r}var t,n;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===Ut(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,r=this.monitor,i=n.isDragging;return i?i(r):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()}}])&&zt(t.prototype,n),e}();function $t(){var e=(0,r.useContext)(i).dragDropManager;return a(null!=e,"Expected drag drop context"),e}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gt(e,t,n){var i=$t(),o=function(e,t,n){var i=(0,r.useMemo)((function(){return new Wt(e,t,n)}),[t,n]);return(0,r.useEffect)((function(){i.spec=e}),[e]),i}(e,t,n),s=function(e){return(0,r.useMemo)((function(){var t=e.type;return a(null!=t,"spec.type must be defined"),t}),[e])}(e);Bt((function(){if(null!=s){var e=(l=Pe(s,o,i),u=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(l,u)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n=Object.prototype.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)?Ht(e,t):void 0}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=e[0],a=e[1];return t.receiveHandlerId(r),n.receiveHandlerId(r),a}var l,u}),[i,t,n,o,s])}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kt(e,t){var n,i=function(e){if(Array.isArray(e))return Vt(e)}(n=t||[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.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)?Vt(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return null==t&&"function"!=typeof e&&i.push(e),(0,r.useMemo)((function(){return"function"==typeof e?e():e}),i)}var Zt=n(69378),Yt=n.n(Zt);function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qt(e,t,n){var i,o,a=(i=(0,r.useState)((function(){return t(e)})),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(i,o)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n=Object.prototype.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)?Xt(e,t):void 0}}(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1],u=(0,r.useCallback)((function(){var r=t(e);Yt()(s,r)||(l(r),n&&n())}),[s,e,n]);return Bt(u),[s,u]}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function en(e,t,n){return function(e,t,r){var i,o,a=(i=Qt(e,t,(function(){return n.reconnect()})),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(i,o)||function(e,t){if(e){if("string"==typeof e)return Jt(e,t);var n=Object.prototype.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)?Jt(e,t):void 0}}(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1];return Bt((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(l,{handlerIds:[t]})}),[e,l]),s}(t,e||function(){return{}})}function tn(e){return(0,r.useMemo)((function(){return e.hooks.dragSource()}),[e])}function nn(e){return(0,r.useMemo)((function(){return e.hooks.dragPreview()}),[e])}function rn(e,t){var n=Kt(e,t);a(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var i,o=(i=$t(),(0,r.useMemo)((function(){return new We(i)}),[i])),s=function(e,t){var n=$t(),i=(0,r.useMemo)((function(){return new Fe(n.getBackend())}),[n]);return Bt((function(){return i.dragSourceOptions=e||null,i.reconnect(),function(){return i.disconnectDragSource()}}),[i,e]),Bt((function(){return i.dragPreviewOptions=t||null,i.reconnect(),function(){return i.disconnectDragPreview()}}),[i,t]),i}(n.options,n.previewOptions);return Gt(n,o,s),[en(n.collect,o,s),tn(s),nn(s)]}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),an(this,"spec",void 0),an(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&on(t.prototype,n),e}();function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function un(e,t,n){var i=$t(),o=function(e,t){var n=(0,r.useMemo)((function(){return new sn(e,t)}),[t]);return(0,r.useEffect)((function(){n.spec=e}),[e]),n}(e,t),s=function(e){var t=e.accept;return(0,r.useMemo)((function(){return a(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]}),[t])}(e);Bt((function(){var e,r,a=(e=Oe(s,o,i),r=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,r)||function(e,t){if(e){if("string"==typeof e)return ln(e,t);var n=Object.prototype.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)?ln(e,t):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],u=a[1];return t.receiveHandlerId(l),n.receiveHandlerId(l),u}),[i,t,o,n,s.map((function(e){return e.toString()})).join("|")])}function cn(e){return(0,r.useMemo)((function(){return e.hooks.dropTarget()}),[e])}function dn(e,t){var n,i=Kt(e,t),o=(n=$t(),(0,r.useMemo)((function(){return new Et(n)}),[n])),a=function(e){var t=$t(),n=(0,r.useMemo)((function(){return new St(t.getBackend())}),[t]);return Bt((function(){return n.dropTargetOptions=e||null,n.reconnect(),function(){return n.disconnectDropTarget()}}),[e]),n}(i.options);return un(i,o,a),[en(i.collect,o,a),cn(a)]}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e){var t,n,i=$t().getMonitor(),o=(t=Qt(i,e),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return fn(e,t);var n=Object.prototype.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)?fn(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=o[1];return(0,r.useEffect)((function(){return i.subscribeToOffsetChange(s)})),(0,r.useEffect)((function(){return i.subscribeToStateChange(s)})),a}},1350:(e,t,n)=>{"use strict";var r=n(12244);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function u(e){return!!o.call(l,e)||!o.call(s,e)&&(a.test(e)?l[e]=!0:(s[e]=!0,!1))}function c(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new c(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var f=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(h).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h[t]=h[e]}))}));var g=/["'&<>]/;function v(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function _(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function E(e,t,n){if("object"!=typeof n)throw Error(i(62));for(var r in t=!0,n)if(o.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var s=v(r);a=v((""+a).trim())}else{s=r;var l=x.get(s);void 0!==l||(l=v(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),x.set(s,l)),s=l,a="number"==typeof a?0===a||o.call(h,r)?""+a:a+"px":v((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function k(e,t,n,r){switch(n){case"style":return void E(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(u(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function C(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!=typeof t||!("__html"in t))throw Error(i(61));null!=(t=t.__html)&&e.push(""+t)}}function S(e,t,n,r){e.push(O(n));var i,a=n=null;for(i in t)if(o.call(t,i)){var s=t[i];if(null!=s)switch(i){case"children":n=s;break;case"dangerouslySetInnerHTML":a=s;break;default:k(e,r,i,s)}}return e.push(">"),C(e,a,n),"string"==typeof n?(e.push(v(n)),null):n}var A=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,T=new Map;function O(e){var t=T.get(e);if(void 0===t){if(!A.test(e))throw Error(i(65,e));t="<"+e,T.set(e,t)}return t}function P(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(i(395));return e.push(n),e.push('"></template>')}var R=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(R,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function D(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var I=Object.assign,L=Symbol.for("react.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),K=Symbol.for("react.debug_trace_mode"),Z=Symbol.for("react.legacy_hidden"),Y=Symbol.for("react.default_value"),X=Symbol.iterator;function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case N:return"Fragment";case j:return"Portal";case B:return"Profiler";case F:return"StrictMode";case W:return"Suspense";case $:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case U:return(e._context.displayName||"Context")+".Provider";case q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case H:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}var J={};function ee(e,t){if(!(e=e.contextTypes))return J;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function oe(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?ne(e,t):oe(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?ne(e,n):ae(e,n),t.context._currentValue2=t.value}function se(e){var t=te;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?oe(t,e):ae(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue2:r,"function"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(n,i))?i:I({},i,a),e.state=i),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=I({},o,s)):I(o,s))}e.state=o}else o.queue=null}var ce={id:1,overflow:""};function de(e,t,n){var r=e.id;e=e.overflow;var i=32-fe(r)-1;r&=~(1<<i),n+=1;var o=32-fe(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-fe(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var fe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(pe(e)/he|0)|0},pe=Math.log,he=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ve=null,ye=null,be=null,we=!1,_e=!1,xe=0,Ee=null,ke=0;function Ce(){if(null===ge)throw Error(i(321));return ge}function Se(){if(0<ke)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Ae(){return null===be?null===ye?(we=!1,ye=be=Se()):(we=!0,be=ye):null===be.next?(we=!1,be=be.next=Se()):(we=!0,be=be.next),be}function Te(){ve=ge=null,_e=!1,ye=null,ke=0,be=Ee=null}function Oe(e,t){return"function"==typeof t?t(e):t}function Pe(e,t,n){if(ge=Ce(),be=Ae(),we){var r=be.queue;if(t=r.dispatch,null!==Ee&&void 0!==(n=Ee.get(r))){Ee.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===Oe?"function"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Me.bind(null,ge,e),[be.memoizedState,e]}function Re(e,t){if(ge=Ce(),t=void 0===t?null:t,null!==(be=Ae())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!me(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Me(e,t,n){if(25<=ke)throw Error(i(301));if(e===ge)if(_e=!0,e={action:n,next:null},null===Ee&&(Ee=new Map),void 0===(n=Ee.get(t)))Ee.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function De(){throw Error(i(394))}function Ie(){}var Le={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Re,useReducer:Pe,useRef:function(e){ge=Ce();var t=(be=Ae()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Pe(Oe,e)},useInsertionEffect:Ie,useLayoutEffect:function(){},useCallback:function(e,t){return Re((function(){return e}),t)},useImperativeHandle:Ie,useEffect:Ie,useDebugValue:Ie,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,De]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=je;if(null===n)throw Error(i(404));return t=xe++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},je=null,Ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function Be(){}function Ue(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function ze(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function qe(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function We(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function $e(e,t,n,r,i){for(ge={},ve=t,xe=0,e=n(r,i);_e;)_e=!1,xe=0,ke+=1,be=null,e=n(r,i);return Te(),e}function He(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,Q(r)||"Unknown",l));r=I({},s,n)}t.legacyContext=r,Ke(e,t,o),t.legacyContext=s}else Ke(e,t,o)}function Ge(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ve(e,t,n,a,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=ee(n,t.legacyContext);var l=n.contextType;ue(l=new n(a,"object"==typeof l&&null!==l?l._currentValue2:s),n,a,s),He(e,t,l,n)}else{s=$e(e,t,n,a,l=ee(n,t.legacyContext));var c=0!==xe;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)ue(s,n,a,l),He(e,t,s,n);else if(c){a=t.treeContext,t.treeContext=de(a,1,0);try{Ke(e,t,s)}finally{t.treeContext=a}}else Ke(e,t,s)}else{if("string"!=typeof n){switch(n){case Z:case K:case F:case B:case N:case $:return void Ke(e,t,a.children);case V:throw Error(i(343));case W:e:{n=t.blockedBoundary,s=t.blockedSegment,l=a.fallback,a=a.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c=new Set,errorDigest:null},f=ze(0,s.chunks.length,d,s.formatContext,!1,!1);s.children.push(f),s.lastPushedText=!1;var p=ze(0,0,null,s.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=p;try{if(Ye(e,t,a),e.responseState.generateStaticMarkup||p.lastPushedText&&p.textEmbedded&&p.chunks.push("\x3c!-- --\x3e"),p.status=1,Je(d,p),0===d.pendingTasks)break e}catch(t){p.status=4,d.forceClientRender=!0,d.errorDigest=qe(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=Ue(e,l,n,f,c,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case q:if(a=$e(e,t,n.render,a,s),0!==xe){n=t.treeContext,t.treeContext=de(n,1,0);try{Ke(e,t,a)}finally{t.treeContext=n}}else Ke(e,t,a);return;case H:return void Ve(e,t,n=n.type,a=Ge(n,a),s);case U:if(s=a.children,n=n._context,a=a.value,l=n._currentValue2,n._currentValue2=a,te=a={parent:c=te,depth:null===c?0:c.depth+1,context:n,parentValue:l,value:a},t.context=a,Ke(e,t,s),null===(e=te))throw Error(i(403));return a=e.parentValue,e.context._currentValue2=a===Y?e.context._defaultValue:a,e=te=e.parent,void(t.context=e);case z:return void Ke(e,t,a=(a=a.children)(n._currentValue2));case G:return void Ve(e,t,n=(s=n._init)(n._payload),a=Ge(n,a),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,a,s){switch(t){case"select":e.push(O("select"));var l=null,c=null;for(h in n)if(o.call(n,h)){var d=n[h];if(null!=d)switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":c=d;break;case"defaultValue":case"value":break;default:k(e,a,h,d)}}return e.push(">"),C(e,c,l),l;case"option":c=s.selectedValue,e.push(O("option"));var f=d=null,p=null,h=null;for(l in n)if(o.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":f=m;default:k(e,a,l,m)}}if(null!=c)if(n=null!==f?""+f:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),w(c)){for(a=0;a<c.length;a++)if(""+c[a]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else p&&e.push(' selected=""');return e.push(">"),C(e,h,d),d;case"textarea":for(d in e.push(O("textarea")),h=c=l=null,n)if(o.call(n,d)&&null!=(f=n[d]))switch(d){case"children":h=f;break;case"value":l=f;break;case"defaultValue":c=f;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:k(e,a,d,f)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=h){if(null!=l)throw Error(i(92));if(w(h)&&1<h.length)throw Error(i(93));l=""+h}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(c in e.push(O("input")),f=h=d=l=null,n)if(o.call(n,c)&&null!=(p=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":f=p;break;case"defaultValue":d=p;break;case"checked":h=p;break;case"value":l=p;break;default:k(e,a,c,p)}return null!==h?k(e,a,"checked",h):null!==f&&k(e,a,"checked",f),null!==l?k(e,a,"value",l):null!==d&&k(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(O("menuitem")),n)if(o.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:k(e,a,g,l)}return e.push(">"),null;case"title":for(m in e.push(O("title")),l=null,n)if(o.call(n,m)&&null!=(c=n[m]))switch(m){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:k(e,a,m,c)}return e.push(">"),l;case"listing":case"pre":for(f in e.push(O(t)),c=l=null,n)if(o.call(n,f)&&null!=(d=n[f]))switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":c=d;break;default:k(e,a,f,d)}if(e.push(">"),null!=c){if(null!=l)throw Error(i(60));if("object"!=typeof c||!("__html"in c))throw Error(i(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(O(t)),n)if(o.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:k(e,a,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return S(e,n,t,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),S(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return S(e,n,t,a);for(p in e.push(O(t)),c=l=null,n)if(o.call(n,p)&&null!=(d=n[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":c=d;break;case"style":E(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(p)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",p,'="',v(d),'"')}return e.push(">"),C(e,c,l),l}}((s=t.blockedSegment).chunks,n,a,e.responseState,s.formatContext),s.lastPushedText=!1,c=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return _(1,null!=n.value?n.value:n.defaultValue);case"svg":return _(2,null);case"math":return _(3,null);case"foreignObject":return _(1,null);case"table":return _(4,null);case"thead":case"tbody":case"tfoot":return _(5,null);case"colgroup":return _(7,null);case"tr":return _(6,null)}return 4<=e.insertionMode||0===e.insertionMode?_(1,null):e}(c,n,a),Ye(e,t,l),s.formatContext=c,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push("</",n,">")}s.lastPushedText=!1}}function Ke(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case L:return void Ve(e,t,n.type,n.props,n.ref);case j:throw Error(i(257));case G:var r=n._init;return void Ke(e,t,n=r(n._payload))}if(w(n))return void Ze(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=X&&n[X]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Ze(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=D(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=D(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ze(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=de(o,r,i);try{Ye(e,t,n[i])}finally{t.treeContext=o}}}function Ye(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ke(e,t,n)}catch(l){if(Te(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,se(o),l;n=l;var a=t.blockedSegment,s=ze(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ue(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,se(o)}}function Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Qe(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Qe(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Je(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Je(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Je(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Xe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Je(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Ne.current;Ne.current=Le;var r=je;je=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){se(a.context);try{Ke(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,et(s,a.blockedBoundary,l)}catch(e){if(Te(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=a.ping;e.then(u,u)}else{a.abortSet.delete(a),l.status=4;var c=a.blockedBoundary,d=e,f=qe(s,d);null===c?We(s,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&st(e,e.destination)}catch(t){qe(e,t),We(e,t)}finally{je=r,Ne.current=n,n===Le&&se(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];a<o.index;a++)t.push(r[a]);o=rt(e,t,o)}for(;a<r.length-1;a++)t.push(r[a]);return a<r.length&&(o=t.push(r[a])),o;default:throw Error(i(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=v(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),r=r.id=o,P(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),P(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(i(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(i(397))}}(t,n.formatContext)}function ot(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)at(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(i(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return it(e,t,r)}return it(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function st(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];r=t;var l=e.responseState,u=s.id,c=s.errorDigest,d=s.errorMessage,f=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(i(395));if(r.push(u),r.push('"'),c||d||f){r.push(",");var p=M(c||"");r.push(p)}if(d||f){r.push(",");var h=M(d||"");r.push(h)}if(f){r.push(",");var m=M(f);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!ot(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var v=e.partialBoundaries;for(o=0;o<v.length;o++){var y=v[o];e:{a=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!at(a,s,y,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,o++,void v.splice(0,o)}v.splice(0,o);var _=e.completedBoundaries;for(o=0;o<_.length;o++)if(!ot(e,t,_[o]))return e.destination=null,o++,void _.splice(0,o);_.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Qe(n,e,t)})),n.clear(),null!==e.destination&&st(e,e.destination)}catch(t){qe(e,t),We(e,t)}}function ut(){}function ct(e,t,n,r){var o=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},u=!1;if(e=function(e,t,n,r,i,o,a,s,l){var u=[],c=new Set;return(n=ze(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?Fe:i,onAllReady:Be,onShellReady:void 0===a?Be:a,onShellError:Be,onFatalError:Be},0,null,n,!1,!1)).parentFlushed=!0,e=Ue(t,e,null,n,c,J,null,ce),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,0,(function(){u=!0})),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{st(e,l)}catch(t){qe(e,t),We(e,t)}}if(o)throw a;if(!u)throw Error(i(426));return s}t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){return ct(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){return ct(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},1418:(e,t,n)=>{"use strict";var r=n(12244);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=new Uint8Array(512),a=0),e.enqueue(t);else{var n=o.length-a;n<t.length&&(0===n?e.enqueue(o):(o.set(t.subarray(0,n),a),e.enqueue(o),t=t.subarray(n)),o=new Uint8Array(512),a=0),o.set(t,a),a+=t.length}}function l(e,t){return s(e,t),!0}function u(e){o&&0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=null,a=0)}var c=new TextEncoder;function d(e){return c.encode(e)}function f(e){return c.encode(e)}function p(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(e){return!!h.call(v,e)||!h.call(g,e)&&(m.test(e)?v[e]=!0:(g[e]=!0,!1))}function b(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new b(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_,x);w[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,x);w[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,x);w[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k=["Webkit","ms","Moz","O"];Object.keys(E).forEach((function(e){k.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var C=/["'&<>]/;function S(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var A=/([A-Z])/g,T=/^ms-/,O=Array.isArray,P=f("<script>"),R=f("<\/script>"),M=f('<script src="'),D=f('<script type="module" src="'),I=f('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function j(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function N(e,t){return{insertionMode:e,selectedValue:t}}var F=f("\x3c!-- --\x3e");function B(e,t,n,r){return""===t?r:(r&&e.push(F),e.push(d(S(t))),!0)}var U=new Map,z=f(' style="'),q=f(":"),W=f(";");function $(e,t,n){if("object"!=typeof n)throw Error(i(62));for(var r in t=!0,n)if(h.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=d(S(r));o=d(S((""+o).trim()))}else{a=r;var s=U.get(a);void 0!==s||(s=f(S(a.replace(A,"-$1").toLowerCase().replace(T,"-ms-"))),U.set(a,s)),a=s,o="number"==typeof o?0===o||h.call(E,r)?d(""+o):d(o+"px"):d(S((""+o).trim()))}t?(t=!1,e.push(z,a,q,o)):e.push(W,a,q,o)}}t||e.push(V)}var H=f(" "),G=f('="'),V=f('"'),K=f('=""');function Z(e,t,n,r){switch(n){case"style":return void $(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(H,n,K);break;case 4:!0===r?e.push(H,n,K):!1!==r&&e.push(H,n,G,d(S(r)),V);break;case 5:isNaN(r)||e.push(H,n,G,d(S(r)),V);break;case 6:!isNaN(r)&&1<=r&&e.push(H,n,G,d(S(r)),V);break;default:t.sanitizeURL&&(r=""+r),e.push(H,n,G,d(S(r)),V)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(H,d(n),G,d(S(r)),V)}}var Y=f(">"),X=f("/>");function Q(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!=typeof t||!("__html"in t))throw Error(i(61));null!=(t=t.__html)&&e.push(d(""+t))}}var J=f(' selected=""');function ee(e,t,n,r){e.push(ie(n));var i,o=n=null;for(i in t)if(h.call(t,i)){var a=t[i];if(null!=a)switch(i){case"children":n=a;break;case"dangerouslySetInnerHTML":o=a;break;default:Z(e,r,i,a)}}return e.push(Y),Q(e,o,n),"string"==typeof n?(e.push(d(S(n))),null):n}var te=f("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function ie(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(i(65,e));t=f("<"+e),re.set(e,t)}return t}var oe=f("<!DOCTYPE html>");var ae=f("</"),se=f(">"),le=f('<template id="'),ue=f('"></template>'),ce=f("\x3c!--$--\x3e"),de=f('\x3c!--$?--\x3e<template id="'),fe=f('"></template>'),pe=f("\x3c!--$!--\x3e"),he=f("\x3c!--/$--\x3e"),me=f("<template"),ge=f('"'),ve=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var ye=f("></template>");function be(e,t,n){if(s(e,de),null===n)throw Error(i(395));return s(e,n),l(e,fe)}var we=f('<div hidden id="'),_e=f('">'),xe=f("</div>"),Ee=f('<svg aria-hidden="true" style="display:none" id="'),ke=f('">'),Ce=f("</svg>"),Se=f('<math aria-hidden="true" style="display:none" id="'),Ae=f('">'),Te=f("</math>"),Oe=f('<table hidden id="'),Pe=f('">'),Re=f("</table>"),Me=f('<table hidden><tbody id="'),De=f('">'),Ie=f("</tbody></table>"),Le=f('<table hidden><tr id="'),je=f('">'),Ne=f("</tr></table>"),Fe=f('<table hidden><colgroup id="'),Be=f('">'),Ue=f("</colgroup></table>"),ze=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),qe=f('$RS("'),We=f('","'),$e=f('")<\/script>'),He=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ge=f('$RC("'),Ve=f('","'),Ke=f('")<\/script>'),Ze=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ye=f('$RX("'),Xe=f('"'),Qe=f(")<\/script>"),Je=f(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,rt=Symbol.for("react.element"),it=Symbol.for("react.portal"),ot=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ut=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),pt=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),bt=Symbol.iterator;function wt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ot:return"Fragment";case it:return"Portal";case st:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ct:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case pt:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var _t={};function xt(e,t){if(!(e=e.contextTypes))return _t;var n,r={};for(n in e)r[n]=t[n];return r}var Et=null;function kt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));kt(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function St(e){var t=e.parent;null!==t&&St(t),e.context._currentValue=e.value}function At(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?kt(e,t):At(e,t)}function Tt(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?kt(e,n):Tt(e,n),t.context._currentValue=t.value}function Ot(e){var t=Et;t!==e&&(null===t?St(e):null===e?Ct(t):t.depth===e.depth?kt(t,e):t.depth>e.depth?At(t,e):Tt(t,e),Et=e)}var Pt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Rt(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=Pt,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue:r,"function"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(n,i))?i:nt({},i,a),e.state=i),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Pt.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=nt({},o,s)):nt(o,s))}e.state=o}else o.queue=null}var Mt={id:1,overflow:""};function Dt(e,t,n){var r=e.id;e=e.overflow;var i=32-It(r)-1;r&=~(1<<i),n+=1;var o=32-It(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-It(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var It=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Lt(e)/jt|0)|0},Lt=Math.log,jt=Math.LN2,Nt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,Bt=null,Ut=null,zt=null,qt=!1,Wt=!1,$t=0,Ht=null,Gt=0;function Vt(){if(null===Ft)throw Error(i(321));return Ft}function Kt(){if(0<Gt)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Zt(){return null===zt?null===Ut?(qt=!1,Ut=zt=Kt()):(qt=!0,zt=Ut):null===zt.next?(qt=!1,zt=zt.next=Kt()):(qt=!0,zt=zt.next),zt}function Yt(){Bt=Ft=null,Wt=!1,Ut=null,Gt=0,zt=Ht=null}function Xt(e,t){return"function"==typeof t?t(e):t}function Qt(e,t,n){if(Ft=Vt(),zt=Zt(),qt){var r=zt.queue;if(t=r.dispatch,null!==Ht&&void 0!==(n=Ht.get(r))){Ht.delete(r),r=zt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return zt.memoizedState=r,[r,t]}return[zt.memoizedState,t]}return e=e===Xt?"function"==typeof t?t():t:void 0!==n?n(t):t,zt.memoizedState=e,e=(e=zt.queue={last:null,dispatch:null}).dispatch=en.bind(null,Ft,e),[zt.memoizedState,e]}function Jt(e,t){if(Ft=Vt(),t=void 0===t?null:t,null!==(zt=Zt())){var n=zt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Nt(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),zt.memoizedState=[e,t],e}function en(e,t,n){if(25<=Gt)throw Error(i(301));if(e===Ft)if(Wt=!0,e={action:n,next:null},null===Ht&&(Ht=new Map),void 0===(n=Ht.get(t)))Ht.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(i(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Vt(),e._currentValue},useMemo:Jt,useReducer:Qt,useRef:function(e){Ft=Vt();var t=(zt=Zt()).memoizedState;return null===t?(e={current:e},zt.memoizedState=e):t},useState:function(e){return Qt(Xt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Jt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Vt(),e},useTransition:function(){return Vt(),[!1,tn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-It(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(i(404));return t=$t++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Vt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return console.error(e),null}function ln(){}function un(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&kn(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function cn(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function fn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function pn(e,t,n,r,i){for(Ft={},Bt=t,$t=0,e=n(r,i);Wt;)Wt=!1,$t=0,Gt+=1,zt=null,e=n(r,i);return Yt(),e}function hn(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,wt(r)||"Unknown",l));r=nt({},s,n)}t.legacyContext=r,vn(e,t,o),t.legacyContext=s}else vn(e,t,o)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,o,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=xt(n,t.legacyContext);var s=n.contextType;Rt(s=new n(o,"object"==typeof s&&null!==s?s._currentValue:a),n,o,a),hn(e,t,s,n)}else{a=pn(e,t,n,o,s=xt(n,t.legacyContext));var l=0!==$t;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)Rt(a,n,o,s),hn(e,t,a,n);else if(l){o=t.treeContext,t.treeContext=Dt(o,1,0);try{vn(e,t,a)}finally{t.treeContext=o}}else vn(e,t,a)}else{if("string"!=typeof n){switch(n){case vt:case gt:case at:case st:case ot:case ft:return void vn(e,t,o.children);case mt:throw Error(i(343));case dt:e:{n=t.blockedBoundary,a=t.blockedSegment,s=o.fallback,o=o.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},c=cn(0,a.chunks.length,u,a.formatContext,!1,!1);a.children.push(c),a.lastPushedText=!1;var f=cn(0,0,null,a.formatContext,!1,!1);f.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=f;try{if(bn(e,t,o),f.lastPushedText&&f.textEmbedded&&f.chunks.push(F),f.status=1,xn(u,f),0===u.pendingTasks)break e}catch(t){f.status=4,u.forceClientRender=!0,u.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=un(e,s,n,c,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ct:if(o=pn(e,t,n.render,o,a),0!==$t){n=t.treeContext,t.treeContext=Dt(n,1,0);try{vn(e,t,o)}finally{t.treeContext=n}}else vn(e,t,o);return;case pt:return void gn(e,t,n=n.type,o=mn(n,o),a);case lt:if(a=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,Et=o={parent:l=Et,depth:null===l?0:l.depth+1,context:n,parentValue:s,value:o},t.context=o,vn(e,t,a),null===(e=Et))throw Error(i(403));return o=e.parentValue,e.context._currentValue=o===yt?e.context._defaultValue:o,e=Et=e.parent,void(t.context=e);case ut:return void vn(e,t,o=(o=o.children)(n._currentValue));case ht:return void gn(e,t,n=(a=n._init)(n._payload),o=mn(n,o),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,o,a){switch(t){case"select":e.push(ie("select"));var s=null,l=null;for(p in n)if(h.call(n,p)){var u=n[p];if(null!=u)switch(p){case"children":s=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:Z(e,o,p,u)}}return e.push(Y),Q(e,l,s),s;case"option":l=a.selectedValue,e.push(ie("option"));var c=u=null,f=null,p=null;for(s in n)if(h.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":u=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":p=m;break;case"value":c=m;default:Z(e,o,s,m)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),O(l)){for(o=0;o<l.length;o++)if(""+l[o]===n){e.push(J);break}}else""+l===n&&e.push(J);else f&&e.push(J);return e.push(Y),Q(e,p,u),u;case"textarea":for(u in e.push(ie("textarea")),p=l=s=null,n)if(h.call(n,u)&&null!=(c=n[u]))switch(u){case"children":p=c;break;case"value":s=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:Z(e,o,u,c)}if(null===s&&null!==l&&(s=l),e.push(Y),null!=p){if(null!=s)throw Error(i(92));if(O(p)&&1<p.length)throw Error(i(93));s=""+p}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(S(""+s))),null;case"input":for(l in e.push(ie("input")),c=p=u=s=null,n)if(h.call(n,l)&&null!=(f=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":c=f;break;case"defaultValue":u=f;break;case"checked":p=f;break;case"value":s=f;break;default:Z(e,o,l,f)}return null!==p?Z(e,o,"checked",p):null!==c&&Z(e,o,"checked",c),null!==s?Z(e,o,"value",s):null!==u&&Z(e,o,"value",u),e.push(X),null;case"menuitem":for(var g in e.push(ie("menuitem")),n)if(h.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:Z(e,o,g,s)}return e.push(Y),null;case"title":for(m in e.push(ie("title")),s=null,n)if(h.call(n,m)&&null!=(l=n[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:Z(e,o,m,l)}return e.push(Y),s;case"listing":case"pre":for(c in e.push(ie(t)),l=s=null,n)if(h.call(n,c)&&null!=(u=n[c]))switch(c){case"children":s=u;break;case"dangerouslySetInnerHTML":l=u;break;default:Z(e,o,c,u)}if(e.push(Y),null!=l){if(null!=s)throw Error(i(60));if("object"!=typeof l||!("__html"in l))throw Error(i(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(ie(t)),n)if(h.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:Z(e,o,v,s)}return e.push(X),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,o);case"html":return 0===a.insertionMode&&e.push(oe),ee(e,n,t,o);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,o);for(f in e.push(ie(t)),l=s=null,n)if(h.call(n,f)&&null!=(u=n[f]))switch(f){case"children":s=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":$(e,o,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(f)&&"function"!=typeof u&&"symbol"!=typeof u&&e.push(H,d(f),G,d(S(u)),V)}return e.push(Y),Q(e,l,s),s}}((a=t.blockedSegment).chunks,n,o,e.responseState,a.formatContext),a.lastPushedText=!1,l=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return N(1,null!=n.value?n.value:n.defaultValue);case"svg":return N(2,null);case"math":return N(3,null);case"foreignObject":return N(1,null);case"table":return N(4,null);case"thead":case"tbody":case"tfoot":return N(5,null);case"colgroup":return N(7,null);case"tr":return N(6,null)}return 4<=e.insertionMode||0===e.insertionMode?N(1,null):e}(l,n,o),bn(e,t,s),a.formatContext=l,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push(ae,d(n),se)}a.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void gn(e,t,n.type,n.props,n.ref);case it:throw Error(i(257));case ht:var r=n._init;return void vn(e,t,n=r(n._payload))}if(O(n))return void yn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=bt&&n[bt]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);yn(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Dt(o,r,i);try{bn(e,t,n[i])}finally{t.treeContext=o}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return vn(e,t,n)}catch(l){if(Yt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Ot(o),l;n=l;var a=t.blockedSegment,s=cn(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Ot(o)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,En(this,t,e)}function _n(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return _n(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function xn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&xn(e,n)}else e.completedSegments.push(t)}function En(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&xn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(xn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function kn(e){if(2!==e.status){var t=Et,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){Ot(a.context);try{vn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(F),a.abortSet.delete(a),l.status=1,En(s,a.blockedBoundary,l)}catch(e){if(Yt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=a.ping;e.then(u,u)}else{a.abortSet.delete(a),l.status=4;var c=a.blockedBoundary,d=e,f=dn(s,d);null===c?fn(s,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&Pn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}finally{on=r,an.current=n,n===rn&&Ot(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ue);case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var u=0;u<n.length;u++){for(o=n[u];a<o.index;a++)s(t,r[a]);o=Sn(e,t,o)}for(;a<r.length-1;a++)s(t,r[a]);return a<r.length&&(o=l(t,r[a])),o;default:throw Error(i(390))}}function Sn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,pe),s(t,me),r&&(s(t,ve),s(t,d(S(r))),s(t,ge)),l(t,ye),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;o=f(o.boundaryPrefix+a.toString(16)),r=r.id=o,be(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,ce),1!==(n=r.completedSegments).length)throw Error(i(391));Sn(e,t,n[0])}return l(t,he)}function An(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,_e);case 2:return s(e,Ee),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,ke);case 3:return s(e,Se),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ae);case 4:return s(e,Oe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Pe);case 5:return s(e,Me),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,De);case 6:return s(e,Le),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,je);case 7:return s(e,Fe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Be);default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),Sn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,xe);case 2:return l(e,Ce);case 3:return l(e,Te);case 4:return l(e,Re);case 5:return l(e,Ie);case 6:return l(e,Ne);case 7:return l(e,Ue);default:throw Error(i(397))}}(t,n.formatContext)}function Tn(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)On(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ge):(e.sentCompleteBoundaryFunction=!0,s(t,He)),null===r)throw Error(i(395));return n=d(n.toString(16)),s(t,r),s(t,Ve),s(t,e.segmentPrefix),s(t,n),l(t,Ke)}function On(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return An(e,t,r)}return An(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,qe):(e.sentCompleteSegmentFunction=!0,s(t,ze)),s(t,e.segmentPrefix),s(t,o=d(o.toString(16))),s(t,We),s(t,e.placeholderPrefix),s(t,o),l(t,$e)}function Pn(e,t){o=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Sn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var c,f=e.clientRenderedBoundaries;for(c=0;c<f.length;c++){var p=f[c];r=t;var h=e.responseState,m=p.id,g=p.errorDigest,v=p.errorMessage,y=p.errorComponentStack;if(s(r,h.startInlineScript),h.sentClientRenderFunction?s(r,Ye):(h.sentClientRenderFunction=!0,s(r,Ze)),null===m)throw Error(i(395));if(s(r,m),s(r,Xe),(g||v||y)&&(s(r,Je),s(r,d(tt(g||"")))),(v||y)&&(s(r,Je),s(r,d(tt(v||"")))),y&&(s(r,Je),s(r,d(tt(y)))),!l(r,Qe))return e.destination=null,c++,void f.splice(0,c)}f.splice(0,c);var b=e.completedBoundaries;for(c=0;c<b.length;c++)if(!Tn(e,t,b[c]))return e.destination=null,c++,void b.splice(0,c);b.splice(0,c),u(t),o=new Uint8Array(512),a=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var _=w[c];e:{f=e,p=t;var x=_.completedSegments;for(h=0;h<x.length;h++)if(!On(f,p,_,x[h])){h++,x.splice(0,h);var E=!1;break e}x.splice(0,h),E=!0}if(!E)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var k=e.completedBoundaries;for(c=0;c<k.length;c++)if(!Tn(e,t,k[c]))return e.destination=null,c++,void k.splice(0,c);k.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Rn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return _n(n,e,t)})),n.clear(),null!==e.destination&&Pn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var i,o,a=new Promise((function(e,t){o=e,i=t})),s=function(e,t,n,r,i,o,a,s,l){var u=[],c=new Set;return(n=cn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?sn:i,onAllReady:void 0===o?ln:o,onShellReady:void 0===a?ln:a,onShellError:void 0===s?ln:s,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,c,_t,null,Mt),u.push(e),t}(e,function(e,t,n,r,i){e=void 0===e?"":e,t=void 0===t?P:f('<script nonce="'+S(t)+'">');var o=[];if(void 0!==n&&o.push(t,d((""+n).replace(L,j)),R),void 0!==r)for(n=0;n<r.length;n++)o.push(M,d(S(r[n])),I);if(void 0!==i)for(r=0;r<i.length;r++)o.push(D,d(S(i[r])),I);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:f(e+"P:"),segmentPrefix:f(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return N("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,p(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Pn(s,e)}catch(e){dn(s,e),fn(s,e)}}},cancel:function(){Rn(s)}},{highWaterMark:0});e.allReady=a,n(e)}),(function(e){a.catch((function(){})),r(e)}),i);if(t&&t.signal){var l=t.signal,u=function(){Rn(s,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}kn(s)}))},t.version="18.2.0"},17029:(e,t,n)=>{"use strict";var r=n(53741);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},48090:(e,t,n)=>{"use strict";var r,i;r=n(1350),i=n(1418),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=i.renderToReadableStream},89050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12244),o=(a(i),a(n(13980)));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return i.Children.only(this.props.children)}}]),t}(i.Component);s.propTypes={children:o.default.element.isRequired,contentDidMount:o.default.func.isRequired,contentDidUpdate:o.default.func.isRequired},t.default=s},86696:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.useFrame=t.FrameContext=void 0;var r,i=(r=n(12244))&&r.__esModule?r:{default:r},o=void 0,a=void 0;"undefined"!=typeof document&&(o=document),"undefined"!=typeof window&&(a=window);var s=t.FrameContext=i.default.createContext({document:o,window:a}),l=(t.useFrame=function(){return i.default.useContext(s)},s.Provider),u=s.Consumer;t.FrameContextProvider=l,t.FrameContextConsumer=u},54540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(12244),a=d(o),s=d(n(53741)),l=d(n(13980)),u=n(86696),c=d(n(89050));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Frame=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.setRef=function(e){r.nodeRef.current=e;var t=r.props.forwardedRef;"function"==typeof t?t(e):t&&(t.current=e)},r.handleLoad=function(){clearInterval(r.loadCheck),r.state.iframeLoaded||r.setState({iframeLoaded:!0})},r.loadCheck=function(){return setInterval((function(){r.handleLoad()}),500)},r._isMounted=!1,r.nodeRef=a.default.createRef(),r.state={iframeLoaded:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.getDoc()&&this.nodeRef.current.contentWindow.addEventListener("DOMContentLoaded",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("DOMContentLoaded",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,i=a.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},a.default.createElement(u.FrameContextProvider,{value:{document:e,window:r}},a.default.createElement("div",{className:"frame-content"},this.props.children))),o=this.getMountTarget();return[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(i,o)]}},{key:"render",value:function(){var e=r({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete e.head,delete e.initialContent,delete e.mountTarget,delete e.contentDidMount,delete e.contentDidUpdate,delete e.forwardedRef,a.default.createElement("iframe",r({},e,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),t}(o.Component);f.propTypes={style:l.default.object,head:l.default.node,initialContent:l.default.string,mountTarget:l.default.string,contentDidMount:l.default.func,contentDidUpdate:l.default.func,children:l.default.oneOfType([l.default.element,l.default.arrayOf(l.default.element)])},f.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=a.default.forwardRef((function(e,t){return a.default.createElement(f,r({},e,{forwardedRef:t}))}))},12693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54540);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}});var i=n(86696);Object.defineProperty(t,"FrameContext",{enumerable:!0,get:function(){return i.FrameContext}}),Object.defineProperty(t,"FrameContextConsumer",{enumerable:!0,get:function(){return i.FrameContextConsumer}}),Object.defineProperty(t,"useFrame",{enumerable:!0,get:function(){return i.useFrame}})},19155:(e,t,n)=>{"use strict";var r,i=n(46670),o="<<anonymous>>",a=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};a.isRequired=a;var s=function(){return a};function l(e,t){return n="Iterable."+e,r=function(e){return i.Iterable.isIterable(e)&&t(e)},function(e){function t(t,n,r,i,a,s){for(var l=arguments.length,u=Array(l>6?l-6:0),c=6;c<l;c++)u[c-6]=arguments[c];return s=s||r,i=i||o,null!=n[r]?e.apply(void 0,[n,r,i,a,s].concat(u)):t?new Error("Required "+a+" `"+s+"` was not specified in `"+i+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}((function(e,t,o,a,s){var l=e[t];if(!r(l)){var u=function(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof i.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}(l);return new Error("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+o+"`, expected `"+n+"`.")}return null}));var n,r}(r={listOf:s,mapOf:s,orderedMapOf:s,setOf:s,orderedSetOf:s,stackOf:s,iterableOf:s,recordOf:s,shape:s,contains:s,mapContains:s,orderedMapContains:s,list:a,map:a,orderedMap:a,set:a,orderedSet:a,stack:a,seq:a,record:a,iterable:a}).iterable.indexed=l("Indexed",i.Iterable.isIndexed),r.iterable.keyed=l("Keyed",i.Iterable.isKeyed),e.exports=r},18726:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(12244),a=l(o),s=l(n(13980));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},66866:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},48570:(e,t,n)=>{"use strict";e.exports=n(66866)},46847:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},77993:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},41872:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},14262:(e,t,n)=>{"use strict";var r=n(37121);e.exports=function(e,t){return n=function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",(function(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)})),t}(e),function(e){var t=e&&o(e);return t&&i.call(n,t)?n[t]:null};var n};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},91857:(e,t,n)=>{"use strict";e.exports=n(18927)},53037:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,i,o=t.children||[],a=o.length,s=[],l=-1;++l<a;)(n=r(e,o[l],t))&&(l&&"break"===o[l-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(61766)},5282:(e,t,n)=>{"use strict";e.exports=function(e){for(var t,n,a,s,l=e.footnoteById,u=e.footnoteOrder,c=u.length,d=-1,f=[];++d<c;)(t=l[u[d].toUpperCase()])&&(s=(a=t.children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),f.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));return 0===f.length?null:e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:f})],!0))};var r=n(35334),i=n(8189),o=n(56026)},26888:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(56026),i=n(53037)},7419:(e,t,n)=>{"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(39988)},97561:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return o&&(a.className=["language-"+o]),n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta}),e(t.position,"pre",[n])};var r=n(39988)},53350:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(53037)},92514:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(53037)},75745:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);return-1===n.indexOf(i)&&n.push(i),e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(39988)},11456:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n=e.footnoteById,i=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(75745)},54758:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(53037)},71264:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(39988)},67810:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);return o?(n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title),e(t,"img",n)):i(e,t)};var r=n(81737),i=n(89055)},63177:(e,t,n)=>{"use strict";var r=n(81737);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},32:(e,t,n)=>{"use strict";function r(){return null}e.exports={blockquote:n(26888),break:n(7419),code:n(97561),delete:n(53350),emphasis:n(92514),footnoteReference:n(75745),footnote:n(11456),heading:n(54758),html:n(71264),imageReference:n(67810),image:n(63177),inlineCode:n(56504),linkReference:n(90037),link:n(61690),listItem:n(22193),list:n(8189),paragraph:n(30275),root:n(7080),strong:n(75492),table:n(80428),text:n(9468),thematicBreak:n(35334),toml:r,yaml:r,definition:r,footnoteDefinition:r}},56504:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(39988)},90037:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,o(e,t))):i(e,t)};var r=n(81737),i=n(89055),o=n(53037)},61690:(e,t,n)=>{"use strict";var r=n(81737),i=n(53037);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}},22193:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var a,s,l,u=i(e,t),c=u[0],d=n?function(e){for(var t=e.spread,n=e.children,r=n.length,i=-1;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),f={},p=[];for("boolean"==typeof t.checked&&(c&&"p"===c.tagName||(c=e(null,"p",[]),u.unshift(c)),c.children.length>0&&c.children.unshift(r("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),f.className=["task-list-item"]),a=u.length,s=-1;++s<a;)l=u[s],(d||0!==s||"p"!==l.tagName)&&p.push(r("text","\n")),"p"!==l.tagName||d?p.push(l):p=p.concat(l.children);return a&&(d||"p"!==l.tagName)&&p.push(r("text","\n")),e(t,"li",f,p)};var r=n(39988),i=n(53037);function o(e){var t=e.spread;return null==t?e.children.length>1:t}},8189:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",l=-1;for("number"==typeof t.start&&1!==t.start&&(a.start=t.start),o=(n=i(e,t)).length;++l<o;)if(n[l].properties.className&&-1!==n[l].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(56026),i=n(53037)},30275:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(53037)},7080:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(39988),i=n(56026),o=n(53037)},75492:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(53037)},80428:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,a,s,l,u,c=t.children,d=c.length,f=t.align||[],p=f.length,h=[];d--;){for(a=c[d].children,l=0===d?"th":"td",n=p||a.length,s=[];n--;)u=a[n],s[n]=e(u,l,{align:f[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0)):[]),!0))};var r=n(9352),i=n(56026),o=n(53037)},9468:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(39988)},35334:e=>{"use strict";e.exports=function(e,t){return e(t,"hr")}},18927:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||f||(f=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,l={};return p.dangerous=r,p.definition=s(e),p.footnoteById=l,p.footnoteOrder=[],p.augment=u,p.handlers=Object.assign({},c,n.handlers),p.unknownHandler=n.unknownHandler,p.passThrough=n.passThrough,i(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();d.call(l,t)||(l[t]=e)})),p;function u(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function p(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=l(n,e),h=u(n);return h&&(p.children=p.children.concat(r("text","\n"),h)),p};var r=n(39988),i=n(37121),o=n(9352),a=n(93624),s=n(14262),l=n(61766),u=n(5282),c=n(32),d={}.hasOwnProperty,f=!1},61766:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");return("function"==typeof(r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler)?r:a)(e,t,n)};var r=n(39988),i=n(53037),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},89055:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((o=(n=i(e,t))[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(39988),i=n(53037)},56026:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;for(t&&n.push(r("text","\n"));++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);return t&&e.length>0&&n.push(r("text","\n")),n};var r=n(39988)},35828:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case f:case s:return e;default:return t}}case r:return t}}}var _=s,x=n,E=u,k=i,C=p,S=f,A=r,T=a,O=o,P=c;t.ContextConsumer=l,t.ContextProvider=_,t.Element=x,t.ForwardRef=E,t.Fragment=k,t.Lazy=C,t.Memo=S,t.Portal=A,t.Profiler=T,t.StrictMode=O,t.Suspense=P,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===u},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===p},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===c},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===o||e===c||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===h||e[0]===m)},t.typeOf=w},33978:(e,t,n)=>{"use strict";e.exports=n(35828)},69571:(e,t,n)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(22792)},72111:(e,t,n)=>{"use strict";var r=n(91857);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},29168:(e,t,n)=>{"use strict";var r=n(87683),i=n(77993),o=n(49385),a=n(41872),s=n(68776),l=n(21142);e.exports=function e(){var t,n=[],i=s(),y={},b=-1;return w.data=function(e,n){return"string"==typeof e?2===arguments.length?(m("data",t),y[e]=n,w):c.call(y,e)&&y[e]||null:e?(m("data",t),y=e,w):y},w.freeze=_,w.attachers=n,w.use=function(e){var r;if(m("use",t),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l(e):i(e)}return r&&(y.settings=o(y.settings||{},r)),w;function i(e){l(e.plugins),e.settings&&(r=o(r||{},e.settings))}function s(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):i(e)}}function l(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function c(e,t){var r=function(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(u.call(arguments))}},w.parse=function(e){var t,n=l(e);return _(),p("parse",t=w.Parser),f(t,"parse")?new t(String(n),n).parse():t(String(n),n)},w.stringify=function(e,t){var n,r=l(t);return _(),h("stringify",n=w.Compiler),g(e),f(n,"compile")?new n(e,r).compile():n(e,r)},w.run=x,w.runSync=function(e,t){var n,i;return x(e,t,(function(e,t){i=!0,n=t,r(e)})),v("runSync","run",i),n},w.process=E,w.processSync=function(e){var t,n;return _(),p("processSync",w.Parser),h("processSync",w.Compiler),E(t=l(e),(function(e){n=!0,r(e)})),v("processSync","process",n),t},w;function w(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(o(!0,{},y)),t}function _(){var e,r;if(t)return w;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(w,e.slice(1)))&&i.use(r));return t=!0,b=1/0,w}function x(e,t,n){if(g(e),_(),n||"function"!=typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,l(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function E(e,t){if(_(),p("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=l(e);d.run(w,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);null==n||("string"==typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},39988:e=>{"use strict";e.exports=function(e,t,n){var r;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r}},18060:e=>{e.exports=function(e){return e}},42805:(e,t,n)=>{"use strict";e.exports=l;var r=n(2547),i=n(18060),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,f){var p,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,m.displayName="node ("+i(h.type+(p?"<"+p+">":""))+")"),m;function m(){var i,p,h=f.concat(r),m=[];if((!t||c(r,d,f[f.length-1]||null))&&(m=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,f)),m[0]===s))return m;if(r.children&&m[0]!==a)for(p=(l?r.children.length:-1)+u;p>-1&&p<r.children.length;){if((i=e(r.children[p],p,h)())[0]===s)return i;p="number"==typeof i[1]?i[1]:p+u}return m}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},37121:(e,t,n)=>{"use strict";e.exports=s;var r=n(42805),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},69495:(e,t,n)=>{"use strict";const r=n(12244),i=n(33978),o=n(57956),a=n(70521),s=n(47185),l=n(93113),u=n(97327),c=n(85653);t.D=p;const d={}.hasOwnProperty,f=new Set(["table","thead","tbody","tfoot","tr"]);function p(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)r=t.children[i],"element"===r.type?n.push(h(e,r,i,t)):"text"===r.type?"element"===t.type&&f.has(t.tagName)&&"\n"===r.value||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function h(e,t,n,a){const s=e.options,l=e.schema,u=t.tagName,c={};let f,h=l;if("html"===l.space&&"svg"===u&&(h=o,e.schema=h),t.properties)for(f in t.properties)d.call(t.properties,f)&&g(c,f,t.properties[f],e);"ol"!==u&&"ul"!==u||e.listDepth++;const v=p(e,t);"ol"!==u&&"ul"!==u||e.listDepth--,e.schema=l;const y=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},b=s.components&&d.call(s.components,u)?s.components[u]:u,w="string"==typeof b||b===r.Fragment;if(!i.isValidElementType(b))throw new TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=[u,y.start.line,y.start.column,n].join("-"),"a"===u&&s.linkTarget&&(c.target="function"==typeof s.linkTarget?s.linkTarget(c.href,t.children,c.title):s.linkTarget),"a"===u&&s.transformLinkUri&&(c.href=s.transformLinkUri(c.href,t.children,c.title)),w||"code"!==u||"element"!==a.type||"pre"===a.tagName||(c.inline=!0),w||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=parseInt(u.charAt(1),10)),"img"===u&&s.transformImageUri&&(c.src=s.transformImageUri(c.src,c.alt,c.title)),!w&&"li"===u&&"element"===a.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);c.checked=e&&e.properties?Boolean(e.properties.checked):null,c.index=m(a,t),c.ordered="ol"===a.tagName}var _;return w||"ol"!==u&&"ul"!==u||(c.ordered="ol"===u,c.depth=e.listDepth),"td"!==u&&"th"!==u||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),w||(c.isHeader="th"===u)),w||"tr"!==u||"element"!==a.type||(c.isHeader=Boolean("thead"===a.tagName)),s.sourcePos&&(c["data-sourcepos"]=[(_=y).start.line,":",_.start.column,"-",_.end.line,":",_.end.column].map((e=>String(e))).join("")),!w&&s.rawSourcePos&&(c.sourcePosition=t.position),!w&&s.includeElementIndex&&(c.index=m(a,t),c.siblingCount=m(a)),w||(c.node=t),v.length>0?r.createElement(b,c,v):r.createElement(b,c)}function m(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function g(e,t,n,r){const i=a(r.schema,t);let o=n;null!=o&&o==o&&(o&&"object"==typeof o&&"length"in o&&(o=(i.commaSeparated?u:l).stringify(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){const t={};try{c(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,v)]=n}))}catch(e){}return t}(o)),i.space&&i.property?e[d.call(s,i.property)?s[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function v(e,t){return t.toUpperCase()}},88100:(e,t,n)=>{"use strict";const r=n(12244),i=n(21142),o=n(29168),a=n(69571),s=n(72111),l=n(13980),u=n(59209),c=n(87053),d=n(2375),f=n(69495).D;e.exports=g;const p={}.hasOwnProperty,h="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",m={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function g(e){for(const t in m)if(p.call(m,t)&&p.call(e,t)){const e=m[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${h}#${e.id}> for more info)`),delete m[t]}const t=o().use(a).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);let n;"string"==typeof e.children?n=i(e.children):(void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=i());const l=t.runSync(t.parse(n),n);if("root"!==l.type)throw new TypeError("Expected a `root` node");let d=r.createElement(r.Fragment,{},f({options:e,schema:u,listDepth:0},l));return e.className&&(d=r.createElement("div",{className:e.className},d)),d}g.defaultProps={transformLinkUri:d},g.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},g.uriTransformer=d},87053:(e,t,n)=>{const r=n(37121);e.exports=function(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return e=>{r(e,"element",t)};function t(t,n,r){const i=t,o=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(i.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(i,n,o)),a&&"number"==typeof n)return e.unwrapDisallowed&&i.children?o.children.splice(n,1,...i.children):o.children.splice(n,1),n}}},2375:e=>{const t=["http","https","mailto","tel"];e.exports=function(e){const n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;const i=n.indexOf(":");if(-1===i)return n;let o=-1;for(;++o<t.length;){const e=t[o];if(i===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return o=n.indexOf("?"),-1!==o&&i>o?n:(o=n.indexOf("#"),-1!==o&&i>o?n:"javascript:void(0)")}},42901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(12244),a=h(o),s=h(n(53741)),l=h(n(13980)),u=h(n(10742)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(66941)),d=n(6259),f=h(d),p=n(46847);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},w=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var x=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!y&&s.default.unmountComponentAtNode(i.node);var e=_(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=w()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},m(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=b("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=b("div")),w()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);x.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},x.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(x),t.default=x},10742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(12244),s=g(n(13980)),l=m(n(77194)),u=g(n(90026)),c=m(n(66941)),d=m(n(95853)),f=n(6259),p=g(f),h=g(n(66638));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(26736);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.remove(s.body,o),i&&d.remove(s.getElementsByTagName("html")[0],i),r&&y>0&&0==(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,a=o&&o().ownerDocument||document;i&&d.add(a.body,i),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(y+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},66941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,i=(r=n(45982))&&r.__esModule?r:{default:r},o=n(6259),a=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},26736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}o=a=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[o,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,i=(r=n(66638))&&r.__esModule?r:{default:r},o=void 0,a=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}i.default.subscribe((function(e,t){o||a||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",l),(a=o.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))}))},95853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var o=document.body;for(var a in r)i(o,r[a]);n={},r={}},t.log=function(){};var n={},r={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return i=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),i.add(e)}));var i,o},t.remove=function(e,t){return i=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&i.remove(e)}));var i,o}},77194:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==o.length&&(t=o.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var r,i=(r=n(93970))&&r.__esModule?r:{default:r},o=[],a=null,s=!1;function l(){s=!0}function u(){if(s){if(s=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},66638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},6259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=((r=n(85978))&&r.__esModule?r:{default:r}).default,o=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM,t.default=o},90026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(n.length){var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=o();if(e===u){if(!a)return;r=l}if(l!==u||a||(r=s),s===u&&a&&(r=l),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(u);if(d>-1&&(d+=a?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,i=(r=n(93970))&&r.__esModule?r:{default:r};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},93970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",r="contents",i=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var i=window.getComputedStyle(e),o=i.getPropertyValue("display");return t?o!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,i):o===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(i.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},37149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(42901))&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},90330:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n(12244))&&r.__esModule?r:{default:r}).default.createContext();t.default=i},57970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(12244)),i=s(n(13980)),o=s(n(82512)),a=s(n(90330));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.locale,n=e.messages,i=e.allowMissing,s=e.onMissingKey,l=e.interpolation,u=e.pluralRules,c=e.children,d=r.default.useMemo((function(){var e=new o.default({locale:t,phrases:n,allowMissing:i,onMissingKey:s,interpolation:l,pluralRules:u}),r=e.t.bind(e);return r._polyglot=e,r}),[t,n,i,s,l,u]);return r.default.createElement(a.default.Provider,{value:d},r.default.Children.only(c))}l.propTypes={locale:i.default.string.isRequired,messages:i.default.object.isRequired,allowMissing:i.default.bool,onMissingKey:i.default.func,interpolation:i.default.shape({suffix:i.default.string,prefix:i.default.string}),pluralRules:i.default.shape({pluralTypes:i.default.object,pluralTypeToLanguages:i.default.object}),children:i.default.element.isRequired},l.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}},9316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"translate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"useTranslate",{enumerable:!0,get:function(){return o.default}});var r=a(n(57970)),i=a(n(7855)),o=a(n(98492));function a(e){return e&&e.__esModule?e:{default:e}}},7855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return(0,i.default)((function(t){return r.default.createElement(o.default.Consumer,null,(function(n){return r.default.createElement(e,s({},t,{t:n}))}))}),e)}};var r=a(n(12244)),i=a(n(73463)),o=a(n(90330));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}},98492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.useContext)(o.default)};var r,i=n(12244),o=(r=n(90330))&&r.__esModule?r:{default:r}},57903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>d,ReactReduxContext:()=>o,batch:()=>ee.unstable_batchedUpdates,connect:()=>$,connectAdvanced:()=>S,createDispatchHook:()=>K,createSelectorHook:()=>X,createStoreHook:()=>G,shallowEqual:()=>T,useDispatch:()=>Z,useSelector:()=>J,useStore:()=>V});var r=n(12244),i=n.n(r),o=i().createContext(null),a=function(e){e()},s=function(){return a},l={notify:function(){},get:function(){return[]}};function u(e,t){var n,r=l;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=l)},getListeners:function(){return r}};return a}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const d=function(e){var t=e.store,n=e.context,a=e.children,s=(0,r.useMemo)((function(){var e=u(t);return{store:t,subscription:e}}),[t]),l=(0,r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,l]);var d=n||o;return i().createElement(d.Provider,{value:s},a)};var f=n(7896),p=n(31461),h=n(73463),m=n.n(h),g=n(63920),v=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],b=[],w=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function E(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function k(e,t,n,r,i,o,a,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,d=n.renderCountProp,h=void 0===d?void 0:d,S=n.shouldHandleStateChanges,A=void 0===S||S,T=n.storeKey,O=void 0===T?"store":T,P=(n.withRef,n.forwardRef),R=void 0!==P&&P,M=n.context,D=void 0===M?o:M,I=(0,p.Z)(n,v),L=D;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=(0,f.Z)({},I,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:A,storeKey:O,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=I.pure,d=l?r.useMemo:function(e){return e()};function v(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,p.Z)(n,y);return[n.context,e,t]}),[n]),s=o[0],l=o[1],c=o[2],h=(0,r.useMemo)((function(){return s&&s.Consumer&&(0,g.isContextConsumer)(i().createElement(s.Consumer,null))?s:L}),[s,L]),m=(0,r.useContext)(h),v=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var S=v?n.store:m.store,T=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(S)}),[S]),O=(0,r.useMemo)((function(){if(!A)return w;var e=u(S,v?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,v,m]),P=O[0],R=O[1],M=(0,r.useMemo)((function(){return v?m:(0,f.Z)({},m,{subscription:P})}),[v,m,P]),D=(0,r.useReducer)(_,b,C),I=D[0][0],j=D[1];if(I&&I.error)throw I.error;var N=(0,r.useRef)(),F=(0,r.useRef)(c),B=(0,r.useRef)(),U=(0,r.useRef)(!1),z=d((function(){return B.current&&c===F.current?B.current:T(S.getState(),c)}),[S,I,c]);x(E,[F,N,U,c,z,B,R]),x(k,[A,S,P,T,F,N,U,B,R,j],[S,P,T]);var q=(0,r.useMemo)((function(){return i().createElement(t,(0,f.Z)({},z,{ref:l}))}),[l,t,z]);return(0,r.useMemo)((function(){return A?i().createElement(h.Provider,{value:M},q):q}),[h,q,M])}var S=l?i().memo(v):v;if(S.WrappedComponent=t,S.displayName=v.displayName=o,R){var T=i().forwardRef((function(e,t){return i().createElement(S,(0,f.Z)({},e,{reactReduxForwardedRef:t}))}));return T.displayName=o,T.WrappedComponent=t,m()(T,t)}return m()(S,t)}}function A(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(A(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!A(e[n[i]],t[n[i]]))return!1;return!0}function O(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function R(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=P(i),i=r(t,n)),i},r}}const M=[function(e){return"function"==typeof e?R(e):void 0},function(e){return e?void 0:O((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?O((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}],D=[function(e){return"function"==typeof e?R(e):void 0},function(e){return e?void 0:O((function(){return{}}))}];function I(e,t,n){return(0,f.Z)({},n,e,t)}const L=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];var j=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function N(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;return function(i,h){return p?function(i,p){var h,m,g=!d(p,a),v=!c(i,o,p,a);return o=i,a=p,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(o,a),m=!f(h,s),s=h,m&&(u=n(s,l,a)),u):u}(i,h):(s=e(o=i,a=h),l=t(r,a),u=n(s,l,a),p=!0,u)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,p.Z)(t,j),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:N)(a,s,l,e,o)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function z(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function q(e,t){return e===t}function W(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,i=t.mapStateToPropsFactories,o=void 0===i?D:i,a=t.mapDispatchToPropsFactories,s=void 0===a?M:a,l=t.mergePropsFactories,u=void 0===l?L:l,c=t.selectorFactory,d=void 0===c?B:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,m=void 0===h?q:h,g=a.areOwnPropsEqual,v=void 0===g?T:g,y=a.areStatePropsEqual,b=void 0===y?T:y,w=a.areMergedPropsEqual,_=void 0===w?T:w,x=(0,p.Z)(a,U),E=z(e,o,"mapStateToProps"),k=z(t,s,"mapDispatchToProps"),C=z(n,u,"mergeProps");return r(d,(0,f.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:C,pure:c,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}const $=W();function H(){return(0,r.useContext)(o)}function G(e){void 0===e&&(e=o);var t=e===o?H:function(){return(0,r.useContext)(e)};return function(){return t().store}}var V=G();function K(e){void 0===e&&(e=o);var t=e===o?V:G(e);return function(){return t().dispatch}}var Z=K(),Y=function(e,t){return e===t};function X(e){void 0===e&&(e=o);var t=e===o?H:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=Y);var i=t(),o=function(e,t,n,i){var o,a=(0,r.useReducer)((function(e){return e+1}),0)[1],s=(0,r.useMemo)((function(){return u(n,i)}),[n,i]),l=(0,r.useRef)(),d=(0,r.useRef)(),f=(0,r.useRef)(),p=(0,r.useRef)(),h=n.getState();try{if(e!==d.current||h!==f.current||l.current){var m=e(h);o=void 0!==p.current&&t(m,p.current)?p.current:m}else o=p.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return c((function(){d.current=e,f.current=h,p.current=o,l.current=void 0})),c((function(){function e(){try{var e=n.getState();if(e===f.current)return;var r=d.current(e);if(t(r,p.current))return;p.current=r,f.current=e}catch(e){l.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return(0,r.useDebugValue)(o),o}}var Q,J=X(),ee=n(53741);Q=ee.unstable_batchedUpdates,a=Q},98559:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),i=h("react.fragment"),o=h("react.strict_mode"),a=h("react.profiler"),s=h("react.provider"),l=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case f:case s:return e;default:return t}}case r:return t}}}(e)===l}},63920:(e,t,n)=>{"use strict";e.exports=n(98559)},34752:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserRouter:()=>Z,HashRouter:()=>Y,Link:()=>ne,MemoryRouter:()=>E,NavLink:()=>oe,Prompt:()=>C,Redirect:()=>P,Route:()=>L,Router:()=>x,StaticRouter:()=>z,Switch:()=>q,generatePath:()=>O,matchPath:()=>I,useHistory:()=>H,useLocation:()=>G,useParams:()=>V,useRouteMatch:()=>K,withRouter:()=>W});var r=n(81665),i=n(12244),o=n.n(i),a=n(13980),s=n.n(a),l=n(70809),u=n(10362),c=n(7896),d=n(79056),f=n.n(d),p=(n(48570),n(31461)),h=n(73463),m=n.n(h),g=1073741823,v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},y=o().createContext||function(e,t){var n,i,a,l="__create-react-context-"+((v[a="__global_unique_id__"]=(v[a]||0)+1)+"__"),u=function(e){function n(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):g,0!=(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(o().Component);u.childContextTypes=((n={})[l]=s().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?g:t},i.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?g:e},i.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},i.getValue=function(){return this.context[l]?this.context[l].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o().Component);return c.contextTypes=((i={})[l]=s().object,i),{Provider:u,Consumer:c}},b=function(e){var t=y();return t.displayName=e,t},w=b("Router-History"),_=b("Router"),x=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o().createElement(_.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o().createElement(w.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o().Component),E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,l.createMemoryHistory)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o().createElement(x,{history:this.history,children:this.props.children})},t}(o().Component),k=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o().Component);function C(e){var t=e.message,n=e.when,r=void 0===n||n;return o().createElement(_.Consumer,null,(function(e){if(e||(0,u.Z)(!1),!r||e.staticContext)return null;var n=e.history.block;return o().createElement(k,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var S={},A=1e4,T=0;function O(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(S[e])return S[e];var t=f().compile(e);return T<A&&(S[e]=t,T++),t}(e)(t,{pretty:!0})}function P(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o().createElement(_.Consumer,null,(function(e){e||(0,u.Z)(!1);var r=e.history,a=e.staticContext,s=i?r.push:r.replace,d=(0,l.createLocation)(t?"string"==typeof n?O(n,t.params):(0,c.Z)({},n,{pathname:O(n.pathname,t.params)}):n);return a?(s(d),null):o().createElement(k,{onMount:function(){s(d)},onUpdate:function(e,t){var n=(0,l.createLocation)(t.to);(0,l.locationsAreEqual)(n,(0,c.Z)({},d,{key:n.key}))||s(d)},to:n})}))}var R={},M=1e4,D=0;function I(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=R[n]||(R[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return D<M&&(r[e]=o,D++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],d=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var L=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(_.Consumer,null,(function(t){t||(0,u.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?I(n.pathname,e.props):t.match,i=(0,c.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,l=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o().Children.count(e)}(s)&&(s=null),o().createElement(_.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:l?o().createElement(l,i):d?d(i):null:"function"==typeof s?s(i):null)}))},t}(o().Component);function j(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function F(e){return"string"==typeof e?e:(0,l.createPath)(e)}function B(e){return function(){(0,u.Z)(!1)}}function U(){}var z=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return U},t.handleBlock=function(){return U},t}(0,r.Z)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,a=void 0===o?{}:o;a.action=t,a.location=function(e,t){return e?(0,c.Z)({},t,{pathname:j(e)+t.pathname}):t}(i,(0,l.createLocation)(e)),a.url=F(a.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,a=e.location,s=void 0===a?"/":a,u=(0,p.Z)(e,["basename","context","location"]),d={createHref:function(e){return j(n+F(e))},action:"POP",location:N(n,(0,l.createLocation)(s)),push:this.handlePush,replace:this.handleReplace,go:B(),goBack:B(),goForward:B(),listen:this.handleListen,block:this.handleBlock};return o().createElement(x,(0,c.Z)({},u,{history:d,staticContext:i}))},t}(o().Component),q=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(_.Consumer,null,(function(t){t||(0,u.Z)(!1);var n,r,i=e.props.location||t.location;return o().Children.forEach(e.props.children,(function(e){if(null==r&&o().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?I(i.pathname,(0,c.Z)({},e.props,{path:a})):t.match}})),r?o().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o().Component);function W(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,p.Z)(t,["wrappedComponentRef"]);return o().createElement(_.Consumer,null,(function(t){return t||(0,u.Z)(!1),o().createElement(e,(0,c.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,m()(n,e)}var $=o().useContext;function H(){return $(w)}function G(){return $(_).location}function V(){var e=$(_).match;return e?e.params:{}}function K(e){var t=G(),n=$(_).match;return e?I(t.pathname,e):n}var Z=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,l.createBrowserHistory)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o().createElement(x,{history:this.history,children:this.props.children})},t}(o().Component),Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,l.createHashHistory)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o().createElement(x,{history:this.history,children:this.props.children})},t}(o().Component),X=function(e,t){return"function"==typeof e?e(t):e},Q=function(e,t){return"string"==typeof e?(0,l.createLocation)(e,null,null,t):e},J=function(e){return e},ee=o().forwardRef;void 0===ee&&(ee=J);var te=ee((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=(0,p.Z)(e,["innerRef","navigate","onClick"]),s=a.target,l=(0,c.Z)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=J!==ee&&t||n,o().createElement("a",l)})),ne=ee((function(e,t){var n=e.component,r=void 0===n?te:n,i=e.replace,a=e.to,s=e.innerRef,d=(0,p.Z)(e,["component","replace","to","innerRef"]);return o().createElement(_.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,f=Q(X(a,e.location),e.location),p=f?n.createHref(f):"",h=(0,c.Z)({},d,{href:p,navigate:function(){var t=X(a,e.location),r=(0,l.createPath)(e.location)===(0,l.createPath)(Q(t));(i||r?n.replace:n.push)(t)}});return J!==ee?h.ref=t||s:h.innerRef=s,o().createElement(r,h)}))})),re=function(e){return e},ie=o().forwardRef;void 0===ie&&(ie=re);var oe=ie((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,l=e.className,d=e.exact,f=e.isActive,h=e.location,m=e.sensitive,g=e.strict,v=e.style,y=e.to,b=e.innerRef,w=(0,p.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o().createElement(_.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=h||e.location,i=Q(X(y,n),n),p=i.pathname,_=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=_?I(n.pathname,{path:_,exact:d,sensitive:m,strict:g}):null,E=!!(f?f(x,n):x),k="function"==typeof l?l(E):l,C="function"==typeof v?v(E):v;E&&(k=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(k,a),C=(0,c.Z)({},C,s));var S=(0,c.Z)({"aria-current":E&&r||null,className:k,style:C,to:i},w);return re!==ie?S.ref=t||b:S.innerRef=b,o().createElement(ne,S)}))}))},49613:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},79056:(e,t,n)=>{var r=n(49613);e.exports=function e(t,n,i){return r(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(t,n):r(t)?function(t,n,r){for(var i=[],o=0;o<t.length;o++)i.push(e(t[o],n,r).source);return c(new RegExp("(?:"+i.join("|")+")",d(r)),n)}(t,n,i):function(e,t,n){return f(o(e,n),t,n)}(t,n,i)},e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,k=n[2]||c,C=v||y;r.push({name:g||o++,prefix:m||"",delimiter:k,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:C?u(C):w?".*":"[^"+l(k)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),a+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,d(n)),t)}},93232:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return o(r).default}});var i=n(12);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return o(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(i),a=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.panes={},r.registerPane=function(e,t){t.forEach((function(t){r.panes[t]||(r.panes[t]=[]),r.findPane(e,t)||(r.panes[t].length>0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))})),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach((function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))}))},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find((function(t){return t===e}))},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame((function(){r.syncScrollPositions(e,t)}))},r.syncScrollPositions=function(e,t){t.forEach((function(n){r.panes[n].forEach((function(i){e!==i&&(r.removeEvents(i,n),r.syncScrollPosition(e,i),window.requestAnimationFrame((function(){r.addEvents(i,t)})))}))})),r.props.onSync&&r.props.onSync(e)},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getChildContext",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight,o=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,l=r-i,u=a-s,c=this.props,d=c.proportional,f=c.vertical,p=c.horizontal,h=t.scrollHeight-i,m=t.scrollWidth-s;f&&l>0&&(t.scrollTop=d?h*n/l:n),p&&u>0&&(t.scrollLeft=d?m*o/u:o)}},{key:"render",value:function(){return o.default.Children.only(this.props.children)}}]),t}(i.Component);u.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},u.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},u.childContextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=u,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),i=n(7),o=n(8),a=n(9),s=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",c={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:f(r.thatReturnsNull),arrayOf:function(e){return f((function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new d("Invalid "+i+" `"+o+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,o+"["+l+"]",a);if(u instanceof Error)return u}return null}))},element:f((function(t,n,r,i,o){var a=t[n];return e(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new d("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,n,r,i){return h(e[t])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new d("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var c=e(s,u,r,i,o+"."+u,a);if(c instanceof Error)return c}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(l=a,u=e[s],l===u?0!==l||1/l==1/u:l!=l&&u!=u)return null;var l,u;return new d("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return o(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",v(i),n),r.thatReturnsNull}return f((function(t,n,r,i,o){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,o,a))return null;return new d("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return f((function(t,n,r,i,o){var s=t[n],l=m(s);if("object"!==l)return new d("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if(c){var f=c(s,u,r,i,o+"."+u,a);if(f)return f}}return null}))}};function d(e){this.message=e,this.stack=""}function f(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,c,f,p,h,m,g){if(p=p||u,m=m||f,g!==a)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+f;!r[v]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,p),r[v]=!0,s++)}return null==c[f]?l?null===c[f]?new d("The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`."):new d("The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(c,f,p,h,m)}var c=l.bind(null,!1);return c.isRequired=l.bind(null,!0),c}function p(e){return f((function(t,n,r,i,o,a){var s=t[n];return m(s)!==e?new d("Invalid "+i+" `"+o+"` of type `"+g(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!h(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,c.checkPropTypes=s,c.PropTypes=c,c}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r,i=n(6);"production"!==t.env.NODE_ENV&&(r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}},i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[t].concat(i))}}),e.exports=i}).call(t,n(4))},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(7),i=n(8),o=n(9),a={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,c),d=e[c](n,c,l,s,null,o)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),i=n(7),o=n(9);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(n(13)),a=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.toArray=function(e){return[].concat(e)},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.node=this.props.attachTo||o.default.findDOMNode(this),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component);u.propTypes={children:a.default.node.isRequired,attachTo:a.default.object,group:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string)]),enabled:a.default.bool},u.defaultProps={group:"default",enabled:!0},u.contextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=u,e.exports=t.default},function(e,n){e.exports=t}])},e.exports=r(n(12244),n(53741))},81209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v,defaultProps:()=>h,makeAsyncSelect:()=>m});var r=n(7896),i=n(59740),o=n(56666),a=n(13729),s=n(9249),l=n(87371),u=n(45754),c=n(12244),d=n.n(c),f=n(10009),p=n(80670),h=(n(18726),n(53741),{cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1}),m=function(e){var t,n;return n=t=function(t){(0,u.Z)(c,t);var n=(0,a._)(c);function c(e){var t;return(0,s.Z)(this,c),(t=n.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.handleInputChange=function(e,n){var r=t.props,i=r.cacheOptions,s=r.onInputChange,l=(0,a.H)(e,n,s);if(!l)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&t.state.optionsCache[l])t.setState({inputValue:l,loadedInputValue:l,loadedOptions:t.state.optionsCache[l],isLoading:!1,passEmptyOptions:!1});else{var u=t.lastRequest={};t.setState({inputValue:l,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(l,(function(e){t.mounted&&u===t.lastRequest&&(delete t.lastRequest,t.setState((function(t){return{isLoading:!1,loadedInputValue:l,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?(0,a.a)((0,a.a)({},t.optionsCache),{},(0,o.Z)({},l,e)):t.optionsCache}})))}))}))}return l},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},t}return(0,l.Z)(c,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props;n.loadOptions;var o=n.isLoading,a=(0,i.Z)(n,["loadOptions","isLoading"]),s=this.state,l=s.defaultOptions,u=s.inputValue,c=s.isLoading,f=s.loadedInputValue,p=s.loadedOptions,h=s.passEmptyOptions?[]:u&&f?p:l||[];return d().createElement(e,(0,r.Z)({},a,{ref:function(e){t.select=e},options:h,isLoading:c||o,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return(0,a.a)((0,a.a)({},n),r)}}]),c}(c.Component),t.defaultProps=h,n},g=(0,p.m)(f.S);const v=m(g)},10009:(e,t,n)=>{"use strict";n.d(t,{S:()=>ie,c:()=>O,d:()=>H,m:()=>$});var r=n(7896),i=n(13729),o=n(9249),a=n(87371),s=n(45754);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}for(var c=n(12244),d=n.n(c),f=n(28165),p=n(36631),h=n(59740),m={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},g=function(e){return(0,f.jsx)("span",(0,r.Z)({css:m},e))},v={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,i=e.options,o=e.label,a=void 0===o?"":o,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if("menu"===t){var d=l?" disabled":"",f="".concat(u?"selected":"focused").concat(d);return"option ".concat(a," ").concat(f,", ").concat(c(i,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},y=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,m=l.isMulti,y=l.isOptionDisabled,b=l.isSearchable,w=l.menuIsOpen,_=l.options,x=l.screenReaderStatus,E=l.tabSelectsValue,k=l["aria-label"],C=l["aria-live"],S=(0,c.useMemo)((function(){return(0,i.a)((0,i.a)({},v),u||{})}),[u]),A=(0,c.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.removedValue,a=t.value,s=o||r||(e=a,Array.isArray(e)?null:e),l=(0,i.a)({isDisabled:s&&y(s),label:s?p(s):""},t);n=S.onChange(l)}return n}),[t,y,p,S]),T=(0,c.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var o={focused:t,label:p(t),isDisabled:y(t),isSelected:i,options:_,context:t===n?"menu":"value",selectValue:s};e=S.onFocus(o)}return e}),[n,r,p,y,S,_,s]),O=(0,c.useMemo)((function(){var e="";if(w&&_.length&&S.onFilter){var t=x({count:o.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,w,S,_,x]),P=(0,c.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":w?"menu":"input";e=S.guidance({"aria-label":k,context:t,isDisabled:n&&y(n),isMulti:m,isSearchable:b,tabSelectsValue:E})}return e}),[k,n,r,m,y,b,w,S,E]),R="".concat(T," ").concat(O," ").concat(P);return(0,f.jsx)(g,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},a&&(0,f.jsx)(d().Fragment,null,(0,f.jsx)("span",{id:"aria-selection"},A),(0,f.jsx)("span",{id:"aria-context"},R)))},b=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],w=new RegExp("["+b.map((function(e){return e.letters})).join("")+"]","g"),_={},x=0;x<b.length;x++)for(var E=b[x],k=0;k<E.letters.length;k++)_[E.letters[k]]=E.base;var C=function(e){return e.replace(w,(function(e){return _[e]}))},S=(0,p.Z)(C),A=function(e){return e.replace(/^\s+|\s+$/g,"")},T=function(e){return"".concat(e.label," ").concat(e.value)},O=function(e){return function(t,n){var r=(0,i.a)({ignoreCase:!0,ignoreAccents:!0,stringify:T,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,a=r.ignoreAccents,s=r.stringify,l=r.trim,u=r.matchFrom,c=l?A(n):n,d=l?A(s(t)):s(t);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=S(c),d=C(d)),"start"===u?d.substr(0,c.length)===c:d.indexOf(c)>-1}};function P(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=(0,h.Z)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return(0,f.jsx)("input",(0,r.Z)({ref:t},n,{css:(0,f.css)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var R=["boxSizing","height","overflow","paddingRight","position"],M={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function D(e){e.preventDefault()}function I(e){e.stopPropagation()}function L(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function j(){return"ontouchstart"in window||navigator.maxTouchPoints}var N=!("undefined"==typeof window||!window.document||!window.document.createElement),F=0,B={capture:!1,passive:!1},U=function(){return document.activeElement&&document.activeElement.blur()},z={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function q(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useRef)(0),d=(0,c.useRef)(null),f=(0,c.useCallback)((function(e,t){if(null!==d.current){var i=d.current,u=i.scrollTop,c=i.scrollHeight,f=i.clientHeight,p=d.current,h=t>0,m=c-f-u,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(n&&!s.current&&n(e),p.scrollTop=c,g=!0,s.current=!0):!h&&-t>u&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=(0,c.useCallback)((function(e){f(e,e.deltaY)}),[f]),h=(0,c.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),m=(0,c.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;f(e,t)}),[f]),g=(0,c.useCallback)((function(e){if(e){var t=!!i.s&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",h,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,h,p]),v=(0,c.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",h,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,h,p]);return(0,c.useEffect)((function(){if(t){var e=d.current;return g(e),function(){v(e)}}}),[t,g,v]),function(e){d.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,c.useRef)({}),o=(0,c.useRef)(null),a=(0,c.useCallback)((function(e){if(N){var t=document.body,n=t&&t.style;if(r&&R.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&F<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(M).forEach((function(e){var t=M[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&j()&&(t.addEventListener("touchmove",D,B),e&&(e.addEventListener("touchstart",L,B),e.addEventListener("touchmove",I,B))),F+=1}}),[]),s=(0,c.useCallback)((function(e){if(N){var t=document.body,n=t&&t.style;F=Math.max(F-1,0),r&&F<1&&R.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&j()&&(t.removeEventListener("touchmove",D,B),e&&(e.removeEventListener("touchstart",L,B),e.removeEventListener("touchmove",I,B)))}}),[]);return(0,c.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return(0,f.jsx)(d().Fragment,null,n&&(0,f.jsx)("div",{onClick:U,css:z}),t((function(e){o(e),a(e)})))}var W={clearIndicator:i.b,container:i.d,control:i.e,dropdownIndicator:i.f,group:i.g,groupHeading:i.h,indicatorsContainer:i.i,indicatorSeparator:i.j,input:i.k,loadingIndicator:i.l,loadingMessage:i.m,menu:i.n,menuList:i.o,menuPortal:i.p,multiValue:i.q,multiValueLabel:i.r,multiValueRemove:i.t,noOptionsMessage:i.u,option:i.v,placeholder:i.w,singleValue:i.x,valueContainer:i.y};function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.a)({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=function(n,i){return t[r](e[r](n,i),i)}:n[r]=t[r]})),n}var H={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},G={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,i.z)(),captureMenuScroll:!(0,i.z)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:O(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,i.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function V(e,t,n,r){return{type:"option",data:t,isDisabled:J(e,t,n),isSelected:ee(e,t,n),label:X(e,t),value:Q(e,t),index:r}}function K(e,t){return e.options.map((function(n,r){if(n.options){var i=n.options.map((function(n,r){return V(e,n,t,r)})).filter((function(t){return Y(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=V(e,n,t,r);return Y(e,o)?o:void 0})).filter((function(e){return!!e}))}function Z(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,u(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Y(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!ne(e)||!o)&&te(e,{label:a,value:s,data:i},r)}var X=function(e,t){return e.getOptionLabel(t)},Q=function(e,t){return e.getOptionValue(t)};function J(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ee(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Q(e,t);return n.some((function(t){return Q(e,t)===r}))}function te(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ne=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},re=1,ie=function(e){(0,s.Z)(n,e);var t=(0,i._)(n);function n(e){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value"}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:o});i?r.setValue([].concat(u(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=t?o:o[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=e?i:i[0]||null;r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.B.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return X(r.props,e)},r.getOptionValue=function(e){return Q(r.props,e)},r.getStyles=function(e,t){var n=W[e](t);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,i.C)(r.props)},r.buildCategorizedOptions=function(){return K(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Z(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,i.a)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,i.D)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return ne(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++re),r.state.selectValue=(0,i.E)(e.value),r}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,i.F)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(H):(0,i.a)((0,i.a)({},H),this.props.theme):H}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return J(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ee(this.props,e,t)}},{key:"filterOption",value:function(e,t){return te(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=this.getComponents().Input,c=this.state.inputIsHidden,f=this.commonProps,p=o||this.getElementId("input"),h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?d().createElement(u,(0,r.Z)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},h)):d().createElement(P,(0,r.Z)({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:i.G,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:l,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,f=c.controlShouldRenderValue,p=c.isDisabled,h=c.isMulti,m=c.inputValue,g=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!f)return m?null:d().createElement(l,(0,r.Z)({},u,{key:"placeholder",isDisabled:p,isFocused:w}),g);if(h)return y.map((function(t,s){var l=t===b;return d().createElement(n,(0,r.Z)({},u,{components:{Container:i,Label:o,Remove:a},isFocused:l,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=y[0];return d().createElement(s,(0,r.Z)({},u,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d().createElement(e,(0,r.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?d().createElement(e,(0,r.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return d().createElement(n,(0,r.Z)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d().createElement(e,(0,r.Z)({},t,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,f=t.Option,p=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,_=m.maxMenuHeight,x=m.menuIsOpen,E=m.menuPlacement,k=m.menuPosition,C=m.menuPortalTarget,S=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,T=m.noOptionsMessage,O=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!x)return null;var R,M=function(t,n){var i=t.type,o=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,c=h===o,m=a?void 0:function(){return e.onOptionHover(o)},g=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return d().createElement(f,(0,r.Z)({},p,{innerProps:y,data:o,isDisabled:a,isSelected:s,key:v,label:l,type:i,value:u,isFocused:c,innerRef:c?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return d().createElement(n,(0,r.Z)({},p,{key:l,data:i,options:a,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(y){var D=b({inputValue:v});if(null===D)return null;R=d().createElement(u,p,D)}else{var I=T({inputValue:v});if(null===I)return null;R=d().createElement(c,p,I)}var L={minMenuHeight:w,maxMenuHeight:_,menuPlacement:E,menuPosition:k,menuShouldScrollIntoView:A},j=d().createElement(i.M,(0,r.Z)({},p,L),(function(t){var n=t.ref,i=t.placerProps,o=i.placement,l=i.maxHeight;return d().createElement(a,(0,r.Z)({},p,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:o}),d().createElement(q,{captureEnabled:g,onTopArrive:O,onBottomArrive:P,lockEnabled:S},(function(t){return d().createElement(s,(0,r.Z)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:l,focusedOption:h}),R)})))}));return C||"fixed"===k?d().createElement(l,(0,r.Z)({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:E,menuPosition:k}),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=this.state.selectValue;if(o&&!r){if(i){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return d().createElement("input",{name:o,type:"hidden",value:s})}var l=a.length>0?a.map((function(t,n){return d().createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):d().createElement("input",{name:o,type:"hidden"});return d().createElement("div",null,l)}var u=a[0]?this.getOptionValue(a[0]):"";return d().createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return d().createElement(y,(0,r.Z)({},e,{ariaSelection:n,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return d().createElement(i,(0,r.Z)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),d().createElement(t,(0,r.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:c}),d().createElement(o,(0,r.Z)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),d().createElement(n,(0,r.Z)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,s=e.value,l=e.menuIsOpen,u=e.inputValue,c={};if(n&&(s!==n.value||a!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var d=(0,i.E)(s),f=l?function(e,t){return Z(K(e,t))}(e,d):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null,h=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);c={selectValue:d,focusedOption:h,focusedValue:p,clearFocusValueOnUpdate:!1}}var m=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return(0,i.a)((0,i.a)((0,i.a)({},c),m),{},{prevProps:e})}}]),n}(c.Component);ie.defaultProps=G},13729:(e,t,n)=>{"use strict";n.d(t,{A:()=>R,B:()=>_,C:()=>Te,D:()=>C,E:()=>x,F:()=>O,G:()=>b,H:()=>k,M:()=>B,_:()=>y,a:()=>g,b:()=>ae,c:()=>Ae,d:()=>X,e:()=>fe,f:()=>oe,g:()=>pe,h:()=>he,i:()=>J,j:()=>se,k:()=>me,l:()=>ue,m:()=>W,n:()=>N,o:()=>U,p:()=>Z,q:()=>ve,r:()=>ye,s:()=>L,t:()=>be,u:()=>q,v:()=>ke,w:()=>Ce,x:()=>Se,y:()=>Q,z:()=>P});var r=n(7896),i=n(28165),o=n(59740),a=n(86522),s=n(18726),l=n(9249),u=n(87371),c=n(45754),d=n(56666),f=n(12244),p=n(53741);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var b=function(){};function w(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(w(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var x=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,a.Z)(e)&&null!==e?[e]:[]},E=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,g({},(0,o.Z)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function k(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function C(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function S(e){return C(e)?window.pageYOffset:e.scrollTop}function A(e,t){C(e)?window.scrollTo(0,t):e.scrollTop=t}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b,i=S(e),o=t-i,a=0;!function t(){var s,l=o*((s=(s=a+=10)/n-1)*s*s+1)+i;A(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function O(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?A(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&A(e,Math.max(t.offsetTop-i,0))}function P(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function R(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var M=!1,D={get passive(){return M=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",b,D),I.removeEventListener("p",b,!1));var L=M;var j=function(e){return"auto"===e?"bottom":e},N=function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return t={label:"menu"},(0,d.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,d.Z)(t,"backgroundColor",a.neutral0),(0,d.Z)(t,"borderRadius",i),(0,d.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,d.Z)(t,"marginBottom",o.menuGutter),(0,d.Z)(t,"marginTop",o.menuGutter),(0,d.Z)(t,"position","absolute"),(0,d.Z)(t,"width","100%"),(0,d.Z)(t,"zIndex",1),t},F=(0,f.createContext)({getPortalPlacement:null}),B=function(e){(0,c.Z)(n,e);var t=y(n);function n(){var e;(0,l.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=S(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,_=g-h,x=w+v,E=c-v-h,k=f-g+v+y,C=v+h-b,O=160;switch(i){case"auto":case"bottom":if(_>=p)return{placement:"bottom",maxHeight:t};if(E>=p&&!a)return o&&T(l,k,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&_>=r)return o&&T(l,k,O),{placement:"bottom",maxHeight:a?_-y:E-y};if("auto"===i||a){var P=t,R=a?w:x;return R>=r&&(P=Math.min(R-y-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return o&&A(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return o&&T(l,C,O),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var M=t;return(!a&&x>=r||a&&w>=r)&&(M=a?w-b:x-b),o&&T(l,C,O),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),d=e.context.getPortalPlacement;d&&d(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||j(t);return g(g({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,u.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(f.Component);B.contextType=F;var U=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},z=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},q=z,W=z,$=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};$.defaultProps={children:"No options"};var H=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};H.defaultProps={children:"Loading..."};var G,V,K,Z=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Y=function(e){(0,c.Z)(n,e);var t=y(n);function n(){var e;(0,l.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==j(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,u.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,o=e.className,a=e.controlElement,s=e.cx,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=e.getStyles,f="fixed"===c;if(!t&&!f||!a)return null;var h=this.state.placement||j(u),m=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),g=f?0:window.pageYOffset,v={offset:m[h]+g,position:c,rect:m},y=(0,i.jsx)("div",(0,r.Z)({css:d("menuPortal",v),className:s({"menu-portal":!0},o)},l),n);return(0,i.jsx)(F.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,p.createPortal)(y,t):y)}}]),n}(f.Component),X=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},Q=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},J=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ee={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},te=function(e){var t=e.size,n=(0,o.Z)(e,["size"]);return(0,i.jsx)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ee},n))},ne=function(e){return(0,i.jsx)(te,(0,r.Z)({size:20},e),(0,i.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},re=function(e){return(0,i.jsx)(te,(0,r.Z)({size:20},e),(0,i.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ie=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},oe=ie,ae=ie,se=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},le=(0,i.keyframes)(G||(V=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],K||(K=V.slice(0)),G=Object.freeze(Object.defineProperties(V,{raw:{value:Object.freeze(K)}})))),ue=function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ce=function(e){var t=e.delay,n=e.offset;return(0,i.jsx)("span",{css:(0,i.css)({animation:"".concat(le," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},de=function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps,s=e.isRtl;return(0,i.jsx)("div",(0,r.Z)({css:o("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),(0,i.jsx)(ce,{delay:0,offset:s}),(0,i.jsx)(ce,{delay:160,offset:!0}),(0,i.jsx)(ce,{delay:320,offset:!s}))};de.defaultProps={size:4};var fe=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},pe=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},he=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},ge=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},ve=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},ye=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},be=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},we=function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",n,t)},_e=we,xe=we,Ee=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,s=e.getStyles,l=e.innerProps,u=e.isDisabled,c=e.removeProps,d=e.selectProps,f=r.Container,p=r.Label,h=r.Remove;return(0,i.jsx)(i.ClassNames,null,(function(r){var m=r.css,v=r.cx;return(0,i.jsx)(f,{data:a,innerProps:g({className:v(m(s("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:d},(0,i.jsx)(p,{data:a,innerProps:{className:v(m(s("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:d},t),(0,i.jsx)(h,{data:a,innerProps:g({className:v(m(s("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:d}))}))};Ee.defaultProps={cropWithEllipsis:!0};var ke=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},Ce=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Se=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},Ae={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},n)},s),t||(0,i.jsx)(ne,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.className,s=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,d=e.menuIsOpen;return(0,i.jsx)("div",(0,r.Z)({ref:u,css:o("control",e),className:n({control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":d},a)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("dropdownIndicator",e),className:o({indicator:!0,"dropdown-indicator":!0},n)},s),t||(0,i.jsx)(re,null))},DownChevron:re,CrossIcon:ne,Group:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,f=e.selectProps;return(0,i.jsx)("div",(0,r.Z)({css:a("group",e),className:o({group:!0},n)},u),(0,i.jsx)(s,(0,r.Z)({},l,{selectProps:f,theme:d,getStyles:a,cx:o}),c),(0,i.jsx)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,a=e.className,s=E(e);s.data;var l=(0,o.Z)(s,["data"]);return(0,i.jsx)("div",(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},a)},l))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.innerProps,s=e.getStyles;return(0,i.jsx)("div",(0,r.Z)({css:s("indicatorsContainer",e),className:o({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,i.jsx)("span",(0,r.Z)({},a,{css:o("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,l=E(e),u=l.innerRef,c=l.isDisabled,d=l.isHidden,f=(0,o.Z)(l,["innerRef","isDisabled","isHidden"]);return(0,i.jsx)("div",{css:a("input",e)},(0,i.jsx)(s.Z,(0,r.Z)({className:n({input:!0},t),inputRef:u,inputStyle:ge(d),disabled:c},f)))},LoadingIndicator:de,Menu:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerRef,l=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("menu",e),className:o({menu:!0},n),ref:s},l),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps,l=e.innerRef,u=e.isMulti;return(0,i.jsx)("div",(0,r.Z)({css:a("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":u},n),ref:l},s),t)},MenuPortal:Y,LoadingMessage:H,NoOptionsMessage:$,MultiValue:Ee,MultiValueContainer:_e,MultiValueLabel:xe,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",n,t||(0,i.jsx)(ne,{size:14}))},Option:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,d=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("option",e),className:o({option:!0,"option--is-disabled":s,"option--is-focused":l,"option--is-selected":u},n),ref:c},d),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("placeholder",e),className:o({placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.isRtl;return(0,i.jsx)("div",(0,r.Z)({css:a("container",e),className:o({"--is-disabled":l,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.isDisabled,l=e.innerProps;return(0,i.jsx)("div",(0,r.Z)({css:a("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":s},n)},l),t)},ValueContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.innerProps,s=e.isMulti,l=e.getStyles,u=e.hasValue;return(0,i.jsx)("div",(0,r.Z)({css:l("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":s,"value-container--has-value":u},n)},a),t)}},Te=function(e){return g(g({},Ae),e.components)}},31776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NonceProvider:()=>h,components:()=>l.c,createFilter:()=>r.c,default:()=>m,defaultTheme:()=>r.d,mergeStyles:()=>r.m});var r=n(10009),i=n(80670),o=n(9249),a=n(87371),s=n(45754),l=n(13729),u=n(12244),c=n.n(u),d=n(33895),f=n(39721),p=n(36631),h=(n(18726),n(53741),function(e){(0,s.Z)(n,e);var t=(0,l._)(n);function n(e){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).createEmotionCache=function(e,t){return(0,f.Z)({nonce:e,key:t})},r.createEmotionCache=(0,p.Z)(r.createEmotionCache),r}return(0,a.Z)(n,[{key:"render",value:function(){var e=this.createEmotionCache(this.props.nonce,this.props.cacheKey);return c().createElement(d.C,{value:e},this.props.children)}}]),n}(u.Component));const m=(0,i.m)(r.S)},80670:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(7896),i=n(59740),o=n(9249),a=n(87371),s=n(45754),l=n(13729),u=n(12244),c=n.n(u),d={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},f=function(e){var t,n;return n=t=function(t){(0,s.Z)(u,t);var n=(0,l._)(u);function u(){var e;(0,o.Z)(this,u);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return(0,a.Z)(u,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var o=(0,i.Z)(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return c().createElement(e,(0,r.Z)({},o,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),u}(u.Component),t.defaultProps=d,n}},31396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Pane:()=>_,default:()=>A});var r=n(12244),i=n.n(r),o=n(13980),a=n.n(o),s=n(25473),l=n.n(s),u=n(46847);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return function(){var t,n=v(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?b(e):t}(this,t)}}var _=function(e){g(n,e);var t=w(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.split,o=e.style,a=e.size,s=e.eleRef,l=["Pane",r,n],u={flex:1,position:"relative",outline:"none"};return void 0!==a&&("vertical"===r?u.width=a:(u.height=a,u.display="flex"),u.flex="none"),u=Object.assign({},u,o||{}),i().createElement("div",{ref:s,className:l.join(" "),style:u},t)}}]),n}(i().PureComponent);_.propTypes={className:a().string.isRequired,children:a().node.isRequired,size:a().oneOfType([a().string,a().number]),split:a().oneOf(["vertical","horizontal"]),style:l(),eleRef:a().func},_.defaultProps={};var x="Resizer",E=function(e){g(n,e);var t=w(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onDoubleClick,o=e.onMouseDown,a=e.onTouchEnd,s=e.onTouchStart,l=e.resizerClassName,u=e.split,c=e.style,d=[l,u,t];return i().createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return o(e)},onTouchStart:function(e){e.preventDefault(),s(e)},onTouchEnd:function(e){e.preventDefault(),a(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){r&&(e.preventDefault(),r(e))}})}}]),n}(i().Component);function k(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function C(e,t,n,r){if("number"==typeof r){var i="number"==typeof t?t:0,o="number"==typeof n&&n>=0?n:1/0;return Math.max(i,Math.min(o,r))}return void 0!==e?e:t}E.propTypes={className:a().string.isRequired,onClick:a().func,onDoubleClick:a().func,onMouseDown:a().func.isRequired,onTouchStart:a().func.isRequired,onTouchEnd:a().func.isRequired,split:a().oneOf(["vertical","horizontal"]),style:l(),resizerClassName:a().string.isRequired},E.defaultProps={resizerClassName:x};var S=function(e){g(n,e);var t=w(n);function n(e){var r;c(this,n),(r=t.call(this,e)).onMouseDown=r.onMouseDown.bind(b(r)),r.onTouchStart=r.onTouchStart.bind(b(r)),r.onMouseMove=r.onMouseMove.bind(b(r)),r.onTouchMove=r.onTouchMove.bind(b(r)),r.onMouseUp=r.onMouseUp.bind(b(r));var i=e.size,o=e.defaultSize,a=e.minSize,s=e.maxSize,l=e.primary,u=void 0!==i?i:C(o,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===l?u:void 0,pane2Size:"second"===l?u:void 0,instanceProps:{size:i}},r}return f(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,i=t.split;if(n){k(document,window);var o="vertical"===i?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:o})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,i=t.minSize,o=t.onChange,a=t.split,s=t.step,l=this.state,u=l.active,c=l.position;if(n&&u){k(document,window);var d="first"===this.props.primary,f=d?this.pane1:this.pane2,h=d?this.pane2:this.pane1;if(f){var m=f,g=h;if(m.getBoundingClientRect){var v=m.getBoundingClientRect().width,y=m.getBoundingClientRect().height,b="vertical"===a?v:y,w=c-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(w)<s)return;w=~~(w/s)*s}var _=d?w:-w;parseInt(window.getComputedStyle(m).order)>parseInt(window.getComputedStyle(g).order)&&(_=-_);var x=r;if(void 0!==r&&r<=0){var E=this.splitPane;x="vertical"===a?E.getBoundingClientRect().width+r:E.getBoundingClientRect().height+r}var C=b-_,S=c-w;C<i?C=i:void 0!==r&&C>x?C=x:this.setState({position:S,resized:!0}),o&&o(C),this.setState(p({draggedSize:C},d?"pane1Size":"pane2Size",C))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,i=r.active,o=r.draggedSize;t&&i&&("function"==typeof n&&n(o),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,o=t.className,a=t.onResizerClick,s=t.onResizerDoubleClick,l=t.paneClassName,u=t.pane1ClassName,c=t.pane2ClassName,d=t.paneStyle,f=t.pane1Style,p=t.pane2Style,h=t.resizerClassName,g=t.resizerStyle,v=t.split,y=t.style,b=this.state,w=b.pane1Size,k=b.pane2Size,C=n?"":"disabled",S=h?"".concat(h," ").concat(x):h,A=function(e){return i().Children.toArray(e).filter((function(e){return e}))}(r),T=m({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},y);"vertical"===v?Object.assign(T,{flexDirection:"row",left:0,right:0}):Object.assign(T,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var O=["SplitPane",o,v,C],P=m({},d,{},f),R=m({},d,{},p),M=["Pane1",l,u].join(" "),D=["Pane2",l,c].join(" ");return i().createElement("div",{className:O.join(" "),ref:function(t){e.splitPane=t},style:T},i().createElement(_,{className:M,key:"pane1",eleRef:function(t){e.pane1=t},size:w,split:v,style:P},A[0]),i().createElement(E,{className:C,onClick:a,onDoubleClick:s,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:S,split:v,style:g||{}}),i().createElement(_,{className:D,key:"pane2",eleRef:function(t){e.pane2=t},size:k,split:v,style:R},A[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return n.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:C(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var i="first"===e.primary;return n[i?"pane1Size":"pane2Size"]=r,n[i?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),n}(i().Component);S.propTypes={allowResize:a().bool,children:a().arrayOf(a().node).isRequired,className:a().string,primary:a().oneOf(["first","second"]),minSize:a().oneOfType([a().string,a().number]),maxSize:a().oneOfType([a().string,a().number]),defaultSize:a().oneOfType([a().string,a().number]),size:a().oneOfType([a().string,a().number]),split:a().oneOf(["vertical","horizontal"]),onDragStarted:a().func,onDragFinished:a().func,onChange:a().func,onResizerClick:a().func,onResizerDoubleClick:a().func,style:l(),resizerStyle:l(),paneClassName:a().string,pane1ClassName:a().string,pane2ClassName:a().string,paneStyle:l(),pane1Style:l(),pane2Style:l(),resizerClassName:a().string,step:a().number},S.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},(0,u.polyfill)(S);const A=S},2787:e=>{e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},25473:(e,t,n)=>{var r=n(2787),i=n(13980);e.exports=function(e,t,n){var i=e[t];if(i){var o=[];if(Object.keys(i).forEach((function(e){-1===r.indexOf(e)&&o.push(e)})),o.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+o.join(", "))}},e.exports.isRequired=function(t,n,r){if(!t[n])throw new Error("Prop "+n+" passed to "+r+" is required");return e.exports(t,n,r)},e.exports.supportingArrays=i.oneOfType([i.arrayOf(e.exports),e.exports])},94633:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(7896),i=n(31461),o=n(12244);const a=o.useLayoutEffect;var s=function(e,t){"function"!=typeof e?e.current=t:e(t)};var l={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},u=function(e){Object.keys(l).forEach((function(t){e.style.setProperty(t,l[t],"important")}))},c=null,d=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},f=function(){},p=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],h=!!document.documentElement.currentStyle;function m(e,t,n){var r,i,s=(r=n,i=o.useRef(r),a((function(){i.current=r})),i);o.useLayoutEffect((function(){var n=function(e){return s.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var g=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],v=function(e,t){var n,a=e.cacheMeasurements,l=e.maxRows,v=e.minRows,y=e.onChange,b=void 0===y?f:y,w=e.onHeightChange,_=void 0===w?f:w,x=(0,i.Z)(e,g),E=void 0!==x.value,k=o.useRef(null),C=function(e,t){var n=(0,o.useRef)();return(0,o.useCallback)((function(r){e.current=r,n.current&&s(n.current,null),n.current=t,t&&s(t,r)}),[t])}(k,t),S=o.useRef(0),A=o.useRef(),T=function(){var e=k.current,t=a&&A.current?A.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,p.reduce((function(e,t){return e[t]=n[t],e}),{})),i=r.boxSizing;return""===i?null:(h&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){A.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),c||((c=document.createElement("textarea")).setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),u(c)),null===c.parentNode&&document.body.appendChild(c);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;c.style[t]=a[t]})),u(c),c.value=t;var l=d(c,e);c.value=t,l=d(c,e),c.value="x";var f=c.scrollHeight-i,p=f*n;"border-box"===s&&(p=p+i+o),l=Math.max(p,l);var h=f*r;return"border-box"===s&&(h=h+i+o),[l=Math.min(h,l),f]}(t,e.value||e.placeholder||"x",v,l),r=n[0],i=n[1];S.current!==r&&(S.current=r,e.style.setProperty("height",r+"px","important"),_(r,{rowHeight:i}))}};return o.useLayoutEffect(T),m(window,"resize",T),n=T,m(document.fonts,"loadingdone",n),o.createElement("textarea",(0,r.Z)({},x,{onChange:function(e){E||T(),b(e)},ref:C}))},y=o.forwardRef(v)},61116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectStyle=function(){var e=document.createElement("style");e.innerText=":root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error)}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translateX(0)}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:4px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);overflow:hidden;font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.7s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",document.head.appendChild(e)}},48919:(e,t,n)=>{var r=n(12244),i=n(6277);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(r),s=o(i);const l=e=>"number"==typeof e&&!isNaN(e),u=e=>"string"==typeof e,c=e=>"function"==typeof e,d=e=>u(e)||c(e)?e:null,f=e=>r.isValidElement(e)||u(e)||c(e)||l(e);function p(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}function h(e){let{enter:t,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(e){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:h}=e;const m=i?`${t}--${u}`:t,g=i?`${n}--${u}`:n,v=r.useRef(0);return r.useLayoutEffect((()=>{const e=f.current,t=m.split(" "),n=r=>{r.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===v.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),r.useEffect((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),o?p(e,d,s):d()};h||(c?t():(v.current=1,e.className+=` ${g}`,e.addEventListener("animationend",t)))}),[h]),a.default.createElement(a.default.Fragment,null,l)}}function m(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const g={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},v=e=>{let{theme:t,type:n,...r}=e;return a.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...r})},y={info:function(e){return a.default.createElement(v,{...e},a.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return a.default.createElement(v,{...e},a.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return a.default.createElement(v,{...e},a.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return a.default.createElement(v,{...e},a.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return a.default.createElement("div",{className:"Toastify__spinner"})}};function b(e){const[,t]=r.useReducer((e=>e+1),0),[n,i]=r.useState([]),o=r.useRef(null),a=r.useRef(new Map).current,s=e=>-1!==n.indexOf(e),p=r.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function h(e){let{containerId:t}=e;const{limit:n}=p.props;!n||t&&p.containerId!==t||(p.count-=p.queue.length,p.queue=[])}function v(e){i((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:n}=p.queue.shift();_(e,t,n)}function w(e,n){let{delay:i,staleId:s,...h}=n;if(!f(e)||function(e){return!o.current||p.props.enableMultiContainer&&e.containerId!==p.props.containerId||a.has(e.toastId)&&null==e.updateId}(h))return;const{toastId:w,updateId:x,data:E}=h,{props:k}=p,C=()=>v(w),S=null==x;S&&p.count++;const A={...k,style:k.toastStyle,key:p.toastKey++,...Object.fromEntries(Object.entries(h).filter((e=>{let[t,n]=e;return null!=n}))),toastId:w,updateId:x,data:E,closeToast:C,isIn:!1,className:d(h.className||k.toastClassName),bodyClassName:d(h.bodyClassName||k.bodyClassName),progressClassName:d(h.progressClassName||k.progressClassName),autoClose:!h.isLoading&&(T=h.autoClose,O=k.autoClose,!1===T||l(T)&&T>0?T:O),deleteToast(){const e=m(a.get(w),"removed");a.delete(w),g.emit(4,e);const n=p.queue.length;if(p.count=null==w?p.count-p.displayedToast:p.count-1,p.count<0&&(p.count=0),n>0){const e=null==w?p.props.limit:1;if(1===n||1===e)p.displayedToast++,b();else{const t=e>n?n:e;p.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var T,O;A.iconOut=function(e){let{theme:t,type:n,isLoading:i,icon:o}=e,a=null;const s={theme:t,type:n};return!1===o||(c(o)?a=o(s):r.isValidElement(o)?a=r.cloneElement(o,s):u(o)||l(o)?a=o:i?a=y.spinner():(e=>e in y)(n)&&(a=y[n](s))),a}(A),c(h.onOpen)&&(A.onOpen=h.onOpen),c(h.onClose)&&(A.onClose=h.onClose),A.closeButton=k.closeButton,!1===h.closeButton||f(h.closeButton)?A.closeButton=h.closeButton:!0===h.closeButton&&(A.closeButton=!f(k.closeButton)||k.closeButton);let P=e;r.isValidElement(e)&&!u(e.type)?P=r.cloneElement(e,{closeToast:C,toastProps:A,data:E}):c(e)&&(P=e({closeToast:C,toastProps:A,data:E})),k.limit&&k.limit>0&&p.count>k.limit&&S?p.queue.push({toastContent:P,toastProps:A,staleId:s}):l(i)?setTimeout((()=>{_(P,A,s)}),i):_(P,A,s)}function _(e,t,n){const{toastId:r}=t;n&&a.delete(n);const o={content:e,props:t};a.set(r,o),i((e=>[...e,r].filter((e=>e!==n)))),g.emit(4,m(o,null==o.props.updateId?"added":"updated"))}return r.useEffect((()=>(p.containerId=e.containerId,g.cancelEmit(3).on(0,w).on(1,(e=>o.current&&v(e))).on(5,h).emit(2,p),()=>{a.clear(),g.emit(3,p)})),[]),r.useEffect((()=>{p.props=e,p.isToastActive=s,p.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:o,isToastActive:s}}function w(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function _(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function x(e){const[t,n]=r.useState(!1),[i,o]=r.useState(!1),a=r.useRef(null),s=r.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=r.useRef(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",x),document.addEventListener("touchmove",b),document.addEventListener("touchend",x);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=w(t.nativeEvent),s.y=_(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){const{top:n,bottom:r,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=n&&s.y<=r?y():v()}}function v(){n(!0)}function y(){n(!1)}function b(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&y(),s.x=w(n),s.y=_(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",x);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}r.useEffect((()=>{l.current=e})),r.useEffect((()=>(a.current&&a.current.addEventListener("d",v,{once:!0}),c(e.onOpen)&&e.onOpen(r.isValidElement(e.children)&&e.children.props),()=>{const e=l.current;c(e.onClose)&&e.onClose(r.isValidElement(e.children)&&e.children.props)})),[]),r.useEffect((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",y))})),[e.pauseOnFocusLoss]);const E={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&d&&(E.onMouseEnter=y,E.onMouseLeave=v),h&&(E.onClick=e=>{p&&p(e),s.canCloseOnClick&&f()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:i,toastRef:a,eventHandlers:E}}function E(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return a.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},a.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},a.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function k(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:l,style:u,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e;const g=o||d&&0===f,v={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};d&&(v.transform=`scaleX(${f})`);const y=s.default("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),b=c(l)?l({rtl:p,type:i,defaultClassName:y}):s.default(y,l);return a.default.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:v,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&r()}})}const C=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:o}=x(e),{closeButton:l,children:u,autoClose:d,onClick:f,type:p,hideProgressBar:h,closeToast:m,transition:g,position:v,className:y,style:b,bodyClassName:w,bodyStyle:_,progressClassName:C,progressStyle:S,updateId:A,role:T,progress:O,rtl:P,toastId:R,deleteToast:M,isIn:D,isLoading:I,iconOut:L,closeOnClick:j,theme:N}=e,F=s.default("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":j}),B=c(y)?y({rtl:P,position:v,type:p,defaultClassName:F}):s.default(F,y),U=!!O||!d,z={closeToast:m,type:p,theme:N};let q=null;return!1===l||(q=c(l)?l(z):r.isValidElement(l)?r.cloneElement(l,z):E(z)),a.default.createElement(g,{isIn:D,done:M,position:v,preventExitTransition:n,nodeRef:i},a.default.createElement("div",{id:R,onClick:f,className:B,...o,style:b,ref:i},a.default.createElement("div",{...D&&{role:T},className:c(w)?w({type:p}):s.default("Toastify__toast-body",w),style:_},null!=L&&a.default.createElement("div",{className:s.default("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},L),a.default.createElement("div",null,u)),q,a.default.createElement(k,{...A&&!U?{key:`pb-${A}`}:{},rtl:P,theme:N,delay:d,isRunning:t,isIn:D,closeToast:m,hide:h,type:p,style:S,className:C,controlledProgress:U,progress:O||0})))},S=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},A=h(S("bounce",!0)),T=h(S("slide",!0)),O=h(S("zoom")),P=h(S("flip")),R=r.forwardRef(((e,t)=>{const{getToastToRender:n,containerRef:i,isToastActive:o}=b(e),{className:l,style:u,rtl:f,containerId:p}=e;function h(e){const t=s.default("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return c(l)?l({position:e,rtl:f,defaultClassName:t}):s.default(t,d(l))}return r.useEffect((()=>{t&&(t.current=i.current)}),[]),a.default.createElement("div",{ref:i,className:"Toastify",id:p},n(((e,t)=>{const n=t.length?{...u}:{...u,pointerEvents:"none"};return a.default.createElement("div",{className:h(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:r,props:i}=e;return a.default.createElement(C,{...i,isIn:o(i.toastId),style:{...i.style,"--nth":n+1,"--len":t.length},key:`toast-${i.key}`},r)})))})))}));R.displayName="ToastContainer",R.defaultProps={position:"top-right",transition:A,autoClose:5e3,closeButton:E,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let M,D=new Map,I=[],L=1;function j(){return""+L++}function N(e){return e&&(u(e.toastId)||l(e.toastId))?e.toastId:j()}function F(e,t){return D.size>0?g.emit(0,e,t):I.push({content:e,options:t}),t.toastId}function B(e,t){return{...t,type:t&&t.type||e,toastId:N(t)}}function U(e){return(t,n)=>F(t,B(e,n))}function z(e,t){return F(e,B("default",t))}z.loading=(e,t)=>F(e,B("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),z.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=u(i)?z.loading(i,n):z.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void z.dismiss(r);const o={type:e,...s,...n,data:i},a=u(t)?{render:t}:t;return r?z.update(r,{...o,...a}):z(a.render,{...o,...a}),i},d=c(e)?e():e;return d.then((e=>l("success",a,e))).catch((e=>l("error",o,e))),d},z.success=U("success"),z.info=U("info"),z.error=U("error"),z.warning=U("warning"),z.warn=z.warning,z.dark=(e,t)=>F(e,B("default",{theme:"dark",...t})),z.dismiss=e=>{D.size>0?g.emit(1,e):I=I.filter((t=>null!=e&&t.options.toastId!==e))},z.clearWaitingQueue=function(e){return void 0===e&&(e={}),g.emit(5,e)},z.isActive=e=>{let t=!1;return D.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},z.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=D.get(n||M);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:j()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,F(a,o)}}),0)},z.done=e=>{z.update(e,{progress:1})},z.onChange=e=>(g.on(4,e),()=>{g.off(4,e)}),z.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},z.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},g.on(2,(e=>{M=e.containerId||e,D.set(M,e),I.forEach((e=>{g.emit(0,e.content,e.options)})),I=[]})).on(3,(e=>{D.delete(e.containerId||e),0===D.size&&g.off(0).off(1).off(5)})),t.Bounce=A,t.Flip=P,t.Icons=y,t.Slide=T,t.ToastContainer=R,t.Zoom=O,t.collapseToast=p,t.cssTransition=h,t.toast=z,t.useToast=x,t.useToastContainer=b},75465:(e,t,n)=>{var r=n(12244),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(62489),o=0,a=function(e){return e.topbar||i};function s(e){return r.useEffect((function(){return 0===o&&a(e).show(),o++,function(){0==--o&&a(e).hide()}}),[]),null}s.config=i.config,e.exports=s},7411:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSSTransition:()=>k,ReplaceTransition:()=>D,SwitchTransition:()=>q,Transition:()=>_,TransitionGroup:()=>R,config:()=>d});var r=n(7896),i=n(31461),o=n(81665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(12244),l=n.n(s),u=n(53741),c=n.n(u);const d={disabled:!1},f=l().createContext(null);var p=function(e){return e.scrollTop},h="unmounted",m="exited",g="entering",v="entered",y="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=m,r.appearStatus=g):i=v:i=t.unmountOnExit||t.mountOnEnter?h:m,r.state={status:i},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:m}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==g&&n!==v&&(t=g):n!==g&&n!==v||(t=y)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===g){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c().findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||d.disabled?this.safeSetState({status:v},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:g},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:v},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c().findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:y},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l().createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):l().cloneElement(l().Children.only(n),r))},t}(l().Component);function w(){}b.contextType=f,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w},b.UNMOUNTED=h,b.EXITED=m,b.ENTERING=g,b.ENTERED=v,b.EXITING=y;const _=b;var x=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&p(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&x(e,r),i&&x(e,i),o&&x(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return l().createElement(_,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l().Component);E.defaultProps={classNames:""},E.propTypes={};const k=E;var C=n(80753);function S(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function A(e,t,n){return null!=n[t]?n[t]:e.props[t]}function T(e,t,n){var r=S(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,s.isValidElement)(a)){var l=o in t,u=o in r,c=t[o],d=(0,s.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,s.isValidElement)(c)&&(i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:A(a,"exit",e),enter:A(a,"enter",e)})):i[o]=(0,s.cloneElement)(a,{in:!1}):i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:A(a,"exit",e),enter:A(a,"enter",e)})}})),i}var O=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},P=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,C.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,S(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:A(e,"appear",n),enter:A(e,"enter",n),exit:A(e,"exit",n)})}))):T(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=S(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=O(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l().createElement(f.Provider,{value:o},a):l().createElement(f.Provider,{value:o},l().createElement(t,r,a))},t}(l().Component);P.propTypes={},P.defaultProps={component:"div",childFactory:function(e){return e}};const R=P;var M=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,o.Z)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l().Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:c().findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,i.Z)(e,["children","in"]),o=l().Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l().createElement(R,r,n?l().cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l().cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l().Component);M.propTypes={};const D=M;var I,L,j="out-in",N="in-out",F=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},B=((I={})[j]=function(e){var t=e.current,n=e.changeState;return l().cloneElement(t,{in:!1,onExited:F(t,"onExited",(function(){n(g,null)}))})},I[N]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l().cloneElement(r,{in:!0,onEntered:F(r,"onEntered",(function(){n(g)}))})]},I),U=((L={})[j]=function(e){var t=e.children,n=e.changeState;return l().cloneElement(t,{in:!0,onEntered:F(t,"onEntered",(function(){n(v,l().cloneElement(t,{in:!0}))}))})},L[N]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l().cloneElement(t,{in:!1,onExited:F(t,"onExited",(function(){r(v,l().cloneElement(n,{in:!0}))}))}),l().cloneElement(n,{in:!0})]},L),z=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:v,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===g&&e.mode===N?{status:g}:!t.current||((n=t.current)===(r=e.children)||l().isValidElement(n)&&l().isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l().cloneElement(e.children,{in:!0})}:{status:y};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,s={children:n,current:a,changeState:this.changeState,status:o};switch(o){case g:e=U[r](s);break;case y:e=B[r](s);break;case v:e=a}return l().createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(l().Component);z.propTypes={},z.defaultProps={mode:j};const q=z},6738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,isHeightAndWidthProps:()=>f,isHeightOnlyProps:()=>p,isWidthOnlyProps:()=>h});var r=n(12244);let i;i="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let o=null,a=null;const s=i.clearTimeout,l=i.setTimeout,u=i.cancelAnimationFrame||i.mozCancelAnimationFrame||i.webkitCancelAnimationFrame,c=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame;null==u||null==c?(o=s,a=function(e){return l(e,20)}):(o=function([e,t]){u(e),s(t)},a=function(e){const t=c((function(){s(n),e()})),n=l((function(){u(t),e()}),20);return[t,n]});class d extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,i,o,a;const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(r=s.paddingLeft)&&void 0!==r?r:"0"),u=parseFloat(null!==(i=s.paddingRight)&&void 0!==i?i:"0"),c=parseFloat(null!==(o=s.paddingTop)&&void 0!==o?o:"0"),d=parseFloat(null!==(a=s.paddingBottom)&&void 0!==a?a:"0"),f=this._parentNode.getBoundingClientRect(),p=f.height-c-d,h=f.width-l-u,m=this._parentNode.offsetHeight-c-d,g=this._parentNode.offsetWidth-l-u;(e||this.state.height===m&&this.state.scaledHeight===p)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:p,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:p,scaledWidth:h,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=function(e){let t,n,r,s,l,u,c;const d="undefined"!=typeof document&&document.attachEvent;if(!d){u=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},c=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;u(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=a((function(){l(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,i="";r="animationstart";const d="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<d.length;n++)if(void 0!==t.style[d[n]+"AnimationName"]){p=d[n],i="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+i+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",s=i+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,a){if(d)o.attachEvent("onresize",a);else{if(!o.__resizeTriggers__){const a=o.ownerDocument,l=i.getComputedStyle(o);l&&"static"===l.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],o=n.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(n.createTextNode(r)),i.appendChild(o)}}(a),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=a.createElement("div")).className="resize-triggers";const d=a.createElement("div");d.className="expand-trigger",d.appendChild(a.createElement("div"));const f=a.createElement("div");f.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(f),o.appendChild(o.__resizeTriggers__),u(o),o.addEventListener("scroll",c,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&u(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(d)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,nonce:a,onResize:s,style:l={},tagName:u="div",...c}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return i||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),(0,r.createElement)(u,{ref:this._setRef,style:{...m,...l},...c},!v&&e(g))}}function f(e){return e&&!0!==e.disableHeight&&!0!==e.disableWidth}function p(e){return e&&!0!==e.disableHeight&&!0===e.disableWidth}function h(e){return e&&!0===e.disableHeight&&!0!==e.disableWidth}},94076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Waypoint:()=>E});var r=n(81665),i=!("undefined"==typeof window||!window.document||!window.document.createElement),o=void 0;function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var l="__consolidated_events_handlers__";function u(e,t,n,r){e[l]||(e[l]=new s(e));var a=function(e){if(e)return void 0===o&&(o=function(){if(!i)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o?e:!!e.capture}(r);return e[l].add(t,n,a)}var c=n(12244),d=n.n(c),f=n(94237);function p(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var h,m="above",g="inside",v="below",y="invisible";function b(e){return"string"==typeof e.type}var w=[];function _(e){w.push(e),h||(h=setTimeout((function(){var e;for(h=null;e=w.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=w.indexOf(e);-1!==n&&(w.splice(n,1),!w.length&&h&&(clearTimeout(h),h=null))}}}var x="undefined"!=typeof window,E=function(e){function t(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}(0,r.Z)(t,e);var i=t.prototype;return i.componentDidMount=function(){var e=this;x&&(this.cancelOnNextTick=_((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!b(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=u(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=u(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))},i.componentDidUpdate=function(){var e=this;x&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=_((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))},i.componentWillUnmount=function(){x&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},i._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,r=e.scrollableAncestor;if(r)return function(e){return"window"===e?n.g.window:e}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(t?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return i}return window},i._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?y:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?g:e.viewportBottom<e.waypointTop?v:e.waypointTop<e.viewportTop?m:y}(t),r=this._previousPosition,i=this.props,o=(i.debug,i.onPositionChange),a=i.onEnter,s=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var u={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};o.call(this,u),n===g?a.call(this,u):r===g&&s.call(this,u),l&&(r===v&&n===m||r===m&&n===v)&&(a.call(this,{currentPosition:g,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:g,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}},i._getBounds=function(){var e,t,n=this.props,r=n.horizontal,i=(n.debug,this._ref.getBoundingClientRect()),o=i.left,a=i.top,s=i.right,l=i.bottom,u=r?o:a,c=r?s:l;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,f=d.bottomOffset;return{waypointTop:u,waypointBottom:c,viewportTop:t+p(d.topOffset,e),viewportBottom:t+e-p(f,e)}},i.render=function(){var e=this,t=this.props.children;return t?b(t)||(0,f.isForwardRef)(t)?d().cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}}):d().cloneElement(t,{innerRef:this.refElement}):d().createElement("span",{ref:this.refElement,style:{fontSize:0}})},t}(d().PureComponent);E.above=m,E.below=v,E.inside=g,E.invisible=y,E.defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},E.displayName="Waypoint"},61377:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isForwardRef=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}(e)===c}},94237:(e,t,n)=>{"use strict";e.exports=n(61377)},50166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FixedSizeGrid:()=>I,FixedSizeList:()=>L,VariableSizeGrid:()=>S,VariableSizeList:()=>D,areEqual:()=>B,shouldComponentUpdate:()=>U});var r=n(7896),i=n(80753),o=n(81665),a=n(36631),s=n(12244),l=n(31461),u="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function c(e){cancelAnimationFrame(e.id)}function d(e,t){var n=u(),r={id:requestAnimationFrame((function i(){u()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var f=-1;function p(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}var h=null;function m(e){if(void 0===e&&(e=!1),null===h||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?h="positive-descending":(t.scrollLeft=1,h=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),h}return h}var g=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function v(e){var t,n=e.getColumnOffset,l=e.getColumnStartIndexForOffset,u=e.getColumnStopIndexForStartIndex,f=e.getColumnWidth,h=e.getEstimatedTotalHeight,v=e.getEstimatedTotalWidth,b=e.getOffsetForColumnAndAlignment,w=e.getOffsetForRowAndAlignment,_=e.getRowHeight,x=e.getRowOffset,E=e.getRowStartIndexForOffset,k=e.getRowStopIndexForStartIndex,C=e.initInstanceProps,S=e.shouldResetStyleCacheOnItemSizeChange,A=e.validateProps;return(t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=C(r.props,(0,i.Z)(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:(0,i.Z)(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,a.Z)((function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=(0,a.Z)((function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,o=r.props,a=o.columnWidth,s=o.direction,l=o.rowHeight,u=r._getItemStyleCache(S&&a,S&&s,S&&l),c=e+":"+t;if(u.hasOwnProperty(c))i=u[c];else{var d=n(r.props,t,r._instanceProps),p="rtl"===s;u[c]=i={position:"absolute",left:p?void 0:d,right:p?d:void 0,top:x(r.props,e,r._instanceProps),height:_(r.props,e,r._instanceProps),width:f(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,a.Z)((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(m()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&c(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=d(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return y(e,t),A(e),null};var T=t.prototype;return T.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},T.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,s=o.height,l=o.rowCount,u=o.width,c=this.state,d=c.scrollLeft,f=c.scrollTop,m=p();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,l-1)));var g=h(this.props,this._instanceProps),y=v(this.props,this._instanceProps)>u?m:0,_=g>s?m:0;this.scrollTo({scrollLeft:void 0!==r?b(this.props,r,n,d,this._instanceProps,_):d,scrollTop:void 0!==i?w(this.props,i,n,f,this._instanceProps,y):f})},T.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},T.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(m()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},T.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},T.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,f=e.itemKey,p=void 0===f?g:f,m=e.outerElementType,y=e.outerTagName,b=e.rowCount,w=e.style,_=e.useIsScrolling,x=e.width,E=this.state.isScrolling,k=this._getHorizontalRangeToRender(),C=k[0],S=k[1],A=this._getVerticalRangeToRender(),T=A[0],O=A[1],P=[];if(i>0&&b)for(var R=T;R<=O;R++)for(var M=C;M<=S;M++)P.push((0,s.createElement)(t,{columnIndex:M,data:d,isScrolling:_?E:void 0,key:p({columnIndex:M,data:d,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,M)}));var D=h(this.props,this._instanceProps),I=v(this.props,this._instanceProps);return(0,s.createElement)(m||y||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,r.Z)({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},w)},(0,s.createElement)(u||c||"div",{children:P,ref:l,style:{height:D,pointerEvents:E?"none":void 0,width:I}}))},T._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],f=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,s,d,f,l,u,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,w=m.verticalScrollDirection;this._callOnScroll(v,y,g,w,b)}},T._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,i=e.overscanCount,o=e.rowCount,a=this.state,s=a.horizontalScrollDirection,c=a.isScrolling,d=a.scrollLeft,f=n||r||i||1;if(0===t||0===o)return[0,0,0,0];var p=l(this.props,d,this._instanceProps),h=u(this.props,p,d,this._instanceProps),m=c&&"backward"!==s?1:Math.max(1,f),g=c&&"forward"!==s?1:Math.max(1,f);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,h]},T._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=E(this.props,u,this._instanceProps),f=k(this.props,d,u,this._instanceProps),p=s&&"backward"!==l?1:Math.max(1,c),h=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-p),Math.max(0,Math.min(o-1,f+h)),d,f]},t}(s.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var y=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},b=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},w=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},_=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},x=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?E(e,t,n,o,0,r):k(e,t,n,Math.max(0,o),r)},E=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=_(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},k=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&_(e,t,r,n).offset<i;)r+=a,a*=2;return E(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},C=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=_(e,t,n,o),u="column"===e?w(t,o):b(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},S=v({getColumnOffset:function(e,t,n){return _("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return x("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=_("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:b,getEstimatedTotalWidth:w,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return C("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return C("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return _("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return x("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=_("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),A=function(e,t){return e};function T(e){var t,n=e.getItemOffset,l=e.getEstimatedTotalSize,u=e.getItemSize,f=e.getOffsetForIndexAndAlignment,h=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,v=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=v(r.props,(0,i.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,i.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,a.Z)((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=(0,a.Z)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,o=i.direction,a=i.itemSize,s=i.layout,l=r._getItemStyleCache(y&&a,y&&s,y&&o);if(l.hasOwnProperty(e))t=l[e];else{var c=n(r.props,e,r._instanceProps),d=u(r.props,e,r._instanceProps),f="horizontal"===o||"horizontal"===s,p="rtl"===o,h=f?c:0;l[e]=t={position:"absolute",left:p?void 0:h,right:p?h:void 0,top:f?0:c,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,a.Z)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(m()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&c(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=d(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return O(e,t),b(e),null};var w=t.prototype;return w.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},w.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===i?s.scrollWidth>s.clientWidth?p():0:s.scrollHeight>s.clientHeight?p():0}this.scrollTo(f(this.props,e,t,o,this._instanceProps,a))},w.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},w.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(m()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},w.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},w.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemCount,f=e.itemData,p=e.itemKey,h=void 0===p?A:p,m=e.layout,g=e.outerElementType,v=e.outerTagName,y=e.style,b=e.useIsScrolling,w=e.width,_=this.state.isScrolling,x="horizontal"===i||"horizontal"===m,E=x?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),C=k[0],S=k[1],T=[];if(d>0)for(var O=C;O<=S;O++)T.push((0,s.createElement)(t,{data:f,key:h(O,f),index:O,isScrolling:b?_:void 0,style:this._getItemStyle(O)}));var P=l(this.props,this._instanceProps);return(0,s.createElement)(g||v||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,r.Z)({position:"relative",height:o,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,s.createElement)(u||c||"div",{children:T,ref:a,style:{height:x?"100%":P,pointerEvents:_?"none":void 0,width:x?P:"100%"}}))},w._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},w._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=h(this.props,a,this._instanceProps),l=g(this.props,s,a,this._instanceProps),u=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-u),Math.max(0,Math.min(t-1,l+c)),s,l]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var O=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},R=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=P(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},M=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},D=T({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=P(e,t,i),f=M(e,i),p=Math.max(0,Math.min(f-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===n&&(n=r>=h-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?R(e,t,i,0,n):function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&P(e,n,t).offset<r;)n+=o,o*=2;return R(e,t,Math.min(n,i-1),Math.floor(n/2),r)}(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=P(e,t,r),d=n+u,f=c.offset+c.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),I=v({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){var a=e.columnCount,s=e.columnWidth,l=e.width,u=Math.max(0,a*s-l),c=Math.min(u,t*s),d=Math.max(0,t*s-l+o+s);switch("smart"===n&&(n=r>=d-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(l/2)?0:f>u+Math.floor(l/2)?u:f;default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){var a=e.rowHeight,s=e.height,l=e.rowCount,u=Math.max(0,l*a-s),c=Math.min(u,t*a),d=Math.max(0,t*a-s+o+a);switch("smart"===n&&(n=r>=d-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(s/2)?0:f>u+Math.floor(s/2)?u:f;default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,i=e.columnCount,o=e.width,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,i=e.rowCount,o=e.height,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),L=T({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.itemCount,u=e.itemSize,c=e.layout,d=e.width,f="horizontal"===a||"horizontal"===c?d:s,p=Math.max(0,l*u-f),h=Math.min(p,t*u),m=Math.max(0,t*u-f+u+o);switch("smart"===n&&(n=r>=m-f&&r<=h+f?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(f/2)?0:g>p+Math.floor(f/2)?p:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,u=t*a,c="horizontal"===r||"horizontal"===s?l:i,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function j(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var N=["style"],F=["style"];function B(e,t){var n=e.style,r=(0,l.Z)(e,N),i=t.style,o=(0,l.Z)(t,F);return!j(n,i)&&!j(r,o)}function U(e,t){return!B(this.props,e)||j(this.state,t)}},11837:(e,t,n)=>{"use strict";var r=n(12244),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:l,_owner:a.current}}},52322:(e,t,n)=>{"use strict";e.exports=n(11837)},81167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=(r=n(15253))&&r.__esModule?r:{default:r},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,i.default)(e,(function(e,n){var r={};(0,i.default)(e,(function(e,t){var n=a[t];n?r=o({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},72523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(12244))&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return o.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},o.default.createElement(e,i({},l.props,l.state)))},a(l,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(o.default.Component)};t.default=s},92106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(12244))&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return o.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},o.default.createElement(e,i({},l.props,l.state)))},a(l,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(o.default.Component)};t.default=s},30378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(85505)),i=s(n(15253)),o=s(n(97030)),a=s(n(16760));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},7151:(e,t,n)=>{"use strict";t.tz=void 0;var r=u(n(30378)),i=u(n(87214)),o=u(n(81167)),a=u(n(92106)),s=u(n(72523)),l=u(n(76983));function u(e){return e&&e.__esModule?e:{default:e}}a.default,t.tz=a.default,s.default,l.default;t.ZP=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,i.default)(e,s);return(0,o.default)(l)}},76983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},87214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(15253)),i=a(n(9850)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=s},58267:(e,t,n)=>{"use strict";var r=n(74081).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},43292:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.r(t),n.d(t,{default:()=>o});var i=r();i.withExtraArgument=r;const o=i},74081:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>u,applyMiddleware:()=>g,bindActionCreators:()=>h,combineReducers:()=>f,compose:()=>m,createStore:()=>c,legacy_createStore:()=>d});var r=n(56666);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(c)(e,t)}if("function"!=typeof e)throw new Error(a(2));var i=e,o=t,l=[],d=l,f=!1;function p(){d===l&&(d=l.slice())}function h(){if(f)throw new Error(a(3));return o}function m(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),l=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,o=i(o,e)}finally{f=!1}for(var t=l=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:u.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));i=e,g({type:u.REPLACE})}})[s]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},r}var d=c;function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},l=0;l<s.length;l++){var u=s[l],c=n[u],d=e[u],f=c(d,t);if(void 0===f)throw t&&t.type,new Error(a(14));i[u]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=p(i,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=m.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},90682:e=>{e.exports=["br","wbr","li","table","caption","colgroup","col","thead","tbody","tfoot","tr","td","th","summary","optgroup","option","html","head","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul","li","th","td"]},3178:e=>{e.exports=["button","input","select","textarea"]},26653:(e,t,n)=>{"use strict";var r=n(85909),i=n(34713),o=n(2547),a=n(67273),s=n(90682),l=n(3178),u=n(52827);e.exports=function(e){var t,n=(t=(e||{}).newlines?x:E,function(e){return String(e).replace(/[\t\n\v\f\r ]+/g,t)});return function(e){m(e,{collapse:n,whitespace:"normal"})}};var c=o(["doctype","comment"]),d=o(["element","root"]),f=o(["root"]),p=o(["element"]),h=o(["text"]);function m(e,t){var n;if(d(e))return n=Object.assign({},t),(f(e)||b(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){var n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:return t.whitespace}}(e,t),function(e,t){for(var n,r=t.before,i=t.after,o=e.children,a=o.length,s=-1;++s<a;)(n=m(o[s],Object.assign({},t,{before:r,after:g(o,s,i)}))).remove?(o.splice(s,1),s--,a--):n.ignore||(r=n.stripAtStart),y(o[s])&&(r=!1);return{remove:!1,ignore:!1,stripAtStart:r||i}}(e,n);if(h(e)){if("normal"===t.whitespace)return function(e,t){var n=t.collapse(e.value),r=0,i=n.length,o={remove:!1,ignore:!1,stripAtStart:!1};return t.before&&_(n.charAt(0))&&r++,r!==i&&_(n.charAt(i-1))&&(t.after?i--:o.stripAtStart=!0),r===i?o.remove=!0:e.value=n.slice(r,i),o}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:c(e),stripAtStart:!1}}function g(e,t,n){for(var r,i,o=e.length;++t<o;)if(void 0===(i=v(r=e[t]))&&r.children&&!w(r)&&(i=g(r.children,-1)),"boolean"==typeof i)return i;return n}function v(e){if(p(e)){if(y(e))return!1;if(b(e))return!0}else if(h(e)){if(!a(e))return!1}else if(!c(e))return!1}function y(e){return i(e)||r(e,l)}function b(e){return r(e,s)}function w(e){var t=e.properties||{};return c(e)||r(e,u)||t.hidden}function _(e){return" "===e||"\n"===e}function x(e){var t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function E(){return" "}},52827:e=>{e.exports=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"]},52824:(e,t,n)=>{"use strict";var r=n(19776),i=n(68834),o=n(51960),a=n(99026),s={2:!0,1:!1,0:null};function l(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=o(e,this.data("settings")),n=t.position;n="boolean"!=typeof n||n,this.Parser=function(e,o){var u=t.fragment?"parseFragment":"parse",c=t.emitParseErrors?function(n){var r,i,u=n.code,c=u.replace(/-[a-z]/g,l),d=t[c],f=null==d||d,p="number"==typeof f?f:f?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};function g(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}p&&(r=a[c]||{reason:"",description:""},(i=o.message(g(r.reason),{start:h,end:m})).source="parse-error",i.ruleId=u,i.fatal=s[p],i.note=g(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+u)}:null,d=new i({sourceCodeLocationInfo:n,onParseError:c,scriptingEnabled:!1});return r(d[u](e),{space:t.space,file:o,verbose:t.verbose})}}},62100:(e,t,n)=>{"use strict";var r=n(51389);e.exports=function(e,t){var n,i;return"function"==typeof e?(i=e,n=t||{}):n=e||{},void 0!==n.document&&null!==n.document||(n=Object.assign({},n,{document:!0})),i?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(i,n):function(e){return function(t){return r(t,e)}}(n)}},40940:(e,t,n)=>{"use strict";var r,i=n(53977),o=n(69242),a=n(73965);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},98431:(e,t,n)=>{"use strict";var r=n(30603),i=n(51960),o=n(49879);function a(e){var t=this.data("settings"),n=r(o);n.prototype.options=i(n.prototype.options,t,e),this.Parser=n}e.exports=a,a.Parser=o},86261:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},35943:(e,t,n)=>{"use strict";var r=n(51960),i=n(70930);e.exports=function(e){return n.raw=function(e,n,a){return i(e,r(a,{position:t(n),warning:o}))},n;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(n,r,a){i(n,{position:t(r),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function o(t,n,r){3!==r&&e.file.message(t,n)}}},87732:(e,t,n)=>{"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(86261)}},76715:e=>{"use strict";e.exports=function(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}},15331:e=>{"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},47315:e=>{"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},85946:e=>{"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n||r<n?r:n}},38932:e=>{"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},88906:e=>{"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r||n<r?n:r}},73251:e=>{"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n||r<n?r:n}},20309:e=>{"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},38693:e=>{"use strict";e.exports=function(e,n){var r,i=t.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(r=e.indexOf(t[o],n))&&(r<a||-1===a)&&(a=r);return a};var t=["https://","http://","mailto:"]},10665:(e,t,n)=>{"use strict";var r=n(51960),i=n(5281);e.exports=function(){var e,t=this,n=String(t.file),s={line:1,column:1,offset:0},l=r(s);return 65279===(n=n.replace(a,o)).charCodeAt(0)&&(n=n.slice(1),l.column++,l.offset++),e={type:"root",children:t.tokenizeBlock(n,l),position:{start:s,end:t.eof||r(s)}},t.options.position||i(e,!0),e};var o="\n",a=/\r\n|\r/g},49879:(e,t,n)=>{"use strict";var r=n(51960),i=n(82344),o=n(31982),a=n(92084),s=n(35943),l=n(9223);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function d(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(92375),c.parse=n(10665),c.options=n(87732),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(79413),indentedCode:n(43180),fencedCode:n(97547),blockquote:n(11756),atxHeading:n(56857),thematicBreak:n(16050),list:n(18356),setextHeading:n(45418),html:n(37660),footnote:n(74266),definition:n(42818),table:n(19054),paragraph:n(31409)},c.inlineTokenizers={escape:n(87597),autoLink:n(26572),url:n(76899),html:n(27659),link:n(22541),reference:n(2196),strong:n(26033),emphasis:n(72504),deletion:n(78931),code:n(90332),break:n(22230),text:n(67510)},c.blockMethods=d(c.blockTokenizers),c.inlineMethods=d(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},92375:(e,t,n)=>{"use strict";var r=n(51960),i=n(4608),o=n(87732);e.exports=function(e){var t,n,a=this,s=a.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=s[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return a.options=e,a.escape=i(e),a}},26572:(e,t,n)=>{"use strict";var r=n(74898),i=n(70930),o=n(20309);e.exports=f,f.locator=o,f.notInLink=!0;var a="<",s=">",l="@",u="/",c="mailto:",d=c.length;function f(e,t,n){var o,f,p,h,m,g=this,v="",y=t.length,b=0,w="",_=!1,x="";if(t.charAt(0)===a){for(b++,v=a;b<y&&(o=t.charAt(b),!(r(o)||o===s||o===l||":"===o&&t.charAt(b+1)===u));)w+=o,b++;if(w){if(x+=w,w="",x+=o=t.charAt(b),b++,o===l)_=!0;else{if(":"!==o||t.charAt(b+1)!==u)return;x+=u,b++}for(;b<y&&(o=t.charAt(b),!r(o)&&o!==s);)w+=o,b++;if(o=t.charAt(b),w&&o===s)return!!n||(p=x+=w,v+=x+o,(f=e.now()).column++,f.offset++,_&&(x.slice(0,d).toLowerCase()===c?(p=p.substr(d),f.column+=d,f.offset+=d):x=c+x),h=g.inlineTokenizers,g.inlineTokenizers={text:h.text},m=g.enterLink(),p=g.tokenizeInline(p,f),g.inlineTokenizers=h,m(),e(v)({type:"link",title:null,url:i(x,{nonTerminated:!1}),children:p}))}}}},11756:(e,t,n)=>{"use strict";var r=n(50311),i=n(14538);e.exports=function(e,t,n){for(var u,c,d,f,p,h,m,g,v,y=this,b=y.offset,w=y.blockTokenizers,_=y.interruptBlockquote,x=e.now(),E=x.line,k=t.length,C=[],S=[],A=[],T=0;T<k&&((c=t.charAt(T))===s||c===a);)T++;if(t.charAt(T)===l){if(n)return!0;for(T=0;T<k;){for(m=T,g=!1,-1===(f=t.indexOf(o,T))&&(f=k);T<k&&((c=t.charAt(T))===s||c===a);)T++;if(t.charAt(T)===l?(T++,g=!0,t.charAt(T)===s&&T++):T=m,p=t.slice(T,f),!g&&!r(p)){T=m;break}if(!g&&(d=t.slice(T),i(_,w,y,[e,d,!0])))break;h=m===T?p:t.slice(m,f),A.push(T-m),C.push(h),S.push(p),T=f+1}for(T=-1,k=A.length,u=e(C.join(o));++T<k;)b[E]=(b[E]||0)+A[T],E++;return v=y.enterBlock(),S=y.tokenizeBlock(S.join(o),x),v(),u({type:"blockquote",children:S})}};var o="\n",a="\t",s=" ",l=">"},22230:(e,t,n)=>{"use strict";var r=n(76715);e.exports=s,s.locator=r;var i=" ",o="\n",a=2;function s(e,t,n){for(var r,s=t.length,l=-1,u="";++l<s;){if((r=t.charAt(l))===o){if(l<a)return;return!!n||e(u+=r)({type:"break"})}if(r!==i)return;u+=r}}},97547:(e,t,n)=>{"use strict";var r=n(67876);e.exports=function(e,t,n){var d,f,p,h,m,g,v,y,b,w,_,x,E,k=this,C=k.options.gfm,S=t.length+1,A=0,T="";if(C){for(;A<S&&((p=t.charAt(A))===a||p===o);)T+=p,A++;if(x=A,(p=t.charAt(A))===s||p===l){for(A++,f=p,d=1,T+=p;A<S&&(p=t.charAt(A))===f;)T+=p,d++,A++;if(!(d<u)){for(;A<S&&((p=t.charAt(A))===a||p===o);)T+=p,A++;for(h="",v="";A<S&&(p=t.charAt(A))!==i&&p!==s&&p!==l;)p===a||p===o?v+=p:(h+=v+p,v=""),A++;if(!(p=t.charAt(A))||p===i){if(n)return!0;for((E=e.now()).column+=T.length,E.offset+=T.length,T+=h,h=k.decode.raw(k.unescape(h),E),v&&(T+=v),v="",w="",_="",y="",b="";A<S;)if(y+=w,b+=_,w="",_="",(p=t.charAt(A))===i){for(y?(w+=p,_+=p):T+=p,v="",A++;A<S&&(p=t.charAt(A))===a;)v+=p,A++;if(w+=v,_+=v.slice(x),!(v.length>=c)){for(v="";A<S&&(p=t.charAt(A))===f;)v+=p,A++;if(w+=v,_+=v,!(v.length<d)){for(v="";A<S&&((p=t.charAt(A))===a||p===o);)w+=p,_+=p,A++;if(!p||p===i)break}}}else y+=p,_+=p,A++;for(T+=y+w,A=-1,S=h.length;++A<S;)if((p=h.charAt(A))===a||p===o)m||(m=h.slice(0,A));else if(m){g=h.slice(A);break}return e(T)({type:"code",lang:m||h||null,meta:g||null,value:r(b)})}}}}};var i="\n",o="\t",a=" ",s="~",l="`",u=3,c=4},43180:(e,t,n)=>{"use strict";var r=n(34076),i=n(67876);e.exports=function(e,t,n){for(var r,u,c,d=-1,f=t.length,p="",h="",m="",g="";++d<f;)if(r=t.charAt(d),c)if(c=!1,p+=m,h+=g,m="",g="",r===o)m=r,g=r;else for(p+=r,h+=r;++d<f;){if(!(r=t.charAt(d))||r===o){g=r,m=r;break}p+=r,h+=r}else if(r===s&&t.charAt(d+1)===r&&t.charAt(d+2)===r&&t.charAt(d+3)===r)m+=l,d+=3,c=!0;else if(r===a)m+=r,c=!0;else{for(u="";r===a||r===s;)u+=r,r=t.charAt(++d);if(r!==o)break;m+=u+r,g+=r}if(h)return!!n||e(p)({type:"code",lang:null,meta:null,value:i(h)})};var o="\n",a="\t",s=" ",l=r(s,4)},90332:(e,t,n)=>{"use strict";var r=n(74898),i=n(15331);e.exports=a,a.locator=i;var o="`";function a(e,t,n){for(var i,a,s,l,u,c,d,f,p=t.length,h=0,m="",g="";h<p&&t.charAt(h)===o;)m+=o,h++;if(m){for(u=m,l=h,m="",f=t.charAt(h),s=0;h<p;){if(c=f,f=t.charAt(h+1),c===o?(s++,g+=c):(s=0,m+=c),s&&f!==o){if(s===l){u+=m+g,d=!0;break}m+=g,g=""}h++}if(!d){if(l%2!=0)return;m=""}if(n)return!0;for(i="",a="",p=m.length,h=-1;++h<p;)c=m.charAt(h),r(c)?a+=c:(a&&(i&&(i+=a),a=""),i+=c);return e(u)({type:"inlineCode",value:i})}}},42818:(e,t,n)=>{"use strict";var r=n(74898),i=n(28999);e.exports=y,y.notInList=!0,y.notInBlock=!0;var o='"',a="'",s="\\",l="\n",u="\t",c=" ",d="[",f="]",p="(",h=")",m=":",g="<",v=">";function y(e,t,n){for(var r,v,y,_,x,E,k,C,S=this,A=S.options.commonmark,T=0,O=t.length,P="";T<O&&((_=t.charAt(T))===c||_===u);)P+=_,T++;if((_=t.charAt(T))===d){for(T++,P+=_,y="";T<O&&(_=t.charAt(T))!==f;)_===s&&(y+=_,T++,_=t.charAt(T)),y+=_,T++;if(y&&t.charAt(T)===f&&t.charAt(T+1)===m){for(E=y,T=(P+=y+f+m).length,y="";T<O&&((_=t.charAt(T))===u||_===c||_===l);)P+=_,T++;if(y="",r=P,(_=t.charAt(T))===g){for(T++;T<O&&b(_=t.charAt(T));)y+=_,T++;if((_=t.charAt(T))===b.delimiter)P+=g+y+_,T++;else{if(A)return;T-=y.length+1,y=""}}if(!y){for(;T<O&&w(_=t.charAt(T));)y+=_,T++;P+=y}if(y){for(k=y,y="";T<O&&((_=t.charAt(T))===u||_===c||_===l);)y+=_,T++;if(x=null,(_=t.charAt(T))===o?x=o:_===a?x=a:_===p&&(x=h),x){if(!y)return;for(T=(P+=y+_).length,y="";T<O&&(_=t.charAt(T))!==x;){if(_===l){if(T++,(_=t.charAt(T))===l||_===x)return;y+=l}y+=_,T++}if((_=t.charAt(T))!==x)return;v=P,P+=y+_,T++,C=y,y=""}else y="",T=P.length;for(;T<O&&((_=t.charAt(T))===u||_===c);)P+=_,T++;return(_=t.charAt(T))&&_!==l?void 0:!!n||(r=e(r).test().end,k=S.decode.raw(S.unescape(k),r,{nonTerminated:!1}),C&&(v=e(v).test().end,C=S.decode.raw(S.unescape(C),v)),e(P)({type:"definition",identifier:i(E),label:E,title:C||null,url:k}))}}}}function b(e){return e!==v&&e!==d&&e!==f}function w(e){return e!==d&&e!==f&&!r(e)}b.delimiter=v},78931:(e,t,n)=>{"use strict";var r=n(74898),i=n(47315);e.exports=s,s.locator=i;var o="~",a="~~";function s(e,t,n){var i,s,l,u="",c="",d="",f="";if(this.options.gfm&&t.charAt(0)===o&&t.charAt(1)===o&&!r(t.charAt(2)))for(i=1,s=t.length,(l=e.now()).column+=2,l.offset+=2;++i<s;){if(!((u=t.charAt(i))!==o||c!==o||d&&r(d)))return!!n||e(a+f+a)({type:"delete",children:this.tokenizeInline(f,l)});f+=c,d=c,c=u}}},72504:(e,t,n)=>{"use strict";var r=n(50311),i=n(2821),o=n(74898),a=n(85946);e.exports=c,c.locator=a;var s="*",l="_",u="\\";function c(e,t,n){var a,c,d,f,p,h,m,g=0,v=t.charAt(g);if(!(v!==s&&v!==l||(c=this.options.pedantic,p=v,d=v,h=t.length,g++,f="",v="",c&&o(t.charAt(g)))))for(;g<h;){if(m=v,!((v=t.charAt(g))!==d||c&&o(m))){if((v=t.charAt(++g))!==d){if(!r(f)||m===d)return;if(!c&&d===l&&i(v)){f+=d;continue}return!!n||((a=e.now()).column++,a.offset++,e(p+f+d)({type:"emphasis",children:this.tokenizeInline(f,a)}))}f+=d}c||v!==u||(f+=v,v=t.charAt(++g)),f+=v,g++}}},87597:(e,t,n)=>{"use strict";var r=n(38932);e.exports=a,a.locator=r;var i="\n",o="\\";function a(e,t,n){var r,a;if(t.charAt(0)===o&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(a=r===i?{type:"break"}:{type:"text",value:r},e(o+r)(a))}},74266:(e,t,n)=>{"use strict";var r=n(74898),i=n(28999);e.exports=h,h.notInList=!0,h.notInBlock=!0;var o="\\",a="\n",s="\t",l=" ",u="[",c="]",d="^",f=":",p=/^( {4}|\t)?/gm;function h(e,t,n){var h,m,g,v,y,b,w,_,x,E,k,C,S=this,A=S.offset;if(S.options.footnotes){for(h=0,m=t.length,g="",v=e.now(),y=v.line;h<m&&(x=t.charAt(h),r(x));)g+=x,h++;if(t.charAt(h)===u&&t.charAt(h+1)===d){for(h=(g+=u+d).length,w="";h<m&&(x=t.charAt(h))!==c;)x===o&&(w+=x,h++,x=t.charAt(h)),w+=x,h++;if(w&&t.charAt(h)===c&&t.charAt(h+1)===f){if(n)return!0;for(E=w,h=(g+=w+c+f).length;h<m&&((x=t.charAt(h))===s||x===l);)g+=x,h++;for(v.column+=g.length,v.offset+=g.length,w="",b="",_="";h<m;){if((x=t.charAt(h))===a){for(_=x,h++;h<m&&(x=t.charAt(h))===a;)_+=x,h++;for(w+=_,_="";h<m&&(x=t.charAt(h))===l;)_+=x,h++;if(0===_.length)break;w+=_}w&&(b+=w,w=""),b+=x,h++}return g+=b,b=b.replace(p,(function(e){return A[y]=(A[y]||0)+e.length,y++,""})),k=e(g),C=S.enterBlock(),b=S.tokenizeBlock(b,v),C(),k({type:"footnoteDefinition",identifier:i(E),label:E,children:b})}}}}},56857:e=>{"use strict";e.exports=function(e,a,s){for(var l,u,c,d=this.options.pedantic,f=a.length+1,p=-1,h=e.now(),m="",g="";++p<f;){if((l=a.charAt(p))!==r&&l!==n){p--;break}m+=l}for(c=0;++p<=f;){if((l=a.charAt(p))!==i){p--;break}m+=l,c++}if(!(c>o)&&c&&(d||a.charAt(p+1)!==i)){for(f=a.length+1,u="";++p<f;){if((l=a.charAt(p))!==r&&l!==n){p--;break}u+=l}if(d||0!==u.length||!l||l===t){if(s)return!0;for(m+=u,u="",g="";++p<f&&(l=a.charAt(p))&&l!==t;)if(l===r||l===n||l===i){for(;l===r||l===n;)u+=l,l=a.charAt(++p);if(d||!g||u||l!==i){for(;l===i;)u+=l,l=a.charAt(++p);for(;l===r||l===n;)u+=l,l=a.charAt(++p);p--}else g+=l}else g+=u+l,u="";return h.column+=m.length,h.offset+=m.length,e(m+=g+u)({type:"heading",depth:c,children:this.tokenizeInline(g,h)})}}};var t="\n",n="\t",r=" ",i="#",o=6},45418:e=>{"use strict";e.exports=function(e,u,c){for(var d,f,p,h,m,g=e.now(),v=u.length,y=-1,b="";++y<v;){if((p=u.charAt(y))!==r||y>=a){y--;break}b+=p}for(d="",f="";++y<v;){if((p=u.charAt(y))===t){y--;break}p===r||p===n?f+=p:(d+=f+p,f="")}if(g.column+=b.length,g.offset+=b.length,b+=d+f,p=u.charAt(++y),h=u.charAt(++y),p===t&&(h===i||h===o)){for(b+=p,f=h,m=h===i?s:l;++y<v;){if((p=u.charAt(y))!==h){if(p!==t)return;y--;break}f+=p}return!!c||e(b+f)({type:"heading",depth:m,children:this.tokenizeInline(d,g)})}};var t="\n",n="\t",r=" ",i="=",o="-",a=3,s=1,l=2},37660:(e,t,n)=>{"use strict";var r=n(80889).g;e.exports=function(e,t,n){for(var r,w,_,x,E,k,C,S=this.options.blocks.join("|"),A=new RegExp("^</?("+S+")(?=(\\s|/?>|$))","i"),T=t.length,O=0,P=[[l,u,!0],[c,d,!0],[f,p,!0],[h,m,!0],[g,v,!0],[A,y,!0],[b,y,!1]];O<T&&((x=t.charAt(O))===i||x===o);)O++;if(t.charAt(O)===s){for(r=-1===(r=t.indexOf(a,O+1))?T:r,w=t.slice(O,r),_=-1,E=P.length;++_<E;)if(P[_][0].test(w)){k=P[_];break}if(k){if(n)return k[2];if(O=r,!k[1].test(w))for(;O<T;){if(r=-1===(r=t.indexOf(a,O+1))?T:r,w=t.slice(O+1,r),k[1].test(w)){w&&(O=r);break}O=r}return e(C=t.slice(0,O))({type:"html",value:C})}}};var i="\t",o=" ",a="\n",s="<",l=/^<(script|pre|style)(?=(\s|>|$))/i,u=/<\/(script|pre|style)>/i,c=/^<!--/,d=/-->/,f=/^<\?/,p=/\?>/,h=/^<![A-Za-z]/,m=/>/,g=/^<!\[CDATA\[/,v=/\]\]>/,y=/^$/,b=new RegExp(r.source+"\\s*$")},27659:(e,t,n)=>{"use strict";var r=n(73756),i=n(20309),o=n(80889)._;e.exports=f,f.locator=i;var a="<",s="?",l="!",u="/",c=/^<a /i,d=/^<\/a>/i;function f(e,t,n){var i,f,p=this,h=t.length;if(!(t.charAt(0)!==a||h<3)&&(i=t.charAt(1),(r(i)||i===s||i===l||i===u)&&(f=t.match(o))))return!!n||(f=f[0],!p.inLink&&c.test(f)?p.inLink=!0:p.inLink&&d.test(f)&&(p.inLink=!1),e(f)({type:"html",value:f}))}},22541:(e,t,n)=>{"use strict";var r=n(74898),i=n(88906);e.exports=v,v.locator=i;var o="\n",a="!",s='"',l="'",u="(",c=")",d="<",f=">",p="[",h="\\",m="]",g="`";function v(e,t,n){var i,v,y,b,w,_,x,E,k,C,S,A,T,O,P,R,M,D,I=this,L="",j=0,N=t.charAt(0),F=I.options.pedantic,B=I.options.commonmark,U=I.options.gfm;if(N===a&&(E=!0,L=N,N=t.charAt(++j)),N===p&&(E||!I.inLink)){for(L+=N,O="",j++,S=t.length,T=0,(R=e.now()).column+=j,R.offset+=j;j<S;){if(_=N=t.charAt(j),N===g){for(v=1;t.charAt(j+1)===g;)_+=N,j++,v++;y?v>=y&&(y=0):y=v}else if(N===h)j++,_+=t.charAt(j);else if(y&&!U||N!==p){if((!y||U)&&N===m){if(!T){if(!F)for(;j<S&&(N=t.charAt(j+1),r(N));)_+=N,j++;if(t.charAt(j+1)!==u)return;_+=u,i=!0,j++;break}T--}}else T++;O+=_,_="",j++}if(i){for(k=O,L+=O+_,j++;j<S&&(N=t.charAt(j),r(N));)L+=N,j++;if(O="",b=L,(N=t.charAt(j))===d){for(j++,b+=d;j<S&&(N=t.charAt(j))!==f;){if(B&&N===o)return;O+=N,j++}if(t.charAt(j)!==f)return;L+=d+O+f,P=O,j++}else{for(N=null,_="";j<S&&(N=t.charAt(j),!_||!(N===s||N===l||B&&N===u));){if(r(N)){if(!F)break;_+=N}else{if(N===u)T++;else if(N===c){if(0===T)break;T--}O+=_,_="",N===h&&(O+=h,N=t.charAt(++j)),O+=N}j++}P=O,j=(L+=O).length}for(O="";j<S&&(N=t.charAt(j),r(N));)O+=N,j++;if(N=t.charAt(j),L+=O,O&&(N===s||N===l||B&&N===u))if(j++,O="",C=N===u?c:N,w=L+=N,B){for(;j<S&&(N=t.charAt(j))!==C;)N===h&&(O+=h,N=t.charAt(++j)),j++,O+=N;if((N=t.charAt(j))!==C)return;for(A=O,L+=O+N,j++;j<S&&(N=t.charAt(j),r(N));)L+=N,j++}else for(_="";j<S;){if((N=t.charAt(j))===C)x&&(O+=C+_,_=""),x=!0;else if(x){if(N===c){L+=O+C+_,A=O;break}r(N)?_+=N:(O+=C+_+N,_="",x=!1)}else O+=N;j++}if(t.charAt(j)===c)return!!n||(L+=c,P=I.decode.raw(I.unescape(P),e(b).test().end,{nonTerminated:!1}),A&&(w=e(w).test().end,A=I.decode.raw(I.unescape(A),w)),D={type:E?"image":"link",title:A||null,url:P},E?D.alt=I.decode.raw(I.unescape(k),R)||null:(M=I.enterLink(),D.children=I.tokenizeInline(k,R),M()),e(L)(D))}}}},18356:(e,t,n)=>{"use strict";var r=n(50311),i=n(34076),o=n(61278),a=n(30491),s=n(97621),l=n(14538);e.exports=function(e,t,n){for(var i,a,s,y,w,_,x,E,k,S,A,T,O,P,R,M,D,I,L,j,N,F,B=this,U=B.options.commonmark,z=B.options.pedantic,q=B.blockTokenizers,W=B.interruptList,$=0,H=t.length,G=null,V=0,K=!1;$<H;){if((s=t.charAt($))===g)V+=b-V%b;else{if(s!==h)break;V++}$++}if(!(V>=b)){if((s=t.charAt($))===u||s===d||s===f)y=s,a=!1;else{for(a=!0,i="";$<H&&(s=t.charAt($),o(s));)i+=s,$++;if(s=t.charAt($),!i||!(s===p||U&&s===v))return;G=parseInt(i,10),y=s}if((s=t.charAt(++$))===h||s===g||!(z||s!==m&&""!==s)){if(n)return!0;for($=0,O=[],P=[],R=[];$<H;){for(_=$,x=!1,F=!1,-1===(w=t.indexOf(m,$))&&(w=H),N=$+b,V=0;$<H;){if((s=t.charAt($))===g)V+=b-V%b;else{if(s!==h)break;V++}$++}if(V>=b&&(F=!0),M&&V>=M.indent&&(F=!0),s=t.charAt($),E=null,!F){if(s===u||s===d||s===f)E=s,$++,V++;else{for(i="";$<H&&(s=t.charAt($),o(s));)i+=s,$++;s=t.charAt($),$++,i&&(s===p||U&&s===v)&&(E=s,V+=i.length+1)}if(E)if((s=t.charAt($))===g)V+=b-V%b,$++;else if(s===h){for(N=$+b;$<N&&t.charAt($)===h;)$++,V++;$===N&&t.charAt($)===h&&($-=b-1,V-=b-1)}else s!==m&&""!==s&&(E=null)}if(E){if(!z&&y!==E)break;x=!0}else U||F||t.charAt(_)!==h?U&&M&&(F=V>=M.indent||V>b):F=!0,x=!1,$=_;if(S=t.slice(_,w),k=_===$?S:t.slice($,w),(E===u||E===c||E===f)&&q.thematicBreak.call(B,e,S,!0))break;if(A=T,T=!x&&!r(k).length,F&&M)M.value=M.value.concat(R,S),P=P.concat(R,S),R=[];else if(x)0!==R.length&&(K=!0,M.value.push(""),M.trail=R.concat()),M={value:[S],indent:V,trail:[]},O.push(M),P=P.concat(R,S),R=[];else if(T){if(A&&!U)break;R.push(S)}else{if(A)break;if(l(W,q,B,[e,S,!0]))break;M.value=M.value.concat(R,S),P=P.concat(R,S),R=[]}$=w+1}for(L=e(P.join(m)).reset({type:"list",ordered:a,start:G,spread:K,children:[]}),D=B.enterList(),I=B.enterBlock(),$=-1,H=O.length;++$<H;)M=O[$].value.join(m),j=e.now(),e(M)(C(B,M,j),L),M=O[$].trail.join(m),$!==H-1&&(M+=m),e(M);return D(),I(),L}}};var u="*",c="_",d="+",f="-",p=".",h=" ",m="\n",g="\t",v=")",y="x",b=4,w=/\n\n(?!\s*$)/,_=/^\[([ \t]|x|X)][ \t]/,x=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,E=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,k=/^( {1,4}|\t)?/gm;function C(e,t,n){var r,i,o=e.offset,a=null;return t=(e.options.pedantic?S:A).apply(null,arguments),e.options.gfm&&(r=t.match(_))&&(i=r[0].length,a=r[1].toLowerCase()===y,o[n.line]+=i,t=t.slice(i)),{type:"listItem",spread:w.test(t),checked:a,children:e.tokenizeBlock(t,n)}}function S(e,t,n){var r=e.offset,i=n.line;return t=t.replace(E,o),i=n.line,t.replace(k,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function A(e,t,n){var r,o,l,u,c,d,f,p=e.offset,g=n.line;for(u=(t=t.replace(x,(function(e,t,n,a,s){return o=t+n+a,l=s,Number(n)<10&&o.length%2==1&&(n=h+n),(r=t+i(h,n.length)+a)+l}))).split(m),(c=s(t,a(r).indent).split(m))[0]=l,p[g]=(p[g]||0)+o.length,g++,d=0,f=u.length;++d<f;)p[g]=(p[g]||0)+u[d].length-c[d].length,g++;return c.join(m)}},79413:(e,t,n)=>{"use strict";var r=n(74898);e.exports=function(e,t,n){var o,a,s,l,u=t.charAt(0);if(u===i){if(n)return!0;for(l=1,o=t.length,a=u,s="";l<o&&(u=t.charAt(l),r(u));)s+=u,u===i&&(a+=s,s=""),l++;e(a)}};var i="\n"},31409:(e,t,n)=>{"use strict";var r=n(50311),i=n(61278),o=n(67876),a=n(14538);e.exports=function(e,t,n){for(var d,f,p,h,m,g=this,v=g.options,y=v.commonmark,b=v.gfm,w=g.blockTokenizers,_=g.interruptParagraph,x=t.indexOf(l),E=t.length;x<E;){if(-1===x){x=E;break}if(t.charAt(x+1)===l)break;if(y){for(h=0,d=x+1;d<E;){if((p=t.charAt(d))===s){h=c;break}if(p!==u)break;h++,d++}if(h>=c&&p!==l){x=t.indexOf(l,x+1);continue}}if(f=t.slice(x+1),a(_,w,g,[e,f,!0]))break;if(w.list.call(g,e,f,!0)&&(g.inList||y||b&&!i(r.left(f).charAt(0))))break;if(d=x,-1!==(x=t.indexOf(l,x+1))&&""===r(t.slice(d,x))){x=d;break}}return f=t.slice(0,x),""===r(f)?(e(f),null):!!n||(m=e.now(),e(f=o(f))({type:"paragraph",children:g.tokenizeInline(f,m)}))};var s="\t",l="\n",u=" ",c=4},2196:(e,t,n)=>{"use strict";var r=n(74898),i=n(88906),o=n(28999);e.exports=y,y.locator=i;var a="link",s="image",l="footnote",u="shortcut",c="collapsed",d="full",f=" ",p="!",h="[",m="\\",g="]",v="^";function y(e,t,n){var i,y,b,w,_,x,E,k,C=this,S=C.options.commonmark,A=t.charAt(0),T=0,O=t.length,P="",R="",M=a,D=u;if(A===p&&(M=s,R=A,A=t.charAt(++T)),A===h){if(T++,R+=A,x="",C.options.footnotes&&t.charAt(T)===v){if(M===s)return;R+=v,T++,M=l}for(k=0;T<O;){if((A=t.charAt(T))===h)E=!0,k++;else if(A===g){if(!k)break;k--}A===m&&(x+=m,A=t.charAt(++T)),x+=A,T++}if(P=x,i=x,(A=t.charAt(T))===g){if(T++,P+=A,x="",!S)for(;T<O&&(A=t.charAt(T),r(A));)x+=A,T++;if(A=t.charAt(T),M!==l&&A===h){for(y="",x+=A,T++;T<O&&(A=t.charAt(T))!==h&&A!==g;)A===m&&(y+=m,A=t.charAt(++T)),y+=A,T++;(A=t.charAt(T))===g?(D=y?d:c,x+=y+A,T++):y="",P+=x,x=""}else{if(!i)return;y=i}if(D===d||!E)return P=R+P,M===a&&C.inLink?null:!!n||(M===l&&-1!==i.indexOf(f)?e(P)({type:l,children:this.tokenizeInline(i,e.now())}):((b=e.now()).column+=R.length,b.offset+=R.length,w={type:M+"Reference",identifier:o(y=D===d?y:i),label:y},M!==a&&M!==s||(w.referenceType=D),M===a?(_=C.enterLink(),w.children=C.tokenizeInline(i,b),_()):M===s&&(w.alt=C.decode.raw(C.unescape(i),b)||null),e(P)(w)))}}}},26033:(e,t,n)=>{"use strict";var r=n(50311),i=n(74898),o=n(73251);e.exports=u,u.locator=o;var a="\\",s="*",l="_";function u(e,t,n){var o,u,c,d,f,p,h,m=0,g=t.charAt(m);if(!(g!==s&&g!==l||t.charAt(++m)!==g||(u=this.options.pedantic,f=(c=g)+c,p=t.length,m++,d="",g="",u&&i(t.charAt(m)))))for(;m<p;){if(h=g,!((g=t.charAt(m))!==c||t.charAt(m+1)!==c||u&&i(h))&&(g=t.charAt(m+2))!==c){if(!r(d))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(f+d+f)({type:"strong",children:this.tokenizeInline(d,o)}))}u||g!==a||(d+=g,g=t.charAt(++m)),d+=g,m++}}},19054:(e,t,n)=>{"use strict";var r=n(74898);e.exports=function(e,t,n){var v,y,b,w,_,x,E,k,C,S,A,T,O,P,R,M,D,I,L,j,N,F,B,U;if(this.options.gfm){for(v=0,I=0,x=t.length+1,E=[];v<x;){if(F=t.indexOf(o,v),B=t.indexOf(d,v+1),-1===F&&(F=t.length),-1===B||B>F){if(I<p)return;break}E.push(t.slice(v,F)),I++,v=F+1}for(w=E.join(o),v=0,x=(y=E.splice(1,1)[0]||[]).length,I--,b=!1,A=[];v<x;){if((C=y.charAt(v))===d){if(S=null,!1===b){if(!1===U)return}else A.push(b),b=!1;U=!1}else if(C===s)S=!0,b=b||null;else if(C===l)b=b===h?m:S&&null===b?g:h;else if(!r(C))return;v++}if(!1!==b&&A.push(b),!(A.length<f)){if(n)return!0;for(D=-1,j=[],N=e(w).reset({type:"table",align:A,children:j});++D<I;){for(L=E[D],_={type:"tableRow",children:[]},D&&e(o),e(L).reset(_,N),x=L.length+1,v=0,k="",T="",O=!0,P=null,R=null;v<x;)if((C=L.charAt(v))!==i&&C!==a){if(""===C||C===d)if(O)e(C);else{if(C&&R){k+=C,v++;continue}!T&&!C||O||(w=T,k.length>1&&(C?(w+=k.slice(0,k.length-1),k=k.charAt(k.length-1)):(w+=k,k="")),M=e.now(),e(w)({type:"tableCell",children:this.tokenizeInline(T,M)},_)),e(k+C),k="",T=""}else if(k&&(T+=k,k=""),T+=C,C===u&&v!==x-2&&(T+=L.charAt(v+1),v++),C===c){for(P=1;L.charAt(v+1)===C;)T+=C,v++,P++;R?P>=R&&(R=0):R=P}O=!1,v++}else T?k+=C:e(C),v++;D||e(o+y)}return N}}};var i="\t",o="\n",a=" ",s="-",l=":",u="\\",c="`",d="|",f=1,p=2,h="left",m="center",g="right"},67510:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p=this;if(n)return!0;for(a=(r=p.inlineMethods).length,i=p.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(p,t,1))&&l<d&&(d=l));s=t.slice(0,d),f=e.now(),p.decode(s,f,(function(t,n,r){e(r||t)({type:"text",value:t})}))}},16050:e=>{"use strict";e.exports=function(e,l,u){for(var c,d,f,p,h=-1,m=l.length+1,g="";++h<m&&((c=l.charAt(h))===t||c===r);)g+=c;if(c===i||c===o||c===a)for(d=c,g+=c,f=1,p="";++h<m;)if((c=l.charAt(h))===d)f++,g+=p+d,p="";else{if(c!==r)return f>=s&&(!c||c===n)?(g+=p,!!u||e(g)({type:"thematicBreak"})):void 0;p+=c}};var t="\t",n="\n",r=" ",i="*",o="-",a="_",s=3},76899:(e,t,n)=>{"use strict";var r=n(70930),i=n(74898),o=n(38693);e.exports=_,_.locator=o,_.notInLink=!0;var a='"',s="'",l="(",u=")",c=",",d=".",f=":",p=";",h="<",m="@",g="[",v="]",y="mailto:",b=["http://","https://",y],w=b.length;function _(e,t,n){var o,_,x,E,k,C,S,A,T,O,P,R,M,D=this;if(D.options.gfm){for(o="",E=-1;++E<w;)if(C=b[E],(S=t.slice(0,C.length)).toLowerCase()===C){o=S;break}if(o){for(E=o.length,A=t.length,T="",O=0;E<A&&(x=t.charAt(E),!i(x)&&x!==h)&&(x!==d&&x!==c&&x!==f&&x!==p&&x!==a&&x!==s&&x!==u&&x!==v||(P=t.charAt(E+1))&&!i(P))&&(x!==l&&x!==g||O++,x!==u&&x!==v||!(--O<0));)T+=x,E++;if(T){if(_=o+=T,C===y){if(-1===(k=T.indexOf(m))||k===A-1)return;_=_.substr(y.length)}return!!n||(M=D.enterLink(),R=D.inlineTokenizers,D.inlineTokenizers={text:R.text},_=D.tokenizeInline(_,e.now()),D.inlineTokenizers=R,M(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:_}))}}}}},9223:e=>{"use strict";function t(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function n(e,t){return e.value+=t.value,e}function r(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}e.exports=function(e){return function(i,o){var a,s,l,u,c,d=this,f=d.offset,p=[],h=d[e+"Methods"],m=d[e+"Tokenizers"],g=o.line,v=o.column;if(!i)return p;for(_.now=b,_.file=d.file,y("");i;){for(a=-1,s=h.length,u=!1;++a<s&&(!(l=m[h[a]])||l.onlyAtStart&&!d.atStart||l.notInList&&d.inList||l.notInBlock&&d.inBlock||l.notInLink&&d.inLink||(c=i.length,l.apply(d,[_,i]),!(u=c!==i.length))););u||d.file.fail(new Error("Infinite loop"),_.now())}return d.eof=b(),p;function y(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)g++,t=n,n=e.indexOf("\n",n+1);-1===t?v+=e.length:v=e.length-t,g in f&&(-1!==t?v+=f[g]:v<=f[g]&&(v=f[g]+1))}function b(){var e={line:g,column:v};return e.offset=d.toOffset(e),e}function w(e){this.start=e,this.end=b()}function _(e){var o,a=function(){var e=[],t=g+1;return function(){for(var n=g+1;t<n;)e.push((f[t]||0)+1),t++;return e}}(),s=(o=b(),function(e,t){var n=e.position,r=n?n.start:o,i=[],a=n&&n.end.line,s=o.line;if(e.position=new w(r),n&&t&&n.indent){if(i=n.indent,a<s){for(;++a<s;)i.push((f[a]||0)+1);i.push(o.column)}t=i.concat(t)}return e.position.indent=t||[],e}),l=b();return function(e){i.substring(0,e.length)!==e&&d.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),b())}(e),u.reset=c,c.test=h,u.test=h,i=i.substring(e.length),y(e),a=a(),u;function u(e,i){return s(function(e,i){var o=i?i.children:p,a=o[o.length-1];return a&&e.type===a.type&&("text"===e.type||"blockquote"===e.type)&&t(a)&&t(e)&&(e=("text"===e.type?n:r).call(d,a,e)),e!==a&&o.push(e),d.atStart&&0!==p.length&&d.exitStart(),e}(s(e),i),a)}function c(){var t=u.apply(null,arguments);return g=l.line,v=l.column,i=e+i,t}function h(){var t=s({});return g=l.line,v=l.column,i=e+i,t.position}}}}},92084:e=>{"use strict";e.exports=function(e,n){return function(r){for(var i,o=0,a=r.indexOf(t),s=e[n],l=[];-1!==a;)l.push(r.slice(o,a)),o=a+1,(i=r.charAt(o))&&-1!==s.indexOf(i)||l.push(t),a=r.indexOf(t,o+1);return l.push(r.slice(o)),l.join("")}};var t="\\"},30491:e=>{"use strict";e.exports=function(e){for(var o,a=0,s=0,l=e.charAt(a),u={};l===t||l===n;)s+=o=l===t?i:r,o>1&&(s=Math.floor(s/o)*o),u[s]=a,l=e.charAt(++a);return{indent:s,stops:u}};var t="\t",n=" ",r=1,i=4},80889:(e,t)=>{"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.g=new RegExp("^(?:"+n+"|"+r+")"),t._=new RegExp("^(?:"+n+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},14538:e=>{"use strict";e.exports=function(e,t,n,r){for(var i,o,a=e.length,s=-1;++s<a;)if((void 0===(o=(i=e[s])[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1}},28999:(e,t,n)=>{"use strict";var r=n(38925);e.exports=function(e){return r(e).toLowerCase()}},97621:(e,t,n)=>{"use strict";var r=n(50311),i=n(34076),o=n(30491);e.exports=function(e,t){var n,c,d,f,p=e.split(s),h=p.length+1,m=1/0,g=[];for(p.unshift(i(l,t)+u);h--;)if(c=o(p[h]),g[h]=c.stops,0!==r(p[h]).length){if(!c.indent){m=1/0;break}c.indent>0&&c.indent<m&&(m=c.indent)}if(m!==1/0)for(h=p.length;h--;){for(d=g[h],n=m;n&&!(n in d);)n--;f=0!==r(p[h]).length&&m&&n!==m?a:"",p[h]=f+p[h].slice(n in d?d[n]+1:0)}return p.shift(),p.join(s)};var a="\t",s="\n",l=" ",u="!"},86099:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},70930:(e,t,n)=>{"use strict";var r=n(93562),i=n(71216),o=n(61278),a=n(48833),s=n(65279),l=n(86099);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),f)n=t[o],a[o]=null==n?f[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,f,B,U,z,q,W,$,H,G,V,K,Z,Y,X,Q,J,ee,te=t.additional,ne=t.nonTerminated,re=t.text,ie=t.reference,oe=t.warning,ae=t.textContext,se=t.referenceContext,le=t.warningContext,ue=t.position,ce=t.indent||[],de=e.length,fe=0,pe=-1,he=ue.column||1,me=ue.line||1,ge="",ve=[];for("string"==typeof te&&(te=te.charCodeAt(0)),Y=ye(),q=oe?function(e,t){var n=ye();n.column+=t,n.offset+=t,oe.call(le,N[e],n,e)}:d,fe--,de++;++fe<de;)if(B===h&&(he=ce[pe]||1),(B=e.charCodeAt(fe))===v){if((z=e.charCodeAt(fe+1))===p||z===h||z===m||z===g||z===v||z===b||z!=z||te&&z===te){ge+=c(B),he++;continue}for(G=V=fe+1,J=V,z===_?(J=++G,(z=e.charCodeAt(J))===x||z===E?(K=S,J=++G):K=A):K=C,n="",H="",f="",Z=O[K],J--;++J<de&&Z(z=e.charCodeAt(J));)f+=c(z),K===C&&u.call(r,f)&&(n=f,H=r[f]);(a=e.charCodeAt(J)===y)&&(J++,(o=K===C&&l(f))&&(n=f,H=o)),Q=1+J-V,(a||ne)&&(f?K===C?(a&&!H?q(I,1):(n!==f&&(Q=1+(J=G+n.length)-G,a=!1),a||(W=n?P:M,t.attribute?(z=e.charCodeAt(J))===w?(q(W,Q),H=null):s(z)?H=null:q(W,Q):q(W,Q))),U=H):(a||q(R,Q),(ee=U=parseInt(f,T[K]))>=55296&&ee<=57343||ee>1114111?(q(j,Q),U=c(k)):U in i?(q(L,Q),U=i[U]):($="",F(U)&&q(L,Q),U>65535&&($+=c((U-=65536)>>>10|55296),U=56320|1023&U),U=$+c(U))):K!==C&&q(D,Q)),U?(be(),Y=ye(),fe=J-1,he+=J-V+1,ve.push(U),(X=ye()).offset++,ie&&ie.call(se,U,{start:Y,end:X},e.slice(V-1,J)),Y=X):(f=e.slice(V-1,J),ge+=f,he+=f.length,fe=J-1)}else 10===B&&(me++,pe++,he=0),B==B?(ge+=c(B),he++):be();return ve.join("");function ye(){return{line:me,column:he,offset:fe+(ue.offset||0)}}function be(){ge&&(ve.push(ge),re&&re.call(ae,ge,{start:Y,end:ye()}),ge="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,h=10,m=12,g=32,v=38,y=59,b=60,w=61,_=35,x=88,E=120,k=65533,C="named",S="hexadecimal",A="decimal",T={};T[S]=16,T[A]=10;var O={};O[C]=s,O[A]=o,O[S]=a;var P=1,R=2,M=3,D=4,I=5,L=6,j=7,N={};function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}N[P]="Named character references must be terminated by a semicolon",N[R]="Numeric character references must be terminated by a semicolon",N[M]="Named character references cannot be empty",N[D]="Numeric character references cannot be empty",N[I]="Named character references must be known",N[L]="Numeric character references cannot be disallowed",N[j]="Numeric character references cannot be outside the permissible Unicode range"},32578:(e,t,n)=>{"use strict";var r=n(31887);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},48283:(e,t,n)=>{"use strict";var r=n(30603),i=n(51960),o=n(39401);function a(e){var t=r(o);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}e.exports=a,a.Compiler=o},39401:(e,t,n)=>{"use strict";var r=n(51960),i=n(82344);function o(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=r(this.options),this.setOptions({})}e.exports=o;var a=o.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(29528),a.options=n(14836),a.setOptions=n(28018),a.compile=n(83127),a.visit=n(24931),a.all=n(70581),a.block=n(60977),a.visitOrderedItems=n(9899),a.visitUnorderedItems=n(41103),a.visitors={root:n(56047),text:n(18497),heading:n(34732),paragraph:n(90008),blockquote:n(13518),list:n(78829),listItem:n(71878),inlineCode:n(522),code:n(41266),html:n(33943),thematicBreak:n(1405),strong:n(19915),emphasis:n(11577),break:n(22758),delete:n(21706),link:n(51888),linkReference:n(52019),imageReference:n(97943),definition:n(19825),image:n(69326),footnote:n(52898),footnoteReference:n(2888),footnoteDefinition:n(40243),table:n(84220),tableCell:n(14825)}},14836:e=>{"use strict";e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:function(e){return e.length},incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},69425:(e,t,n)=>{"use strict";var r=n(61278),i=n(88637),o=n(74898),a=n(4608),s=n(3495);e.exports=function(e){return function(t,n,M){var D,I,B,U,z,q,W=this,$=e.gfm,H=e.commonmark,G=e.pedantic,V=H?[y,h]:[y],K=M&&M.children,Z=K&&K.indexOf(n),Y=K&&K[Z-1],X=K&&K[Z+1],Q=t.length,J=a(e),ee=-1,te=[],ne=te;for(D=Y?N(Y)&&L.test(Y.value):!M||"root"===M.type||"paragraph"===M.type;++ee<Q;){if(q=!1,"\n"===(I=t.charAt(ee)))D=!0;else if(I===E||I===S||I===m||I===O&&t.charAt(ee+1)===x||I===x||I===w||I===f&&s(t.slice(ee))>0||I===k&&W.inLink||$&&I===T&&t.charAt(ee+1)===T||$&&I===A&&(W.inTable||j(t,ee))||I===C&&ee>0&&ee<Q-1&&(G||!i(t.charAt(ee-1))||!i(t.charAt(ee+1)))||$&&!W.inLink&&I===b&&F(te.join("")))q=!0;else if(D)if(I===_||I===d||I===m||I===v||I===g)q=!0;else if(r(I)){for(z=ee+1;z<Q&&r(t.charAt(z));)z++;-1!==V.indexOf(t.charAt(z))&&((X=t.charAt(z+1))&&X!==c&&X!==l&&X!==u||(te.push(t.slice(ee,z)),ee=z,I=t.charAt(ee),q=!0))}D&&!o(I)&&(D=!1),te.push(q?re(I):I)}if(K&&N(n)){if(Y&&Y.referenceType===R){for(ee=-1,Q=ne.length;++ee<Q;)if((I=ne[ee])!==c&&I!==l){I!==p&&I!==b||(ne[ee]=re(I));break}N(X)&&ee===Q&&X.value.charAt(0)===p&&ne.push(E)}$&&!W.inLink&&N(Y)&&t.charAt(0)===b&&F(Y.value.slice(-6))&&(ne[0]=re(b)),N(X)&&t.charAt(Q-1)===f&&0!==s(f+X.value)&&(ne[ne.length-1]=re(f)),X&&"link"===X.type&&t.charAt(Q-1)===O&&(ne[ne.length-1]=re(O)),$&&N(X)&&t.charAt(Q-1)===T&&X.value.charAt(0)===T&&ne.splice(ne.length-1,0,E),B=N(Y)&&i(Y.value.slice(-1)),U=N(X)&&i(X.value.charAt(0)),1===Q?t!==C||!G&&B&&U||ne.unshift(E):(t.charAt(0)!==C||!G&&B&&i(t.charAt(1))||ne.unshift(E),t.charAt(Q-1)!==C||!G&&U&&i(t.charAt(Q-2))||ne.splice(ne.length-1,0,E))}return ne.join("");function re(e){return-1===J.indexOf(e)?P[e]:E+e}}};var l="\t",u="\n",c=" ",d="#",f="&",p="(",h=")",m="*",g="+",v="-",y=".",b=":",w="<",_=">",x="[",E="\\",k="]",C="_",S="`",A="|",T="~",O="!",P={"<":"<",":":":","&":"&","|":"|","~":"~"},R="shortcut",M="mailto",D="https",I="http",L=/\n\s*$/;function j(e,t){var n,r=e.lastIndexOf(u,t),i=e.indexOf(u,t);for(i=-1===i?e.length:i;++r<i;)if((n=e.charAt(r))!==b&&n!==v&&n!==c&&n!==A)return!1;return!0}function N(e){return e&&"text"===e.type}function F(e){var t=e.slice(-6).toLowerCase();return t===M||t.slice(-5)===D||t.slice(-4)===I}},70581:e=>{"use strict";e.exports=function(e){for(var t=e.children,n=t.length,r=[],i=-1;++i<n;)r[i]=this.visit(t[i],e);return r}},60977:e=>{"use strict";e.exports=function(e){for(var i,o,a=this.options,s=a.fences,l=a.commonmark?r:n,u=[],c=e.children,d=c.length,f=-1;++f<d;)i=o,o=c[f],i&&("list"===i.type&&("list"===o.type&&i.ordered===o.ordered||"code"===o.type&&!o.lang&&!s)?u.push(l):u.push(t)),u.push(this.visit(o,e));return u.join("")};var t="\n\n",n=t+"\n",r=t+"\x3c!----\x3e"+t},83127:(e,t,n)=>{"use strict";var r=n(62499);e.exports=function(){return this.visit(r(this.tree,this.options.commonmark))}},24931:e=>{"use strict";e.exports=function(e,t){var n=this,r=n.visitors;return"function"!=typeof r[e.type]&&n.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e),r[e.type].call(n,e,t)}},9899:e=>{"use strict";e.exports=function(e){var i,o=this,a=o.visitors.listItem,s=o.options.incrementListMarker,l=[],u=e.start,c=e.children,d=c.length,f=-1;for(u=null==u?1:u;++f<d;)i=(s?u+f:u)+n,l[f]=a.call(o,c[f],e,f,i);return l.join(e.spread?r:t)};var t="\n",n=".",r=t+t},41103:e=>{"use strict";e.exports=function(e){for(var r=this,i=r.options.bullet,o=r.visitors.listItem,a=e.children,s=a.length,l=-1,u=[];++l<s;)u[l]=o.call(r,a[l],e,l,i);return u.join(e.spread?n:t)};var t="\n",n=t+t},28018:(e,t,n)=>{"use strict";var r=n(51960),i=n(26952),o=n(14836),a=n(69425),s=n(85117);e.exports=function(e){var t,n,d=this,f=d.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(n in o)u[typeof o[n]](e,n,f[n],l[n]);return(t=e.ruleRepetition)&&t<3&&c(t,"options.ruleRepetition"),d.encode=function(e){var t={};return"false"===e?s:("true"===e&&(t.useNamedReferences=!0),"escape"===e&&(t.escapeOnly=!0,t.useNamedReferences=!0),function(e){return i(e,t)})}(String(e.entities)),d.escape=a(e),d.options=e,d};var l={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},u={boolean:function(e,t,n){var r=e[t];null==r&&(r=n),"boolean"!=typeof r&&c(r,"options."+t),e[t]=r},string:function(e,t,n,r){var i=e[t];null==i&&(i=n),(i=String(i))in r||c(i,"options."+t),e[t]=i},number:function(e,t,n){var r=e[t];null==r&&(r=n),isNaN(r)&&c(r,"options."+t),e[t]=r},function:function(e,t,n){var r=e[t];null==r&&(r=n),"function"!=typeof r&&c(r,"options."+t),e[t]=r}};function c(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}},84386:(e,t,n)=>{"use strict";var r=n(3495);e.exports=function(e,t){for(var n,a=e.length,s=t.length,l=[],u=0,c=0;c<a;){for(n=c;c<a&&!o.test(e.charAt(c));)c+=1;for(l.push(e.slice(n,c));u<s&&!o.test(t.charAt(u));)u+=1;for(n=u;u<s&&o.test(t.charAt(u));)t.charAt(u)===i&&(u+=r(t.slice(u))),u+=1;for(l.push(t.slice(n,u));c<a&&o.test(e.charAt(c));)c+=1}return l.join("")};var i="&",o=/[-!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~_]/},55386:e=>{"use strict";e.exports=function(e){var r=-1===e.indexOf(t)?t:n;return r+e+r};var t='"',n="'"},19708:(e,t,n)=>{"use strict";var r=n(53404);e.exports=function(e,t){return t||0===e.length||l.test(e)||r(e,i)!==r(e,o)?a+e+s:e};var i="(",o=")",a="<",s=">",l=/\s/},29528:(e,t,n)=>{"use strict";var r=n(85117);e.exports=function(e,t){var n=e.encode,i=e.escape,o=e.enterLink();return"shortcut"!==t.referenceType&&"collapsed"!==t.referenceType?o:(e.escape=r,e.encode=r,function(){e.encode=n,e.escape=i,o()})}},3495:(e,t,n)=>{"use strict";var r=n(37059);e.exports=function(e){var t;return e.charAt(0)!==i?0:(t=e.split(i,2).join(i)).length-r(t).length};var i="&"},85117:e=>{"use strict";e.exports=function(e){return e}},65781:e=>{"use strict";e.exports=function(e){var o=e.referenceType;return o===r?"":t+(o===i?"":e.label||e.identifier)+n};var t="[",n="]",r="shortcut",i="collapsed"},85880:(e,t,n)=>{"use strict";var r=n(34076);e.exports=function(e,t){for(var n=e.split(i),s=n.length,l=r(o,t*a);s--;)0!==n[s].length&&(n[s]=l+n[s]);return n.join(i)};var i="\n",o=" ",a=4},13518:e=>{"use strict";e.exports=function(e){for(var i,o=this.block(e).split(t),a=[],s=o.length,l=-1;++l<s;)i=o[l],a[l]=(i?n:"")+i;return r+a.join(t+r)};var t="\n",n=" ",r=">"},22758:e=>{"use strict";e.exports=function(){return this.options.commonmark?t:n};var t="\\\n",n=" \n"},41266:(e,t,n)=>{"use strict";var r=n(6316),i=n(34076),o=n(85880);e.exports=function(e,t){var n,l=this,u=e.value,c=l.options,d=c.fence,f=e.lang||"";return f&&e.meta&&(f+=s+e.meta),(f=l.encode(l.escape(f,e)))||c.fences||!u?(n=i(d,Math.max(r(u,d)+1,3)))+f+a+u+a+n:(t&&"listItem"===t.type&&"tab"!==c.listItemIndent&&c.pedantic&&l.file.fail("Cannot indent code properly. See https://git.io/fxKR8",e.position),o(u,1))};var a="\n",s=" "},19825:(e,t,n)=>{"use strict";var r=n(19708),i=n(55386);e.exports=function(e){var t=r(e.url);return e.title&&(t+=o+i(e.title)),s+(e.label||e.identifier)+l+a+o+t};var o=" ",a=":",s="[",l="]"},21706:e=>{"use strict";e.exports=function(e){return t+this.all(e).join("")+t};var t="~~"},11577:e=>{"use strict";e.exports=function(e){var r=this.options.emphasis,i=this.all(e).join("");return this.options.pedantic&&r===t&&-1!==i.indexOf(r)&&(r=n),r+i+r};var t="_",n="*"},40243:(e,t,n)=>{"use strict";var r=n(34076)(" ",4);e.exports=function(e){var t=this.all(e).join("\n\n"+r);return"[^"+(e.label||e.identifier)+"]: "+t}},2888:e=>{"use strict";e.exports=function(e){return t+r+(e.label||e.identifier)+n};var t="[",n="]",r="^"},52898:e=>{"use strict";e.exports=function(e){return t+r+this.all(e).join("")+n};var t="[",n="]",r="^"},34732:(e,t,n)=>{"use strict";var r=n(34076);e.exports=function(e){var t,n=this,u=e.depth,c=n.options.setext,d=n.options.closeAtx,f=n.all(e).join("");return c&&u<3?f+i+r(1===u?l:s,f.length):(t=r(a,e.depth))+o+f+(d?o+t:"")};var i="\n",o=" ",a="#",s="-",l="="},33943:e=>{"use strict";e.exports=function(e){return e.value}},97943:(e,t,n)=>{"use strict";var r=n(65781);e.exports=function(e){return a+i+(this.encode(e.alt,e)||"")+o+r(e)};var i="[",o="]",a="!"},69326:(e,t,n)=>{"use strict";var r=n(19708),i=n(55386);e.exports=function(e){var t=this,n=r(t.encode(e.url||"",e)),d=t.enterLink(),f=t.encode(t.escape(e.alt||"",e));return d(),e.title&&(n+=o+i(t.encode(e.title,e))),c+l+f+u+a+n+s};var o=" ",a="(",s=")",l="[",u="]",c="!"},522:(e,t,n)=>{"use strict";var r=n(6316),i=n(34076);e.exports=function(e){var t=e.value,n=i(a,r(t,a)+1),s=n,l=n;return t.charAt(0)===a&&(s+=o),t.charAt(t.length-1)===a&&(l=o+l),s+t+l};var o=" ",a="`"},52019:(e,t,n)=>{"use strict";var r=n(84386),i=n(65781);e.exports=function(e){var t=this,n=e.referenceType,u=t.enterLinkReference(t,e),c=t.all(e).join("");return u(),(n===s||n===l)&&(c=r(c,e.label||e.identifier)),o+c+a+i(e)};var o="[",a="]",s="shortcut",l="collapsed"},51888:(e,t,n)=>{"use strict";var r=n(19708),i=n(55386);e.exports=function(e){var t=this,n=t.encode(e.url||"",e),d=t.enterLink(),f=t.encode(t.escape(e.url||"",e)),p=t.all(e).join("");return d(),null==e.title&&c.test(n)&&f===p?r(t.encode(e.url),!0):(n=r(n),e.title&&(n+=o+i(t.encode(t.escape(e.title,e),e))),a+p+s+l+n+u)};var o=" ",a="[",s="]",l="(",u=")",c=/^[a-z][a-z+.-]+:\/?/i},71878:(e,t,n)=>{"use strict";var r=n(34076),i=n(85880);e.exports=function(e,t,n,p){for(var h,m,g,v=this,y=v.options.listItemIndent,b=p||v.options.bullet,w=null==e.spread||e.spread,_=e.checked,x=e.children,E=x.length,k=[],C=-1;++C<E;)k[C]=v.visit(x[C],e);return h=k.join(w?d:o),"boolean"==typeof _&&(h=s+(_?u:a)+l+a+h),"1"===y||"mixed"===y&&-1===h.indexOf(o)?(m=b.length+1,g=a):(m=c((b.length+1)/f)*f,g=r(a,m-b.length)),h?b+g+i(h,m/f).slice(m):b};var o="\n",a=" ",s="[",l="]",u="x",c=Math.ceil,d=o+o,f=4},78829:e=>{"use strict";e.exports=function(e){return(e.ordered?this.visitOrderedItems:this.visitUnorderedItems).call(this,e)}},90008:e=>{"use strict";e.exports=function(e){return this.all(e).join("")}},56047:e=>{"use strict";e.exports=function(e){return this.block(e)+t};var t="\n"},19915:(e,t,n)=>{"use strict";var r=n(34076);e.exports=function(e){var t=r(this.options.strong,2);return t+this.all(e).join("")+t}},14825:e=>{"use strict";e.exports=function(e){return this.all(e).join("")}},84220:(e,t,n)=>{"use strict";var r=n(17591);e.exports=function(e){for(var t,n,a=this,s=a.options,l=s.looseTable,u=s.spacedTable,c=s.paddedTable,d=s.stringLength,f=e.children,p=f.length,h=a.enterTable(),m=[];p--;)m[p]=a.all(f[p]);return h(),l?(t="",n=""):u?(t=o+i,n=i+o):(t=o,n=o),r(m,{align:e.align,pad:c,start:t,end:n,stringLength:d,delimiter:u?i+o+i:o})};var i=" ",o="|"},18497:e=>{"use strict";e.exports=function(e,t){return this.encode(this.escape(e.value,e,t),e)}},1405:(e,t,n)=>{"use strict";var r=n(34076);e.exports=function(){var e=this.options,t=r(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(i):t};var i=" "},32876:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},37059:(e,t,n)=>{"use strict";var r=n(93562),i=n(71216),o=n(61278),a=n(48833),s=n(65279),l=n(32876);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),f)n=t[o],a[o]=null==n?f[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,f,B,U,z,q,W,$,H,G,V,K,Z,Y,X,Q,J,ee,te=t.additional,ne=t.nonTerminated,re=t.text,ie=t.reference,oe=t.warning,ae=t.textContext,se=t.referenceContext,le=t.warningContext,ue=t.position,ce=t.indent||[],de=e.length,fe=0,pe=-1,he=ue.column||1,me=ue.line||1,ge="",ve=[];for("string"==typeof te&&(te=te.charCodeAt(0)),Y=ye(),q=oe?function(e,t){var n=ye();n.column+=t,n.offset+=t,oe.call(le,N[e],n,e)}:d,fe--,de++;++fe<de;)if(B===h&&(he=ce[pe]||1),(B=e.charCodeAt(fe))===v){if((z=e.charCodeAt(fe+1))===p||z===h||z===m||z===g||z===v||z===b||z!=z||te&&z===te){ge+=c(B),he++;continue}for(G=V=fe+1,J=V,z===_?(J=++G,(z=e.charCodeAt(J))===x||z===E?(K=S,J=++G):K=A):K=C,n="",H="",f="",Z=O[K],J--;++J<de&&Z(z=e.charCodeAt(J));)f+=c(z),K===C&&u.call(r,f)&&(n=f,H=r[f]);(a=e.charCodeAt(J)===y)&&(J++,(o=K===C&&l(f))&&(n=f,H=o)),Q=1+J-V,(a||ne)&&(f?K===C?(a&&!H?q(I,1):(n!==f&&(Q=1+(J=G+n.length)-G,a=!1),a||(W=n?P:M,t.attribute?(z=e.charCodeAt(J))===w?(q(W,Q),H=null):s(z)?H=null:q(W,Q):q(W,Q))),U=H):(a||q(R,Q),(ee=U=parseInt(f,T[K]))>=55296&&ee<=57343||ee>1114111?(q(j,Q),U=c(k)):U in i?(q(L,Q),U=i[U]):($="",F(U)&&q(L,Q),U>65535&&($+=c((U-=65536)>>>10|55296),U=56320|1023&U),U=$+c(U))):K!==C&&q(D,Q)),U?(be(),Y=ye(),fe=J-1,he+=J-V+1,ve.push(U),(X=ye()).offset++,ie&&ie.call(se,U,{start:Y,end:X},e.slice(V-1,J)),Y=X):(f=e.slice(V-1,J),ge+=f,he+=f.length,fe=J-1)}else 10===B&&(me++,pe++,he=0),B==B?(ge+=c(B),he++):be();return ve.join("");function ye(){return{line:me,column:he,offset:fe+(ue.offset||0)}}function be(){ge&&(ve.push(ge),re&&re.call(ae,ge,{start:Y,end:ye()}),ge="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,h=10,m=12,g=32,v=38,y=59,b=60,w=61,_=35,x=88,E=120,k=65533,C="named",S="hexadecimal",A="decimal",T={};T[S]=16,T[A]=10;var O={};O[C]=s,O[A]=o,O[S]=a;var P=1,R=2,M=3,D=4,I=5,L=6,j=7,N={};function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}N[P]="Named character references must be terminated by a semicolon",N[R]="Numeric character references must be terminated by a semicolon",N[M]="Named character references cannot be empty",N[D]="Numeric character references cannot be empty",N[I]="Named character references must be known",N[L]="Numeric character references cannot be disallowed",N[j]="Numeric character references cannot be outside the permissible Unicode range"},34076:e=>{"use strict";var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var i=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},77834:(e,t,n)=>{var r=n(48834),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},17826:(e,t,n)=>{"use strict";var r=n(83439),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,l=/[\. ]+$/;function u(e,t){if("string"!=typeof e)throw new Error("Input must be string");var n=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(l,t);return r(n,255)}e.exports=function(e,t){var n=t&&t.replacement||"",r=u(e,n);return""===n?r:u(r,"")}},24162:(e,t,n)=>{"use strict";var r=n(91366),i=n(24401);function o(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function a(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var n=function(e){if("object"!==r(e)&&(e={content:e}),"string"!=typeof e.content&&!((t=e.content)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)))throw new TypeError("expected a buffer or string");var t;return e.content=e.content.toString(),e.sections=[],e}(e),s=i({},{section_delimiter:"---",parse:a},t),l=s.section_delimiter,u=n.content.split(/\r?\n/),c=null,d={key:"",data:"",content:""},f=[],p=[];function h(e){n.content=e,c=[],f=[]}function m(e){p.length&&(d.key=function(e,t){return e?e.slice(t.length).trim():""}(p[0],l),d.content=e,s.parse(d,c),c.push(d),d={key:"",data:"",content:""},f=[],p=[])}for(var g=0;g<u.length;g++){var v=u[g],y=p.length,b=v.trim();if(o(b,l)){if(3===b.length&&0!==g){if(0===y||2===y){f.push(v);continue}p.push(b),d.data=f.join("\n"),f=[];continue}null===c&&h(f.join("\n")),2===y&&m(f.join("\n")),p.push(b)}else f.push(v)}return null===c?h(f.join("\n")):m(f.join("\n")),n.sections=c,n}},63252:function(e){!function(t){"use strict";var n=function(e){setTimeout(e,0)};"undefined"!=typeof process&&process&&"function"==typeof process.nextTick&&(n=process.nextTick),e.exports=function(e){var t={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===t.firstHere){t.current++,t.firstHere=!0;var e=1}else e=0;var n={n:1};"function"==typeof arguments[0]?n.task=arguments[0]:n.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var r=n.task;if(n.task=function(){r(t.leave)},t.current+n.n-e>t.capacity)return 1===e&&(t.current--,t.firstHere=!1),t.queue.push(n);t.current+=n.n-e,n.task(t.leave),1===e&&(t.firstHere=!1)},leave:function(e){if(e=e||1,t.current-=e,t.queue.length){var r=t.queue[0];r.n+t.current>t.capacity||(t.queue.shift(),t.current+=r.n,n(r.task))}else if(t.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,t.current+e<=t.capacity}};return t}}()},47669:(e,t,n)=>{"use strict";var r=n(67286),i=n(75195),o=n(81181)(),a=n(50326),s=n(5408),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},74294:(e,t,n)=>{"use strict";var r=n(67286),i=n(62680),o=n(99500),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},20672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HISTORY:()=>a,History:()=>o,HistoryEditor:()=>u,MERGING:()=>l,SAVING:()=>s,withHistory:()=>c});var r=n(66439),i=n(72056),o={isHistory:e=>(0,r.P)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||i.Operation.isOperationList(e.redos[0].operations))&&(0===e.undos.length||i.Operation.isOperationList(e.undos[0].operations))},a=new WeakMap,s=new WeakMap,l=new WeakMap,u={isHistoryEditor:e=>o.isHistory(e.history)&&i.Editor.isEditor(e),isMerging:e=>l.get(e),isSaving:e=>s.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=u.isMerging(e);l.set(e,!1),t(),l.set(e,n)},withoutSaving(e,t){var n=u.isSaving(e);s.set(e,!1),t(),s.set(e,n)}},c=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&i.Transforms.setSelection(t,r.selectionBefore),u.withoutSaving(t,(()=>{i.Editor.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];u.withoutSaving(t,(()=>{i.Editor.withoutNormalizing(t,(()=>{var e=r.operations.map(i.Operation.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&i.Transforms.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a.operations[a.operations.length-1],l=u.isSaving(t),c=u.isMerging(t);if(null==l&&(l=f(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||d(e,s))),a&&c)a.operations.push(e);else{var p={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",p)}for(;o.length>100;)o.shift();i.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},d=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!i.Path.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!i.Path.equals(e.path,t.path)),f=(e,t)=>"set_selection"!==e.type},77713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultElement:()=>xt,DefaultLeaf:()=>vt,DefaultPlaceholder:()=>dn,Editable:()=>cn,ReactEditor:()=>it,Slate:()=>xn,useEditor:()=>En,useFocused:()=>vn,useReadOnly:()=>Tt,useSelected:()=>Ct,useSlate:()=>Pt,useSlateSelection:()=>kn,useSlateSelector:()=>wn,useSlateStatic:()=>ht,useSlateWithV:()=>Rt,withReact:()=>Pn});var r=n(93636),i=n.n(r),o=n(54073),a=n.n(o),s=n(12436),l=n.n(s),u=n(12244),c=n.n(u);function d(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function f(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return f(n.overflowY,t)||f(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}var m=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!d(e))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,m=[],g=e;d(g)&&l(g);){if((g=null==(c=(u=g).parentElement)?u.getRootNode().host||null:c)===f){m.push(g);break}null!=g&&g===document.body&&p(g)&&!p(document.documentElement)||null!=g&&p(g,s)&&m.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,y=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),x=_.height,E=_.width,k=_.top,C=_.right,S=_.bottom,A=_.left,T="start"===i||"nearest"===i?k:"end"===i?S:k+x/2,O="center"===o?A+E/2:"end"===o?C:A,P=[],R=0;R<m.length;R++){var M=m[R],D=M.getBoundingClientRect(),I=D.height,L=D.width,j=D.top,N=D.right,F=D.bottom,B=D.left;if("if-needed"===r&&k>=0&&A>=0&&S<=y&&C<=v&&k>=j&&S<=F&&A>=B&&C<=N)return P;var U=getComputedStyle(M),z=parseInt(U.borderLeftWidth,10),q=parseInt(U.borderTopWidth,10),W=parseInt(U.borderRightWidth,10),$=parseInt(U.borderBottomWidth,10),H=0,G=0,V="offsetWidth"in M?M.offsetWidth-M.clientWidth-z-W:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-q-$:0,Z="offsetWidth"in M?0===M.offsetWidth?0:L/M.offsetWidth:0,Y="offsetHeight"in M?0===M.offsetHeight?0:I/M.offsetHeight:0;if(f===M)H="start"===i?T:"end"===i?T-y:"nearest"===i?h(w,w+y,y,q,$,w+T,w+T+x,x):T-y/2,G="start"===o?O:"center"===o?O-v/2:"end"===o?O-v:h(b,b+v,v,z,W,b+O,b+O+E,E),H=Math.max(0,H+w),G=Math.max(0,G+b);else{H="start"===i?T-j-q:"end"===i?T-F+$+K:"nearest"===i?h(j,F,I,q,$+K,T,T+x,x):T-(j+I/2)+K/2,G="start"===o?O-B-z:"center"===o?O-(B+L/2)+V/2:"end"===o?O-N+W+V:h(B,N,L,z,W+V,O,O+E,E);var X=M.scrollLeft,Q=M.scrollTop;T+=Q-(H=Math.max(0,Math.min(Q+H/Y,M.scrollHeight-I/Y+K))),O+=X-(G=Math.max(0,Math.min(X+G/Z,M.scrollWidth-L/Z+V)))}P.push({el:M,top:H,left:G})}return P};function g(e){return e===Object(e)&&0!==Object.keys(e).length}var v,y=n(72056),b=[],w="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(v||(v={}));var _,x=function(e){return Object.freeze(e)},E=function(e,t){this.inlineSize=e,this.blockSize=t,x(this)},k=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,x(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},S=function(e){if(C(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},A=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},T="undefined"!=typeof window?window:{},O=new WeakMap,P=/auto|scroll/,R=/^tb|vertical/,M=/msie|trident/i.test(T.navigator&&T.navigator.userAgent),D=function(e){return parseFloat(e||"0")},I=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new E((n?t:e)||0,(n?e:t)||0)},L=x({devicePixelContentBoxSize:I(),borderBoxSize:I(),contentBoxSize:I(),contentRect:new k(0,0,0,0)}),j=function(e,t){if(void 0===t&&(t=!1),O.has(e)&&!t)return O.get(e);if(S(e))return O.set(e,L),L;var n=getComputedStyle(e),r=C(e)&&e.ownerSVGElement&&e.getBBox(),i=!M&&"border-box"===n.boxSizing,o=R.test(n.writingMode||""),a=!r&&P.test(n.overflowY||""),s=!r&&P.test(n.overflowX||""),l=r?0:D(n.paddingTop),u=r?0:D(n.paddingRight),c=r?0:D(n.paddingBottom),d=r?0:D(n.paddingLeft),f=r?0:D(n.borderTopWidth),p=r?0:D(n.borderRightWidth),h=r?0:D(n.borderBottomWidth),m=d+u,g=l+c,v=(r?0:D(n.borderLeftWidth))+p,y=f+h,b=s?e.offsetHeight-y-e.clientHeight:0,w=a?e.offsetWidth-v-e.clientWidth:0,_=i?m+v:0,E=i?g+y:0,A=r?r.width:D(n.width)-_-w,T=r?r.height:D(n.height)-E-b,j=A+m+w+v,N=T+g+b+y,F=x({devicePixelContentBoxSize:I(Math.round(A*devicePixelRatio),Math.round(T*devicePixelRatio),o),borderBoxSize:I(j,N,o),contentBoxSize:I(A,T,o),contentRect:new k(d,l,A,T)});return O.set(e,F),F},N=function(e,t,n){var r=j(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case v.DEVICE_PIXEL_CONTENT_BOX:return a;case v.BORDER_BOX:return i;default:return o}},F=function(e){var t=j(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=x([t.borderBoxSize]),this.contentBoxSize=x([t.contentBoxSize]),this.devicePixelContentBoxSize=x([t.devicePixelContentBoxSize])},B=function(e){if(S(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},U=function(){var e=1/0,t=[];b.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new F(t.target),i=B(t.target);r.push(n),t.lastReportedSize=N(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++)(0,r[n])();return e},z=function(e){b.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(B(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},q=[],W=0,$={attributes:!0,characterData:!0,childList:!0,subtree:!0},H=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],G=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,K=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!V){V=!0;var n,r=G(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(z(t);b.some((function(e){return e.activeTargets.length>0}));)t=U(),z(t);return b.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:w}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=w),window.dispatchEvent(e)),t>0}()}finally{if(V=!1,e=r-G(),!W)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!_){var t=0,n=document.createTextNode("");new MutationObserver((function(){return q.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),_=function(){n.textContent="".concat(t?t--:t++)}}q.push(e),_()}((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,$)};document.body?t():T.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),H.forEach((function(t){return T.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),H.forEach((function(t){return T.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Z=function(e){!W&&e>0&&K.start(),!(W+=e)&&K.stop()},Y=function(){function e(e,t){this.target=e,this.observedBox=t||v.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=N(this.target,this.observedBox,!0);return e=this.target,C(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),X=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Q=new WeakMap,J=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ee=function(){function e(){}return e.connect=function(e,t){var n=new X(e,t);Q.set(e,n)},e.observe=function(e,t,n){var r=Q.get(e),i=0===r.observationTargets.length;J(r.observationTargets,t)<0&&(i&&b.push(r),r.observationTargets.push(new Y(t,n&&n.box)),Z(1),K.schedule())},e.unobserve=function(e,t){var n=Q.get(e),r=J(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&b.splice(b.indexOf(n),1),n.observationTargets.splice(r,1),Z(-1))},e.disconnect=function(e){var t=this,n=Q.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),te=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ee.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!A(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!A(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.unobserve(this,e)},e.prototype.disconnect=function(){ee.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),ne=n(17249),re=n(53741),ie=n.n(re);function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var se=0;class le{constructor(){this.id="".concat(se++)}}var ue=new WeakMap,ce=new WeakMap,de=new WeakMap,fe=new WeakMap,pe=new WeakMap,he=new WeakMap,me=new WeakMap,ge=new WeakMap,ve=new WeakMap,ye=new WeakMap,be=new WeakMap,we=new WeakMap,_e=new WeakMap,xe=new WeakMap,Ee=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Te=new WeakMap,Oe=new WeakMap,Pe=Symbol("placeholder"),Re=Symbol("mark-placeholder"),Me=globalThis.Text,De=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Ie=e=>Le(e)&&1===e.nodeType,Le=e=>{var t=De(e);return!!t&&e instanceof t.Node},je=e=>{var t=e&&e.anchorNode&&De(e.anchorNode);return!!t&&e instanceof t.Selection},Ne=e=>Le(e)&&3===e.nodeType,Fe=(e,t,n)=>{for(var r,{childNodes:i}=e,o=i[t],a=t,s=!1,l=!1;(Le(r=o)&&8===r.nodeType||Ie(o)&&0===o.childNodes.length||Ie(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)a>=i.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(o=i[a],t=a,a+="forward"===n?1:-1);return[o,t]},Be=(e,t,n)=>{var[r]=Fe(e,t,n);return r},Ue=e=>{var t="";if(Ne(e)&&e.nodeValue)return e.nodeValue;if(Ie(e)){for(var n of Array.from(e.childNodes))t+=Ue(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},ze=/data-slate-fragment="(.+?)"/m,qe=(e,t,n)=>{var{target:r}=t;if(Ie(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=it.getWindow(e);if(i.contains(r))return it.hasDOMNode(e,r,{editable:!0});var o=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var i of t)if(i===r||i.contains(r))return!0;for(var o of n)if(o===r||o.contains(r))return!0}));return!(!o||o===t)&&qe(e,o,n)},We=parseInt(c().version.split(".")[0],10)>=17,$e="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,He="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Ge="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Ve="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ke="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Ze="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Ye="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Xe="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Qe=Ge&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),Je="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),et="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),tt="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),nt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rt=(!Xe||!Qe)&&!Ze&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,it={isComposing:e=>!!we.get(e),getWindow(e){var t=de.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=ge.get(t);return n||(n=new le,ge.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var i=ce.get(r);if(null==i){if(y.Editor.isEditor(r))return n;break}var o=ue.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(y.Scrubber.stringify(t)))},findDocumentOrShadowRoot(e){var t=it.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!be.get(e),isReadOnly:e=>!!ye.get(e),blur(e){var t=it.toDOMNode(e,e),n=it.findDocumentOrShadowRoot(e);be.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=it.toDOMNode(e,e),n=it.findDocumentOrShadowRoot(e);be.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=it.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&y.Transforms.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=r,o=it.toDOMNode(e,e);try{n=Ie(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==o||i&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==o)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=ve.get(e),r=y.Editor.isEditor(t)?fe.get(e):null==n?void 0:n.get(it.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(y.Scrubber.stringify(t)));return r},toDOMPoint(e,t){var n,[r]=y.Editor.node(e,t.path),i=it.toDOMNode(e,r);y.Editor.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<o.length;s++){var l=o[s],u=l.childNodes[0];if(null!=u&&null!=u.textContent){var{length:c}=u.textContent,d=l.getAttribute("data-slate-length"),f=a+(null==d?c:parseInt(d,10)),p=o[s+1];if(t.offset===f&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var h,m=p.childNodes[0];n=[m instanceof Me?m:p,null!==(h=p.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=f){n=[u,Math.min(c,Math.max(0,t.offset-a))];break}a=f}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(y.Scrubber.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,i=y.Range.isBackward(t),o=it.toDOMPoint(e,n),a=y.Range.isCollapsed(t)?o:it.toDOMPoint(e,r),s=it.getWindow(e).document.createRange(),[l,u]=i?a:o,[c,d]=i?o:a,f=!!(Ie(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),p=!!(Ie(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,f?1:u),s.setEnd(c,p?1:d),s},toSlateNode(e,t){var n=Ie(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?he.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=it.toSlateNode(e,t.target),s=it.findPath(e,a);if(y.Element.isElement(a)&&y.Editor.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=y.Editor.point(e,s,{edge:u?"start":"end"}),d=u?y.Editor.before(e,c):y.Editor.after(e,c);if(d)return y.Editor.range(e,d)}var{document:f}=it.getWindow(e);if(f.caretRangeFromPoint)o=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((o=f.createRange()).setStart(p.offsetNode,p.offset),o.setEnd(p.offsetNode,p.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return it.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:i}=n,[o,a]=r?t:(e=>{var[t,n]=e;if(Ie(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=Fe(t,i,r?"backward":"forward"),r=i<n;Ie(t)&&t.childNodes.length;){var o=r?t.childNodes.length-1:0;t=Be(t,o,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=o.parentNode,l=null,u=0;if(s){var c,d,f=it.toDOMNode(e,e),p=s.closest('[data-slate-void="true"]'),h=p&&f.contains(p)?p:null,m=s.closest("[data-slate-leaf]"),g=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var v=it.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(o,a);var b=v.cloneContents();[...Array.prototype.slice.call(b.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(b.querySelectorAll("[contenteditable=false]"))].forEach((e=>{Ge&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),u=b.textContent.length,g=l}}else if(h){for(var w=h.querySelectorAll("[data-slate-leaf]"),_=0;_<w.length;_++){var x=w[_];if(it.hasDOMNode(e,x)){m=x;break}}m?(l=m.closest('[data-slate-node="text"]'),u=(g=m).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach((e=>{u-=e.textContent.length}))):u=1}g&&u===g.textContent.length&&Ge&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(c=g.textContent)&&void 0!==c&&c.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||Ve&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&u--}if(Ge&&!l&&!r){var E=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(E&&it.hasDOMNode(e,E,{editable:!0})){var k=it.toSlateNode(e,E),{path:C,offset:S}=y.Editor.start(e,it.findPath(e,k));return E.querySelector("[data-slate-leaf]")||(S=a),{path:C,offset:S}}}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var A=it.toSlateNode(e,l);return{path:it.findPath(e,A),offset:u}},toSlateRange(e,t,n){var r,i,o,a,s,l,{exactMatch:u,suppressThrow:c}=n;if((je(t)?t.anchorNode:t.startContainer)&&(je(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=Ye&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(r)?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));"getAttribute"in o&&"false"===o.getAttribute("contenteditable")&&(o=r,a=(null===(l=r.textContent)||void 0===l?void 0:l.length)||0);var d=it.toSlatePoint(e,[r,i],{exactMatch:u,suppressThrow:c});if(!d)return null;var f=s?d:it.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:c});if(!f)return null;if(Ve&&!s&&r!==o){var p=y.Editor.isEnd(e,d,d.path),h=y.Editor.isStart(e,f,f.path);p&&(d=y.Editor.after(e,d)||d),h&&(f=y.Editor.before(e,f)||f)}var m={anchor:d,focus:f};return y.Range.isExpanded(m)&&y.Range.isForward(m)&&Ie(o)&&y.Editor.void(e,{at:m.focus,mode:"highest"})&&(m=y.Editor.unhangRange(e,m,{voids:!0})),m},hasRange(e,t){var{anchor:n,focus:r}=t;return y.Editor.hasPath(e,n.path)&&y.Editor.hasPath(e,r.path)},hasTarget:(e,t)=>Le(t)&&it.hasDOMNode(e,t),hasEditableTarget:(e,t)=>Le(t)&&it.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>it.hasEditableTarget(e,t)||it.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(ye.get(e))return!1;var n=it.hasTarget(e,t)&&it.toSlateNode(e,t);return y.Element.isElement(n)&&y.Editor.isVoid(e,n)},androidScheduleFlush(e){var t;null===(t=Ee.get(e))||void 0===t||t()},androidPendingDiffs:e=>Se.get(e)},ot=["anchor","focus"],at=["anchor","focus"],st=(e,t)=>{var n,r,i=ae(e,ot),o=ae(t,at);return e[Pe]===t[Pe]&&(n=i,r=o,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))},lt=nt?u.useLayoutEffect:u.useEffect,ut=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=ht(),a=it.findPath(o,i),s=y.Path.parent(a),l=!0===n[Re];return o.isVoid(r)?c().createElement(ft,{length:y.Node.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||o.isInline(r)||""!==y.Editor.string(o,s)?""===n.text?c().createElement(ft,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c().createElement(ct,{isTrailing:!0,text:n.text}):c().createElement(ct,{text:n.text}):c().createElement(ft,{isLineBreak:!0,isMarkPlaceholder:l})},ct=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,u.useRef)(null),i=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[o]=(0,u.useState)(i);return lt((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),c().createElement(dt,{ref:r},o)},dt=(0,u.memo)((0,u.forwardRef)(((e,t)=>c().createElement("span",{"data-slate-string":!0,ref:t},e.children)))),ft=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),c().createElement("span",Object.assign({},i),Ge&&n?null:"\ufeff",n?c().createElement("br",null):null)},pt=(0,u.createContext)(null),ht=()=>{var e=(0,u.useContext)(pt);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},mt=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=(e=>c().createElement(vt,Object.assign({},e)))}=e,s=(0,u.useRef)(null),l=(0,u.useRef)(null),d=ht(),f=(0,u.useRef)(null);(0,u.useEffect)((()=>()=>{f.current&&f.current.disconnect()}),[]),(0,u.useEffect)((()=>{var e=null==l?void 0:l.current;if(e?pe.set(d,e):pe.delete(d),f.current)f.current.disconnect(),e&&f.current.observe(e);else if(e){var t=window.ResizeObserver||te;f.current=new t((()=>{var e=Oe.get(d);null==e||e()})),f.current.observe(e)}if(!e&&s.current){var n=Oe.get(d);null==n||n()}return s.current=l.current,()=>{pe.delete(d)}}),[l,t]);var p=c().createElement(ut,{isLast:n,leaf:t,parent:i,text:r});if(t[Pe]){var h={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=c().createElement(c().Fragment,null,o(h),p)}return a({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},gt=c().memo(mt,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&y.Text.equals(t.leaf,e.leaf)&&t.leaf[Pe]===e.leaf[Pe])),vt=e=>{var{attributes:t,children:n}=e;return c().createElement("span",Object.assign({},t),n)},yt=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:a}=e,s=ht(),l=(0,u.useRef)(null),d=y.Text.decorations(a,t),f=it.findKey(s,a),p=[],h=0;h<d.length;h++){var m=d[h];p.push(c().createElement(gt,{isLast:n&&h===d.length-1,key:"".concat(f.id,"-").concat(h),renderPlaceholder:i,leaf:m,text:a,parent:r,renderLeaf:o}))}var g=(0,u.useCallback)((e=>{var t=ve.get(s);e?(null==t||t.set(f,e),me.set(a,e),he.set(e,a)):(null==t||t.delete(f),me.delete(a),l.current&&he.delete(l.current)),l.current=e}),[l,s,f,a]);return c().createElement("span",{"data-slate-node":"text",ref:g},p)},bt=c().memo(yt,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.anchor.offset!==i.anchor.offset||r.focus.offset!==i.focus.offset||!st(r,i))return!1}return!0})(t.decorations,e.decorations))),wt=e=>{var{decorations:t,element:n,renderElement:r=(e=>c().createElement(xt,Object.assign({},e))),renderPlaceholder:o,renderLeaf:a,selection:s}=e,l=ht(),d=Tt(),f=l.isInline(n),p=it.findKey(l,n),h=(0,u.useCallback)((e=>{var t=ve.get(l);e?(null==t||t.set(p,e),me.set(n,e),he.set(e,n)):(null==t||t.delete(p),me.delete(n))}),[l,p,n]),m=St({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:s}),g={"data-slate-node":"element",ref:h};if(f&&(g["data-slate-inline"]=!0),!f&&y.Editor.hasInlines(l,n)){var v=y.Node.string(n),b=i()(v);"rtl"===b&&(g.dir=b)}if(y.Editor.isVoid(l,n)){g["data-slate-void"]=!0,!d&&f&&(g.contentEditable=!1);var w=f?"span":"div",[[_]]=y.Node.texts(n);m=c().createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c().createElement(bt,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:_})),ue.set(_,0),ce.set(_,n)}return r({attributes:g,children:m,element:n})},_t=c().memo(wt,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(!y.Range.equals(r,i)||!st(r,i))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&y.Range.equals(e.selection,t.selection)))),xt=e=>{var{attributes:t,children:n,element:r}=e,i=ht().isInline(r)?"span":"div";return c().createElement(i,Object.assign({},t,{style:{position:"relative"}}),n)},Et=(0,u.createContext)((()=>[])),kt=(0,u.createContext)(!1),Ct=()=>(0,u.useContext)(kt),St=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}=e,s=(0,u.useContext)(Et),l=ht(),d=it.findPath(l,n),f=[],p=y.Element.isElement(n)&&!l.isInline(n)&&y.Editor.hasInlines(l,n),h=0;h<n.children.length;h++){var m=d.concat(h),g=n.children[h],v=it.findKey(l,g),b=y.Editor.range(l,m),w=a&&y.Range.intersection(b,a),_=s([g,m]);for(var x of t){var E=y.Range.intersection(x,b);E&&_.push(E)}y.Element.isElement(g)?f.push(c().createElement(kt.Provider,{key:"provider-".concat(v.id),value:!!w},c().createElement(_t,{decorations:_,element:g,key:v.id,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:w}))):f.push(c().createElement(bt,{decorations:_,key:v.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:o,text:g})),ue.set(g,h),ce.set(g,n)}return f},At=(0,u.createContext)(!1),Tt=()=>(0,u.useContext)(At),Ot=(0,u.createContext)(null),Pt=()=>{var e=(0,u.useContext)(Ot);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t},Rt=()=>{var e=(0,u.useContext)(Ot);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return e},Mt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Dt={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},It={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Lt=e=>{var t=Mt[e],n=Dt[e],r=It[e],i=t&&(0,ne.TB)(t),o=n&&(0,ne.TB)(n),a=r&&(0,ne.TB)(r);return e=>!(!i||!i(e))||!!(He&&o&&o(e))||!(He||!a||!a(e))},jt={isBold:Lt("bold"),isCompose:Lt("compose"),isMoveBackward:Lt("moveBackward"),isMoveForward:Lt("moveForward"),isDeleteBackward:Lt("deleteBackward"),isDeleteForward:Lt("deleteForward"),isDeleteLineBackward:Lt("deleteLineBackward"),isDeleteLineForward:Lt("deleteLineForward"),isDeleteWordBackward:Lt("deleteWordBackward"),isDeleteWordForward:Lt("deleteWordForward"),isExtendBackward:Lt("extendBackward"),isExtendForward:Lt("extendForward"),isExtendLineBackward:Lt("extendLineBackward"),isExtendLineForward:Lt("extendLineForward"),isItalic:Lt("italic"),isMoveLineBackward:Lt("moveLineBackward"),isMoveLineForward:Lt("moveLineForward"),isMoveWordBackward:Lt("moveWordBackward"),isMoveWordForward:Lt("moveWordForward"),isRedo:Lt("redo"),isSoftBreak:Lt("insertSoftBreak"),isSplitBlock:Lt("splitBlock"),isTransposeCharacter:Lt("transposeCharacter"),isUndo:Lt("undo")},Nt={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class Ft extends u.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,Nt)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var i=r.filter((t=>qe(e,t,r)));n.push(...i)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((e=>{"characterData"!==e.type&&(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)})))})),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,i=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=i&&i.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(i)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}Ft.contextType=pt;var Bt=Ge?Ft:e=>{var{children:t}=e;return c().createElement(c().Fragment,null,t)};function Ut(e,t){var{path:n,diff:r}=t;if(!y.Editor.hasPath(e,n))return!1;var i=y.Node.get(e,n);if(!y.Text.isText(i))return!1;if(r.start!==i.text.length||0===r.text.length)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=y.Path.next(n);if(!y.Editor.hasPath(e,o))return!1;var a=y.Node.get(e,o);return y.Text.isText(a)&&a.text.startsWith(r.text)}function zt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}function qt(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(o,i),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}(o,i,Math.min(o.length-a,i.length-a)),l={start:n+a,end:r-s,text:i.slice(a,i.length-s)};return l.start===l.end&&0===l.text.length?null:l}function Wt(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function $t(e,t){var{path:n,offset:r}=t;if(!y.Editor.hasPath(e,n))return null;var i=y.Node.get(e,n);if(!y.Text.isText(i))return null;var o=y.Editor.above(e,{match:t=>y.Element.isElement(t)&&y.Editor.isBlock(e,t),at:n});if(!o)return null;for(;r>i.text.length;){var a=y.Editor.next(e,{at:n,match:y.Text.isText});if(!a||!y.Path.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function Ht(e,t){var n=$t(e,t.anchor);if(!n)return null;if(y.Range.isCollapsed(t))return{anchor:n,focus:n};var r=$t(e,t.focus);return r?{anchor:n,focus:r}:null}function Gt(e,t,n){var r=Se.get(e),i=null==r?void 0:r.find((e=>{var{path:n}=e;return y.Path.equals(n,t.path)}));if(!i||t.offset<=i.diff.start)return y.Point.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},s=y.Point.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},u=y.Point.transform(l,n,{affinity:"backward"});return u?"split_node"===n.type&&y.Path.equals(n.path,t.path)&&l.offset<n.position&&o.start<n.position?u:{path:u.path,offset:u.offset+o.text.length-o.end+o.start}:null}function Vt(e,t,n){var r=Gt(e,t.anchor,n);if(!r)return null;if(y.Range.isCollapsed(t))return{anchor:r,focus:r};var i=Gt(e,t.focus,n);return i?{anchor:r,focus:i}:null}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt=25,Xt=200,Qt=function(){},Jt=e=>"DataTransfer"===(null==e?void 0:e.constructor.name);var en=["node"];function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var nn={subtree:!0,childList:!0,characterData:!0};function rn(e){var{node:t}=e,n=ae(e,en);if(!Ge)return null;var r,i=ht(),o=(r=(0,u.useRef)(!1),(0,u.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,u.useState)((()=>function(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,s=null,l=0,u=!1,c=()=>{var e=Te.get(t);if(Te.delete(t),e){var{selection:n}=t,r=Ht(t,e);!r||n&&y.Range.equals(r,n)||y.Transforms.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){i||(i=!0,setTimeout((()=>i=!1))),m()&&(i="action");var e=t.selection&&y.Editor.rangeRef(t,t.selection,{affinity:"forward"});Ce.set(t,t.marks),Qt("flush",Ae.get(t),Se.get(t));for(var o,l=g();o=null===(d=Se.get(t))||void 0===d?void 0:d[0];){var d,f,p=ke.get(t);void 0!==p&&(ke.delete(t),t.marks=p),p&&!1===u&&(u=null);var h=Wt(o);t.selection&&y.Range.equals(t.selection,h)||y.Transforms.select(t,h),o.diff.text?y.Editor.insertText(t,o.diff.text):y.Editor.deleteFragment(t),Se.set(t,null===(f=Se.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==o.id}))),Ut(t,o)||(l=!1,Ae.delete(t),Ce.delete(t),i="action",Te.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||Te.get(t)||t.selection&&y.Range.equals(v,t.selection)||y.Transforms.select(t,v),m())(()=>{var e=Ae.get(t);if(Ae.delete(t),e){if(e.at){var n=y.Point.isPoint(e.at)?$t(t,e.at):Ht(t,e.at);if(!n)return;var r=y.Editor.range(t,n);t.selection&&y.Range.equals(t.selection,r)||y.Transforms.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),c();var b=Ce.get(t);Ce.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else c()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=pe.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},p=(e,n)=>{var r,i=null!==(r=Se.get(t))&&void 0!==r?r:[];Se.set(t,i);var o=y.Node.leaf(t,e),a=i.findIndex((t=>y.Path.equals(t.path,e)));if(a<0)return qt(o.text,n)&&i.push({path:e,diff:n,id:l++}),void f();var s,u,c,d,p,h,m,g,v=(s=o.text,u=i[a].diff,c=n,d=Math.min(u.start,c.start),p=Math.max(0,Math.min(u.start+u.text.length,c.end)-c.start),h=zt(s,u,c),m=Math.max(c.start+c.text.length,u.start+u.text.length+(u.start+u.text.length>c.start?c.text.length:0)-p),g=h.slice(d,m),qt(s,{start:d,end:Math.max(u.end,c.end-u.text.length+(u.end-u.start)),text:g}));if(!v)return i.splice(a,1),void f();i[a]=Zt(Zt({},i[a]),{},{diff:v})},h=function(e){var{at:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,Te.delete(t),n.cancel(),r.cancel(),m()&&d(),Ae.set(t,{at:i,run:e}),s=setTimeout(d)},m=()=>!!Ae.get(t),g=()=>{var e;return!(null===(e=Se.get(t))||void 0===e||!e.length)},v=e=>{Te.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!y.Path.equals(n.anchor.path,e.anchor.path),i=!n||!y.Path.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&u||i)&&(u=!1),(r||g())&&(a=setTimeout(d,Xt))}},b=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:b,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>i,handleUserSelect:v,handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout((()=>{we.set(t,!1),d()}),Yt)},handleCompositionStart:e=>{we.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,i=null,o=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==r&&"insertCompositionText"!==r&&(u=!1);var[s]=e.getTargetRanges();s&&(i=it.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=it.getWindow(t).getSelection();if(!i&&l&&(s=l,i=it.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),i=null!==(n=i)&&void 0!==n?n:t.selection){var c=!0;if(r.startsWith("delete")){if(y.Range.isExpanded(i)){var[d,f]=y.Range.edges(i);if(y.Node.leaf(t,d.path).text.length===d.offset&&0===f.offset){var m=y.Editor.next(t,{at:d.path,match:y.Text.isText});m&&y.Path.equals(m[1],f.path)&&(i={anchor:f,focus:f})}}var g=r.endsWith("Backward")?"backward":"forward",[w,_]=y.Range.edges(i),[x,E]=y.Editor.leaf(t,w.path),k={text:"",start:w.offset,end:_.offset},C=Se.get(t),S=null==C?void 0:C.find((e=>y.Path.equals(e.path,E))),A=S?[S.diff,k]:[k];if(0===zt(x.text,...A).length&&(c=!1),y.Range.isExpanded(i)){if(c&&y.Path.equals(i.anchor.path,i.focus.path)){var T={path:i.anchor.path,offset:w.offset},O=y.Editor.range(t,T,T);return v(O),p(i.anchor.path,{text:"",end:_.offset,start:w.offset})}return h((()=>y.Editor.deleteFragment(t,{direction:g})),{at:i})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>y.Editor.deleteFragment(t)),{at:i});case"deleteContent":case"deleteContentForward":var{anchor:P}=i;if(c&&y.Range.isCollapsed(i)){var R=y.Node.leaf(t,P.path);if(P.offset<R.text.length)return p(P.path,{text:"",start:P.offset,end:P.offset+1})}return h((()=>y.Editor.deleteForward(t)),{at:i});case"deleteContentBackward":var M,{anchor:D}=i,I=je(s)?s.isCollapsed:!(null===(M=s)||void 0===M||!M.collapsed);return c&&I&&y.Range.isCollapsed(i)&&D.offset>0?p(D.path,{text:"",start:D.offset-1,end:D.offset}):h((()=>y.Editor.deleteBackward(t)),{at:i});case"deleteEntireSoftLine":return h((()=>{y.Editor.deleteBackward(t,{unit:"line"}),y.Editor.deleteForward(t,{unit:"line"})}),{at:i});case"deleteHardLineBackward":return h((()=>y.Editor.deleteBackward(t,{unit:"block"})),{at:i});case"deleteSoftLineBackward":return h((()=>y.Editor.deleteBackward(t,{unit:"line"})),{at:i});case"deleteHardLineForward":return h((()=>y.Editor.deleteForward(t,{unit:"block"})),{at:i});case"deleteSoftLineForward":return h((()=>y.Editor.deleteForward(t,{unit:"line"})),{at:i});case"deleteWordBackward":return h((()=>y.Editor.deleteBackward(t,{unit:"word"})),{at:i});case"deleteWordForward":return h((()=>y.Editor.deleteForward(t,{unit:"word"})),{at:i});case"insertLineBreak":return h((()=>y.Editor.insertSoftBreak(t)),{at:i});case"insertParagraph":return h((()=>y.Editor.insertBreak(t)),{at:i});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(Jt(o))return h((()=>it.insertData(t,o)),{at:i});var L=null!=o?o:"";if(ke.get(t)&&(L=L.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(L)&&(L=L.slice(0,-1)),L.includes("\n"))return h((()=>{var e=L.split("\n");e.forEach(((n,r)=>{n&&y.Editor.insertText(t,n),r!==e.length-1&&y.Editor.insertSoftBreak(t)}))}),{at:i});if(y.Path.equals(i.anchor.path,i.focus.path)){var[j,N]=y.Range.edges(i),F={start:j.offset,end:N.offset,text:L};if(L&&u&&"insertCompositionText"===r){var B=u.start+u.text.search(/\S|$/);F.start+F.text.search(/\S|$/)===B+1&&F.end===u.start+u.text.length?(F.start-=1,u=null,b()):u=!1}else u="insertText"===r&&(null===u?F:!(!u||!y.Range.isCollapsed(i)||u.end+u.text.length!==j.offset)&&Zt(Zt({},u),{},{text:u.text+L}));if(c)return void p(j.path,F)}return h((()=>y.Editor.insertText(t,L)),{at:i})}}},handleKeyDown:e=>{g()||(f(!0),setTimeout(f))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>qe(t,n,e)))&&(null===(n=Oe.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:i},n))));return function(e,t,n){var[r]=(0,u.useState)((()=>new MutationObserver(t)));lt((()=>{r.takeRecords()})),(0,u.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[])}(t,a.handleDomMutations,nn),Ee.set(i,a.scheduleFlush),o&&a.flush(),a}var on=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],an=["text"];function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var un=e=>c().createElement(c().Fragment,null,St(e)),cn=e=>{var t,n,r=(0,u.useCallback)((e=>c().createElement(dn,Object.assign({},e))),[]),{autoFocus:o,decorate:s=fn,onDOMBeforeInput:d,placeholder:f,readOnly:p=!1,renderElement:h,renderLeaf:m,renderPlaceholder:g=r,scrollSelectionIntoView:v=pn,style:b={},as:w="div",disableDefaultStyles:_=!1}=e,x=ae(e,on),E=Pt(),[k,C]=(0,u.useState)(!1),S=(0,u.useRef)(null),A=(0,u.useRef)([]),{onUserInput:T,receivedUserInput:O}=function(){var e=ht(),t=(0,u.useRef)(!1),n=(0,u.useRef)(0),r=(0,u.useCallback)((()=>{if(!t.current){t.current=!0;var r=it.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return(0,u.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,P]=(0,u.useReducer)((e=>e+1),0);Oe.set(E,P),ye.set(E,p);var R=(0,u.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,u.useEffect)((()=>{S.current&&o&&S.current.focus()}),[o]);var M=(0,u.useCallback)(l()((()=>{if((Ge||!it.isComposing(E))&&(!R.isUpdatingSelection||null!=I&&I.isFlushing())&&!R.isDraggingInternally){var e=it.findDocumentOrShadowRoot(E),{activeElement:t}=e,n=it.toDOMNode(E,E),r=e.getSelection();if(t===n?(R.latestElement=t,be.set(E,!0)):be.delete(E),!r)return y.Transforms.deselect(E);var{anchorNode:i,focusNode:o}=r,a=it.hasEditableTarget(E,i)||it.isTargetInsideNonReadonlyVoid(E,i),s=it.hasEditableTarget(E,o)||it.isTargetInsideNonReadonlyVoid(E,o);if(a&&s){var l=it.toSlateRange(E,r,{exactMatch:!1,suppressThrow:!0});l&&(it.isComposing(E)||null!=I&&I.hasPendingChanges()||null!=I&&I.isFlushing()?null==I||I.handleUserSelect(l):y.Transforms.select(E,l))}!p||a&&s||y.Transforms.deselect(E)}}),100),[p]),D=(0,u.useMemo)((()=>a()(M,0)),[M]),I=rn({node:S,onDOMSelectionChange:M,scheduleOnDOMSelectionChange:D});lt((()=>{var e;S.current&&(e=De(S.current))?(de.set(E,e),fe.set(E,S.current),me.set(E,S.current),he.set(S.current,E)):me.delete(E);var{selection:t}=E,n=it.findDocumentOrShadowRoot(E).getSelection();if(n&&it.isFocused(E)&&(null==I||!I.hasPendingAction())){var r=e=>{var r="None"!==n.type;if(t||r){var i=fe.get(E),o=!1;if(i.contains(n.anchorNode)&&i.contains(n.focusNode)&&(o=!0),r&&o&&t&&!e){var a=it.toSlateRange(E,n,{exactMatch:!0,suppressThrow:!0});if(a&&y.Range.equals(a,t)){var s;if(!R.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||it.hasRange(E,t)){R.isUpdatingSelection=!0;var u=t&&it.toDOMRange(E,t);return u?(y.Range.isBackward(t)?n.setBaseAndExtent(u.endContainer,u.endOffset,u.startContainer,u.startOffset):n.setBaseAndExtent(u.startContainer,u.startOffset,u.endContainer,u.endOffset),v(E,u)):n.removeAllRanges(),u}E.selection=it.toSlateRange(E,n,{exactMatch:!1,suppressThrow:!0})}},i=r(),o="action"===(null==I?void 0:I.isFlushing());if(Ge&&o){var a=null,s=requestAnimationFrame((()=>{if(o){var e=e=>{try{it.toDOMNode(E,E).focus(),r(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),R.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{i&&Ve&&it.toDOMNode(E,E).focus(),R.isUpdatingSelection=!1}))}}));var L=(0,u.useCallback)((e=>{if(T(),!p&&it.hasEditableTarget(E,e.target)&&!mn(e,d)){var t;if(I)return I.handleDOMBeforeInput(e);D.flush(),M.flush();var{selection:n}=E,{inputType:r}=e,i=e.dataTransfer||e.data||void 0,o="insertCompositionText"===r||"deleteCompositionText"===r;if(o&&it.isComposing(E))return;var a=!1;if("insertText"===r&&n&&y.Range.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var s,l;a=!0,E.marks&&(a=!1);var{anchor:u}=n,[c,f]=it.toDOMPoint(E,u),h=null===(s=c.parentElement)||void 0===s?void 0:s.closest("a"),m=it.getWindow(E);if(a&&h&&it.hasDOMNode(E,h)){var g,v=null==m?void 0:m.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();v===c&&(null===(g=v.textContent)||void 0===g?void 0:g.length)===f&&(a=!1)}if(a&&c.parentElement&&"pre"===(null==m||null===(l=m.getComputedStyle(c.parentElement))||void 0===l?void 0:l.whiteSpace)){var b=y.Editor.above(E,{at:u.path,match:e=>y.Element.isElement(e)&&y.Editor.isBlock(E,e)});b&&y.Node.string(b[0]).includes("\t")&&(a=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[w]=e.getTargetRanges();if(w){var _=it.toSlateRange(E,w,{exactMatch:!1,suppressThrow:!1});if(!n||!y.Range.equals(n,_)){a=!1;var x=!o&&E.selection&&y.Editor.rangeRef(E,E.selection);y.Transforms.select(E,_),x&&_e.set(E,x)}}}if(o)return;if(a||e.preventDefault(),n&&y.Range.isExpanded(n)&&r.startsWith("delete")){var k=r.endsWith("Backward")?"backward":"forward";return void y.Editor.deleteFragment(E,{direction:k})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":y.Editor.deleteFragment(E);break;case"deleteContent":case"deleteContentForward":y.Editor.deleteForward(E);break;case"deleteContentBackward":y.Editor.deleteBackward(E);break;case"deleteEntireSoftLine":y.Editor.deleteBackward(E,{unit:"line"}),y.Editor.deleteForward(E,{unit:"line"});break;case"deleteHardLineBackward":y.Editor.deleteBackward(E,{unit:"block"});break;case"deleteSoftLineBackward":y.Editor.deleteBackward(E,{unit:"line"});break;case"deleteHardLineForward":y.Editor.deleteForward(E,{unit:"block"});break;case"deleteSoftLineForward":y.Editor.deleteForward(E,{unit:"line"});break;case"deleteWordBackward":y.Editor.deleteBackward(E,{unit:"word"});break;case"deleteWordForward":y.Editor.deleteForward(E,{unit:"word"});break;case"insertLineBreak":y.Editor.insertSoftBreak(E);break;case"insertParagraph":y.Editor.insertBreak(E);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&it.isComposing(E)&&(C(!1),we.set(E,!1)),"DataTransfer"===(null==i?void 0:i.constructor.name)?it.insertData(E,i):"string"==typeof i&&(a?A.current.push((()=>y.Editor.insertText(E,i))):y.Editor.insertText(E,i))}var S=null===(t=_e.get(E))||void 0===t?void 0:t.unref();_e.delete(E),!S||E.selection&&y.Range.equals(E.selection,S)||y.Transforms.select(E,S)}}),[p,d]),j=(0,u.useCallback)((e=>{null==e?(M.cancel(),D.cancel(),fe.delete(E),me.delete(E),S.current&&rt&&S.current.removeEventListener("beforeinput",L)):rt&&e.addEventListener("beforeinput",L),S.current=e}),[S,L,M,D]);lt((()=>{var e=it.getWindow(E);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var N=s([E,[]]);if(f&&1===E.children.length&&1===Array.from(y.Node.texts(E)).length&&""===y.Node.string(E)&&!k){var F=y.Editor.start(E,[]);N.push({[Pe]:!0,placeholder:f,anchor:F,focus:F})}var{marks:B}=E;if(R.hasMarkPlaceholder=!1,E.selection&&y.Range.isCollapsed(E.selection)&&B){var{anchor:U}=E.selection,z=y.Node.leaf(E,U.path),q=ae(z,an);if(!y.Text.equals(z,B,{loose:!0})){R.hasMarkPlaceholder=!0;var W=Object.fromEntries(Object.keys(q).map((e=>[e,null])));N.push(ln(ln(ln({[Re]:!0},W),B),{},{anchor:U,focus:U}))}}(0,u.useEffect)((()=>{setTimeout((()=>{var{selection:e}=E;if(e){var{anchor:t}=e,n=y.Node.leaf(E,t.path);if(B&&!y.Text.equals(n,B,{loose:!0}))return void ke.set(E,B)}ke.delete(E)}))}));var $=null===(t=pe.get(E))||void 0===t||null===(n=t.getBoundingClientRect())||void 0===n?void 0:n.height;return c().createElement(At.Provider,{value:p},c().createElement(Et.Provider,{value:s},c().createElement(Bt,{node:S,receivedUserInput:O},c().createElement(w,Object.assign({role:p?void 0:"textbox","aria-multiline":!p||void 0},x,{spellCheck:!(!rt&&nt)&&x.spellCheck,autoCorrect:rt||!nt?x.autoCorrect:"false",autoCapitalize:rt||!nt?x.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!p,zindex:-1,suppressContentEditableWarning:!0,ref:j,style:ln(ln({},_?{}:ln({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},$?{minHeight:$}:{})),b),onBeforeInput:(0,u.useCallback)((e=>{if(!rt&&!p&&!hn(e,x.onBeforeInput)&&it.hasSelectableTarget(E,e.target)&&(e.preventDefault(),!it.isComposing(E))){var t=e.data;y.Editor.insertText(E,t)}}),[p]),onInput:(0,u.useCallback)((e=>{if(!hn(e,x.onInput))if(I)I.handleInput();else{for(var t of A.current)t();A.current=[]}}),[]),onBlur:(0,u.useCallback)((e=>{if(!p&&!R.isUpdatingSelection&&it.hasSelectableTarget(E,e.target)&&!hn(e,x.onBlur)){var t=it.findDocumentOrShadowRoot(E);if(R.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===it.toDOMNode(E,E)||Ie(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&Le(n)&&it.hasDOMNode(E,n)){var r=it.toSlateNode(E,n);if(y.Element.isElement(r)&&!E.isVoid(r))return}if(Ke){var i=t.getSelection();null==i||i.removeAllRanges()}be.delete(E)}}}}),[p,x.onBlur]),onClick:(0,u.useCallback)((e=>{if(it.hasTarget(E,e.target)&&!hn(e,x.onClick)&&Le(e.target)){var t=it.toSlateNode(E,e.target),n=it.findPath(E,t);if(!y.Editor.hasPath(E,n)||y.Node.get(E,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!y.Element.isElement(t)||!y.Editor.isBlock(E,t)){var i,o=y.Editor.above(E,{match:e=>y.Element.isElement(e)&&y.Editor.isBlock(E,e),at:n});r=null!==(i=null==o?void 0:o[1])&&void 0!==i?i:n.slice(0,1)}var a=y.Editor.range(E,r);return void y.Transforms.select(E,a)}if(p)return;var s=y.Editor.start(E,n),l=y.Editor.end(E,n),u=y.Editor.void(E,{at:s}),c=y.Editor.void(E,{at:l});if(u&&c&&y.Path.equals(u[1],c[1])){var d=y.Editor.range(E,s);y.Transforms.select(E,d)}}}),[p,x.onClick]),onCompositionEnd:(0,u.useCallback)((e=>{if(it.hasSelectableTarget(E,e.target)){if(it.isComposing(E)&&(C(!1),we.set(E,!1)),null==I||I.handleCompositionEnd(e),hn(e,x.onCompositionEnd)||Ge)return;if(!Ke&&!Je&&!$e&&!tt&&!et&&e.data){var t=ke.get(E);ke.delete(E),void 0!==t&&(Ce.set(E,E.marks),E.marks=t),y.Editor.insertText(E,e.data);var n=Ce.get(E);Ce.delete(E),void 0!==n&&(E.marks=n)}}}),[x.onCompositionEnd]),onCompositionUpdate:(0,u.useCallback)((e=>{it.hasSelectableTarget(E,e.target)&&!hn(e,x.onCompositionUpdate)&&(it.isComposing(E)||(C(!0),we.set(E,!0)))}),[x.onCompositionUpdate]),onCompositionStart:(0,u.useCallback)((e=>{if(it.hasSelectableTarget(E,e.target)){if(null==I||I.handleCompositionStart(e),hn(e,x.onCompositionStart)||Ge)return;C(!0);var{selection:t}=E;if(t){if(y.Range.isExpanded(t))return void y.Editor.deleteFragment(E);var n=y.Editor.above(E,{match:e=>y.Element.isElement(e)&&y.Editor.isInline(E,e),mode:"highest"});if(n){var[,r]=n;if(y.Editor.isEnd(E,t.anchor,r)){var i=y.Editor.after(E,r);y.Transforms.setSelection(E,{anchor:i,focus:i})}}}}}),[x.onCompositionStart]),onCopy:(0,u.useCallback)((e=>{it.hasSelectableTarget(E,e.target)&&!hn(e,x.onCopy)&&(e.preventDefault(),it.setFragmentData(E,e.clipboardData,"copy"))}),[x.onCopy]),onCut:(0,u.useCallback)((e=>{if(!p&&it.hasSelectableTarget(E,e.target)&&!hn(e,x.onCut)){e.preventDefault(),it.setFragmentData(E,e.clipboardData,"cut");var{selection:t}=E;if(t)if(y.Range.isExpanded(t))y.Editor.deleteFragment(E);else{var n=y.Node.parent(E,t.anchor.path);y.Editor.isVoid(E,n)&&y.Transforms.delete(E)}}}),[p,x.onCut]),onDragOver:(0,u.useCallback)((e=>{if(it.hasTarget(E,e.target)&&!hn(e,x.onDragOver)){var t=it.toSlateNode(E,e.target);y.Element.isElement(t)&&y.Editor.isVoid(E,t)&&e.preventDefault()}}),[x.onDragOver]),onDragStart:(0,u.useCallback)((e=>{if(!p&&it.hasTarget(E,e.target)&&!hn(e,x.onDragStart)){var t=it.toSlateNode(E,e.target),n=it.findPath(E,t);if(y.Element.isElement(t)&&y.Editor.isVoid(E,t)||y.Editor.void(E,{at:n,voids:!0})){var r=y.Editor.range(E,n);y.Transforms.select(E,r)}R.isDraggingInternally=!0,it.setFragmentData(E,e.dataTransfer,"drag")}}),[p,x.onDragStart]),onDrop:(0,u.useCallback)((e=>{if(!p&&it.hasTarget(E,e.target)&&!hn(e,x.onDrop)){e.preventDefault();var t=E.selection,n=it.findEventRange(E,e),r=e.dataTransfer;y.Transforms.select(E,n),R.isDraggingInternally&&(!t||y.Range.equals(t,n)||y.Editor.void(E,{at:n,voids:!0})||y.Transforms.delete(E,{at:t})),it.insertData(E,r),it.isFocused(E)||it.focus(E)}R.isDraggingInternally=!1}),[p,x.onDrop]),onDragEnd:(0,u.useCallback)((e=>{!p&&R.isDraggingInternally&&x.onDragEnd&&it.hasTarget(E,e.target)&&x.onDragEnd(e),R.isDraggingInternally=!1}),[p,x.onDragEnd]),onFocus:(0,u.useCallback)((e=>{if(!p&&!R.isUpdatingSelection&&it.hasEditableTarget(E,e.target)&&!hn(e,x.onFocus)){var t=it.toDOMNode(E,E),n=it.findDocumentOrShadowRoot(E);if(R.latestElement=n.activeElement,Ve&&e.target!==t)return void t.focus();be.set(E,!0)}}),[p,x.onFocus]),onKeyDown:(0,u.useCallback)((e=>{if(!p&&it.hasEditableTarget(E,e.target)){null==I||I.handleKeyDown(e);var{nativeEvent:t}=e;if(it.isComposing(E)&&!1===t.isComposing&&(we.set(E,!1),C(!1)),hn(e,x.onKeyDown)||it.isComposing(E))return;var{selection:n}=E,r=E.children[null!==n?n.focus.path[0]:0],o="rtl"===i()(y.Node.string(r));if(jt.isRedo(t)){e.preventDefault();var a=E;return void("function"==typeof a.redo&&a.redo())}if(jt.isUndo(t)){e.preventDefault();var s=E;return void("function"==typeof s.undo&&s.undo())}if(jt.isMoveLineBackward(t))return e.preventDefault(),void y.Transforms.move(E,{unit:"line",reverse:!0});if(jt.isMoveLineForward(t))return e.preventDefault(),void y.Transforms.move(E,{unit:"line"});if(jt.isExtendLineBackward(t))return e.preventDefault(),void y.Transforms.move(E,{unit:"line",edge:"focus",reverse:!0});if(jt.isExtendLineForward(t))return e.preventDefault(),void y.Transforms.move(E,{unit:"line",edge:"focus"});if(jt.isMoveBackward(t))return e.preventDefault(),void(n&&y.Range.isCollapsed(n)?y.Transforms.move(E,{reverse:!o}):y.Transforms.collapse(E,{edge:"start"}));if(jt.isMoveForward(t))return e.preventDefault(),void(n&&y.Range.isCollapsed(n)?y.Transforms.move(E,{reverse:o}):y.Transforms.collapse(E,{edge:"end"}));if(jt.isMoveWordBackward(t))return e.preventDefault(),n&&y.Range.isExpanded(n)&&y.Transforms.collapse(E,{edge:"focus"}),void y.Transforms.move(E,{unit:"word",reverse:!o});if(jt.isMoveWordForward(t))return e.preventDefault(),n&&y.Range.isExpanded(n)&&y.Transforms.collapse(E,{edge:"focus"}),void y.Transforms.move(E,{unit:"word",reverse:o});if(rt){if((Ye||Ke)&&n&&(jt.isDeleteBackward(t)||jt.isDeleteForward(t))&&y.Range.isCollapsed(n)){var l=y.Node.parent(E,n.anchor.path);if(y.Element.isElement(l)&&y.Editor.isVoid(E,l)&&(y.Editor.isInline(E,l)||y.Editor.isBlock(E,l)))return e.preventDefault(),void y.Editor.deleteBackward(E,{unit:"block"})}}else{if(jt.isBold(t)||jt.isItalic(t)||jt.isTransposeCharacter(t))return void e.preventDefault();if(jt.isSoftBreak(t))return e.preventDefault(),void y.Editor.insertSoftBreak(E);if(jt.isSplitBlock(t))return e.preventDefault(),void y.Editor.insertBreak(E);if(jt.isDeleteBackward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"backward"}):y.Editor.deleteBackward(E));if(jt.isDeleteForward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"forward"}):y.Editor.deleteForward(E));if(jt.isDeleteLineBackward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"backward"}):y.Editor.deleteBackward(E,{unit:"line"}));if(jt.isDeleteLineForward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"forward"}):y.Editor.deleteForward(E,{unit:"line"}));if(jt.isDeleteWordBackward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"backward"}):y.Editor.deleteBackward(E,{unit:"word"}));if(jt.isDeleteWordForward(t))return e.preventDefault(),void(n&&y.Range.isExpanded(n)?y.Editor.deleteFragment(E,{direction:"forward"}):y.Editor.deleteForward(E,{unit:"word"}))}}}),[p,x.onKeyDown]),onPaste:(0,u.useCallback)((e=>{p||!it.hasEditableTarget(E,e.target)||hn(e,x.onPaste)||(!rt||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||Ke)&&(e.preventDefault(),it.insertData(E,e.clipboardData))}),[p,x.onPaste])}),c().createElement(un,{decorations:N,node:E,renderElement:h,renderPlaceholder:g,renderLeaf:m,selection:E.selection})))))},dn=e=>{var{attributes:t,children:n}=e;return c().createElement("span",Object.assign({},t),n,Ge&&c().createElement("br",null))},fn=()=>[],pn=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&y.Range.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(g(t)&&"function"==typeof t.behavior)return t.behavior(n?m(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:g(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))})(m(e,r),r.behavior)}}(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},hn=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},mn=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},gn=(0,u.createContext)(!1),vn=()=>(0,u.useContext)(gn),yn=(0,u.createContext)({}),bn=(e,t)=>e===t;function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn,[,n]=(0,u.useReducer)((e=>e+1),0),r=(0,u.useContext)(yn);if(!r)throw new Error("The `useSlateSelector` hook must be used inside the <Slate> component's context.");var i,{getSlate:o,addEventListener:a}=r,s=(0,u.useRef)(),l=(0,u.useRef)((()=>null)),c=(0,u.useRef)(null);try{i=e!==l.current||s.current?e(o()):c.current}catch(e){throw s.current&&e instanceof Error&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(s.current.stack,"\n\n")),e}return lt((()=>{l.current=e,c.current=i,s.current=void 0})),lt((()=>{function e(){try{var e=l.current(o());if(t(e,c.current))return;c.current=e}catch(e){s.current=e}n()}var r=a(e);return e(),()=>r()}),[a,o]),i}var _n=["editor","children","onChange","value"],xn=e=>{var{editor:t,children:n,onChange:r,value:i}=e,o=ae(e,_n),a=(0,u.useRef)(!1),[s,l]=c().useState((()=>{if(!y.Node.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements but got: ".concat(y.Scrubber.stringify(i)));if(!y.Editor.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(y.Scrubber.stringify(t)));return t.children=i,Object.assign(t,o),{v:0,editor:t}})),{selectorContext:d,onChange:f}=function(e){var t=(0,u.useRef)([]).current,n=(0,u.useRef)({editor:e}).current,r=(0,u.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,u.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),p=(0,u.useCallback)((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),f(t)}),[r]);(0,u.useEffect)((()=>(xe.set(t,p),()=>{xe.set(t,(()=>{})),a.current=!0})),[p]);var[h,m]=(0,u.useState)(it.isFocused(t));return(0,u.useEffect)((()=>{m(it.isFocused(t))})),lt((()=>{var e=()=>m(it.isFocused(t));return We?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c().createElement(yn.Provider,{value:d},c().createElement(Ot.Provider,{value:s},c().createElement(pt.Provider,{value:s.editor},c().createElement(gn.Provider,{value:h},n))))},En=()=>{var e=(0,u.useContext)(pt);if(!e)throw new Error("The `useEditor` hook must be used inside the <Slate> component's context.");return e},kn=()=>wn((e=>e.selection),Cn),Cn=(e,t)=>!e&&!t||!(!e||!t)&&y.Range.equals(e,t),Sn=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},An=(e,t,n)=>{var r=it.toDOMRange(e,t).getBoundingClientRect(),i=it.toDOMRange(e,n).getBoundingClientRect();return Sn(r,i)&&Sn(i,r)};function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:i,deleteBackward:o,addMark:a,removeMark:s}=n;return ve.set(n,new WeakMap),n.addMark=(e,t)=>{var r,i;null===(r=Ee.get(n))||void 0===r||r(),!ke.get(n)&&null!==(i=Se.get(n))&&void 0!==i&&i.length&&ke.set(n,null),Ce.delete(n),a(e,t)},n.removeMark=e=>{var t;!ke.get(n)&&null!==(t=Se.get(n))&&void 0!==t&&t.length&&ke.set(n,null),Ce.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return o(e);if(n.selection&&y.Range.isCollapsed(n.selection)){var t=y.Editor.above(n,{match:e=>y.Element.isElement(e)&&y.Editor.isBlock(n,e),at:n.selection});if(t){var[,r]=t,i=y.Editor.range(n,r,n.selection.anchor),a=((e,t)=>{var n=y.Editor.range(e,y.Range.end(t)),r=Array.from(y.Editor.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(An(e,y.Editor.range(e,r[i]),n))return y.Editor.range(e,r[i],n);if(r.length<2)return y.Editor.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)An(e,y.Editor.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return y.Editor.range(e,r[o],n)})(n,i);y.Range.isCollapsed(a)||y.Transforms.delete(n,{at:a})}}},n.apply=e=>{var t=[],i=Se.get(n);if(null!=i&&i.length){var o=i.map((t=>function(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!y.Path.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!y.Path.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!y.Path.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:y.Path.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:y.Path.transform(n,t,{affinity:"forward"})};case"merge_node":return y.Path.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:y.Path.transform(n,t)}:{diff:r,id:i,path:y.Path.transform(n,t)}}var o=y.Path.transform(n,t);return o?{diff:r,path:o,id:i}:null}(t,e))).filter(Boolean);Se.set(n,o)}var a=Te.get(n);a&&Te.set(n,Vt(n,a,e));var s=Ae.get(n);if(null!=s&&s.at){var l=y.Point.isPoint(null==s?void 0:s.at)?Gt(n,s.at,e):Vt(n,s.at,e);Ae.set(n,l?On(On({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...Rn(n,e.path));break;case"set_selection":var u;null===(u=_e.get(n))||void 0===u||u.unref(),_e.delete(n);break;case"insert_node":case"remove_node":t.push(...Rn(n,y.Path.parent(e.path)));break;case"merge_node":var c=y.Path.previous(e.path);t.push(...Rn(n,c));break;case"move_node":var d=y.Path.common(y.Path.parent(e.path),y.Path.parent(e.newPath));t.push(...Rn(n,d))}for(var[f,p]of(r(e),t)){var[h]=y.Editor.node(n,f);ge.set(h,p)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[i,o]=y.Range.edges(r),a=y.Editor.void(n,{at:i.path}),s=y.Editor.void(n,{at:o.path});if(!y.Range.isCollapsed(r)||a){var l=it.toDOMRange(n,r),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),s){var[d]=s,f=l.cloneRange(),p=it.toDOMNode(n,d);f.setEndAfter(p),u=f.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Ne(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),u.appendChild(h),c=h}var m=n.getFragment(),g=JSON.stringify(m),v=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var b=u.ownerDocument.createElement("div");return b.appendChild(u),b.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(b),e.setData("text/html",b.innerHTML),e.setData("text/plain",Ue(b)),u.ownerDocument.body.removeChild(b),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(ze)||[];return n})(e);if(r){var i=decodeURIComponent(window.atob(r)),o=JSON.parse(i);return n.insertFragment(o),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),i=!1;for(var o of r)i&&y.Transforms.splitNodes(n,{always:!0}),n.insertText(o),i=!0;return!0}return!1},n.onChange=e=>{ie().unstable_batchedUpdates((()=>{var t=xe.get(n);t&&t(),i(e)}))},n},Rn=(e,t)=>{var n=[];for(var[r,i]of y.Editor.levels(e,{at:t})){var o=it.findKey(e,r);n.push([i,o])}return n}},17249:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)o["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var i=e.map((function(e){return function(e,t){var n=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in r)i[r[s]]=!1;var c=!0,d=!1,f=void 0;try{for(var p,h=o[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=u(m),y=r[v];1!==a&&y||(n?i.key=v:i.which=l(m)),y&&(i[y]=!g||null)}}catch(e){d=!0,f=e}finally{try{!c&&h.return&&h.return()}finally{if(d)throw f}}return i}(e,t)})),o=function(e){return i.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function l(e){return e=u(e),o[e]||e.toUpperCase().charCodeAt(0)}function u(e){return e=e.toLowerCase(),i[e]||e}t.TB=function(e,t){return s(e,{byKey:!0},t)}},72056:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Editor:()=>Ke,Element:()=>qe,Location:()=>Ze,Node:()=>et,Operation:()=>rt,Path:()=>it,PathRef:()=>ot,Point:()=>lt,PointRef:()=>ut,Range:()=>ft,RangeRef:()=>pt,Scrubber:()=>mt,Span:()=>Ye,Text:()=>_t,Transforms:()=>Bt,createEditor:()=>fe});var r=n(66439);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[$]}function a(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===H}(e)||Array.isArray(e)||!!e[W]||!!(null===(t=e.constructor)||void 0===t?void 0:t[W])||d(e)||f(e))}function s(e,t,n){void 0===n&&(n=!1),0===l(e)?(n?Object.keys:G)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function l(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:f(e)?3:0}function u(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t,n){var r=l(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function d(e){return B&&e instanceof Map}function f(e){return U&&e instanceof Set}function p(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=V(e);delete t[$];for(var n=G(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),v(e)||o(e)||!a(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&s(e,(function(e,t){return m(t,!0)}),!0)),e}function g(){i(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=K[e];return t||i(18,e),t}function b(){return N}function w(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){x(e),e.p.forEach(k),e.p=null}function x(e){e===N&&(N=e.l)}function E(e){return N={p:[],l:N,h:e,m:!0,_:0}}function k(e){var t=e[$];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||y("ES5").S(t,e,r),r?(n[$].P&&(_(t),i(4)),a(e)&&(e=S(t,e),t.l||T(t,e)),t.u&&y("Patches").M(n[$].t,e,t.u,t.s)):e=S(t,n,[]),_(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function S(e,t,n){if(v(t))return t;var r=t[$];if(!r)return s(t,(function(i,o){return A(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=h(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),s(o,(function(t,o){return A(e,r,i,t,o,n,a)})),T(e,i,!1),n&&e.u&&y("Patches").N(r,n,e.u,e.s)}return r.o}function A(e,t,n,r,i,s,l){if(o(i)){var d=S(e,i,s&&t&&3!==t.i&&!u(t.R,r)?s.concat(r):void 0);if(c(n,r,d),!o(d))return;e.m=!1}else l&&n.add(i);if(a(i)&&!v(i)){if(!e.h.D&&e._<1)return;S(e,i),t&&t.A.l||T(e,i)}}function T(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function O(e,t){var n=e[$];return(n?p(n):e)[t]}function P(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function M(e){e.o||(e.o=h(e.t))}function D(e,t,n){var r=d(t)?y("MapSet").F(t,n):f(t)?y("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:b(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=Z;n&&(i=[r],o=Y);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):y("ES5").J(t,n);return(n?n.A:b()).p.push(r),r}function I(e){return o(e)||i(22,e),function e(t){if(!a(t))return t;var n,r=t[$],i=l(t);if(r){if(!r.P&&(r.i<4||!y("ES5").K(r)))return r.t;r.I=!0,n=L(t,i),r.I=!1}else n=L(t,i);return s(n,(function(t,i){r&&function(e,t){return 2===l(e)?e.get(t):e[t]}(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}var j,N,F="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,U="undefined"!=typeof Set,z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=F?Symbol.for("immer-nothing"):((j={})["immer-nothing"]=!0,j),W=F?Symbol.for("immer-draftable"):"__$immer_draftable",$=F?Symbol.for("immer-state"):"__$immer_state",H=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(e){var t={};return G(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},K={},Z={get:function(e,t){if(t===$)return e;var n=p(e);if(!u(n,t))return function(e,t,n){var r,i=P(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!a(r)?r:r===O(e.t,t)?(M(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=P(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=O(p(e),t),o=null==i?void 0:i[$];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||u(e.t,t)))return!0;M(e),R(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==O(e.t,t)||t in e.t?(e.R[t]=!1,M(e),R(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},Y={};s(Z,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,n){return Z.set.call(this,e[0],t,n,e[0])};var X=function(){function e(e){var t=this;this.O=z,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var l;if("function"!=typeof n&&i(6),void 0!==r&&"function"!=typeof r&&i(7),a(e)){var u=E(t),c=D(t,e,void 0),d=!0;try{l=n(c),d=!1}finally{d?_(u):x(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return w(u,r),C(e,u)}),(function(e){throw _(u),e})):(w(u,r),C(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===q&&(l=void 0),t.D&&m(l,!0),r){var f=[],p=[];y("Patches").M(e,l,f,p),r(f,p)}return l}i(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){a(e)||i(8),o(e)&&(e=I(e));var t=E(this),n=D(this,e,void 0);return n[$].C=!0,x(t),n},t.finishDraft=function(e,t){var n=(e&&e[$]).A;return w(n,t),C(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!z&&i(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=y("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Q=new X,J=Q.produce,ee=(Q.produceWithPatches.bind(Q),Q.setAutoFreeze.bind(Q),Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q),Q.createDraft.bind(Q)),te=Q.finishDraft.bind(Q);function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=new WeakMap,ie=new WeakMap,oe=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,ue=new WeakMap;function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ke.pathRefs(e))ot.transform(n,t);for(var r of Ke.pointRefs(e))ut.transform(r,t);for(var i of Ke.rangeRefs(e))pt.transform(i,t);var o,a,s=re.get(e)||[],l=ie.get(e)||new Set,u=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(it.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s))u(it.transform(c,t));else o=s,a=l;var d=e.getDirtyPaths(t);for(var f of d)u(f);re.set(e,o),ie.set(e,a),Bt.transform(e,t),e.operations.push(t),Ke.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),oe.get(e)||(oe.set(e,!0),Promise.resolve().then((()=>{oe.set(e,!1),e.onChange({operation:t}),e.operations=[]})))},addMark:(t,n)=>{var{selection:r,markableVoid:i}=e;if(r){var o=(t,n)=>{if(!_t.isText(t))return!1;var[r,i]=Ke.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},a=ft.isExpanded(r),s=!1;if(!a){var[l,u]=Ke.node(e,r);if(l&&o(l,u)){var[c]=Ke.parent(e,u);s=c&&e.markableVoid(c)}}if(a||s)Bt.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=de(de({},Ke.marks(e)||{}),{},{[t]:n});e.marks=d,oe.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&ft.isCollapsed(n)&&Bt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&ft.isCollapsed(n)&&Bt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&ft.isExpanded(n)&&Bt.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?et.fragment(e,t):[]},insertBreak:()=>{Bt.splitNodes(e,{always:!0})},insertSoftBreak:()=>{Bt.splitNodes(e,{always:!0})},insertFragment:t=>{Bt.insertFragment(e,t)},insertNode:t=>{Bt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=de({text:t},r);Bt.insertNodes(e,i)}else Bt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!_t.isText(n))if(qe.isElement(n)&&0===n.children.length)Bt.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!Ke.isEditor(n)&&qe.isElement(n)&&(e.isInline(n)||0===n.children.length||_t.isText(n.children[0])||e.isInline(n.children[0])),o=0,a=0;a<n.children.length;a++,o++){var s=et.get(e,r);if(!_t.isText(s)){var l=n.children[a],u=s.children[o-1],c=a===n.children.length-1;(_t.isText(l)||qe.isElement(l)&&e.isInline(l))!==i?(Bt.removeNodes(e,{at:r.concat(o),voids:!0}),o--):qe.isElement(l)?e.isInline(l)&&(null!=u&&_t.isText(u)?c&&(Bt.insertNodes(e,{text:""},{at:r.concat(o+1),voids:!0}),o++):(Bt.insertNodes(e,{text:""},{at:r.concat(o),voids:!0}),o++)):null!=u&&_t.isText(u)&&(_t.equals(l,u,{loose:!0})?(Bt.mergeNodes(e,{at:r.concat(o),voids:!0}),o--):""===u.text?(Bt.removeNodes(e,{at:r.concat(o-1),voids:!0}),o--):""===l.text&&(Bt.removeNodes(e,{at:r.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!_t.isText(t))return!1;var[r,i]=Ke.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=ft.isExpanded(n),o=!1;if(!i){var[a,s]=Ke.node(e,n);if(a&&r(a,s)){var[l]=Ke.parent(e,s);o=l&&e.markableVoid(l)}}if(i||o)Bt.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var u=de({},Ke.marks(e)||{});delete u[t],e.marks=u,oe.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return it.levels(t);case"insert_node":var{node:n,path:r}=e,i=it.levels(r),o=_t.isText(n)?[]:Array.from(et.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...o];case"merge_node":var{path:a}=e;return[...it.ancestors(a),it.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(it.equals(s,l))return[];var u=[],c=[];for(var d of it.ancestors(s)){var f=it.transform(d,e);u.push(f)}for(var p of it.ancestors(l)){var h=it.transform(p,e);c.push(h)}var m=c[c.length-1],g=l[l.length-1],v=m.concat(g);return[...u,...c,v];case"remove_node":var{path:y}=e;return[...it.ancestors(y)];case"split_node":var{path:b}=e;return[...it.levels(b),it.next(b)];default:return[]}},shouldNormalize:e=>{var{iteration:t,initialDirtyPathsLength:n}=e,r=42*n;if(t>r)throw new Error("Could not completely normalize the editor after ".concat(r," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0}};return e};function pe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var he,me=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?_e(e):e,i=he.None,o=he.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=De(l,u);if([i,o]=n?[o,c]:[c,i],Ie(i,he.ZWJ)&&Ie(o,he.ExtPict)&&!Fe(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Ie(i,he.RI)&&Ie(o,he.RI)&&!(s=null!==s?!s:!!n||Ue(e.substring(0,e.length-a))))break;if(i!==he.None&&o!==he.None&&je(i,o))break;a+=l.length}return a||1},ge=/\s/,ve=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ye=/['\u2018\u2019]/,be=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},we=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ge.test(t))return!1;if(ye.test(t)){var i=me(n,r),[o,a]=be(n,i,r);if(e(o,a,r))return!0}return!ve.test(t)},_e=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Ee(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(xe(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},xe=e=>e>=55296&&e<=56319,Ee=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(he||(he={}));var ke=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Ce=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Se=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Ae=/^[\u1100-\u115F\uA960-\uA97C]$/,Te=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Oe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Pe=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Re=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Me=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,De=(e,t)=>{var n=he.Any;return-1!==e.search(ke)&&(n|=he.Extend),8205===t&&(n|=he.ZWJ),t>=127462&&t<=127487&&(n|=he.RI),-1!==e.search(Ce)&&(n|=he.Prepend),-1!==e.search(Se)&&(n|=he.SpacingMark),-1!==e.search(Ae)&&(n|=he.L),-1!==e.search(Te)&&(n|=he.V),-1!==e.search(Oe)&&(n|=he.T),-1!==e.search(Pe)&&(n|=he.LV),-1!==e.search(Re)&&(n|=he.LVT),-1!==e.search(Me)&&(n|=he.ExtPict),n};function Ie(e,t){return 0!=(e&t)}var Le=[[he.L,he.L|he.V|he.LV|he.LVT],[he.LV|he.V,he.V|he.T],[he.LVT|he.T,he.T],[he.Any,he.Extend|he.ZWJ],[he.Any,he.SpacingMark],[he.Prepend,he.Any],[he.ZWJ,he.ExtPict],[he.RI,he.RI]];function je(e,t){return-1===Le.findIndex((n=>Ie(e,n[0])&&Ie(t,n[1])))}var Ne=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Fe=e=>-1!==e.search(Ne),Be=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ue=e=>{var t=e.match(Be);return null!==t&&t[0].length/2%2==1},ze=e=>(0,r.P)(e)&&et.isNodeList(e.children)&&!Ke.isEditor(e),qe={isAncestor:e=>(0,r.P)(e)&&et.isNodeList(e.children),isElement:ze,isElementList:e=>Array.isArray(e)&&e.every((e=>qe.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return ze(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},We=["text"],$e=["text"];function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve=new WeakMap,Ke={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=Ke.path(e,i),s="lowest"===r;for(var[l,u]of Ke.levels(e,{at:a,voids:n,match:o,reverse:s}))if(!_t.isText(l))if(ft.isRange(i)){if(it.isAncestor(u,i.anchor.path)&&it.isAncestor(u,i.focus.path))return[l,u]}else if(!it.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Ke.point(e,t,{edge:"end"}),focus:Ke.end(e,[])},{distance:o=1}=r,a=0;for(var s of Ke.positions(e,Ge(Ge({},r),{},{at:i}))){if(a>o)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Ke.start(e,[]),focus:Ke.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of Ke.positions(e,Ge(Ge({},r),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Ke.start(e,t),Ke.end(e,t)],end:(e,t)=>Ke.point(e,t,{edge:"end"}),first(e,t){var n=Ke.path(e,t,{edge:"start"});return Ke.node(e,n)},fragment(e,t){var n=Ke.range(e,t);return et.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>qe.isElement(t)&&Ke.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>_t.isText(t)||Ke.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>_t.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>!e.isInline(t),isEditor(e){var t=Ve.get(e);if(void 0!==t)return t;if(!(0,r.P)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,r.P)(e.marks))&&(null===e.selection||ft.isRange(e.selection))&&et.isNodeList(e.children)&&rt.isOperationList(e.operations);return Ve.set(e,n),n},isEnd(e,t,n){var r=Ke.end(e,n);return lt.equals(t,r)},isEdge:(e,t,n)=>Ke.isStart(e,t,n)||Ke.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&_t.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>e.isInline(t),isNormalizing(e){var t=ae.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Ke.start(e,n);return lt.equals(t,r)},isVoid:(e,t)=>e.isVoid(t),last(e,t){var n=Ke.path(e,t,{edge:"end"});return Ke.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke.path(e,t,n);return[et.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],s=Ke.path(e,n);for(var[l,u]of et.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&qe.isElement(l)&&Ke.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(ft.isExpanded(n)){var[r]=Ke.nodes(e,{match:_t.isText});if(r){var[i]=r;return pe(i,We)}return{}}var{anchor:o}=n,{path:a}=o,[s]=Ke.leaf(e,a);if(0===o.offset){var l=Ke.previous(e,{at:a,match:_t.isText}),u=Ke.above(e,{match:t=>qe.isElement(t)&&Ke.isVoid(e,t)&&e.markableVoid(t)});if(!u){var c=Ke.above(e,{match:t=>qe.isElement(t)&&Ke.isBlock(e,t)});if(l&&c){var[d,f]=l,[,p]=c;it.isAncestor(p,f)&&(s=d)}}}return pe(s,$e)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Ke.after(e,o,{voids:r});if(a){var[,s]=Ke.last(e,[]),l=[a.path,s];if(it.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(it.isPath(o)){var[u]=Ke.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=Ke.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke.path(e,t,n);return[et.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(Ye.isSpan(n))l=n[0],u=n[1];else{var c=Ke.path(e,n,{edge:"start"}),d=Ke.path(e,n,{edge:"end"});l=o?d:c,u=o?c:d}var f,p=et.nodes(e,{reverse:o,from:l,to:u,pass:t=>{var[n]=t;return!a&&qe.isElement(n)&&Ke.isVoid(e,n)}}),h=[];for(var[m,g]of p){var v=f&&0===it.compare(g,f[1]);if("highest"!==r||!v)if(s(m,g))if("lowest"===r&&v)f=[m,g];else{var y="lowest"===r?f:[m,g];y&&(i?h.push(y):yield y),f=[m,g]}else if(i&&!v&&_t.isText(m))return}"lowest"===r&&f&&(i?h.push(f):yield f),i&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,i=e=>re.get(e)||[],o=e=>{var t=i(e).pop(),n=t.join(",");return(e=>ie.get(e)||new Set)(e).delete(n),t};if(Ke.isNormalizing(e)){if(n){var a=Array.from(et.nodes(e),(e=>{var[,t]=e;return t})),s=new Set(a.map((e=>e.join(","))));re.set(e,a),ie.set(e,s)}0!==i(e).length&&Ke.withoutNormalizing(e,(()=>{for(var t of i(e))if(et.has(e,t)){var n=Ke.node(e,t),[a,s]=n;qe.isElement(a)&&0===a.children.length&&e.normalizeNode(n,{operation:r})}for(var l=i(e),u=l.length,c=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:c,initialDirtyPathsLength:u,operation:r}))return;var d=o(e);if(et.has(e,d)){var f=Ke.node(e,d);e.normalizeNode(f,{operation:r})}c++,l=i(e)}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke.path(e,t,n),i=it.parent(r);return Ke.node(e,i)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(it.isPath(t))if("start"===i){var[,o]=et.first(e,t);t=o}else if("end"===i){var[,a]=et.last(e,t);t=a}return ft.isRange(t)&&(t="start"===i?ft.start(t):"end"===i?ft.end(t):it.common(t.anchor.path,t.focus.path)),lt.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>et.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ke.pathRefs(e).delete(i),i.current=null,t}};return Ke.pathRefs(e).add(i),i},pathRefs(e){var t=se.get(e);return t||(t=new Set,se.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(it.isPath(t)){var i;if("end"===r){var[,o]=et.last(e,t);i=o}else{var[,a]=et.first(e,t);i=a}var s=et.get(e,i);if(!_t.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(ft.isRange(t)){var[l,u]=ft.edges(t);return"start"===r?l:u}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ke.pointRefs(e).delete(i),i.current=null,t}};return Ke.pointRefs(e).add(i),i},pointRefs(e){var t=le.get(e);return t||(t=new Set,le.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(n){var a=Ke.range(e,n),[s,l]=ft.edges(a),u=i?l:s,c=!1,d="",f=0,p=0,h=0;for(var[m,g]of Ke.nodes(e,{at:n,reverse:i,voids:o})){if(qe.isElement(m)){if(!o&&e.isVoid(m)){yield Ke.start(e,g);continue}if(e.isInline(m))continue;if(Ke.hasInlines(e,m)){var v=it.isAncestor(g,l.path)?l:Ke.end(e,g),y=it.isAncestor(g,s.path)?s:Ke.start(e,g);d=Ke.string(e,{anchor:y,focus:v},{voids:o}),c=!0}}if(_t.isText(m)){var b=it.equals(g,u.path);for(b?(p=i?u.offset:m.text.length-u.offset,h=u.offset):(p=m.text.length,h=i?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===f){if(""===d)break;f=w(d,r,i),d=be(d,f,i)[1]}if(h=i?h-f:h+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:h}}}}}function w(e,t,n){return"character"===t?me(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=me(e,t),[o,a]=be(e,i,t);if(we(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Ke.before(e,o,{voids:r});if(a){var[,s]=Ke.first(e,[]),l=[a.path,s];if(it.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(it.isPath(o)){var[u]=Ke.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=Ke.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}},range:(e,t,n)=>ft.isRange(t)&&!n?t:{anchor:Ke.start(e,t),focus:Ke.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ke.rangeRefs(e).delete(i),i.current=null,t}};return Ke.rangeRefs(e).add(i),i},rangeRefs(e){var t=ue.get(e);return t||(t=new Set,ue.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){ae.set(e,t)},start:(e,t)=>Ke.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=Ke.range(e,t),[o,a]=ft.edges(i),s="";for(var[l,u]of Ke.nodes(e,{at:i,match:_t.isText,voids:r})){var c=l.text;it.equals(u,a.path)&&(c=c.slice(0,a.offset)),it.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=ft.edges(t);if(0!==i.offset||0!==o.offset||ft.isCollapsed(t)||it.hasPrevious(o.path))return t;var a=Ke.above(e,{at:o,match:t=>qe.isElement(t)&&Ke.isBlock(e,t),voids:r}),s=a?a[1]:[],l={anchor:Ke.start(e,i),focus:o},u=!0;for(var[c,d]of Ke.nodes(e,{at:l,match:_t.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||it.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ke.above(e,Ge(Ge({},t),{},{match:t=>qe.isElement(t)&&Ke.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Ke.isNormalizing(e);Ke.setNormalizing(e,!1);try{t()}finally{Ke.setNormalizing(e,n)}Ke.normalize(e)}},Ze={isLocation:e=>it.isPath(e)||lt.isPoint(e)||ft.isRange(e)},Ye={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(it.isPath)},Xe=["children"],Qe=["text"],Je=new WeakMap,et={ancestor(e,t){var n=et.get(e,t);if(_t.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(mt.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of it.ancestors(t,n)){var i=[et.ancestor(e,r),r];yield i}},child(e,t){if(_t.isText(e))throw new Error("Cannot get the child of a text node: ".concat(mt.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(mt.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=et.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var s=et.child(i,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}},common(e,t,n){var r=it.common(t,n);return[et.get(e,r),r]},descendant(e,t){var n=et.get(e,t);if(Ke.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(mt.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of et.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of et.nodes(e,t))qe.isElement(n)&&(yield[n,r])},extractProps:e=>qe.isAncestor(e)?pe(e,Xe):pe(e,Qe),first(e,t){for(var n=t.slice(),r=et.get(e,n);r&&!_t.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(_t.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(mt.stringify(e)));var n=J({children:e.children},(e=>{var[n,r]=ft.edges(t),i=et.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!ft.includes(t,n)}});for(var[,o]of i){if(!ft.includes(t,o)){var a=et.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(it.equals(o,r.path)){var l=et.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(it.equals(o,n.path)){var u=et.leaf(e,o);u.text=u.text.slice(n.offset)}}Ke.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(_t.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(mt.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(_t.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>_t.isText(e)||qe.isElement(e)||Ke.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Je.get(e);if(void 0!==t)return t;var n=e.every((e=>et.isNode(e)));return Je.set(e,n),n},last(e,t){for(var n=t.slice(),r=et.get(e,n);r&&!_t.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=et.get(e,t);if(!_t.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(mt.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of it.levels(t,n)){var i=et.get(e,r);yield[i,r]}},matches:(e,t)=>qe.isElement(e)&&qe.isElementProps(t)&&qe.matches(e,t)||_t.isText(e)&&_t.isTextProps(t)&&_t.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?it.isBefore(s,o):it.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||_t.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=it.next(s);if(et.has(e,u)){s=u,l=et.get(e,s);continue}}r&&0!==s[s.length-1]?(s=it.previous(s),l=et.get(e,s)):(s=it.parent(s),l=et.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;it.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=et.get(e,s)}},parent(e,t){var n=it.parent(t),r=et.get(e,n);if(_t.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>_t.isText(e)?e.text:e.children.map(et.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of et.nodes(e,t))_t.isText(n)&&(yield[n,r])}};function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rt={isNodeOperation:e=>rt.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,r.P)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return it.isPath(e.path)&&et.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&it.isPath(e.path);case"merge_node":return"number"==typeof e.position&&it.isPath(e.path)&&(0,r.P)(e.properties);case"move_node":return it.isPath(e.path)&&it.isPath(e.newPath);case"set_node":return it.isPath(e.path)&&(0,r.P)(e.properties)&&(0,r.P)(e.newProperties);case"set_selection":return null===e.properties&&ft.isRange(e.newProperties)||null===e.newProperties&&ft.isRange(e.properties)||(0,r.P)(e.properties)&&(0,r.P)(e.newProperties);case"split_node":return it.isPath(e.path)&&"number"==typeof e.position&&(0,r.P)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>rt.isOperation(e))),isSelectionOperation:e=>rt.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>rt.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return nt(nt({},e),{},{type:"remove_node"});case"insert_text":return nt(nt({},e),{},{type:"remove_text"});case"merge_node":return nt(nt({},e),{},{type:"split_node",path:it.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(it.equals(t,n))return e;if(it.isSibling(n,t))return nt(nt({},e),{},{path:t,newPath:n});var r=it.transform(n,e),i=it.transform(it.next(n),e);return nt(nt({},e),{},{path:r,newPath:i});case"remove_node":return nt(nt({},e),{},{type:"insert_node"});case"remove_text":return nt(nt({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return nt(nt({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return nt(nt({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return nt(nt({},e),{},{type:"merge_node",path:it.next(e.path)})}}},it={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=it.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return it.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return it.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return it.equals(r,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===it.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===it.compare(e,t),isBefore:(e,t)=>-1===it.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===it.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===it.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===it.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===it.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&it.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!it.isAncestor(t,e)&&!it.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(it.equals(o,r)||it.endsBefore(o,r)||it.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(it.equals(a,r)||it.isAncestor(a,r))return null;it.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;it.equals(s,r)||it.endsBefore(s,r)?r[s.length-1]-=1:it.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(it.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else it.endsBefore(u,r)?r[u.length-1]+=1:it.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(it.equals(d,f))return r;if(it.isAncestor(d,r)||it.equals(d,r)){var p=f.slice();return it.endsBefore(d,f)&&d.length<f.length&&(p[d.length-1]-=1),p.concat(r.slice(d.length))}it.isSibling(d,f)&&(it.isAncestor(f,r)||it.equals(f,r))?it.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:it.endsBefore(f,r)||it.equals(f,r)||it.isAncestor(f,r)?(it.endsBefore(d,r)&&(r[d.length-1]-=1),r[f.length-1]+=1):it.endsBefore(d,r)&&(it.equals(f,r)&&(r[f.length-1]+=1),r[d.length-1]-=1)}return r}},ot={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=it.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt={compare(e,t){var n=it.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===lt.compare(e,t),isBefore:(e,t)=>-1===lt.compare(e,t),equals:(e,t)=>e.offset===t.offset&&it.equals(e.path,t.path),isPoint:e=>(0,r.P)(e)&&"number"==typeof e.offset&&it.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return J(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=it.transform(i,t,n);break;case"insert_text":it.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":it.equals(t.path,i)&&(e.offset+=t.position),e.path=it.transform(i,t,n);break;case"remove_text":it.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(it.equals(t.path,i)||it.isAncestor(t.path,i))return null;e.path=it.transform(i,t,n);break;case"split_node":if(it.equals(t.path,i)){if(t.position===o&&null==r)return null;(t.position<o||t.position===o&&"forward"===r)&&(e.offset-=t.position,e.path=it.transform(i,t,st(st({},n),{},{affinity:"forward"})))}else e.path=it.transform(i,t,n)}}))}},ut={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=lt.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},ct=["anchor","focus"];function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ft={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return ft.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=ft.edges(e);return t},equals:(e,t)=>lt.equals(e.anchor,t.anchor)&<.equals(e.focus,t.focus),includes(e,t){if(ft.isRange(t)){if(ft.includes(e,t.anchor)||ft.includes(e,t.focus))return!0;var[n,r]=ft.edges(e),[i,o]=ft.edges(t);return lt.isBefore(n,i)&<.isAfter(r,o)}var[a,s]=ft.edges(e),l=!1,u=!1;return lt.isPoint(t)?(l=lt.compare(t,a)>=0,u=lt.compare(t,s)<=0):(l=it.compare(t,a.path)>=0,u=it.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=pe(e,ct),[r,i]=ft.edges(e),[o,a]=ft.edges(t),s=lt.isBefore(r,o)?o:r,l=lt.isBefore(i,a)?i:a;return lt.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return lt.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return lt.equals(t,n)},isExpanded:e=>!ft.isCollapsed(e),isForward:e=>!ft.isBackward(e),isRange:e=>(0,r.P)(e)&<.isPoint(e.anchor)&<.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=ft.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return J(e,(e=>{if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=ft.isCollapsed(e);ft.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?ft.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=lt.transform(e.anchor,t,{affinity:r}),l=lt.transform(e.focus,t,{affinity:i});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},pt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=ft.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},ht=void 0,mt={setScrubber(e){ht=e},stringify:e=>JSON.stringify(e,ht)},gt=(e,t)=>{for(var n in e){var i=e[n],o=t[n];if((0,r.P)(i)&&(0,r.P)(o)){if(!gt(i,o))return!1}else if(Array.isArray(i)&&Array.isArray(o)){if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(i[a]!==o[a])return!1}else if(i!==o)return!1}for(var s in t)if(void 0===e[s]&&void 0!==t[s])return!1;return!0},vt=["text"],yt=["anchor","focus"];function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _t={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return pe(e,vt)}return gt(r?i(e):e,r?i(t):t)},isText:e=>(0,r.P)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>_t.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[wt({},e)];for(var r of t){var i=pe(r,yt),[o,a]=ft.edges(r),s=[],l=0,u=o.offset,c=a.offset;for(var d of n){var{length:f}=d.text,p=l;if(l+=f,u<=p&&l<=c)Object.assign(d,i),s.push(d);else if(u!==c&&(u===l||c===p)||u>l||c<p||c===p&&0!==p)s.push(d);else{var h=d,m=void 0,g=void 0;if(c<l){var v=c-p;g=wt(wt({},h),{},{text:h.text.slice(v)}),h=wt(wt({},h),{},{text:h.text.slice(0,v)})}if(u>p){var y=u-p;m=wt(wt({},h),{},{text:h.text.slice(0,y)}),h=wt(wt({},h),{},{text:h.text.slice(y)})}Object.assign(h,i),m&&s.push(m),s.push(h),g&&s.push(g)}}n=s}return n}};function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt={transform(e,t){e.children=ee(e.children);var n=e.selection&&ee(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=et.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,l]of ft.points(t))t[l]=lt.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:d}=n;if(0===d.length)break;var f=et.leaf(e,u),p=f.text.slice(0,c),h=f.text.slice(c);if(f.text=p+d+h,t)for(var[m,g]of ft.points(t))t[g]=lt.transform(m,n);break;case"merge_node":var{path:v}=n,y=et.get(e,v),b=it.previous(v),w=et.get(e,b),_=et.parent(e,v),x=v[v.length-1];if(_t.isText(y)&&_t.isText(w))w.text+=y.text;else{if(_t.isText(y)||_t.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(mt.stringify(y)," ").concat(mt.stringify(w)));w.children.push(...y.children)}if(_.children.splice(x,1),t)for(var[E,k]of ft.points(t))t[k]=lt.transform(E,n);break;case"move_node":var{path:C,newPath:S}=n;if(it.isAncestor(C,S))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(S,"] because the destination is inside itself."));var A=et.get(e,C),T=et.parent(e,C),O=C[C.length-1];T.children.splice(O,1);var P=it.transform(C,n),R=et.get(e,it.parent(P)),M=P[P.length-1];if(R.children.splice(M,0,A),t)for(var[D,I]of ft.points(t))t[I]=lt.transform(D,n);break;case"remove_node":var{path:L}=n,j=L[L.length-1];if(et.parent(e,L).children.splice(j,1),t)for(var[N,F]of ft.points(t)){var B=lt.transform(N,n);if(null!=t&&null!=B)t[F]=B;else{var U=void 0,z=void 0;for(var[q,W]of et.texts(e)){if(-1!==it.compare(W,L)){z=[q,W];break}U=[q,W]}var $=!1;U&&z&&($=it.equals(z[1],L)?!it.hasPrevious(z[1]):it.common(U[1],L).length<it.common(z[1],L).length),U&&!$?(N.path=U[1],N.offset=U[0].text.length):z?(N.path=z[1],N.offset=0):t=null}}break;case"remove_text":var{path:H,offset:G,text:V}=n;if(0===V.length)break;var K=et.leaf(e,H),Z=K.text.slice(0,G),Y=K.text.slice(G+V.length);if(K.text=Z+Y,t)for(var[X,Q]of ft.points(t))t[Q]=lt.transform(X,n);break;case"set_node":var{path:J,properties:ee,newProperties:te}=n;if(0===J.length)throw new Error("Cannot set properties on the root node!");var ne=et.get(e,J);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var ie=te[re];null==ie?delete ne[re]:ne[re]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete ne[oe];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!ft.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(mt.stringify(ae)," when there is no current selection."));t=Et({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ue,position:ce,properties:de}=n;if(0===ue.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ue,"] because the root node cannot be split."));var fe,pe=et.get(e,ue),he=et.parent(e,ue),me=ue[ue.length-1];if(_t.isText(pe)){var ge=pe.text.slice(0,ce),ve=pe.text.slice(ce);pe.text=ge,fe=Et(Et({},de),{},{text:ve})}else{var ye=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=ye,fe=Et(Et({},de),{},{children:be})}if(he.children.splice(me+1,0,fe),t)for(var[we,_e]of ft.points(t))t[_e]=lt.transform(we,n)}return t})(e,n,t)}finally{e.children=te(e.children),e.selection=n?o(n)?te(n):n:null}}},Ct=["text"],St=["children"];function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ot={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(et.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Ke.end(e,[]):[0],l=!0),null==l&&(l=!1),ft.isRange(a))if(r||(a=Ke.unhangRange(e,a,{voids:i})),ft.isCollapsed(a))a=a.anchor;else{var[,c]=ft.edges(a),d=Ke.pointRef(e,c);Bt.delete(e,{at:a}),a=d.unref()}if(lt.isPoint(a)){null==s&&(s=_t.isText(u)?e=>_t.isText(e):e.isInline(u)?t=>_t.isText(t)||Ke.isInline(e,t):t=>qe.isElement(t)&&Ke.isBlock(e,t));var[f]=Ke.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!f)return;var[,p]=f,h=Ke.pathRef(e,p),m=Ke.isEnd(e,a,p);Bt.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=h.unref();a=m?it.next(g):g}var v=it.parent(a),y=a[a.length-1];if(i||!Ke.void(e,{at:v})){for(var b of t){var w=v.concat(y);y++,e.apply({type:"insert_node",path:w,node:b}),a=it.next(a)}if(a=it.previous(a),l){var _=Ke.end(e,a);_&&Bt.select(e,_)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=it.isPath(n)?Mt(e,n):t=>qe.isElement(t)&&Ke.isBlock(e,t)),n){var a=Ke.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,(t=>{var[,n]=t;return Ke.pathRef(e,n)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=Ke.node(e,it.parent(u)),[d,f]=c,p=u[u.length-1],{length:h}=d.children;if(1===h){var m=it.next(f);Bt.moveNodes(e,{at:u,to:m,voids:i}),Bt.removeNodes(e,{at:f,voids:i})}else if(0===p)Bt.moveNodes(e,{at:u,to:f,voids:i});else if(p===h-1){var g=it.next(f);Bt.moveNodes(e,{at:u,to:g,voids:i})}else{var v=it.next(u),y=it.next(f);Bt.splitNodes(e,{at:v,voids:i}),Bt.moveNodes(e,{at:u,to:y,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(it.isPath(r)){var[s]=Ke.parent(e,r);n=e=>s.children.includes(e)}else n=t=>qe.isElement(t)&&Ke.isBlock(e,t);if(!i&&ft.isRange(r)&&(r=Ke.unhangRange(e,r,{voids:o})),ft.isRange(r))if(ft.isCollapsed(r))r=r.anchor;else{var[,l]=ft.edges(r),u=Ke.pointRef(e,l);Bt.delete(e,{at:r}),r=u.unref(),null==t.at&&Bt.select(e,r)}var[c]=Ke.nodes(e,{at:r,match:n,voids:o,mode:a}),d=Ke.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&d){var[f,p]=c,[h,m]=d;if(0!==p.length&&0!==m.length){var g,v,y=it.next(m),b=it.common(p,m),w=it.isSibling(p,m),_=Array.from(Ke.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=Ke.above(e,{at:p,mode:"highest",match:t=>_.includes(t)&&Pt(e,t)}),E=x&&Ke.pathRef(e,x[1]);if(_t.isText(f)&&_t.isText(h)){var k=pe(f,Ct);v=h.text.length,g=k}else{if(!qe.isElement(f)||!qe.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(mt.stringify(f)," ").concat(mt.stringify(h)));k=pe(f,St),v=h.children.length,g=k}w||Bt.moveNodes(e,{at:p,to:y,voids:o}),E&&Bt.removeNodes(e,{at:E.current,voids:o}),qe.isElement(h)&&Ke.isEmpty(e,h)||_t.isText(h)&&""===h.text&&0!==m[m.length-1]?Bt.removeNodes(e,{at:m,voids:o}):e.apply({type:"merge_node",path:y,position:v,properties:g}),E&&E.unref()}}}}))},moveNodes(e,t){Ke.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=it.isPath(r)?Mt(e,r):t=>qe.isElement(t)&&Ke.isBlock(e,t));var s=Ke.pathRef(e,n),l=Ke.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,(t=>{var[,n]=t;return Ke.pathRef(e,n)}));for(var c of u){var d=c.unref(),f=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),s.current&&it.isSibling(f,d)&&it.isAfter(f,d)&&(s.current=it.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=it.isPath(o)?Mt(e,o):t=>qe.isElement(t)&&Ke.isBlock(e,t)),!n&&ft.isRange(o)&&(o=Ke.unhangRange(e,o,{voids:r}));var s=Ke.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return Ke.pathRef(e,n)}));for(var u of l){var c=u.unref();if(c){var[d]=Ke.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:u=!1,voids:c=!1}=n;if(i){if(null==r&&(r=it.isPath(i)?Mt(e,i):t=>qe.isElement(t)&&Ke.isBlock(e,t)),!s&&ft.isRange(i)&&(i=Ke.unhangRange(e,i,{voids:c})),u&&ft.isRange(i)){if(ft.isCollapsed(i)&&Ke.leaf(e,i.anchor)[0].text.length>0)return;var d=Ke.rangeRef(e,i,{affinity:"inward"}),[f,p]=ft.edges(i),h="lowest"===l?"lowest":"highest",m=Ke.isEnd(e,p,p.path);Bt.splitNodes(e,{at:p,match:r,mode:h,voids:c,always:!m});var g=Ke.isStart(e,f,f.path);Bt.splitNodes(e,{at:f,match:r,mode:h,voids:c,always:!g}),i=d.unref(),null==n.at&&Bt.select(e,i)}for(var[v,y]of(o||(o=(e,t)=>e!==t),Ke.nodes(e,{at:i,match:r,mode:l,voids:c}))){var b={},w={};if(0!==y.length){var _=!1;for(var x in t)"children"!==x&&"text"!==x&&o(t[x],v[x])&&(_=!0,v.hasOwnProperty(x)&&(b[x]=v[x]),a?null!=t[x]&&(w[x]=a(v[x],t[x])):null!=t[x]&&(w[x]=t[x]));_&&e.apply({type:"set_node",path:y,properties:b,newProperties:w})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>qe.isElement(t)&&Ke.isBlock(e,t)),ft.isRange(o)&&(o=Rt(e,o)),it.isPath(o)){var l=o,u=Ke.point(e,l),[c]=Ke.parent(e,l);i=e=>e===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var d,f=Ke.pointRef(e,o,{affinity:"backward"});try{var[p]=Ke.nodes(e,{at:o,match:i,mode:n,voids:r});if(!p)return;var h=Ke.void(e,{at:o,mode:"highest"});if(!r&&h){var[m,g]=h;if(qe.isElement(m)&&e.isInline(m)){var v=Ke.after(e,g);if(!v){var y=it.next(g);Bt.insertNodes(e,{text:""},{at:y,voids:r}),v=Ke.point(e,y)}o=v,s=!0}a=o.path.length-g.length+1,s=!0}d=Ke.pointRef(e,o);var b=o.path.length-a,[,w]=p,_=o.path.slice(0,b),x=0===a?o.offset:o.path[b]+0;for(var[E,k]of Ke.levels(e,{at:_,reverse:!0,voids:r})){var C=!1;if(k.length<w.length||0===k.length||!r&&qe.isElement(E)&&Ke.isVoid(e,E))break;var S=f.current,A=Ke.isEnd(e,S,k);if(s||!f||!Ke.isEdge(e,S,k)){C=!0;var T=et.extractProps(E);e.apply({type:"split_node",path:k,position:x,properties:T})}x=k[k.length-1]+(C||A?1:0)}if(null==t.at){var O=d.current||Ke.end(e,[]);Bt.select(e,O)}}finally{var P;f.unref(),null===(P=d)||void 0===P||P.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;Bt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=it.isPath(o)?Mt(e,o):t=>qe.isElement(t)&&Ke.isBlock(e,t)),it.isPath(o)&&(o=Ke.range(e,o));var s=ft.isRange(o)?Ke.rangeRef(e,o):null,l=Ke.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,(t=>{var[,n]=t;return Ke.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[o]=Ke.node(e,n),a=Ke.range(e,n);r&&s&&(a=ft.intersection(s.current,a)),Bt.liftNodes(e,{at:a,match:e=>qe.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of u)c(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=it.isPath(s)?Mt(e,s):e.isInline(t)?t=>qe.isElement(t)&&Ke.isInline(e,t)||_t.isText(t):t=>qe.isElement(t)&&Ke.isBlock(e,t)),i&&ft.isRange(s)){var[l,u]=ft.edges(s),c=Ke.rangeRef(e,s,{affinity:"inward"});Bt.splitNodes(e,{at:u,match:a,voids:o}),Bt.splitNodes(e,{at:l,match:a,voids:o}),s=c.unref(),null==n.at&&Bt.select(e,s)}var d=Array.from(Ke.nodes(e,{at:s,match:e.isInline(t)?t=>qe.isElement(t)&&Ke.isBlock(e,t):e=>Ke.isEditor(e),mode:"lowest",voids:o}));for(var[,f]of d){var p=ft.isRange(s)?ft.intersection(s,Ke.range(e,f)):s;if(p){var h=Array.from(Ke.nodes(e,{at:p,match:a,mode:r,voids:o}));if(h.length>0){var m=function(){var[n]=h,r=h[h.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var s=it.equals(i,a)?it.parent(i):it.common(i,a),l=Ke.range(e,i,a),u=Ke.node(e,s),[c]=u,d=s.length+1,f=it.next(a.slice(0,d)),p=Tt(Tt({},t),{},{children:[]});Bt.insertNodes(e,p,{at:f,voids:o}),Bt.moveNodes(e,{at:l,match:e=>qe.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:o})}();if("continue"===m)continue}}}}}))}},Pt=(e,t)=>{if(qe.isElement(t)){var n=t;return!!Ke.isVoid(e,t)||1===n.children.length&&Pt(e,n.children[0])}return!Ke.isEditor(t)},Rt=(e,t)=>{if(ft.isCollapsed(t))return t.anchor;var[,n]=ft.edges(t),r=Ke.pointRef(e,n);return Bt.delete(e,{at:t}),r.unref()},Mt=(e,t)=>{var[n]=Ke.node(e,t);return e=>e===n};function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Bt.select(e,r.anchor);else if("focus"===n)Bt.select(e,r.focus);else if("start"===n){var[i]=ft.edges(r);Bt.select(e,i)}else if("end"===n){var[,o]=ft.edges(r);Bt.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=ft.isBackward(n)?"focus":"anchor"),"end"===a&&(a=ft.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i},c={};if(null==a||"anchor"===a){var d=o?Ke.before(e,s,u):Ke.after(e,s,u);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=o?Ke.before(e,l,u):Ke.after(e,l,u);f&&(c.focus=f)}Bt.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Ke.range(e,t),n)Bt.setSelection(e,t);else{if(!ft.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(mt.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=ft.isBackward(r)?"focus":"anchor"),"end"===i&&(i=ft.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;Bt.setSelection(e,{["anchor"===i?"anchor":"focus"]:It(It({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!lt.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!lt.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},jt={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var l=!1;if(ft.isRange(a)&&ft.isCollapsed(a)&&(l=!0,a=a.anchor),lt.isPoint(a)){var u=Ke.void(e,{at:a,mode:"highest"});if(!o&&u){var[,c]=u;a=c}else{var d={unit:r,distance:i};a={anchor:a,focus:n?Ke.before(e,a,d)||Ke.start(e,[]):Ke.after(e,a,d)||Ke.end(e,[])},s=!0}}if(it.isPath(a))Bt.removeNodes(e,{at:a,voids:o});else if(!ft.isCollapsed(a)){if(!s){var[,f]=ft.edges(a),p=Ke.end(e,[]);lt.equals(f,p)||(a=Ke.unhangRange(e,a,{voids:o}))}var[h,m]=ft.edges(a),g=Ke.above(e,{match:t=>qe.isElement(t)&&Ke.isBlock(e,t),at:h,voids:o}),v=Ke.above(e,{match:t=>qe.isElement(t)&&Ke.isBlock(e,t),at:m,voids:o}),y=g&&v&&!it.equals(g[1],v[1]),b=it.equals(h.path,m.path),w=o?null:Ke.void(e,{at:h,mode:"highest"}),_=o?null:Ke.void(e,{at:m,mode:"highest"});if(w){var x=Ke.before(e,h);x&&g&&it.isAncestor(g[1],x.path)&&(h=x)}if(_){var E=Ke.after(e,m);E&&v&&it.isAncestor(v[1],E.path)&&(m=E)}var k,C=[];for(var S of Ke.nodes(e,{at:a,voids:o})){var[A,T]=S;k&&0===it.compare(T,k)||(!o&&qe.isElement(A)&&Ke.isVoid(e,A)||!it.isCommon(T,h.path)&&!it.isCommon(T,m.path))&&(C.push(S),k=T)}var O=Array.from(C,(t=>{var[,n]=t;return Ke.pathRef(e,n)})),P=Ke.pointRef(e,h),R=Ke.pointRef(e,m),M="";if(!b&&!w){var D=P.current,[I]=Ke.leaf(e,D),{path:L}=D,{offset:j}=h,N=I.text.slice(j);N.length>0&&(e.apply({type:"remove_text",path:L,offset:j,text:N}),M=N)}if(O.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>Bt.removeNodes(e,{at:t,voids:o}))),!_){var F=R.current,[B]=Ke.leaf(e,F),{path:U}=F,z=b?h.offset:0,q=B.text.slice(z,m.offset);q.length>0&&(e.apply({type:"remove_text",path:U,offset:z,text:q}),M=q)}!b&&y&&R.current&&P.current&&Bt.mergeNodes(e,{at:R.current,hanging:!0,voids:o}),l&&n&&"character"===r&&M.length>1&&M.match(/[\u0E00-\u0E7F]+/)&&Bt.insertText(e,M.slice(0,M.length-i));var W=P.unref(),$=R.unref(),H=n?W||$:$||W;null==t.at&&H&&Bt.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(t.length&&o){if(ft.isRange(o))if(r||(o=Ke.unhangRange(e,o,{voids:i})),ft.isCollapsed(o))o=o.anchor;else{var[,a]=ft.edges(o);if(!i&&Ke.void(e,{at:a}))return;var s=Ke.pointRef(e,a);Bt.delete(e,{at:o}),o=s.unref()}else it.isPath(o)&&(o=Ke.start(e,o));if(i||!Ke.void(e,{at:o})){var l=Ke.above(e,{at:o,match:t=>qe.isElement(t)&&Ke.isInline(e,t),mode:"highest",voids:i});if(l){var[,u]=l;Ke.isEnd(e,o,u)?o=Ke.after(e,u):Ke.isStart(e,o,u)&&(o=Ke.before(e,u))}var c=Ke.above(e,{match:t=>qe.isElement(t)&&Ke.isBlock(e,t),at:o,voids:i}),[,d]=c,f=Ke.isStart(e,o,d),p=Ke.isEnd(e,o,d),h=f&&p,m=!f||f&&p,g=!p,[,v]=et.first({children:t},[]),[,y]=et.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(m&&it.isAncestor(r,v)&&qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&it.isAncestor(r,y)&&qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var _ of et.nodes({children:t},{pass:w}))w(_)&&b.push(_);var x=[],E=[],k=[],C=!0,S=!1;for(var[A]of b)qe.isElement(A)&&!e.isInline(A)?(C=!1,S=!0,E.push(A)):C?x.push(A):k.push(A);var[T]=Ke.nodes(e,{at:o,match:t=>_t.isText(t)||Ke.isInline(e,t),mode:"highest",voids:i}),[,O]=T,P=Ke.isStart(e,o,O),R=Ke.isEnd(e,o,O),M=Ke.pathRef(e,p&&!k.length?it.next(d):d),D=Ke.pathRef(e,R?it.next(O):O);Bt.splitNodes(e,{at:o,match:t=>S?qe.isElement(t)&&Ke.isBlock(e,t):_t.isText(t)||Ke.isInline(e,t),mode:S?"lowest":"highest",always:S&&(!f||x.length>0)&&(!p||k.length>0),voids:i});var I,L=Ke.pathRef(e,!P||P&&R?it.next(O):O);if(Bt.insertNodes(e,x,{at:L.current,match:t=>_t.isText(t)||Ke.isInline(e,t),mode:"highest",voids:i}),h&&!x.length&&E.length&&!k.length&&Bt.delete(e,{at:d,voids:i}),Bt.insertNodes(e,E,{at:M.current,match:t=>qe.isElement(t)&&Ke.isBlock(e,t),mode:"lowest",voids:i}),Bt.insertNodes(e,k,{at:D.current,match:t=>_t.isText(t)||Ke.isInline(e,t),mode:"highest",voids:i}),!n.at&&(k.length>0&&D.current?I=it.previous(D.current):E.length>0&&M.current?I=it.previous(M.current):L.current&&(I=it.previous(L.current)),I)){var j=Ke.end(e,I);Bt.select(e,j)}L.unref(),M.unref(),D.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(it.isPath(i)&&(i=Ke.range(e,i)),ft.isRange(i))if(ft.isCollapsed(i))i=i.anchor;else{var o=ft.end(i);if(!r&&Ke.void(e,{at:o}))return;var a=ft.start(i),s=Ke.pointRef(e,a),l=Ke.pointRef(e,o);Bt.delete(e,{at:i,voids:r});var u=s.unref(),c=l.unref();i=u||c,Bt.setSelection(e,{anchor:i,focus:i})}if(r||!Ke.void(e,{at:i})){var{path:d,offset:f}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}}}))}};function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt=Ft(Ft(Ft(Ft({},kt),Ot),Lt),jt)},93113:(e,t)=>{"use strict";t.parse=function(e){var t=String(e||n).trim();return t===n?[]:t.split(i)},t.stringify=function(e){return e.join(r).trim()};var n="",r=" ",i=/[ \t\n\r\f]+/g},82344:e=>{"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},54851:(e,t,n)=>{e.exports=i;var r=n(22699).EventEmitter;function i(){r.call(this)}n(91285)(i,r),i.Readable=n(33323),i.Writable=n(8234),i.Duplex=n(35929),i.Transform=n(69535),i.PassThrough=n(77706),i.finished=n(2529),i.pipeline=n(19125),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},49150:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,o,a,s,l;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var u=("number"!=typeof l&&(l=0),l+1>(s=e).length||-1===s.indexOf(".",l)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(r(t,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},35929:(e,t,n)=>{"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var i=n(33323),o=n(8234);n(91285)(u,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||process.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},77706:(e,t,n)=>{"use strict";e.exports=i;var r=n(69535);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(91285)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},33323:(e,t,n)=>{"use strict";var r;e.exports=k,k.ReadableState=E,n(22699).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},a=n(14811),s=n(48834).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=n(59255);i=u&&u.debuglog?u.debuglog("stream"):function(){};var c,d,f,p=n(73413),h=n(50163),m=n(24774).getHighWaterMark,g=n(49150).q,v=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(91285)(k,a);var _=h.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(35929),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(c||(c=n(30214).s),this.decoder=new c(e.encoding),this.encoding=e.encoding)}function k(e){if(r=r||n(35929),!(this instanceof k))return new k(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function C(e,t,n,r,o){i("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,u);else if(o||(a=function(e,t){var n,r;return r=t,s.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}(u,t)),a)_(e,a);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)u.endEmitted?_(e,new w):S(e,u,t,!0);else if(u.ended)_(e,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?S(e,u,t,!1):R(e,u)):S(e,u,t,!1)}else r||(u.reading=!1,R(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),R(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},k.prototype.unshift=function(e){return C(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){c||(c=n(30214).s);var t=new c(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var A=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function R(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){i("readable nexttick read 0"),e.read(0)}function L(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function U(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}k.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},k.prototype._read=function(e){_(this,new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?h:s;function s(){i("onend"),e.end()}r.endEmitted?process.nextTick(a):n.once("end",a),e.on("unpipe",(function t(o,a){i("onunpipe"),o===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",h),n.removeListener("data",c),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",l);var u=!1;function c(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==U(r.pipes,e))&&!u&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){i("onerror",t),h(),e.removeListener("error",d),0===o(e,"error")&&_(e,t)}function f(){e.removeListener("finish",p),h()}function p(){i("onfinish"),e.removeListener("close",f),h()}function h(){i("unpipe"),n.unpipe(e)}return n.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",p),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=U(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},k.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?O(this):r.reading||process.nextTick(I,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(D,this),n},k.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(D,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(L,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<x.length;a++)e.on(x[a],this.emit.bind(this,x[a]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(64020)),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=N,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(e,t){return void 0===f&&(f=n(67324)),f(k,e,t)})},69535:(e,t,n)=>{"use strict";e.exports=c;var r=n(49150).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(35929);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(91285)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},8234:(e,t,n)=>{"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=k,k.WritableState=E;var o,a={deprecate:n(5803)},s=n(14811),l=n(48834).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(50163),d=n(24774).getHighWaterMark,f=n(49150).q,p=f.ERR_INVALID_ARG_TYPE,h=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;function x(){}function E(e,t,o){i=i||n(35929),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,_(e,r)):(i(r),e._writableState.errorEmitted=!0,_(e,r),P(e,t))}(e,n,r,t,i);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),r?process.nextTick(S,e,n,o,i):S(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function k(e){var t=this instanceof(i=i||n(35929));if(!t&&!o.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function C(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function S(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),P(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,C(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(C(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(91285)(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===k&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},k.prototype.pipe=function(){_(this,new g)},k.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,a=!i.objectMode&&(r=e,l.isBuffer(r)||r instanceof u);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=x),i.ending?function(e,t){var n=new b;_(e,n),process.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i;return null===n?i=new y:"string"==typeof n||t.objectMode||(i=new p("chunk",["string","Buffer"],n)),!i||(_(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,r,i,o);return u}(this,i,a,e,t,n)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new h("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=c.destroy,k.prototype._undestroy=c.undestroy,k.prototype._destroy=function(e,t){t(e)}},64020:(e,t,n)=>{"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(2529),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[a];if(null!==t){var n=e[f].read();null!==n&&(e[c]=null,e[a]=null,e[s]=null,t(p(n,!1)))}}function m(e){process.nextTick(h,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(r={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[l]?n(e[l]):t(p(void 0,!0))}))}));var n,r=this[c];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(p(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[d])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[f].destroy(null,(function(e){e?n(e):t(p(void 0,!0))}))}))})),r),g);e.exports=function(e){var t,n=Object.create(v,(i(t={},f,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,e(p(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[c]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[l]=e)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(p(void 0,!0))),n[u]=!0})),e.on("readable",m.bind(null,n)),n}},73413:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var l=n(48834).Buffer,u=n(57267).inspect,c=u&&u.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,n,r,i=l.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,l.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},50163:e=>{"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(n,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(n,o),i(e)):process.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},2529:(e,t,n)=>{"use strict";var r=n(49150).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){s=!1,u=!0,a||o.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,s||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",h)}}},67324:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},19125:(e,t,n)=>{"use strict";var r,i=n(49150).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var c,d=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var f=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(2529)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var l=!1;return function(t){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){c||(c=e),e&&f.forEach(l),o||(f.forEach(l),d(c))}))}));return t.reduce(u)}},24774:(e,t,n)=>{"use strict";var r=n(49150).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},14811:(e,t,n)=>{e.exports=n(22699).EventEmitter},30214:(e,t,n)=>{"use strict";var r=n(77834).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},26952:(e,t,n)=>{"use strict";var r=n(22017),i=n(93562),o=n(48833),a=n(65279),s=n(11653);e.exports=p,p.escape=function(e){return p(e,{escapeOnly:!0,useNamedReferences:!0})};var l={}.hasOwnProperty,u=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),c=g(['"',"'","<",">","&","`"]),d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;function p(e,t){var n=t||{},r=n.subset,i=r?g(r):c,o=n.escapeOnly,a=n.omitOptionalSemicolons;return e=e.replace(i,(function(e,t,r){return h(e,r.charAt(t+1),n)})),r||o?e:e.replace(d,(function(e,t,n){return m(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),a)})).replace(f,(function(e,t,r){return h(e,r.charAt(t+1),n)}))}function h(e,t,n){var r,o,c=n.useShortestReferences,d=n.omitOptionalSemicolons;return(c||n.useNamedReferences)&&l.call(u,e)&&(r=function(e,t,n,r){var o="&"+e;return n&&l.call(i,e)&&-1===s.indexOf(e)&&(!r||t&&"="!==t&&!a(t))?o:o+";"}(u[e],t,d,n.attribute)),!c&&r||(o=m(e.charCodeAt(0),t,d)),r&&(!c||r.length<o.length)?r:o}function m(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!o(t)?r:r+";"}function g(e){return new RegExp("["+e.join("")+"]","g")}},42014:e=>{"use strict";e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}},85653:(e,t,n)=>{var r=n(6299);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},7288:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},21707:e=>{e.exports=function(e,t,n){var r=0,i=0,o=!1,a=!1,s=!1;function l(e){s||t(e)}function u(t){s=!0,o||(o=!0,e.addEventListener("touchmove",c,n),e.addEventListener("touchend",d,n),e.addEventListener("touchcancel",f,n),a=!1,r=t.touches[0].clientX,i=t.touches[0].clientY)}function c(e){a||Math.abs(e.touches[0].clientX-r)<=10&&Math.abs(e.touches[0].clientY-i)<=10||(a=!0)}function d(e){o=!1,p(),a||t(e)}function f(){o=!1,a=!1,r=0,i=0}function p(){e.removeEventListener("touchmove",c,n),e.removeEventListener("touchend",d,n),e.removeEventListener("touchcancel",f,n)}return e.addEventListener("click",l,n),e.addEventListener("touchstart",u,n),{remove:function(){e.removeEventListener("click",l,n),e.removeEventListener("touchstart",u,n),p()}}}},49470:(e,t,n)=>{var r=n(29764);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},84085:(e,t,n)=>{var r=n(19467);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},64552:(e,t,n)=>{var r=n(61077);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},56330:function(e,t,n){var r;e=n.nmd(e),function(){"use strict";var n=function(e,t){if(0===e.length)return"";for(var n="",r=0,i=e.length;r<i;r++)if(a(e[r])&&e[r])n+=(n?".":"")+h(e[r]);else{if(!s(e[r]))return!1;t||(n+=(n?".":"")+"["+e[r]+"]")}return n||!1},i=function(e,t){return(n(e)||"<root>")+": "+t},o=function(e){return Object.prototype.toString.call(e)};o.Boolean=o(!1),o.String=o(""),o.Number=o(0),o.Array=o([]),o.Date=o(new Date(0));var a=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},l=Array.isArray||function(e){return o(e)===o.Array},u=function(e){return null!==e&&"object"==typeof e&&!(l(e)||function(e){return o(e)===o.Date}(e))},c=function(e){if(e.length<1)return!1;for(var t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1},d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f=function(e,t,n){return"object"==typeof JSON&&JSON?JSON.stringify(n):'"'+String(n).replace(/[\x00-\x1F"\\]/g,(function(e){switch(e){case'"':case"\\":return"\\"+e;case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"\f":return"\\f";default:var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substr(t.length)+t}}))+'"'},p=function(e,t,n){if(e.replace){var r=e.replace.call(g(e),t,n);if(a(r))return r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}switch(o(n)){case o.Boolean:return function(e,t,n){return n?"true":"false"}(0,0,n);case o.String:return f(0,0,n);case o.Number:return function(e,t,n){if(!isFinite(n))throw new Error(i(e.path,"Number must be finite."));var r;return r=(r=(Number.isInteger?Number.isInteger(n):Math.floor(n)===n)?n.toFixed(1):String(n)).replace(/([eE])(\d)/,"$1+$2"),/[.eE]/.test(r)?r:r+".0"}(e,0,n);case o.Array:return function(e,t,n){if(function(e){if(e.length<2)return!1;for(var t=o(e[0]),n=1,r=e.length;n<r;n++)if(null!=e[n]&&o(e[n])!==t)return!0;return!1}(n))throw new Error(i(e.path,"Array cannot contain values of different types."));var r=e.table;e.table=n;var s=[],l=e.inPair;c(n)&&(e.inPair=!0);for(var u=0,d=n.length;u<d;u++){e.path.push(u);var f=p(e,u,n[u]);a(f)&&s.push(f),e.path.pop()}return e.inPair=l,e.table=r,!e.inPair&&s.length>0&&e.space?"[\n"+w(s.join(",\n"),1,e.space)+"\n]":"["+s.join(", ")+"]"}(e,0,n);case o.Date:return function(e,t,n){if(!isFinite(n.getTime()))throw new Error(i(e.path,"Invalid Date"));return n.toISOString()}(e,0,n);default:return null==n?null:function(e,t,n){var r=e.table;e.table=n;var o=e.inPair;e.inPair=!0;var s=[],l=Object.keys(n);e.sort&&l.sort(e.sort);for(var u=0,c=l.length;u<c;u++){var f=l[u];if(d(n,f)&&null!=n[f]){if(!f)throw new Error(i(e.path,"Key cannot be an empty string."));e.path.push(f);var m=p(e,f,n[f]);a(m)&&s.push(h(f)+" = "+m),e.path.pop()}}return e.inPair=o,e.table=r,"{"+s.join(", ")+"}"}(e,0,n)}},h=function(e){return!!e&&(/^[a-zA-Z0-9\-_]+$/.test(e)?e:f(0,0,e))},m=function(e,t,n){var r=h(t);if(!r)throw new Error(i(e.path,"Key cannot be an empty string."));var o=p(e,t,n);return a(o)?r+" = "+o:null},g=function(e){return{path:e.path.slice(0),table:e.table}},v=function(e,t,n){if(e.replace){var r=e.replace.call(g(e),t,n);if(a(r))return h(t)+" = "+r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}return!1},y=function(e,t,n,r){var i;if(!(e.replace&&0===e.path.length&&(i=v(e,t,n),a(i)&&e.lines.push(i),!1!==i)||r(e,t,n))){var o=e.table;if(e.table=n,l(n)){var s=e.inTableArray;e.inTableArray=c(n);for(var f=0,p=n.length;f<p;f++)e.path.push(f),y(e,f,n[f],r),e.path.pop();e.inTableArray=s}else if(u(n)){s=e.inTableArray,e.inTableArray=!1;var h=[],g=Object.keys(n);for(e.sort&&g.sort(e.sort),f=0,p=g.length;f<p;f++){var b=g[f];if(d(n,b)){var _=n[b],x=e.path.length>0&&(l(_)?c(_):u(_));l(_)&&c(_)?h.push([!0,b,_,x]):u(_)?h.push([!1,b,_,x]):(e.path.push(b),y(e,b,_,r),e.path.pop())}}if(g=null,e.replace)for(f=0,p=h.length;f<p;f++)if((o=h[f])[0]){if(e.path.push(o[1]),!1!==(i=v(e,o[1],o[2]))){a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null,e.path.pop();continue}var E=o[2],k=0;for(b=E.length;k<b;k++){var C=E[k];if(e.path.push(k),i=v(e,k,C),e.path.pop(),!1!==i){if(null==i){E[k]=null;continue}i=m(e,o[1],o[2]),a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null;break}}e.path.pop()}else e.path.push(o[1]),!1!==(i=v(e,o[1],o[2]))&&(a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null),e.path.pop();for(f=0,p=h.length;f<p;f++)null!=(o=h[f])[2]&&(e.path.push(o[1]),o[3]&&e.level++,y(e,o[1],o[2],r),o[3]&&e.level--,e.path.pop());e.inTableArray=s}e.table=o}},b=function(e,t){if(e.repeat)return e.repeat(t);for(var n="",r="";t>0;)r+=r||e,1&t&&(n+=r),t>>>=1;return n},w=function(e,t,n){var r=b(n,t);return e.replace(/^(?!$)/gm,r)},_=function(e){return a(e)?e:s(e)&&e>=0&&isFinite(e)&&Math.floor(e)===e?b(" ",e):""},x=function(e,t){if(null==e)throw new Error("Undefined or null cannot be stringified.");if(function(e){var t=function(e,n){if(!l(e)&&!u(e))return!1;if(-1!==n.indexOf(e))return!0;for(var r in n.push(e),e)if(d(e,r)){var i=n.length;if(t(e[r],n))return!0;n.splice(i)}return!1};return t(e,[])}(e))throw new Error("Converting circular structure to TOML.");if(null!=t&&"object"!=typeof t)throw new Error("Options must be an object.");if(null!=t.replace&&"function"!=typeof t.replace)throw new Error("Replacer must be a function.");if(null!=t.sort&&"function"!=typeof t.sort)throw new Error("Compare function for sorting must be a function.")},E={toToml:function(e,t){if(!u(e))throw new Error("An object other than Array or Date is expected.");return x(e,t=null!=t?t:{}),function(e,t){var r=[];return y({path:[],table:{"":e},inPair:!1,inTableArray:!1,replace:t.replace,sort:t.sort,level:0,space:_(t.space),lines:r},"",e,(function(e,t,i){var o=null;if(u(i))""!==t&&(r.length>0&&r.push(""),o=e.inTableArray?"[["+n(e.path,!0)+"]]":"["+n(e.path,!0)+"]",r.push(w(o,e.level,e.space)));else{if(!l(i))return a(t)&&(o=m(e,t,i),a(o)&&r.push(w(o,e.level,e.space))),!0;if(!a(t))return!0;c(i)||(o=m(e,t,i),a(o)&&r.push(w(o,e.level,e.space)))}})),r.join("\n")}(e,t)},toKey:function(e,t){if(a(e)){if(!(r=h(e)))throw new Error("Key cannot be an empty string.");return r}if(l(e)){var r;if(!1===(r=n(e,t)))throw new Error("Key path must consist of non-empty string(s).");return r}throw new Error("Invalid Arguments for tomlify.toKey({String | Array})")},toValue:function(e,t){return x(e,t=null!=t?t:{}),function(e,t){return p({path:[],table:{"":e},inPair:!1,inTableArray:!1,sort:t.sort,replace:t.replace,level:0,space:_(t.space)},"",e)}(e,t)}};null!=(null!==e?e.exports:void 0)?e.exports=E:void 0===(r=function(){return E}.apply(t,[]))||(e.exports=r)}.call(this)},62489:function(e,t,n){var r;(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),o=Math.max(0,16-(r-e)),a=i.setTimeout((function(){t(r+o)}),o);return e=r+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,u,c,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},f=function(){a.width=i.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(u*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;c||(c=!0,null!==l&&i.cancelAnimationFrame(l),a||((r=(a=o.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),o.body.appendChild(a),t="resize",n=f,(e=i).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=i.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,f()),u},hide:function(){c&&(c=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},66406:e=>{"use strict";e.exports=function(e){return String(e).replace(t,n)};var t=/[ \t]*\n+[ \t]*/g,n="\n"},67876:e=>{"use strict";e.exports=function(e){return String(e).replace(/\n+$/,"")}},50311:(e,t)=>{(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},68776:(e,t,n)=>{"use strict";var r=n(79996);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);(function a(s){var l=e[++t],u=i.call(arguments,0).slice(1),c=n.length,d=-1;if(s)o(s);else{for(;++d<c;)null!==u[d]&&void 0!==u[d]||(u[d]=n[d]);n=u,l?r(l,a).apply(null,n):o.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},79996:e=>{"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{n=e.apply(null,a)}catch(e){if(s&&r)throw e;return i(e)}s||(n&&"function"==typeof n.then?n.then(o,i):n instanceof Error?i(n):o(n))};function i(){r||(r=!0,n.apply(null,arguments))}function o(e){i(null,e)}}},83439:(e,t,n)=>{"use strict";var r=n(46070),i=n(67343);e.exports=r.bind(null,i)},46070:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e,r,i){if("string"!=typeof r)throw new Error("Input must be string");for(var o,a,s=r.length,l=0,u=0;u<s;u+=1){if(o=r.charCodeAt(u),a=r[u],t(o)&&n(r.charCodeAt(u+1))&&(a+=r[u+=1]),(l+=e(a))===i)return r.slice(0,u+1);if(l>i)return r.slice(0,u-a.length+1)}return r}},21726:(e,t,n)=>{"use strict";n.d(t,{ej:()=>s,kG:()=>l});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n=i);var r=e.call(this,"number"==typeof n?i+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=i,a(r,t.prototype),r}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}function u(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=u("warn"),e.error=u("error")}(l||(l={}));var c={env:{}};if("object"==typeof process)c=process;else try{Function("stub","process = stub")(c)}catch(e){}},30603:(e,t,n)=>{"use strict";var r=n(51960),i=n(91285);e.exports=function(e){var t,n,o;for(n in i(s,e),i(a,s),t=s.prototype)(o=t[n])&&"object"==typeof o&&(t[n]="concat"in o?o.concat():r(o));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},73610:(e,t,n)=>{"use strict";var r=n(37320);e.exports=function(e,t,n){var i;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),i=r({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n)),i}},48313:(e,t,n)=>{"use strict";var r=n(2547);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(a=(i=e.children).length,t&&t.type&&(t=i.indexOf(t)),isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(s(o=i[t],t,e))return o;return null}},93624:e=>{"use strict";e.exports=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)}},2547:e=>{"use strict";function t(){return!0}e.exports=function e(n){if(null==n)return t;if("string"==typeof n)return function(e){return function(t){return Boolean(t&&t.type===e)}}(n);if("object"==typeof n)return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(n);if("function"==typeof n)return n;throw new Error("Expected function, string, or object as test")}},9352:e=>{"use strict";var t=i("start"),n=i("end");function r(e){return{start:t(e),end:n(e)}}function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},5281:(e,t,n)=>{"use strict";var r=n(9867);function i(e){delete e.position}function o(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:o),e}},88062:e=>{"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},26578:(e,t,n)=>{"use strict";e.exports=s;var r=n(832),i=!0,o="skip",a=!1;function s(e,t,n,i){var s;"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),s=r(t),function e(r,u,c){var d,f=[];return(t&&!s(r,u,c[c.length-1]||null)||(f=l(n(r,c)))[0]!==a)&&r.children&&f[0]!==o?(d=l(function(t,n){for(var r,o=i?-1:1,s=(i?t.length:-1)+o;s>-1&&s<t.length;){if((r=e(t[s],s,n))[0]===a)return r;s="number"==typeof r[1]?r[1]:s+o}}(r.children,c.concat(r))),d[0]===a?d:f):f}(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[i,e]:[e]}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},832:e=>{"use strict";function t(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n}(e),r=n.length;return function(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=t},9867:(e,t,n)=>{"use strict";e.exports=s;var r=n(26578),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},12854:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i<r;++i)t[i]=t[i].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var r="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=n(n("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+n("%[89A-Fa-f]"+o+"%"+o+o)+"|"+n("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(r,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),d=n(r+t(r,i,"[\\+\\-\\.]")+"*"),f=n(n(a+"|"+t(c,s,"[\\:]"))+"*"),p=(n(n("25[0-5]")+"|"+n("2[0-4]"+i)+"|"+n("1"+i+i)+"|"+n("[1-9]"+i)+"|"+i),n(n("25[0-5]")+"|"+n("2[0-4]"+i)+"|"+n("1"+i+i)+"|"+n("0?[1-9]"+i)+"|0?0?"+i)),h=n(p+"\\."+p+"\\."+p+"\\."+p),m=n(o+"{1,4}"),g=n(n(m+"\\:"+m)+"|"+h),v=n(n(m+"\\:")+"{6}"+g),y=n("\\:\\:"+n(m+"\\:")+"{5}"+g),b=n(n(m)+"?\\:\\:"+n(m+"\\:")+"{4}"+g),w=n(n(n(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+n(m+"\\:")+"{3}"+g),_=n(n(n(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+n(m+"\\:")+"{2}"+g),x=n(n(n(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),E=n(n(n(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),k=n(n(n(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),C=n(n(n(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),S=n([v,y,b,w,_,x,E,k,C].join("|")),A=n(n(c+"|"+a)+"+"),T=(n(S+"\\%25"+A),n(S+n("\\%25|\\%(?!"+o+"{2})")+A)),O=n("[vV]"+o+"+\\."+t(c,s,"[\\:]")+"+"),P=n("\\["+n(T+"|"+S+"|"+O)+"\\]"),R=n(n(a+"|"+t(c,s))+"*"),M=n(P+"|"+h+"(?!"+R+")|"+R),D=n(i+"*"),I=n(n(f+"@")+"?"+M+n("\\:"+D)+"?"),L=n(a+"|"+t(c,s,"[\\:\\@]")),j=n(L+"*"),N=n(L+"+"),F=n(n(a+"|"+t(c,s,"[\\@]"))+"+"),B=n(n("\\/"+j)+"*"),U=n("\\/"+n(N+B)+"?"),z=n(F+B),q=n(N+B),W="(?!"+L+")",$=(n(B+"|"+U+"|"+z+"|"+q+"|"+W),n(n(L+"|"+t("[\\/\\?]",u))+"*")),H=n(n(L+"|[\\/\\?]")+"*"),G=n(n("\\/\\/"+I+B)+"|"+U+"|"+q+"|"+W),V=n(d+"\\:"+G+n("\\?"+$)+"?"+n("\\#"+H)+"?"),K=n(n("\\/\\/"+I+B)+"|"+U+"|"+z+"|"+W),Z=n(K+n("\\?"+$)+"?"+n("\\#"+H)+"?");return n(V+"|"+Z),n(d+"\\:"+G+n("\\?"+$)+"?"),n(n("\\/\\/("+n("("+f+")@")+"?("+M+")"+n("\\:("+D+")")+"?)")+"?("+B+"|"+U+"|"+q+"|"+W+")"),n("\\?("+$+")"),n("\\#("+H+")"),n(n("\\/\\/("+n("("+f+")@")+"?("+M+")"+n("\\:("+D+")")+"?)")+"?("+B+"|"+U+"|"+z+"|"+W+")"),n("\\?("+$+")"),n("\\#("+H+")"),n(n("\\/\\/("+n("("+f+")@")+"?("+M+")"+n("\\:("+D+")")+"?)")+"?("+B+"|"+U+"|"+q+"|"+W+")"),n("\\?("+$+")"),n("\\#("+H+")"),n("("+f+")@"),n("\\:("+D+")"),{NOT_SCHEME:new RegExp(t("[^]",r,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+n(n("\\%25|\\%(?!"+o+"{2})")+"("+A+")")+"?\\]?$")}}var a=o(!1),s=o(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,c=36,d=/^xn--/,f=/[^\0-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function v(e){throw new RangeError(h[e])}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".")}function b(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var w=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_=function(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=c)e=m(e/35);return m(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&v("not-basic"),n.push(e.charCodeAt(l));for(var d=s>0?s+1:0;d<r;){for(var f=i,p=1,h=c;;h+=c){d>=r&&v("invalid-input");var g=(t=e.charCodeAt(d++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:c;(g>=c||g>m((u-i)/p))&&v("overflow"),i+=g*p;var y=h<=a?1:h>=a+26?26:h-a;if(g<y)break;var b=c-y;p>m(u/b)&&v("overflow"),p*=b}var w=n.length+1;a=_(i-f,w,0==f),m(i/w)>u-o&&v("overflow"),o+=m(i/w),i%=w,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},E=function(e){var t=[],n=(e=b(e)).length,r=128,i=0,o=72,a=!0,s=!1,l=void 0;try{for(var d,f=e[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;p<128&&t.push(g(p))}}catch(e){s=!0,l=e}finally{try{!a&&f.return&&f.return()}finally{if(s)throw l}}var h=t.length,y=h;for(h&&t.push("-");y<n;){var x=u,E=!0,k=!1,C=void 0;try{for(var S,A=e[Symbol.iterator]();!(E=(S=A.next()).done);E=!0){var T=S.value;T>=r&&T<x&&(x=T)}}catch(e){k=!0,C=e}finally{try{!E&&A.return&&A.return()}finally{if(k)throw C}}var O=y+1;x-r>m((u-i)/O)&&v("overflow"),i+=(x-r)*O,r=x;var P=!0,R=!1,M=void 0;try{for(var D,I=e[Symbol.iterator]();!(P=(D=I.next()).done);P=!0){var L=D.value;if(L<r&&++i>u&&v("overflow"),L==r){for(var j=i,N=c;;N+=c){var F=N<=o?1:N>=o+26?26:N-o;if(j<F)break;var B=j-F,U=c-F;t.push(g(w(F+B%U,0))),j=m(B/U)}t.push(g(w(j,0))),o=_(i,O,y==h),i=0,++y}}}catch(e){R=!0,M=e}finally{try{!P&&I.return&&I.return()}finally{if(R)throw M}}++i,++r}return t.join("")},k={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))}},decode:x,encode:E,toASCII:function(e){return y(e,(function(e){return f.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return d.test(e)?x(e.slice(4).toLowerCase()):e}))}},C={};function S(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function A(e){for(var t="",n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var o=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function T(e,t){function n(e){var n=A(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,S).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,S).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,S).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,S).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,S).replace(t.PCT_ENCODED,i)),e}function O(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(O).join("."):e}function R(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),i=r[1],o=r[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),u=s[0],c=s[1],d=c?c.split(":").map(O):[],f=u.split(":").map(O),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,g=Array(h),v=0;v<h;++v)g[v]=d[v]||f[m+v]||"";p&&(g[h-1]=P(g[h-1],t));var y=g.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=g.slice(0,y.index),_=g.slice(y.index+y.length);b=w.join(":")+"::"+_.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var M=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,D=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(M);if(i){D?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==e.indexOf("@")?i[3]:void 0,n.host=-1!==e.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==e.indexOf("?")?i[7]:void 0,n.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=R(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var o=C[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)T(n,r);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=k.toASCII(n.host.replace(r.PCT_ENCODED,A).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}T(n,a)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var L=/^\.\.?\//,j=/^\/\.(\/|$)/,N=/^\/\.\.(\/|$)/,F=/^\/?(?:.|\n)*?(?=\/|$)/;function B(e){for(var t=[];e.length;)if(e.match(L))e=e.replace(L,"");else if(e.match(j))e=e.replace(j,"/");else if(e.match(N))e=e.replace(N,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(F);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],i=C[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?k.toUnicode(e.host):k.toASCII(e.host.replace(n.PCT_ENCODED,A).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}T(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var o=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(R(P(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}(e,t);if(void 0!==o&&("suffix"!==t.reference&&r.push("//"),r.push(o),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var l=e.path;t.absolutePath||i&&i.absolutePath||(l=B(l)),void 0===o&&(l=l.replace(/^\/\//,"/%2F")),r.push(l)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(U(e,n),n),t=I(U(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=B(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=B(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=B(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=B(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function q(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,A)}var W={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize};function H(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var G={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=H(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(H(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=l(n,2),i=r[0],o=r[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},V={scheme:"wss",domainHost:G.domainHost,parse:G.parse,serialize:G.serialize},K={},Z="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",X=n(n("%[EFef]"+Y+"%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f]"+Y+"%"+Y+Y)+"|"+n("%"+Y+Y)),Q=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(Z,"g"),ee=new RegExp(X,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Q),"g"),ne=new RegExp(t("[^]",Z,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=ne;function ie(e){var t=A(e);return t.match(J)?t:e}var oe={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,o={},a=n.query.split("&"),s=0,l=a.length;s<l;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)r.push(c[d]);break;case"subject":n.subject=q(u[1],t);break;case"body":n.body=q(u[1],t);break;default:i=!0,o[q(u[0],t)]=q(u[1],t)}}i&&(n.headers=o)}n.query=void 0;for(var p=0,h=r.length;p<h;++p){var m=r[p].split("@");if(m[0]=q(m[0]),t.unicodeSupport)m[1]=q(m[1],t).toLowerCase();else try{m[1]=k.toASCII(q(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[p]=m.join("@")}return n},serialize:function(e,t){var n,r=e,o=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(o){for(var a=0,s=o.length;a<s;++a){var l=String(o[a]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(ee,ie).replace(ee,i).replace(te,S),d=l.slice(u+1);try{d=t.iri?k.toUnicode(d):k.toASCII(q(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[a]=c+"@"+d}r.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==K[h]&&p.push(h.replace(ee,ie).replace(ee,i).replace(ne,S)+"="+f[h].replace(ee,ie).replace(ee,i).replace(re,S));return p.length&&(r.query=p.join("&")),r}},ae=/^([^\:]+)\:(.*)/,se={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(ae),r=e;if(n){var i=t.scheme||r.scheme||"urn",o=n[1].toLowerCase(),a=n[2],s=i+":"+(t.nid||o),l=C[s];r.nid=o,r.nss=a,r.path=void 0,l&&(r=l.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,i=n+":"+(t.nid||r),o=C[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},le=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ue={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(le)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};C[W.scheme]=W,C[$.scheme]=$,C[G.scheme]=G,C[V.scheme]=V,C[oe.scheme]=oe,C[se.scheme]=se,C[ue.scheme]=ue,e.SCHEMES=C,e.pctEncChar=S,e.pctDecChars=A,e.parse=I,e.removeDotSegments=B,e.serialize=U,e.resolveComponents=z,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return U(z(I(e,r),I(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=U(I(e,t),t):"object"===r(e)&&(e=I(U(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=U(I(e,n),n):"object"===r(e)&&(e=U(e,n)),"string"==typeof t?t=U(I(t,n),n):"object"===r(t)&&(t=U(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:a.ESCAPE,S)},e.unescapeComponent=q,Object.defineProperty(e,"__esModule",{value:!0})}(t)},49705:function(e,t,n){var r,i,o;o=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},59639:function(e,t,n){var r;e=n.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,l=36,u=26,c=38,d=700,f=/^xn--/,p=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=l-1,v=Math.floor,y=String.fromCharCode;function b(e){throw new RangeError(m[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function _(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(h,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function E(e){return w(e,(function(e){var t="";return e>65535&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+y(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?v(e/d):e>>1,e+=v(e/t);e>g*u>>1;r+=l)e=v(e/g);return v(r+(g+1)*e/(e+c))}function S(e){var t,n,r,i,o,a,c,d,f,p,h,m=[],g=e.length,y=0,w=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&b("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=y,a=1,c=l;i>=g&&b("invalid-input"),((d=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l)>=l||d>v((s-y)/a))&&b("overflow"),y+=d*a,!(d<(f=c<=_?1:c>=_+u?u:c-_));c+=l)a>v(s/(p=l-f))&&b("overflow"),a*=p;_=C(y-o,t=m.length+1,0==o),v(y/t)>s-w&&b("overflow"),w+=v(y/t),y%=t,m.splice(y++,0,w)}return E(m)}function A(e){var t,n,r,i,o,a,c,d,f,p,h,m,g,w,_,E=[];for(m=(e=x(e)).length,t=128,n=0,o=72,a=0;a<m;++a)(h=e[a])<128&&E.push(y(h));for(r=i=E.length,i&&E.push("-");r<m;){for(c=s,a=0;a<m;++a)(h=e[a])>=t&&h<c&&(c=h);for(c-t>v((s-n)/(g=r+1))&&b("overflow"),n+=(c-t)*g,t=c,a=0;a<m;++a)if((h=e[a])<t&&++n>s&&b("overflow"),h==t){for(d=n,f=l;!(d<(p=f<=o?1:f>=o+u?u:f-o));f+=l)_=d-p,w=l-p,E.push(y(k(p+_%w,0))),d=v(_/w);E.push(y(k(d,0))),o=C(n,g,r==i),n=0,++r}++n,++t}return E.join("")}a={version:"1.4.1",ucs2:{decode:x,encode:E},decode:S,encode:A,toASCII:function(e){return _(e,(function(e){return p.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return _(e,(function(e){return f.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},883:(e,t,n)=>{"use strict";var r=n(59639);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(19126);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(a);if(y=y.trim(),!n&&1===e.split("#").length){var b=s.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(y);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||w&&m[w]||(y=y.substr(2),this.slashes=!0)}if(!m[w]&&(x||w&&!g[w])){for(var E,k,C=-1,S=0;S<d.length;S++)-1!==(A=y.indexOf(d[S]))&&(-1===C||A<C)&&(C=A);for(-1!==(k=-1===C?y.lastIndexOf("@"):y.lastIndexOf("@",C))&&(E=y.slice(0,k),y=y.slice(k+1),this.auth=decodeURIComponent(E)),C=-1,S=0;S<c.length;S++){var A;-1!==(A=y.indexOf(c[S]))&&(-1===C||A<C)&&(C=A)}-1===C&&(C=y.length),this.host=y.slice(0,C),y=y.slice(C),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var O=this.hostname.split(/\./),P=(S=0,O.length);S<P;S++){var R=O[S];if(R&&!R.match(f)){for(var M="",D=0,I=R.length;D<I;D++)R.charCodeAt(D)>127?M+="x":M+=R[D];if(!M.match(f)){var L=O.slice(0,S),j=O.slice(S+1),N=R.match(p);N&&(L.push(N[1]),j.unshift(N[2])),j.length&&(y="/"+j.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[_])for(S=0,P=u.length;S<P;S++){var U=u[S];if(-1!==y.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),y=y.split(U).join(z)}}var q=y.indexOf("#");-1!==q&&(this.hash=y.substr(q),y=y.slice(0,q));var W=y.indexOf("?");if(-1!==W?(this.search=y.substr(W),this.query=y.substr(W+1),t&&(this.query=v.parse(this.query)),y=y.slice(0,W)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var $=this.search||"";this.path=F+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var f=c[d];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",v=n.search||"";n.path=h+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||y||n.host&&e.pathname,_=w,x=n.pathname&&n.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===x[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search)return E&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=x.slice(-1)[0],C=(n.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,S=0,A=x.length;A>=0;A--)"."===(k=x[A])?x.splice(A,1):".."===k?(x.splice(A,1),S++):S&&(x.splice(A,1),S--);if(!w&&!_)for(;S--;S)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),C&&"/"!==x.join("/").substr(-1)&&x.push("");var T,O=""===x[0]||x[0]&&"/"===x[0].charAt(0);return E&&(n.hostname=O?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(w=w||n.host&&x.length)&&!O&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=y(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},67343:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var r=e.length,i=0,o=null,a=null,s=0;s<r;s++)n(o=e.charCodeAt(s))?null!=a&&t(a)?i+=1:i+=3:o<=127?i+=1:o>=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},5803:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},29987:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>P,parse:()=>g,stringify:()=>c,v1:()=>m,v3:()=>C,v4:()=>S,v5:()=>O,validate:()=>s,version:()=>R});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)};for(var l=[],u=0;u<256;++u)l.push((u+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d,f,p=0,h=0;const m=function(e,t,n){var r=t&&n||0,i=t||new Array(16),a=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var l=e.random||(e.rng||o)();null==a&&(a=d=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=f=16383&(l[6]<<8|l[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,g=u-p+(m-h)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||u>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=u,h=m,f=s;var v=(1e4*(268435455&(u+=122192928e5))+m)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;var y=u/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=a[b];return t||c(i)},g=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function v(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return c(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function w(e,t,n,r,i,o){return b((a=b(b(t,e),b(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function _(e,t,n,r,i,o,a){return w(t&n|~t&r,e,t,i,o,a)}function x(e,t,n,r,i,o,a){return w(t&r|n&~r,e,t,i,o,a)}function E(e,t,n,r,i,o,a){return w(t^n^r,e,t,i,o,a)}function k(e,t,n,r,i,o,a){return w(n^(t|~r),e,t,i,o,a)}const C=v("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=r,u=i,c=o;n=_(n,r,i,o,e[a],7,-680876936),o=_(o,n,r,i,e[a+1],12,-389564586),i=_(i,o,n,r,e[a+2],17,606105819),r=_(r,i,o,n,e[a+3],22,-1044525330),n=_(n,r,i,o,e[a+4],7,-176418897),o=_(o,n,r,i,e[a+5],12,1200080426),i=_(i,o,n,r,e[a+6],17,-1473231341),r=_(r,i,o,n,e[a+7],22,-45705983),n=_(n,r,i,o,e[a+8],7,1770035416),o=_(o,n,r,i,e[a+9],12,-1958414417),i=_(i,o,n,r,e[a+10],17,-42063),r=_(r,i,o,n,e[a+11],22,-1990404162),n=_(n,r,i,o,e[a+12],7,1804603682),o=_(o,n,r,i,e[a+13],12,-40341101),i=_(i,o,n,r,e[a+14],17,-1502002290),n=x(n,r=_(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=x(o,n,r,i,e[a+6],9,-1069501632),i=x(i,o,n,r,e[a+11],14,643717713),r=x(r,i,o,n,e[a],20,-373897302),n=x(n,r,i,o,e[a+5],5,-701558691),o=x(o,n,r,i,e[a+10],9,38016083),i=x(i,o,n,r,e[a+15],14,-660478335),r=x(r,i,o,n,e[a+4],20,-405537848),n=x(n,r,i,o,e[a+9],5,568446438),o=x(o,n,r,i,e[a+14],9,-1019803690),i=x(i,o,n,r,e[a+3],14,-187363961),r=x(r,i,o,n,e[a+8],20,1163531501),n=x(n,r,i,o,e[a+13],5,-1444681467),o=x(o,n,r,i,e[a+2],9,-51403784),i=x(i,o,n,r,e[a+7],14,1735328473),n=E(n,r=x(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=E(o,n,r,i,e[a+8],11,-2022574463),i=E(i,o,n,r,e[a+11],16,1839030562),r=E(r,i,o,n,e[a+14],23,-35309556),n=E(n,r,i,o,e[a+1],4,-1530992060),o=E(o,n,r,i,e[a+4],11,1272893353),i=E(i,o,n,r,e[a+7],16,-155497632),r=E(r,i,o,n,e[a+10],23,-1094730640),n=E(n,r,i,o,e[a+13],4,681279174),o=E(o,n,r,i,e[a],11,-358537222),i=E(i,o,n,r,e[a+3],16,-722521979),r=E(r,i,o,n,e[a+6],23,76029189),n=E(n,r,i,o,e[a+9],4,-640364487),o=E(o,n,r,i,e[a+12],11,-421815835),i=E(i,o,n,r,e[a+15],16,530742520),n=k(n,r=E(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=k(o,n,r,i,e[a+7],10,1126891415),i=k(i,o,n,r,e[a+14],15,-1416354905),r=k(r,i,o,n,e[a+5],21,-57434055),n=k(n,r,i,o,e[a+12],6,1700485571),o=k(o,n,r,i,e[a+3],10,-1894986606),i=k(i,o,n,r,e[a+10],15,-1051523),r=k(r,i,o,n,e[a+1],21,-2054922799),n=k(n,r,i,o,e[a+8],6,1873313359),o=k(o,n,r,i,e[a+15],10,-30611744),i=k(i,o,n,r,e[a+6],15,-1560198380),r=k(r,i,o,n,e[a+13],21,1309151649),n=k(n,r,i,o,e[a+4],6,-145523070),o=k(o,n,r,i,e[a+11],10,-1120210379),i=k(i,o,n,r,e[a+2],15,718787259),r=k(r,i,o,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,l),i=b(i,u),o=b(o,c)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),S=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return c(r)};function A(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function T(e,t){return e<<t|e>>>32-t}const O=v("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),l=0;l<a;++l){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];s[l]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=T(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var _=Math.floor(w/20),x=T(m,5)+A(_,g,v,y)+b+t[_]+f[w]>>>0;b=y,y=v,v=T(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),P="00000000-0000-0000-0000-000000000000",R=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},31982:e=>{"use strict";function t(e){return function(t){var n=t&&t.line,r=t&&t.column;return isNaN(n)||isNaN(r)||!(n-1 in e)?-1:(e[n-2]||0)+r-1||0}}e.exports=function(e){var n,r=function(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:(n=r,function(e){var t=-1,r=n.length;if(e<0)return{};for(;++t<r;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}),toOffset:t(r)}}},90:(e,t,n)=>{"use strict";var r=n(88062);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},21142:(e,t,n)=>{"use strict";e.exports=n(32805)},48791:(e,t,n)=>{"use strict";var r=n(16662),i=n(41345),o=n(97033);e.exports=l;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},32805:(e,t,n)=>{"use strict";var r=n(90),i=n(48791);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},16662:(e,t)=>{"use strict";function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,i,o,a,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(o){s=r+1;break}}else l<0&&(o=!0,l=r+1);return l<0?"":e.slice(s,l)}if(t===e)return"";for(i=-1,a=t.length-1;r--;)if(47===e.charCodeAt(r)){if(o){s=r+1;break}}else i<0&&(o=!0,i=r+1),a>-1&&(e.charCodeAt(r)===t.charCodeAt(a--)?a<0&&(l=r):(a=-1,l=i));return s===l?l=i:l<0&&(l=e.length),e.slice(s,l)},t.dirname=function(e){var t,r,i;if(n(e),!e.length)return".";for(t=-1,i=e.length;--i;)if(47===e.charCodeAt(i)){if(r){t=i;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,i,o=-1,a=0,s=-1,l=0;for(n(e),i=e.length;i--;)if(47!==(r=e.charCodeAt(i)))s<0&&(t=!0,s=i+1),46===r?o<0?o=i:1!==l&&(l=1):o>-1&&(l=-1);else if(t){a=i+1;break}return o<0||s<0||0===l||1===l&&o===s-1&&o===a+1?"":e.slice(o,s)},t.join=function(){for(var e,t,r,i,o=-1;++o<arguments.length;)n(arguments[o]),arguments[o]&&(e=void 0===e?arguments[o]:e+"/"+arguments[o]);return void 0===e?".":(n(t=e),r=47===t.charCodeAt(0),i=function(e,t){for(var n,r,i="",o=0,a=-1,s=0,l=-1;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length){i="",o=0,a=l,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!r),i.length||r||(i="."),i.length&&47===t.charCodeAt(t.length-1)&&(i+="/"),r?"/"+i:i)},t.sep="/"},41345:(e,t)=>{"use strict";t.cwd=function(){return"/"}},97033:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},45982:e=>{"use strict";e.exports=function(){}},35957:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,i=Date.now(),o=!1,a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var m=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,m)}catch(e){}var g,v=function(){if(o=!("false"===e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(e){}b("input"),b("intent")},y=function(e){var t=e.which,i=c[e.type];"pointer"===i&&(i=k(e));var o=!u.length&&-1===l.indexOf(t),s=u.length&&-1!==u.indexOf(t),d="keyboard"===i&&t&&(o||s)||"mouse"===i||"touch"===i;if(C(i)&&(d=!1),d&&n!==i&&(E("input",n=i),b("input")),d&&r!==i){var f=document.activeElement;f&&f.nodeName&&(-1===a.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!O(f,"form"))&&(E("intent",r=i),b("intent"))}},b=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),A(t)},w=function(e){var t=c[e.type];"pointer"===t&&(t=k(e)),T(e),(!d&&!C(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(E("intent",r=t),b("intent"))},_=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):x()},x=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},E=function(e,t){if(o)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},k=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},C=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-i<200;return i=t,r},S=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},A=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},T=function(e){f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0},O=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(c[S()]="mouse",g=!h||{passive:!0,capture:!0},document.addEventListener("DOMContentLoaded",v,!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",w,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",w,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",w,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,g),window.addEventListener("touchend",y,!0))),window.addEventListener(S(),w,g),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",_,!0),window.addEventListener("focusout",x,!0)),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=t()},99776:(e,t,n)=>{var r=n(77186);e.exports={parse:function(e){return r.parse(e.toString())}}},77186:e=>{"use strict";function t(e,n,r,i){this.message=e,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}return"Expected "+function(e){var t,r,i,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(i=e[t],n[i.type](i));if(o.sort(),o.length>0){for(t=1,r=1;t<o.length;t++)o[t-1]!==o[t]&&(o[r]=o[t],r++);o.length=r}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,n){n=void 0!==n?n:{};var r,i={},o={diffs:it},a=it,s=function(e){return e},l=function(e,t){return _t(e,t,void 0,!0)},u="Binary files ",c=Je("Binary files ",!1),d=function(e,t,n){return _t(e,t,n)},f=function(e){return xt(e,void 0,!0)},p=function(e,t,n,r,i,o){return function(e,t,n,r,i,o){const a={oldPath:n,newPath:r,hunks:o?o.hunks:[],status:"copy"===e?"copied":"renamed",similarity:t};return i&&(a.oldMode=i.old_mode,a.newMode=i.new_mode),a}(n.operation,t,n.file,r.file,e||i,o)},h=function(e,t){return xt(e,t)},m="diff --cc ",g=Je("diff --cc ",!1),v=function(e){return e},y="* Unmerged path ",b=Je("* Unmerged path ",!1),w=function(e){return xt(e)},_=function(e,t){return{hunks:t}},x="--- ",E=Je("--- ",!1),k="+++ ",C=Je("+++ ",!1),S=function(e,t){return{old_file_name:e,new_file_name:t}},A=function(e,t){return Object.assign({},e,{lines:t})},T="@@@ -",O=Je("@@@ -",!1),P=" -",R=Je(" -",!1),M=" +",D=Je(" +",!1),I=" @@@",L=Je(" @@@",!1),j=function(e,t,n,r){return{ourStartLine:e.start,ourLineCount:e.count,theirStartLine:n.start,theirLineCount:n.count,baseStartLine:t.start,baseLineCount:t.count,heading:r?r.trim():""}},N="@@ -",F=Je("@@ -",!1),B=" @@",U=Je(" @@",!1),z=function(e,t,n){return{oldStartLine:e.start,oldLineCount:e.count,newStartLine:t.start,newLineCount:t.count,heading:n?n.trim():""}},q=",",W=Je(",",!1),$=function(e,t){return{start:e,count:t}},H=function(e){return{start:e,count:1}},G="+",V=Je("+",!1),K="-",Z=Je("-",!1),Y=" ",X=Je(" ",!1),Q="\\",J=Je("\\",!1),ee=function(e){return e.join("")},te="diff ",ne=Je("diff ",!1),re=function(e,t){return{file_name:t}},ie=function(e){return e.substr(e.length/2+1)},oe="similarity index ",ae=Je("similarity index ",!1),se="%",le=Je("%",!1),ue=function(e){return e},ce=function(e,t){return e||t},de="new",fe=Je("new",!1),pe="deleted",he=Je("deleted",!1),me=" file mode ",ge=Je(" file mode ",!1),ve=function(e,t){return"new"===e?{old_mode:null,new_mode:t}:{old_mode:t,new_mode:null}},ye="old mode ",be=Je("old mode ",!1),we="new mode ",_e=Je("new mode ",!1),xe=function(e,t){return{old_mode:e,new_mode:t}},Ee="rename",ke=Je("rename",!1),Ce="copy",Se=Je("copy",!1),Ae=" from ",Te=Je(" from ",!1),Oe=function(e,t){return{operation:e,file:t}},Pe=" to ",Re=Je(" to ",!1),Me="index ",De=Je("index ",!1),Ie=function(e){return{old_mode:e,new_mode:e}},Le=(et([" ","\t"],!1,!1),"\n"),je=Je("\n",!1),Ne="\r\n",Fe=Je("\r\n",!1),Be={type:"any"},Ue=/^[^\r\n]/,ze=et(["\r","\n"],!0,!1),qe=/^[^ \t\r\n]/,We=et([" ","\t","\r","\n"],!0,!1),$e=/^[0-9]/,He=et([["0","9"]],!1,!1),Ge=function(e){return parseInt(e.join(""),10)},Ve=0,Ke=[{line:1,column:1}],Ze=0,Ye=[],Xe=0,Qe={};if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Je(e,t){return{type:"literal",text:e,ignoreCase:t}}function et(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function tt(t){var n,r=Ke[t];if(r)return r;for(n=t-1;!Ke[n];)n--;for(r={line:(r=Ke[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ke[t]=r,r}function nt(e,t){var n=tt(e),r=tt(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function rt(e){Ve<Ze||(Ve>Ze&&(Ze=Ve,Ye=[]),Ye.push(e))}function it(){var e,t,n,r=35*Ve+0,o=Qe[r];if(o)return Ve=o.nextPos,o.result;for(e=Ve,t=[],n=ot();n!==i;)t.push(n),n=ot();return t!==i&&(t=s(t)),e=t,Qe[r]={nextPos:Ve,result:e},e}function ot(){var t,n=35*Ve+1,r=Qe[n];return r?(Ve=r.nextPos,r.result):(t=function(){var e,t,n=35*Ve+5,r=Qe[n];return r?(Ve=r.nextPos,r.result):(e=Ve,(t=st())!==i&>()!==i&&at()!==i?e=t=f(t):(Ve=e,e=i),Qe[n]={nextPos:Ve,result:e},e)}(),t===i&&(t=function(){var t,n,r,o,a,s,l,u,c=35*Ve+6,d=Qe[c];return d?(Ve=d.nextPos,d.result):(t=Ve,n=function(){var t,n,r,o,a,s,l=35*Ve+19,u=Qe[l];return u?(Ve=u.nextPos,u.result):(t=Ve,e.substr(Ve,5)===te?(n=te,Ve+=5):(n=i,0===Xe&&rt(ne)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ve)?(o=Y,Ve++):(o=i,0===Xe&&rt(X)),o!==i&&(a=yt())!==i&&(s=vt())!==i?t=n=[n,r,o,a,s]:(Ve=t,t=i)):(Ve=t,t=i),Qe[l]={nextPos:Ve,result:t},t)}(),n!==i?((r=mt())===i&&(r=null),r!==i?(o=function(){var t,n,r,o,a=35*Ve+21,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,e.substr(Ve,17)===oe?(n=oe,Ve+=17):(n=i,0===Xe&&rt(ae)),n!==i&&(r=wt())!==i?(37===e.charCodeAt(Ve)?(o=se,Ve++):(o=i,0===Xe&&rt(le)),o!==i&&vt()!==i?t=n=ue(r):(Ve=t,t=i)):(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}(),o!==i?(a=function(){var t,n,r,o,a=35*Ve+25,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,e.substr(Ve,6)===Ee?(n=Ee,Ve+=6):(n=i,0===Xe&&rt(ke)),n===i&&(e.substr(Ve,4)===Ce?(n=Ce,Ve+=4):(n=i,0===Xe&&rt(Se))),n!==i?(e.substr(Ve,6)===Ae?(r=Ae,Ve+=6):(r=i,0===Xe&&rt(Te)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=Oe(n,o):(Ve=t,t=i)):(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}(),a!==i?(s=function(){var t,n,r,o,a=35*Ve+26,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,e.substr(Ve,6)===Ee?(n=Ee,Ve+=6):(n=i,0===Xe&&rt(ke)),n===i&&(e.substr(Ve,4)===Ce?(n=Ce,Ve+=4):(n=i,0===Xe&&rt(Se))),n!==i?(e.substr(Ve,4)===Pe?(r=Pe,Ve+=4):(r=i,0===Xe&&rt(Re)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=Oe(n,o):(Ve=t,t=i)):(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}(),s!==i?((l=gt())===i&&(l=null),l!==i?((u=at())===i&&(u=lt()),u===i&&(u=null),u!==i?t=n=p(r,o,a,s,l,u):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i),Qe[c]={nextPos:Ve,result:t},t)}(),t===i&&(t=function(){var e,t,n,r=35*Ve+7,o=Qe[r];return o?(Ve=o.nextPos,o.result):(e=Ve,(t=st())!==i&>()!==i?((n=lt())===i&&(n=null),n!==i?e=t=h(t,n):(Ve=e,e=i)):(Ve=e,e=i),Qe[r]={nextPos:Ve,result:e},e)}(),t===i&&(t=function(){var t,n,r,o=35*Ve+9,a=Qe[o];return a?(Ve=a.nextPos,a.result):(t=Ve,e.substr(Ve,16)===y?(n=y,Ve+=16):(n=i,0===Xe&&rt(b)),n!==i&&(r=yt())!==i&&vt()!==i?t=n=w(r):(Ve=t,t=i),Qe[o]={nextPos:Ve,result:t},t)}(),t===i&&(t=function(){var e,t,n,r,o=35*Ve+2,a=Qe[o];return a?(Ve=a.nextPos,a.result):(e=Ve,(t=pt())!==i?((n=ht())===i&&(n=null),n!==i?((r=ut())===i&&(r=null),r!==i&&at()!==i?e=t=l(t,n):(Ve=e,e=i)):(Ve=e,e=i)):(Ve=e,e=i),Qe[o]={nextPos:Ve,result:e},e)}(),t===i&&(t=function(){var e,t,n,r,o=35*Ve+4,a=Qe[o];return a?(Ve=a.nextPos,a.result):(e=Ve,(t=pt())!==i?((n=ht())===i&&(n=null),n!==i?((r=lt())===i&&(r=null),r!==i?e=t=d(t,n,r):(Ve=e,e=i)):(Ve=e,e=i)):(Ve=e,e=i),Qe[o]={nextPos:Ve,result:e},e)}()))))),Qe[n]={nextPos:Ve,result:t},t)}function at(){var t,n,r,o,a=35*Ve+3,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,e.substr(Ve,13)===u?(n=u,Ve+=13):(n=i,0===Xe&&rt(c)),n!==i&&(r=yt())!==i&&(o=vt())!==i?t=n=[n,r,o]:(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}function st(){var t,n,r,o=35*Ve+8,a=Qe[o];return a?(Ve=a.nextPos,a.result):(t=Ve,e.substr(Ve,10)===m?(n=m,Ve+=10):(n=i,0===Xe&&rt(g)),n!==i&&(r=yt())!==i&&vt()!==i?t=n=v(r):(Ve=t,t=i),Qe[o]={nextPos:Ve,result:t},t)}function lt(){var e,t,n,r,o=35*Ve+10,a=Qe[o];if(a)return Ve=a.nextPos,a.result;if(e=Ve,(t=ut())!==i){for(n=[],r=ct();r!==i;)n.push(r),r=ct();n!==i?e=t=_(t,n):(Ve=e,e=i)}else Ve=e,e=i;return Qe[o]={nextPos:Ve,result:e},e}function ut(){var t,n,r,o,a,s=35*Ve+11,l=Qe[s];return l?(Ve=l.nextPos,l.result):(t=Ve,e.substr(Ve,4)===x?(n=x,Ve+=4):(n=i,0===Xe&&rt(E)),n!==i&&(r=yt())!==i&&vt()!==i?(e.substr(Ve,4)===k?(o=k,Ve+=4):(o=i,0===Xe&&rt(C)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=S(r,a):(Ve=t,t=i)):(Ve=t,t=i),Qe[s]={nextPos:Ve,result:t},t)}function ct(){var t,n,r,o,a=35*Ve+12,s=Qe[a];if(s)return Ve=s.nextPos,s.result;if(t=Ve,n=function(){var t,n=35*Ve+13,r=Qe[n];return r?(Ve=r.nextPos,r.result):(t=function(){var t,n,r,o,a,s,l,u,c,d=35*Ve+14,f=Qe[d];return f?(Ve=f.nextPos,f.result):(t=Ve,e.substr(Ve,5)===T?(n=T,Ve+=5):(n=i,0===Xe&&rt(O)),n!==i&&(r=dt())!==i?(e.substr(Ve,2)===P?(o=P,Ve+=2):(o=i,0===Xe&&rt(R)),o!==i&&(a=dt())!==i?(e.substr(Ve,2)===M?(s=M,Ve+=2):(s=i,0===Xe&&rt(D)),s!==i&&(l=dt())!==i?(e.substr(Ve,4)===I?(u=I,Ve+=4):(u=i,0===Xe&&rt(L)),u!==i?((c=yt())===i&&(c=null),c!==i&&vt()!==i?t=n=j(r,a,l,c):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i),Qe[d]={nextPos:Ve,result:t},t)}(),t===i&&(t=function(){var t,n,r,o,a,s,l,u=35*Ve+15,c=Qe[u];return c?(Ve=c.nextPos,c.result):(t=Ve,e.substr(Ve,4)===N?(n=N,Ve+=4):(n=i,0===Xe&&rt(F)),n!==i&&(r=dt())!==i?(e.substr(Ve,2)===M?(o=M,Ve+=2):(o=i,0===Xe&&rt(D)),o!==i&&(a=dt())!==i?(e.substr(Ve,3)===B?(s=B,Ve+=3):(s=i,0===Xe&&rt(U)),s!==i?((l=yt())===i&&(l=null),l!==i&&vt()!==i?t=n=z(r,a,l):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i),Qe[u]={nextPos:Ve,result:t},t)}()),Qe[n]={nextPos:Ve,result:t},t)}(),n!==i){if(r=[],(o=ft())!==i)for(;o!==i;)r.push(o),o=ft();else r=i;r!==i?t=n=A(n,r):(Ve=t,t=i)}else Ve=t,t=i;return Qe[a]={nextPos:Ve,result:t},t}function dt(){var t,n,r,o,a=35*Ve+16,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,(n=wt())!==i?(44===e.charCodeAt(Ve)?(r=q,Ve++):(r=i,0===Xe&&rt(W)),r!==i&&(o=wt())!==i?t=n=$(n,o):(Ve=t,t=i)):(Ve=t,t=i),t===i&&(t=Ve,(n=wt())!==i&&(n=H(n)),t=n),Qe[a]={nextPos:Ve,result:t},t)}function ft(){var t,n,r,o,a=35*Ve+17,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,n=Ve,43===e.charCodeAt(Ve)?(r=G,Ve++):(r=i,0===Xe&&rt(V)),r===i&&(45===e.charCodeAt(Ve)?(r=K,Ve++):(r=i,0===Xe&&rt(Z)),r===i&&(32===e.charCodeAt(Ve)?(r=Y,Ve++):(r=i,0===Xe&&rt(X)),r===i&&(92===e.charCodeAt(Ve)?(r=Q,Ve++):(r=i,0===Xe&&rt(J))))),r!==i?((o=yt())===i&&(o=null),o!==i?n=r=[r,o]:(Ve=n,n=i)):(Ve=n,n=i),n!==i&&(r=vt())!==i?t=n=ee(n):(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}function pt(){var t,n,r,o,a,s=35*Ve+18,l=Qe[s];return l?(Ve=l.nextPos,l.result):(t=Ve,e.substr(Ve,5)===te?(n=te,Ve+=5):(n=i,0===Xe&&rt(ne)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ve)?(o=Y,Ve++):(o=i,0===Xe&&rt(X)),o!==i?(a=function(){var e,t,n=35*Ve+20,r=Qe[n];return r?(Ve=r.nextPos,r.result):(e=Ve,(t=yt())!==i&&(t=ie(t)),e=t,Qe[n]={nextPos:Ve,result:e},e)}(),a!==i&&vt()!==i?t=n=re(r,a):(Ve=t,t=i)):(Ve=t,t=i)):(Ve=t,t=i),Qe[s]={nextPos:Ve,result:t},t)}function ht(){var t,n,r,o=35*Ve+22,a=Qe[o];return a?(Ve=a.nextPos,a.result):(t=Ve,n=function(){var t,n,r,o,a=35*Ve+23,s=Qe[a];return s?(Ve=s.nextPos,s.result):(t=Ve,e.substr(Ve,3)===de?(n=de,Ve+=3):(n=i,0===Xe&&rt(fe)),n===i&&(e.substr(Ve,7)===pe?(n=pe,Ve+=7):(n=i,0===Xe&&rt(he))),n!==i?(e.substr(Ve,11)===me?(r=me,Ve+=11):(r=i,0===Xe&&rt(ge)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=ve(n,o):(Ve=t,t=i)):(Ve=t,t=i),Qe[a]={nextPos:Ve,result:t},t)}(),n===i&&(n=mt()),n===i&&(n=null),n!==i?((r=gt())===i&&(r=null),r!==i?t=n=ce(n,r):(Ve=t,t=i)):(Ve=t,t=i),Qe[o]={nextPos:Ve,result:t},t)}function mt(){var t,n,r,o,a,s=35*Ve+24,l=Qe[s];return l?(Ve=l.nextPos,l.result):(t=Ve,e.substr(Ve,9)===ye?(n=ye,Ve+=9):(n=i,0===Xe&&rt(be)),n!==i&&(r=yt())!==i&&vt()!==i?(e.substr(Ve,9)===we?(o=we,Ve+=9):(o=i,0===Xe&&rt(_e)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=xe(r,a):(Ve=t,t=i)):(Ve=t,t=i),Qe[s]={nextPos:Ve,result:t},t)}function gt(){var t,n,r,o,a,s=35*Ve+27,l=Qe[s];return l?(Ve=l.nextPos,l.result):(t=Ve,e.substr(Ve,6)===Me?(n=Me,Ve+=6):(n=i,0===Xe&&rt(De)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ve)?(o=Y,Ve++):(o=i,0===Xe&&rt(X)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=Ie(a):(Ve=t,t=i)):(Ve=t,t=i),t===i&&(t=Ve,e.substr(Ve,6)===Me?(n=Me,Ve+=6):(n=i,0===Xe&&rt(De)),n!==i&&(r=bt())!==i&&(o=vt())!==i?t=n=[n,r,o]:(Ve=t,t=i)),Qe[s]={nextPos:Ve,result:t},t)}function vt(){var t,n=35*Ve+29,r=Qe[n];return r?(Ve=r.nextPos,r.result):(10===e.charCodeAt(Ve)?(t=Le,Ve++):(t=i,0===Xe&&rt(je)),t===i&&(e.substr(Ve,2)===Ne?(t=Ne,Ve+=2):(t=i,0===Xe&&rt(Fe))),t===i&&(t=function(){var t,n,r=35*Ve+31,o=Qe[r];return o?(Ve=o.nextPos,o.result):(t=Ve,Xe++,e.length>Ve?(n=e.charAt(Ve),Ve++):(n=i,0===Xe&&rt(Be)),Xe--,n===i?t=void 0:(Ve=t,t=i),Qe[r]={nextPos:Ve,result:t},t)}()),Qe[n]={nextPos:Ve,result:t},t)}function yt(){var t,n,r,o=35*Ve+32,a=Qe[o];if(a)return Ve=a.nextPos,a.result;if(t=Ve,n=[],Ue.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(ze)),r!==i)for(;r!==i;)n.push(r),Ue.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(ze));else n=i;return n!==i&&(n=ee(n)),t=n,Qe[o]={nextPos:Ve,result:t},t}function bt(){var t,n,r,o=35*Ve+33,a=Qe[o];if(a)return Ve=a.nextPos,a.result;if(t=Ve,n=[],qe.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(We)),r!==i)for(;r!==i;)n.push(r),qe.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(We));else n=i;return n!==i&&(n=ee(n)),t=n,Qe[o]={nextPos:Ve,result:t},t}function wt(){var t,n,r,o=35*Ve+34,a=Qe[o];if(a)return Ve=a.nextPos,a.result;if(t=Ve,n=[],$e.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(He)),r!==i)for(;r!==i;)n.push(r),$e.test(e.charAt(Ve))?(r=e.charAt(Ve),Ve++):(r=i,0===Xe&&rt(He));else n=i;return n!==i&&(n=Ge(n)),t=n,Qe[o]={nextPos:Ve,result:t},t}function _t(e,t,n,r){if(t.old_mode&&!t.new_mode)return{newPath:null,oldPath:e.file_name,newMode:null,oldMode:t.old_mode,hunks:n?n.hunks:[],status:"deleted",binary:!!r};if(!t.old_mode&&t.new_mode)return{oldPath:null,newPath:e.file_name,oldMode:null,newMode:t.new_mode,hunks:n?n.hunks:[],status:"added",binary:!!r};if(t.old_mode&&t.new_mode)return{newPath:e.file_name,oldPath:e.file_name,oldMode:t.old_mode,newMode:t.new_mode,hunks:n?n.hunks:[],status:"modified",binary:!!r};throw new Error("file modes missing")}function xt(e,t,n){return(t=t||{}).filePath=e,t.status="unmerged",t.binary=!!n,t}if((r=a())!==i&&Ve===e.length)return r;throw r!==i&&Ve<e.length&&rt({type:"end"}),function(e,n,r){return new t(t.buildMessage(e,n),e,n,r)}(Ye,Ze<e.length?e.charAt(Ze):null,Ze<e.length?nt(Ze,Ze+1):nt(Ze,Ze))}}},51960:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},45526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(82394);const i=n.n(r)()},82394:(e,t,n)=>{e.exports=n(85757).Observable},85757:(e,t)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}t.Observable=void 0;var o=function(){return"function"==typeof Symbol},a=function(e){return o()&&Boolean(Symbol[e])},s=function(e){return a(e)?Symbol[e]:"@@"+e};o()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var l=s("iterator"),u=s("observable"),c=s("species");function d(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[c])&&(t=void 0),void 0!==t?t:x}function p(e){return e instanceof x}function h(e){h.log?h.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(e){h(e)}}))}function g(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=d(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,n){e._state="running";var r=e._observer;try{var i=d(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(v(e),!i)throw n;i.call(r,n);break;case"complete":v(e),i&&i.call(r)}}catch(e){h(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function b(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void y(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new _(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return i(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(v(this),g(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),_=function(){function e(t){n(this,e),this._subscription=t}return i(e,[{key:"next",value:function(e){b(this._subscription,"next",e)}},{key:"error",value:function(e){b(this._subscription,"error",e)}},{key:"complete",value:function(){b(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),x=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return i(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=f(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=d(t,u);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return p(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(a("iterator")&&(r=d(t,l)))return new n((function(e){m((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;if(e.next(l),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){m((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){m((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:c,get:function(){return this}}]),e}();t.Observable=x,o()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:u,hostReportError:h},configurable:!0})},52939:e=>{const{hasOwnProperty:t}=Object.prototype,n="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n",r=(e,t)=>{const o=[];let a="";"string"==typeof t?t={section:t,whitespace:!1}:(t=t||Object.create(null)).whitespace=!0===t.whitespace;const l=t.whitespace?" = ":"=";for(const t of Object.keys(e)){const r=e[t];if(r&&Array.isArray(r))for(const e of r)a+=s(t+"[]")+l+s(e)+"\n";else r&&"object"==typeof r?o.push(t):a+=s(t)+l+s(r)+n}t.section&&a.length&&(a="["+s(t.section)+"]"+n+a);for(const s of o){const o=i(s).join("\\."),l=(t.section?t.section+".":"")+o,{whitespace:u}=t,c=r(e[s],{section:l,whitespace:u});a.length&&c.length&&(a+=n),a+=c}return a},i=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,""))),o=e=>{const n=Object.create(null);let r=n,o=null;const a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(const e of s){if(!e||e.match(/^\s*[;#]/))continue;const i=e.match(a);if(!i)continue;if(void 0!==i[1]){if(o=l(i[1]),"__proto__"===o){r=Object.create(null);continue}r=n[o]=n[o]||Object.create(null);continue}const s=l(i[2]),u=s.length>2&&"[]"===s.slice(-2),c=u?s.slice(0,-2):s;if("__proto__"===c)continue;const d=!i[3]||l(i[4]),f="true"===d||"false"===d||"null"===d?JSON.parse(d):d;u&&(t.call(r,c)?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]),Array.isArray(r[c])?r[c].push(f):r[c]=f}const u=[];for(const e of Object.keys(n)){if(!t.call(n,e)||"object"!=typeof n[e]||Array.isArray(n[e]))continue;const r=i(e);let o=n;const a=r.pop(),s=a.replace(/\\\./g,".");for(const e of r)"__proto__"!==e&&(t.call(o,e)&&"object"==typeof o[e]||(o[e]=Object.create(null)),o=o[e]);o===n&&s===a||(o[s]=n[e],u.push(e))}for(const e of u)delete n[e];return n},a=e=>'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1),s=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#"),l=(e,t)=>{if(e=(e||"").trim(),!a(e)){let t=!1,n="";for(let r=0,i=e.length;r<i;r++){const i=e.charAt(r);if(t)-1!=="\\;#".indexOf(i)?n+=i:n+="\\"+i,t=!1;else{if(-1!==";#".indexOf(i))break;"\\"===i?t=!0:n+=i}}return t&&(n+="\\"),n.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e};e.exports={parse:o,decode:o,stringify:r,encode:r,safe:s,unsafe:l}},53521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96477),i=n(36313),o=n(68060),a=n(49029),s=n(84101),l=n(73861),u="errorMessage",c=new r.Name("emUsed"),d={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,p=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:u,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:g,schemaValue:v,it:y}=t;if(!1===y.createErrors)return;const b=g,w=i.strConcat(l.default.instancePath,y.errorPath);function _(e,t){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath === ${w}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${y.errSchemaPath.length}))`)}function x(e,t){const r=[];for(const n in e){const e=t[n];f.test(e)&&r.push([n,k(e)])}return n.object(...r)}function E(e){return f.test(e)?new o._Code(o.safeStringify(e).replace(p,((e,t)=>`" + JSON.stringify(${a.getData(t,y)}) + "`)).replace(h,"")):r.stringify(e)}function k(e){return r._`function(){return ${E(e)}}`}n.if(r._`${l.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,a]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);a&&function(i){const o=n.const("emErrors",r.stringify(i)),a=n.const("templates",x(i,g));n.forOf("err",l.default.vErrors,(e=>n.if(_(e,o),(()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${c}`,!0)))));const{singleError:u}=e;if(u){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);d((t=>{n.if(e,(()=>n.code(r._`${e} += ${"string"==typeof u?u:";"}`))),n.code(r._`${e} += ${f(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)})),s.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else d((e=>s.reportError(t,{message:f(e),params:r._`{errors: ${o}[${e}]}`})));function d(e){n.forIn("key",o,(t=>n.if(r._`${o}[${t}].length`,(()=>e(t)))))}function f(e){return r._`${e} in ${a} ? ${a}[${e}]() : ${v}[${e}]`}}(a),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,x(e[t],g[t])]);const a=n.const("templates",n.object(...o)),u=n.scopeValue("obj",{ref:d,code:r.stringify(d)}),f=n.let("emPropParams"),p=n.let("emParamsErrors");n.forOf("err",l.default.vErrors,(e=>n.if(_(e,i),(()=>{n.assign(f,r._`${u}[${e}.keyword]`),n.assign(p,r._`${i}[${e}.keyword][${e}.params[${f}]]`),n.if(p,(()=>n.code(r._`${p}.push(${e})`).assign(r._`${e}.${c}`,!0)))})))),n.forIn("key",i,(e=>n.forIn("keyProp",r._`${i}[${e}]`,(o=>{n.assign(p,r._`${i}[${e}][${o}]`),n.if(r._`${p}.length`,(()=>{const i=n.const("tmpl",r._`${a}[${e}] && ${a}[${e}][${o}]`);s.reportError(t,{message:r._`${i} ? ${i}() : ${v}[${e}][${o}]`,params:r._`{errors: ${p}}`})}))}))))}(o),function(e){const{props:o,items:a}=e;if(!o&&!a)return;const d=r._`typeof ${m} == "object"`,f=r._`Array.isArray(${m})`,p=n.let("emErrors");let h,y;const b=n.let("templates");function _(e,t){n.assign(p,r.stringify(e)),n.assign(b,x(e,t))}o&&a?(h=n.let("emChildKwd"),n.if(d),n.if(f,(()=>{_(a,g.items),n.assign(h,r.str`items`)}),(()=>{_(o,g.properties),n.assign(h,r.str`properties`)})),y=r._`[${h}]`):a?(n.if(f),_(a,g.items),y=r._`.items`):o&&(n.if(i.and(d,i.not(f))),_(o,g.properties),y=r._`.properties`),n.forOf("err",l.default.vErrors,(e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath.indexOf(${w}) === 0`),(()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),a=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${w}.length))`),s=n.const("emChild",r._`${a} && ${a}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${s} !== undefined && ${s} in ${t}`,(()=>o(s)))}))}(e,p,(t=>n.code(r._`${p}[${t}].push(${e})`).assign(r._`${e}.${c}`,!0))))),n.forIn("key",p,(e=>n.if(r._`${p}[${e}].length`,(()=>{s.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${v}${y}[${e}]`,params:r._`{errors: ${p}[${e}]}`}),n.assign(r._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,r._`${w} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const o="string"==typeof b?b:b._;o&&function(e){const o=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,(e=>n.if(function(e){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,i.or(r._`${e}.instancePath === ${w}`,i.and(r._`${e}.instancePath.indexOf(${w}) === 0`,r._`${e}.instancePath[${w}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`${e}.schemaPath[${y.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${c}`,!0))))),n.if(r._`${o}.length`,(()=>s.reportError(t,{message:E(e),params:r._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,(t=>n.if(r._`!${t}.${c}`,(()=>n.code(r._`${e}.push(${t})`))))),n.assign(l.default.vErrors,e).assign(l.default.errors,r._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},60937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,n]){return function(t,n){if(t>n||"exclusiveRange"===e&&t===n)throw new Error("There are no numbers in range")}(t,n),"range"===e?{minimum:t,maximum:n}:{exclusiveMinimum:t,exclusiveMaximum:n}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}})}},75371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"object",schemaType:"array",macro:t=>0===t.length||(1===t.length?{required:t}:{["anyRequired"===e?"anyOf":"oneOf"]:t.map((e=>({required:[e]})))}),metaSchema:{type:"array",items:{type:"string"}}})}},21281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePattern=t.metaSchemaRef=void 0;const r=n(36313);t.metaSchemaRef=function({defaultMeta:e}={}){return!1===e?{}:{$ref:e||"http://json-schema.org/schema"}},t.usePattern=function({gen:e,it:{opts:t}},n,i=(t.unicodeRegExp?"u":"")){const o=new RegExp(n,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:r._`new RegExp(${n}, ${i})`})}},81372:(e,t)=>{"use strict";function n(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return!0;const n=Object.keys(t.properties);return 0===n.length||{required:n}},dependencies:["properties"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},32869:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(75371)).default)("anyRequired");t.default=i,e.exports=i},75847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(21281);function i(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const n in e)t.push(o(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(e)}}}function o(e,t){const n=e.split("/"),r={};let i=r;for(let e=1;e<n.length;e++){let r=n[e];const o=e===n.length-1;r=r.replace(/~1/g,"/").replace(/~0/g,"~");const a=i.properties={};let s;if(/[0-9]+/.test(r)){let e=+r;for(s=i.items=[],i.type=["object","array"];e--;)s.push({})}else i.type="object";i=o?t:{},a[r]=i,s&&s.push(i)}return r}t.default=i,e.exports=i},77109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313);function i(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:n}=e,i=t.map((e=>r._`(${function(e){if(""===e)throw new Error("empty JSON pointer not allowed");const t=e.split("/");let i=n;const o=t.map(((e,t)=>t?i=r._`${i}${(0,r.getProperty)(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}(e))}`:i));return(0,r.and)(...o)}(e)}) === undefined`));e.fail((0,r.or)(...i))},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=i,e.exports=i},94828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={},r={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const n=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*n)},seq:e=>{var t;const r=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return n[r]||(n[r]=0),()=>n[r]++}},i=Object.assign((function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,n){if(!n.opts.useDefaults||n.compositeRule)return()=>!0;const i={};for(const t in e)i[t]="object"==typeof(a=e[t])?function({func:e,args:t}){const n=r[e];return o(e,n),n(t)}(a):function(e=""){const t=r[e];return o(e,t),t()}(a);var a;const s="empty"===n.opts.useDefaults;return t=>{for(const n in e)(void 0===t[n]||s&&(null===t[n]||""===t[n]))&&(t[n]=i[n]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}),{DEFAULTS:r});function o(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t.default=i,e.exports=i},92163:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(60937)).default)("exclusiveRange");t.default=i,e.exports=i},90489:(e,t,n)=>{"use strict";var r=n(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const i={Object,Array,Function,Number,String,Date,RegExp};void 0!==r&&(i.Buffer=r),"undefined"!=typeof Promise&&(i.Promise=Promise);const o=Object.assign((function(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if("string"==typeof e){const t=a(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(a);return e=>{for(const n of t)if(e instanceof n)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}),{CONSTRUCTORS:i});function a(e){const t=i[e];if(t)return t;throw new Error(`invalid "instanceof" keyword value ${e}`)}t.default=o,e.exports=o},53988:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(75371)).default)("oneRequired");t.default=i,e.exports=i},38562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(21281),o={message:({params:{missingPattern:e}})=>r.str`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>r._`{missingPattern: ${e}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:o,code(e){const{gen:t,schema:n,data:o}=e;if(0===n.length)return;const a=t.let("valid",!0);for(const e of n)s(e);function s(n){const s=t.let("matched",!1);t.forIn("key",o,(o=>{t.assign(s,r._`${(0,i.usePattern)(e,n)}.test(${o})`),t.if(s,(()=>t.break()))})),e.setParams({missingPattern:n}),t.assign(a,(0,r.and)(a,s)),e.pass(a)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a},80132:(e,t)=>{"use strict";function n(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return 0===e.length||(1===e.length?{not:{required:e}}:{not:{anyOf:e.map((e=>({required:[e]})))}})},metaSchema:{type:"array",items:{type:"string"}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},81629:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(60937)).default)("range");t.default=i,e.exports=i},1601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(21281),o={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:n}=e,o=function(t){if("object"==typeof t)return(0,i.usePattern)(e,t.pattern,t.flags);const n=a.exec(t);if(n)return(0,i.usePattern)(e,n[1],n[2]);throw new Error("cannot parse string into RegExp")}(n);e.pass(r._`${o}.test(${t})`)},metaSchema:{anyOf:[{type:"string"},o]}}}t.default=s,e.exports=s},47781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(21281),o={message:({params:{schemaProp:e}})=>e?r.str`should match case "${e}" schema`:r.str`should match default case schema`,params:({params:{schemaProp:e}})=>e?r._`{failingCase: ${e}}`:r._`{failingDefault: true}`};function a(e){const t=(0,i.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:o,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:n,parentSchema:i}=e;e.block$data(r.nil,(()=>{const o=t.let("valid",!0),a=t.name("_valid"),s=t.const("value",r._`${n} === null ? "null" : ${n}`);t.if(!1);for(const n in i.selectCases){e.setParams({schemaProp:n}),t.elseIf(r._`"" + ${s} == ${n}`);const i=e.subschema({keyword:"selectCases",schemaProp:n},a);e.mergeEvaluated(i,r.Name),t.assign(o,a)}if(t.else(),void 0!==i.selectDefault){e.setParams({schemaProp:void 0});const n=e.subschema({keyword:"selectDefault"},a);e.mergeEvaluated(n,r.Name),t.assign(o,a)}t.endIf(),e.pass(o)}))}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t.default=a,e.exports=a},98018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(null==t?void 0:t.hash[a(e)])||e},o=Object.assign((function(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:n,schema:o,parentSchema:s,it:l}=e,{parentData:u,parentDataProperty:c}=l,d=o;if(!d.length)return;let f;if(d.includes("toEnumCase")){const e=function(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const n of e.enum){if("string"!=typeof n)continue;const e=a(n);if(t.hash[e])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');t.hash[e]=n}return t}(s);f=t.scopeValue("obj",{ref:e,code:(0,r.stringify)(e)})}function p(e){if(!e.length)return n;const o=e.pop();if(!(o in i))throw new Error(`transform: unknown transformation ${o}`);const a=t.scopeValue("func",{ref:i[o],code:r._`require("ajv-keywords/dist/definitions/transform").transform${(0,r.getProperty)(o)}`}),s=p(e);return f&&"toEnumCase"===o?r._`${a}(${s}, ${f})`:r._`${a}(${s})`}t.if(r._`typeof ${n} == "string" && ${u} !== undefined`,(()=>{t.assign(n,p(d.slice())),t.assign(r._`${u}[${c}]`,n)}))},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(i)}}}}),{transform:i});function a(e){return e.toLowerCase()}t.default=o,e.exports=o},98925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=["undefined","string","number","object","function","boolean","symbol"];function o(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:n,schemaValue:i}=e;e.fail("string"==typeof n?r._`typeof ${t} != ${n}`:r._`${i}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:i},{type:"array",items:{type:"string",enum:i}}]}}}t.default=o,e.exports=o},56762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69378),i=["number","integer","string","boolean","null"];function o(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const n=function(e,t){return e.map((e=>{var n,r,o;const a=null===(o=null===(r=null===(n=t.items)||void 0===n?void 0:n.properties)||void 0===r?void 0:r[e])||void 0===o?void 0:o.type;return Array.isArray(a)?!a.includes("object")&&!a.includes("array"):i.includes(a)}))}(e,t);return t=>{if(t.length<=1)return!0;for(let i=0;i<e.length;i++){const o=e[i];if(n[i]){const e={};for(const n of t){if(!n||"object"!=typeof n)continue;let t=n[o];if(!t||"object"!=typeof t){if("string"==typeof t&&(t='"'+t),e[t])return!1;e[t]=!0}}}else for(let e=t.length;e--;){const n=t[e];if(n&&"object"==typeof n)for(let i=e;i--;){const e=t[i];if(e&&"object"==typeof e&&r(n[o],e[o]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=o,e.exports=o},22366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(81372)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},16052:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(32869)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},24315:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(75847)),o=(e,t)=>e.addKeyword((0,i.default)(t));t.default=o,e.exports=o},60200:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(77109)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},15819:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(94828)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},82456:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(92163)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},66454:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(4832)),o=r(n(98686)),a=r(n(95834)),s=r(n(82456)),l=r(n(96397)),u=r(n(74940)),c=r(n(22998)),d=r(n(22366)),f=r(n(16052)),p=r(n(13293)),h=r(n(61898)),m=r(n(43041)),g=r(n(24315)),v=r(n(60200)),y=r(n(15819)),b=r(n(9463)),w={typeof:i.default,instanceof:o.default,range:a.default,exclusiveRange:s.default,regexp:l.default,transform:u.default,uniqueItemProperties:c.default,allRequired:d.default,anyRequired:f.default,oneRequired:p.default,patternRequired:h.default,prohibited:m.default,deepProperties:g.default,deepRequired:v.default,dynamicDefaults:y.default,select:b.default};t.default=w,e.exports=w},98686:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(90489)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},13293:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(53988)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},61898:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(38562)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},43041:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(80132)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},95834:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(81629)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},96397:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1601)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},9463:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(47781)),o=(e,t)=>((0,i.default)(t).forEach((t=>e.addKeyword(t))),e);t.default=o,e.exports=o},74940:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(98018)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},4832:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(98925)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},22998:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(56762)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},96477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(16495),i=n(36594),o=n(34415),a=n(44746),s=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=n(49029);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=n(36313);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=n(92975);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=n(4946);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},68060:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)l(n,t[r]),n.push(e[++r]);return new i(n)}t._Code=i,t.nil=new i(""),t._=o;const a=new i("+");function s(e,...t){const n=[c(e[0])];let r=0;for(;r<t.length;)n.push(a),l(n,t[r]),n.push(a,c(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=u(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new i(n)}function l(e,t){var n;t instanceof i?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:c(Array.isArray(n)?n.join(","):n))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new i(c(e))},t.safeStringify=c,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},36313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(68060),i=n(92083);var o=n(68060);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(92083);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class u extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=R(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends m{}class y extends g{}y.kind="else";class b extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(D(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class w extends g{}w.kind="for";class _ extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=R(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class x extends w{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class E extends w{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=R(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class k extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class C extends m{render(e){return"return "+super.render(e)}}C.kind="return";class S extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class A extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}A.kind="catch";class T extends g{render(e){return"finally"+super.render(e)}}function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function R(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function M(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function D(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${N(e)}`}T.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new u(e,t,n))}add(e,n){return this._leafNode(new c(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new x(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new E("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new E("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new C;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new S;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new A(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(A,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new k(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=D;const I=j(t.operators.AND);t.and=function(...e){return e.reduce(I)};const L=j(t.operators.OR);function j(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${N(t)} ${e} ${N(n)}`}function N(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(L)}},92083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(68060);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const u in e){const c=e[u];if(!c)continue;const d=a[u]=a[u]||new Map;c.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return l}}},84101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(36313),i=n(22500),o=n(73861);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:c,compositeRule:d,allErrors:f}=l,p=u(e,n,i);(null!=o?o:d||f)?a(c,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:c,allErrors:d}=i;a(l,u(e,n,r)),c||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function u(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[c(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]),d.verbose&&i.push([l.schema,u],[l.parentSchema,r._`${p}${h}`],[o.default.data,s]),f&&i.push([l.propertyName,f])}(e,t,s),i.object(...s)}(e,t,n)}function c({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},33830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(36313),i=n(92975),o=n(73861),a=n(40195),s=n(22500),l=n(49029);class u{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function c(e){const t=f.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:u}=this.opts.code,{ownProperties:c}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:u,ownProperties:c});let p;e.$async&&(p=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const m={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,l.validateFunctionCode)(m),d.optimize(this.opts.code.optimize);const t=d.toString();g=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,g)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function f(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return g.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=h.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||c.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new u({schema:t,schemaId:n,root:e,baseId:i})}return g.call(this,n,s)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=p.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new u({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=f,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new u({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},73861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},4946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40195);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},40195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(22500),i=n(69378),o=n(18966),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&u(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function u(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=u(e))),t===1/0))return 1/0}return t}function c(e,t="",n){!1!==n&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=c,t._getFullPath=d;const f=/#\/?$/;function p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=p(e[n]||t),s={"":a},l=c(r,a,!1),u={},d=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function c(t){const n=this.opts.uriResolver.resolve;if(t=p(a?n(a,t):t),d.has(t))throw m(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?f(e,r.schema,t):t!==p(o)&&("#"===t[0]?(f(e,u[t],t),u[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);c.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=c.call(this,e[n])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=a})),u;function f(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},70483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},22500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(36313),i=n(68060);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const u=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||u instanceof r.Name?u:i(o,u)}}function c(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=c,t.setEvaluated=d;const f={};var p;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=h},74312:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},61525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(84101),i=n(36313),o=n(73861),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},28051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(70483),i=n(74312),o=n(84101),a=n(36313),s=n(22500);var l;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),u=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(u){const i=f(t,r,o.strictNumbers,l.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(f(t,i,o.strictNumbers),(()=>r.assign(l,i))))),r.if(a._`${l} !== undefined`);for(const e of n)(c.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null
|
||
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null
|
||
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number"
|
||
|| ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):h(e)}))}return u};const c=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function f(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=f;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,p)}t.reportTypeError=h},2332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(36313),i=n(22500);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const u=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=r._`${u} === undefined`;"empty"===l.useDefaults&&(c=r._`${c} || ${u} === null || ${u} === ""`),o.if(c,r._`${u} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},49029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(61525),i=n(28051),o=n(74312),a=n(28051),s=n(2332),l=n(78716),u=n(69456),c=n(36313),d=n(73861),f=n(40195),p=n(22500),h=n(84101);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,c._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(c._`"use strict"; ${g(n,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,c._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,c._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,c._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,c._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,c._`""`),e.var(d.default.parentData,c._`undefined`),e.var(d.default.parentDataProperty,c._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`{}`)}))}(e,i),e.code(o)})):e.func(t,c._`${d.default.data}, ${function(e){return c._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?c._`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}(i)}`,r.$async,(()=>e.code(g(n,i)).code(o)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?c._`/*# sourceURL=${n} */`:c.nil}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function b(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,t){if(e.opts.jtd)return x(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);x(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function _({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(c._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=c.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(c._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function x(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:u,opts:f,self:h}=e,{RULES:m}=h;function g(p){(0,o.shouldUseGroup)(s,p)&&(p.type?(i.if((0,a.checkDataType)(p.type,l,f.strictNumbers)),E(e,p),1===t.length&&t[0]===p.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):E(e,p),u||i.if(c._`${d.default.errors} === ${r||0}`))}!s.$ref||!f.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(s,m)?(f.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{k(e.dataTypes,t)||C(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)k(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&C(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&C(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):i.block((()=>A(e,"$ref",m.all.$ref.definition)))}function E(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&A(e,n.keyword,n.definition,t.type)}))}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function C(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(b(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&_(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,(()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`))),t.if(c._`${e.evaluated}.dynamicItems`,(()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(c._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(c._`new ${i}(${d.default.vErrors})`))):(t.assign(c._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n),r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${d.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class S{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",P(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,c.or)(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,c.or)(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const n=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(n,this.it,e),(0,u.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){y(e)&&(b(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&_(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);w(e,o),r.var(t,c._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,c.Name))),!0}}function A(e,t,n,r){const i=new S(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=S;const T=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!T.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=c._`${o}${(0,c.getProperty)((0,p.unescapeJsonPointer)(e))}`,a=c._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=P},78716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(36313),i=n(73861),o=n(78213),a=n(84101);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,u=t.macro.call(s.self,o,a,s),c=l(n,i,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);const d=n.name("valid");e.subschema({schema:u,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!p&&t.compile?t.compile.call(h.self,d,f,h):t.validate,g=l(u,c,m),v=u.let("valid");function y(n=(t.async?r._`await `:r.nil)){const a=h.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!p||!1===t.schema);u.assign(v,r._`${n}${(0,o.callValidateCode)(e,g,a,s)}`,t.modifying)}function b(e){var n;u.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:v),e)}e.block$data(v,(function(){if(!1===t.errors)y(),t.modifying&&s(e),b((()=>e.error()));else{const n=t.async?function(){const e=u.let("ruleErrs",null);return u.try((()=>y(r._`await `)),(t=>u.assign(v,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>u.assign(e,r._`${t}.errors`)),(()=>u.throw(t))))),e}():function(){const e=r._`${g}.errors`;return u.assign(e,null),y(r.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:v)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},69456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(36313),i=n(22500);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;c(u.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}function c(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(c(a instanceof r.Name?a:u.let("data",a,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},16495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(49029);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(36313);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(92975),a=n(4946),s=n(70483),l=n(33830),u=n(36313),c=n(40195),d=n(28051),f=n(22500),p=n(74388),h=n(30073),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,g,v,y,b,w,_,x,E,k,C,S,A;const T=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,R=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:m,M=null!==(i=e.uriResolver)&&void 0!==i?i:h.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:T)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:T)&&void 0!==c?c:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:T)&&void 0!==f?f:"log",strictRequired:null!==(g=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&void 0!==g&&g,code:e.code?{...e.code,optimize:P,regExp:R}:{optimize:P,regExp:R},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(E=e.addUsedSchema)||void 0===E||E,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(A=e.int32range)||void 0===A||A,uriResolver:M}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),x.call(this,y,e,"NOT SUPPORTED"),x.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=A.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=p;"id"===n&&(r={...p},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=E.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=E.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>R.call(this,e))),this;D.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>R.call(this,e,r):e=>r.type.forEach((t=>R.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=L(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,c.normalizeId)(o||n);const u=c.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:u}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function x(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function E(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function A(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=_,_.ValidationError=o.default,_.MissingRefError=a.default;const T={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?M.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function D(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=L(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function L(e){return{anyOf:[e,I]}}},93920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69378);r.code='require("ajv/dist/runtime/equal").default',t.default=r},45750:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),56320==(64512&n)&&i++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},30073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12854);r.code='require("ajv/dist/runtime/uri").default',t.default=r},92975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},55469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(36313),i=n(22500),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const u=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${u} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,u,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},77275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78213),i=n(36313),o=n(73861),a=n(22500),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:u,it:c}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&(0,a.alwaysValidSchema)(c,n))return;const p=(0,r.allSchemaProperties)(s.properties),h=(0,r.allSchemaProperties)(s.patternProperties);function m(e){t.code(i._`delete ${l}[${e}]`)}function g(r){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(c,n)){const n=t.name("valid");"failing"===f.removeAdditional?(v(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(v(r,n),d||t.if((0,i.not)(n),(()=>t.break())))}}}function v(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,(n=>{p.length||h.length?t.if(function(n){let o;if(p.length>8){const e=(0,a.schemaRefOrVal)(c,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=p.length?(0,i.or)(...p.map((e=>i._`${n} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>g(n))):g(n)})),e.ok(i._`${u} === ${o.default.errors}`)}};t.default=s},79376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22500),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},49637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(78213).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},19175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,u;const{minContains:c,maxContains:d}=o;s.opts.next?(l=void 0===c?1:c,u=d):l=1;const f=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:u}),void 0===u&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&l>u)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${f} >= ${l}`;return void 0!==u&&(t=r._`${t} && ${f} <= ${u}`),void e.pass(t)}s.items=!0;const p=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===u?t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0).break())):(t.if(r._`${e} > ${u}`,(()=>t.assign(p,!1).break())),1===l?t.assign(p,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0))))}(n)))))}function m(n,r){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===u&&1===l?m(p,(()=>t.if(p,(()=>t.break())))):0===l?(t.let(p,!0),void 0!==u&&t.if(r._`${a}.length > 0`,h)):(t.let(p,!1),h()),e.result(p,(()=>e.reset()))}};t.default=o},69181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(36313),i=n(22500),o=n(78213);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
|
||
missingProperty: ${i},
|
||
depsCount: ${t},
|
||
deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const u=t[l];if(0===u.length)continue;const c=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(c,(()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const u in t)(0,i.alwaysValidSchema)(s,t[u])||(n.if((0,o.propertyInData)(n,r,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},88681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const u=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if((0,r.not)(c),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},88650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(55469),i=n(36550),o=n(70744),a=n(76553),s=n(19175),l=n(69181),u=n(26739),c=n(77275),d=n(4441),f=n(21540),p=n(58516),h=n(49637),m=n(42561),g=n(79376),v=n(88681),y=n(7451);t.default=function(e=!1){const t=[p.default,h.default,m.default,g.default,v.default,y.default,u.default,c.default,l.default,d.default,f.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},70744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(36313),i=n(22500),o=n(78213),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const c=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(u,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},c))),e.ok(c))}))}t.validateTuple=s,t.default=a},76553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o=n(78213),a=n(55469),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},58516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22500),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},42561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if(r._`${c} && ${l}`).assign(l,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(c,(()=>{t.assign(l,!0),t.assign(u,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},21540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78213),i=n(36313),o=n(22500),a=n(22500),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:u}=e,{opts:c}=u,d=(0,r.allSchemaProperties)(n),f=d.filter((e=>(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;const p=c.strictSchema&&!c.allowMatchingProperties&&l.properties,h=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,a.evaluatedPropsToName)(t,u.props));const{props:m}=u;function g(e){for(const t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=f.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},h),u.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||u.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of d)p&&g(e),u.allErrors?v(e):(t.var(h,!0),v(e),t.if(h))}()}};t.default=s},36550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(70744),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},4441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49029),i=n(78213),o=n(22500),a=n(77275),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(u,a.default,"additionalProperties"));const c=(0,i.allSchemaProperties)(n);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));const d=c.filter((e=>!(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)p(n)?h(n):(t.if((0,i.propertyInData)(t,l,n,u.opts.ownProperties)),h(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},26739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},7451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22500),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},78213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(36313),i=n(22500),o=n(73861),a=n(22500);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function u(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function c(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(u(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(u(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},u,c,d){const f=d?r._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${f}, ${n.object(...p)}`;return c!==r.nil?r._`${u}.call(${c}, ${h})`:r._`${u}(${h})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},32904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},74867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32904),i=n(19119),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},19119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(4946),i=n(78213),o=n(36313),a=n(73861),s=n(33830),l=n(22500),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:p}=i,{root:h}=l;if(("#"===n||"#/"===n)&&a===h.baseId)return function(){if(l===h)return d(e,u,l,l.$async);const n=t.scopeValue("root",{ref:h});return d(e,o._`${n}.validate`,h,h.$async)}();const m=s.resolveRef.call(p,h,a,n);if(void 0===m)throw new r.default(i.opts.uriResolver,a,n);return m instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===f.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,p=f.passContext?a.default.this:o.nil;function h(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=l.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",o._`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=l.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",o._`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,p)}`),m(t),c||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${u.ValidationError})`,(()=>s.throw(e))),h(e),c||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,p),(()=>m(t)),(()=>h(t)))}t.getValidate=c,t.callRef=d,t.default=u},34415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(89241),o=n(33830),a=n(22500),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:s,parentSchema:l,it:u}=e,{oneOf:c}=l;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(d)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(l);let r=!0;for(let t=0;t<c.length;t++){let l=c[t];(null==l?void 0:l.$ref)&&!(0,a.schemaHasRulesButRef)(l,u.self.RULES)&&(l=o.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,null==l?void 0:l.$ref),l instanceof o.SchemaEnv&&(l=l.schema));const f=null===(e=null==l?void 0:l.properties)||void 0===e?void 0:e[d];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);r=r&&(n||i(l)),s(f,t)}if(!r)throw new Error(`discriminator: "${d}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(d)}function s(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const n of e.enum)f(n,t)}}function f(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${d}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${p} === ${e}`),t.assign(f,h(n[e]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:p,tagName:d}),t.endIf()}()),(()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:d}))),e.ok(f)}};t.default=s},89241:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},36594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(74867),i=n(12523),o=n(88650),a=n(68643),s=n(39650),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},19826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=l;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),c=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(c,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(c,a))),e.fail$data((0,r.or)(!1===u.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:r._`${c}(${i})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return r._`${c} && ${c} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}f.logger.warn(e())}();if(!0===o)return;const[s,l,p]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):u.code.formats?r._`${u.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${i})`}return"function"==typeof l?r._`${p}(${i})`:r._`${p}.test(${i})`}())}())}};t.default=i},68643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(19826).default];t.default=r},39650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},60524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o=n(93920),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},17858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o=n(93920),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=u.opts.loopEnum;let d;const f=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let p;if(c||a)p=t.let("valid"),e.block$data(p,(function(){t.assign(p,!1),t.forOf("v",l,(e=>t.if(r._`${f()}(${n}, ${e})`,(()=>t.assign(p,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);p=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${f()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(p)}};t.default=a},12523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32703),i=n(62669),o=n(83819),a=n(24604),s=n(68380),l=n(99296),u=n(34690),c=n(52574),d=n(60524),f=n(17858),p=[r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=p},34690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},83819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=n(22500),o=n(45750),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${l} ${a}`)}};t.default=a},32703:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},68380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},62669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(36313),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},24604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78213),i=n(36313),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",u=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${u}.test(${t})`)}};t.default=o},99296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78213),i=n(36313),o=n(22500),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===n.length)return;const d=n.length>=c.loopRequired;if(u.allErrors?function(){if(d||l)e.block$data(i.nil,f);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,c.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function f(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,c.ownProperties),(()=>e.error()))}))}}};t.default=a},52574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28051),i=n(36313),o=n(22500),a=n(93920),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:u,schemaCode:c,it:d}=e;if(!s&&!l)return;const f=t.let("valid"),p=u.items?(0,r.getSchemaTypes)(u.items):[];function h(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(p,s,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),p.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${u}[${s}] == "number"`,(()=>{t.assign(a,i._`${u}[${s}]`),e.error(),t.assign(f,!1).break()})).code(i._`${u}[${s}] = ${o}`)}))}function m(r,s){const l=(0,o.useFunc)(t,a.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(f,!1).break(u)}))))))}e.block$data(f,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(f,!0),t.if(i._`${r} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?h:m)(r,o)))}),i._`${c} === false`),e.ok(f)}};t.default=s},18966:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,a,s,l,u,c,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in r(o,a,s,l,u,c,d),o){var p=o[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var h=0;h<p.length;h++)n(e,r,i,p[h],a+"/"+f+"/"+h,s,a,f,o,h)}else if(f in t.propsKeywords){if(p&&"object"==typeof p)for(var m in p)n(e,r,i,p[m],a+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,f,o,m)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&n(e,r,i,p,a+"/"+f,s,a,f,o)}i(o,a,s,l,u,c,d)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},84449:(e,t,n)=>{"use strict";e.exports=n(64569)},63199:(e,t,n)=>{"use strict";var r=n(85387);e.exports=function(e,t){for(var n=[],i=t&&t.children||[],o=-1;++o<i.length;)n[o]=r(e,i[o],o,t);return n.join("")}},1699:(e,t,n)=>{"use strict";var r=n(51960),i=n(61233);e.exports=function(e,t){return e.bogusComments?"<?"+i(t.value,r(e.entities,{subset:[">"]}))+">":"\x3c!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(t){return i(t,r(e.entities,{subset:["<",">"]}))}))+"--\x3e"}},80837:e=>{"use strict";e.exports={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]}},4447:(e,t,n)=>{"use strict";var r=n(51960),i=n(53404),o=n(61233);function a(e,t){var n=String(t),a=i(n,e.quote)>i(n,e.alternative)?e.alternative:e.quote;return a+o(n,r(e.entities,{subset:["<","&",a]}))+a}e.exports=function(e,t){var n=e.tightDoctype?"":" ",r=["<!"+(e.upperDoctype?"DOCTYPE":"doctype")];return t.name&&(r.push(n,t.name),null!=t.public?r.push(" public",n,a(e,t.public)):null!=t.system&&r.push(" system"),null!=t.system&&r.push(n,a(e,t.system))),r.join("")+">"}},46615:(e,t,n)=>{"use strict";var r=n(51960),i=n(57956),o=n(70521),a=n(93113),s=n(97327),l=n(61233),u=n(53404),c=n(63199),d=n(80837);function f(e,t,n){var i,c,f=o(e.schema,t),p=e.quote;return!f.overloadedBoolean||n!==f.attribute&&""!==n?(f.boolean||f.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&n!=n?"":(c=l(f.attribute,r(e.entities,{subset:d.name["html"===e.schema.space?e.valid:1][e.safe]})),!0===n?c:(n="object"==typeof n&&"length"in n?(f.commaSeparated?s.stringify:a.stringify)(n,{padLeft:!e.tightLists}):String(n),e.collapseEmpty&&!n?c:(e.unquoted&&(i=l(n,r(e.entities,{subset:d.unquoted[e.valid][e.safe],attribute:!0}))),i!==n&&(e.smart&&u(n,p)>u(n,e.alternative)&&(p=e.alternative),i=p+l(n,r(e.entities,{subset:("'"===p?d.single:d.double)["html"===e.schema.space?e.valid:1][e.safe],attribute:!0}))+p),c+(i?"="+i:i))))}e.exports=function(e,t,n,r){var o,a,s,l=e.schema,u="svg"!==l.space&&e.omit,d=[],p="svg"===l.space?e.closeEmpty:e.voids.indexOf(t.tagName.toLowerCase())>-1;return"html"===l.space&&"svg"===t.tagName&&(e.schema=i),o=function(e,t){var n,r,i,o=[],a=-1;for(n in t)null!=t[n]&&(r=f(e,n,t[n]))&&o.push(r);for(;++a<o.length;)i=e.tight?o[a].charAt(o[a].length-1):null,a!==o.length-1&&'"'!==i&&"'"!==i&&(o[a]+=" ");return o.join("")}(e,t.properties),a=c(e,"html"===l.space&&"template"===t.tagName?t.content:t),e.schema=l,a&&(p=!1),!o&&u&&u.opening(t,n,r)||(d.push("<",t.tagName,o?" "+o:""),p&&("svg"===l.space||e.close)&&(s=o.charAt(o.length-1),(!e.tightClose||"/"===s||"svg"===l.space&&s&&'"'!==s&&"'"!==s)&&d.push(" "),d.push("/")),d.push(">")),d.push(a),p||u&&u.closing(t,n,r)||d.push("</"+t.tagName+">"),d.join("")}},64569:(e,t,n)=>{"use strict";var r,i=n(59209),o=n(57956),a=n(25183),s=n(18254),l=n(85387);e.exports=function(e,t){var n=t||{},u=n.quote||'"',c='"'===u?"'":'"';if('"'!==u&&"'"!==u)throw new Error("Invalid quote `"+u+"`, expected `'` or `\"`");return"allowDangerousHTML"in n&&!r&&(r=!0,console.warn("Deprecation warning: `allowDangerousHTML` is a nonstandard option, use `allowDangerousHtml` instead")),l({valid:n.allowParseErrors?0:1,safe:n.allowDangerousCharacters?0:1,schema:"svg"===n.space?o:i,omit:n.omitOptionalTags&&s,quote:u,alternative:c,smart:n.quoteSmart,unquoted:n.preferUnquoted,tight:n.tightAttributes,upperDoctype:n.upperDoctype,tightDoctype:n.tightDoctype,bogusComments:n.bogusComments,tightLists:n.tightCommaSeparatedLists,tightClose:n.tightSelfClosing,collapseEmpty:n.collapseEmptyAttributes,dangerous:n.allowDangerousHtml||n.allowDangerousHTML,voids:n.voids||a.concat(),entities:n.entities||{},close:n.closeSelfClosing,closeEmpty:n.closeEmptyElements},e&&"object"==typeof e&&"length"in e?{type:"root",children:e}:e)}},55350:(e,t,n)=>{"use strict";var r=n(85909),i=n(4846),o=n(13576),a=n(25567),s=n(9930);function l(e,t,n){var r=a.after(n,t,!0);return!r||!o(r)&&!i(r)}function u(e,t,n){var i=a.after(n,t);return!i||r(i,["rp","rt"])}function c(e,t,n){var i=a.after(n,t);return!i||r(i,["td","th"])}e.exports=s({html:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},head:l,body:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},p:function(e,t,n){var i=a.after(n,t);return i?r(i,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!r(n,["a","audio","del","ins","map","noscript","video"])},li:function(e,t,n){var i=a.after(n,t);return!i||r(i,"li")},dt:function(e,t,n){var i=a.after(n,t);return i&&r(i,["dt","dd"])},dd:function(e,t,n){var i=a.after(n,t);return!i||r(i,["dt","dd"])},rt:u,rp:u,optgroup:function(e,t,n){var i=a.after(n,t);return!i||r(i,"optgroup")},option:function(e,t,n){var i=a.after(n,t);return!i||r(i,["option","optgroup"])},menuitem:function(e,t,n){var i=a.after(n,t);return!i||r(i,["menuitem","hr","menu"])},colgroup:l,caption:l,thead:function(e,t,n){var i=a.after(n,t);return i&&r(i,["tbody","tfoot"])},tbody:function(e,t,n){var i=a.after(n,t);return!i||r(i,["tbody","tfoot"])},tfoot:function(e,t,n){return!a.after(n,t)},tr:function(e,t,n){var i=a.after(n,t);return!i||r(i,"tr")},td:c,th:c})},18254:(e,t,n)=>{"use strict";t.opening=n(15639),t.closing=n(55350)},9930:e=>{"use strict";e.exports=function(e){return function(n,r,i){return t.call(e,n.tagName)&&e[n.tagName](n,r,i)}};var t={}.hasOwnProperty},15639:(e,t,n)=>{"use strict";var r=n(85909),i=n(25567),o=n(4846),a=n(13576),s=n(55350),l=n(9930);e.exports=l({html:function(e){var t=i.after(e,-1);return!t||!a(t)},head:function(e){for(var t=e.children,n=[],i=-1;++i<t.length;)if(r(t[i],["title","base"])){if(n.indexOf(t[i].tagName)>-1)return!1;n.push(t[i].tagName)}return t.length},body:function(e){var t=i.after(e,-1,!0);return!t||!a(t)&&!o(t)&&!r(t,["meta","link","script","style","template"])},colgroup:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1,!0);return(!r(o,"colgroup")||!s(o,n.children.indexOf(o),n))&&(a&&r(a,"col"))},tbody:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1);return(!r(o,["thead","tbody"])||!s(o,n.children.indexOf(o),n))&&(a&&r(a,"tr"))}})},13576:(e,t,n)=>{"use strict";var r=n(2547);e.exports=r("comment")},25567:(e,t,n)=>{"use strict";var r=n(67273);function i(e){return function(t,n,i){var o=t&&t.children,a=n+e,s=o&&o[a];if(!i)for(;s&&r(s);)s=o[a+=e];return s}}t.before=i(-1),t.after=i(1)},4846:(e,t,n)=>{"use strict";var r=n(2547),i=n(67273);e.exports=function(e){return o(e)&&i(e.value.charAt(0))};var o=r("text")},85387:(e,t,n)=>{"use strict";e.exports=function(e,t,n,o){if(!t||!t.type)throw new Error("Expected node, not `"+t+"`");if(!i.call(r,t.type))throw new Error("Cannot compile unknown node `"+t.type+"`");return r[t.type](e,t,n,o)};var r={comment:n(1699),doctype:n(4447),element:n(46615),raw:n(53780),root:n(63199),text:n(67398)},i={}.hasOwnProperty},53780:(e,t,n)=>{"use strict";var r=n(67398);e.exports=function(e,t){return e.dangerous?t.value:r(e,t)}},67398:(e,t,n)=>{"use strict";var r=n(51960),i=n(61233);e.exports=function(e,t,n,o){return!o||"script"!==o.tagName&&"style"!==o.tagName?i(t.value,r(e.entities,{subset:["<","&"]})):t.value}},97605:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},4741:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},27809:(e,t,n)=>{"use strict";var r=n(51960),i=n(84449);e.exports=function(e){var t=r(e,this.data("settings"));this.Compiler=function(e){return i(e,t)}}},61233:(e,t,n)=>{"use strict";e.exports=n(31017)},8316:(e,t,n)=>{var r,i=n(22017),o={};for(r in e.exports=o,i)o[i[r]]=r},73086:e=>{e.exports=String.fromCharCode},504:e=>{e.exports={}.hasOwnProperty},33162:e=>{"use strict";e.exports=function(e,t){return e=e.replace(t.subset?function(e){for(var t=[],n=-1;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}},15681:(e,t,n)=>{"use strict";var r=n(51960),i=n(33162),o=n(52173);e.exports=function(e,t){return i(e,r(t,{format:o}))}},82454:(e,t,n)=>{"use strict";var r=n(33162),i=n(52173);e.exports=function(e){return r(e,{escapeOnly:!0,useNamedReferences:!0,format:i})}},31017:(e,t,n)=>{"use strict";var r=n(15681),i=n(82454);e.exports=r,r.escape=i},52173:(e,t,n)=>{e.exports=function(e,t,n){var a,s,l;return(n.useNamedReferences||n.useShortestReferences)&&(a=o(e,t,n.omitOptionalSemicolons,n.attribute)),!n.useShortestReferences&&a||(s=r(e,t,n.omitOptionalSemicolons),n.useShortestReferences&&(l=i(e,t,n.omitOptionalSemicolons)).length<s.length&&(s=l)),a&&(!n.useShortestReferences||a.length<s.length)?a:s};var r=n(19648),i=n(56233),o=n(97960)},56233:(e,t,n)=>{e.exports=function(e,t,n){var i="&#"+String(e);return n&&t&&!/\d/.test(r(t))?i:i+";"};var r=n(73086)},19648:(e,t,n)=>{e.exports=function(e,t,n){var i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(r(t))?i:i+";"};var r=n(73086)},97960:(e,t,n)=>{e.exports=function(e,t,n,l){var u,c,d=o(e);return a.call(i,d)?(c="&"+(u=i[d]),n&&a.call(r,u)&&-1===s.indexOf(u)&&(!l||t&&61!==t&&/[^\da-z]/i.test(o(t)))?c:c+";"):""};var r=n(93562),i=n(8316),o=n(73086),a=n(504),s=n(88194)},43367:(e,t,n)=>{"use strict";var r=n(87683),i=n(97605),o=n(49385),a=n(4741),s=n(68776),l=n(21142);e.exports=function e(){var t,n=[],i=s(),y={},b=-1;return w.data=function(e,n){return"string"==typeof e?2===arguments.length?(m("data",t),y[e]=n,w):c.call(y,e)&&y[e]||null:e?(m("data",t),y=e,w):y},w.freeze=_,w.attachers=n,w.use=function(e){var r;if(m("use",t),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l(e):i(e)}return r&&(y.settings=o(y.settings||{},r)),w;function i(e){l(e.plugins),e.settings&&(r=o(r||{},e.settings))}function s(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):i(e)}}function l(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function c(e,t){var r=function(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(u.call(arguments))}},w.parse=function(e){var t,n=l(e);return _(),p("parse",t=w.Parser),f(t,"parse")?new t(String(n),n).parse():t(String(n),n)},w.stringify=function(e,t){var n,r=l(t);return _(),h("stringify",n=w.Compiler),g(e),f(n,"compile")?new n(e,r).compile():n(e,r)},w.run=x,w.runSync=function(e,t){var n,i;return x(e,t,(function(e,t){i=!0,n=t,r(e)})),v("runSync","run",i),n},w.process=E,w.processSync=function(e){var t,n;return _(),p("processSync",w.Parser),h("processSync",w.Compiler),E(t=l(e),(function(e){n=!0,r(e)})),v("processSync","process",n),t},w;function w(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(o(!0,{},y)),t}function _(){var e,r;if(t)return w;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(w,e.slice(1)))&&i.use(r));return t=!0,b=1/0,w}function x(e,t,n){if(g(e),_(),n||"function"!=typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,l(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function E(e,t){if(_(),p("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=l(e);d.run(w,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);null==n||("string"==typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},12244:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__12244__},53741:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__53741__},67129:()=>{},68906:()=>{},53260:()=>{},57267:()=>{},59255:()=>{},80184:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=/^\s+/,n=/\s+$/;function r(i,o){if(o=o||{},(i=i||"")instanceof r)return i;if(!(this instanceof r))return new r(i,o);var a=function(r){var i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,i=!1;if(w[e])e=w[e],i=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=D.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=D.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=D.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=D.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=D.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=D.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=D.hex8.exec(e))?{r:C(r[1]),g:C(r[2]),b:C(r[3]),a:O(r[4]),format:i?"name":"hex8"}:(r=D.hex6.exec(e))?{r:C(r[1]),g:C(r[2]),b:C(r[3]),format:i?"name":"hex"}:(r=D.hex4.exec(e))?{r:C(r[1]+""+r[1]),g:C(r[2]+""+r[2]),b:C(r[3]+""+r[3]),a:O(r[4]+""+r[4]),format:i?"name":"hex8"}:!!(r=D.hex3.exec(e))&&{r:C(r[1]+""+r[1]),g:C(r[2]+""+r[2]),b:C(r[3]+""+r[3]),format:i?"name":"hex"}}(r)),"object"==e(r)&&(I(r.r)&&I(r.g)&&I(r.b)?(d=r.r,f=r.g,p=r.b,i={r:255*E(d,255),g:255*E(f,255),b:255*E(p,255)},u=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):I(r.h)&&I(r.s)&&I(r.v)?(a=A(r.s),s=A(r.v),i=function(e,t,n){e=6*E(e,360),t=E(t,100),n=E(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(r.h,a,s),u=!0,c="hsv"):I(r.h)&&I(r.s)&&I(r.l)&&(a=A(r.s),l=A(r.l),i=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=E(e,360),t=E(t,100),n=E(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(r.h,a,l),u=!0,c="hsl"),r.hasOwnProperty("a")&&(o=r.a)),o=x(o),{ok:u,format:r.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o};var d,f,p}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function o(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function a(e,t,n,r){var i=[S(Math.round(e).toString(16)),S(Math.round(t).toString(16)),S(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(e,t,n,r){return[S(T(r)),S(Math.round(e).toString(16)),S(Math.round(t).toString(16)),S(Math.round(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=k(n.s),r(n)}function u(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=k(n.s),r(n)}function c(e){return r(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=k(n.l),r(n)}function f(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=k(n.l),r(n)}function h(e,t){var n=r(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,r(n)}function m(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),i=[r(e)],o=360/t,a=1;a<t;a++)i.push(r({h:(n.h+a*o)%360,s:n.s,l:n.l}));return i}function v(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function y(e,t,n){t=t||6,n=n||30;var i=r(e).toHsl(),o=360/n,a=[r(e)];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,a.push(r(i));return a}function b(e,t){t=t||6;for(var n=r(e).toHsv(),i=n.h,o=n.s,a=n.v,s=[],l=1/t;t--;)s.push(r({h:i,s:o,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=x(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[S(Math.round(e).toString(16)),S(Math.round(t).toString(16)),S(Math.round(n).toString(16)),S(T(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+"%",g:Math.round(100*E(this._g,255))+"%",b:Math.round(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%)":"rgba("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=r(e);n="#"+s(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]="a"===o?t[o]:A(t[o]));t=i}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var i=r(e).toRgb(),o=r(t).toRgb(),a=n/100;return r({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},r.readability=function(e,t){var n=r(e),i=r(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},r.isReadable=function(e,t,n){var i,o,a,s,l,u=r.readability(e,t);switch(o=!1,(a=n,"AA"!==(s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(l=(a.size||"small").toLowerCase())&&"large"!==l&&(l="small"),i={level:s,size:l}).level+i.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},r.mostReadable=function(e,t,n){var i,o,a,s,l=null,u=0;o=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<t.length;c++)(i=r.readability(e,t[c]))>u&&(u=i,l=r(t[c]));return r.isReadable(e,l,{level:a,size:s})||!o?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var w=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(w);function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function k(e){return Math.min(1,Math.max(0,e))}function C(e){return parseInt(e,16)}function S(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function T(e){return Math.round(255*parseFloat(e)).toString(16)}function O(e){return C(e)/255}var P,R,M,D=(R="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",M="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function I(e){return!!D.CSS_UNIT.exec(e)}return r}()},60155:(e,t,n)=>{e.exports=n(56093).YAML},80753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},9249:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},87371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(45850);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},56666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(45850);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},45754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88960);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},81665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88960);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(31461);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},31461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},88960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},45850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86522);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,r.Z)(t)?t:String(t)}},86522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},62045:(e,t,n)=>{"use strict";function r(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}}function i(e,t,n){return r(e=[...e],t,n),e}n.r(t),n.d(t,{arrayMoveImmutable:()=>i,arrayMoveMutable:()=>r})},46994:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67129);const i=/\s+at.*[(\s](.*)\)?/,o=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,a=void 0===r.homedir?"":r.homedir().replace(/\\/g,"/");function s(e,{pretty:t=!1,basePath:n}={}){const r=n&&new RegExp(`(at | \\()${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(n.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(i);if(null===t||!t[1])return!0;const n=t[1];return!(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")||n.includes("node_modules/electron/dist/resources/electron.asar")||n.includes("node_modules/electron/dist/resources/default_app.asar")||o.test(n))})).filter((e=>""!==e.trim())).map((e=>(r&&(e=e.replace(r,"$1")),t&&(e=e.replace(i,((e,t)=>e.replace(t,t.replace(a,"~"))))),e))).join("\n")}},85411:(e,t,n)=>{"use strict";function r(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const i=document.getSelection(),o=i.rangeCount>0&&i.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return n.remove(),o&&(i.removeAllRanges(),i.addRange(o)),r&&r.focus(),a}n.r(t),n.d(t,{default:()=>r})},66439:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:()=>i})},2090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r,i=n(2649),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const a=function(e){function t(t){var n=this,r="Assertion failed. See https://openlayers.org/en/"+("latest"===i.q4?i.q4:"v"+i.q4.split("-")[0])+"/doc/errors/#"+t+" for details.";return(n=e.call(this,r)||this).code=t,n.name="AssertionError",n.message=r,n}return o(t,e),t}(Error)},12031:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r,i=n(2090),o=n(27230),a=n(4474),s=n(80471),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u="length",c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return l(t,e),t}(s.ZP);const d=function(e){function t(t,n){var r=e.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return l(t,e),t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(u)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new c(a.Z.ADD,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new c(a.Z.REMOVE,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new c(a.Z.REMOVE,r,e)),this.dispatchEvent(new c(a.Z.ADD,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(u,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new i.Z(58)},t}(o.Z)},4474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ADD:"add",REMOVE:"remove"}},7724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}()},57023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(27230),o=n(23992),a=n(75759),s=n(53576),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t){var n=e.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){var r=t;n.setGeometry(r)}else{var i=t;n.setProperties(i)}return n}return l(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,s.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=(0,s.oL)(e,o.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){var t,n;this.style_=e,this.styleFunction_=e?"function"==typeof(t=e)?t:(Array.isArray(t)?n=t:((0,a.h)("function"==typeof t.getZIndex,41),n=[t]),function(){return n}):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(i.Z)},31610:(e,t,n)=>{"use strict";n.d(t,{K:()=>m});var r,i=n(23992),o=n(4320),a=n(2649),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return s(t,e),t.prototype.changed=function(){this.dispatchEvent(i.Z.CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return(0,a.O3)()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){(0,a.O3)()},t}(o.Z);const u=l;var c=n(20800),d=n(62403),f=n(94628),p=n(53576),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function m(e,t,n){var r=e,o=!0,a=!1,s=!1,l=[(0,p.Vx)(r,i.Z.LOAD,(function(){s=!0,a||t()}))];return r.src&&d.Tp?(a=!0,r.decode().then((function(){o&&t()})).catch((function(e){o&&(s?t():n())}))):l.push((0,p.Vx)(r,i.Z.ERROR,n)),function(){o=!1,l.forEach(p.bN)}}!function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,c.Z.IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=c.Z.IDLE,s.imageLoadFunction_=a,s}h(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=c.Z.ERROR,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,f.Cr)(this.extent)/this.image_.height),this.state=c.Z.LOADED,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=c.Z.IDLE&&this.state!=c.Z.ERROR||(this.state=c.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=m(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e,this.resolution=(0,f.Cr)(this.extent)/this.image_.height},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},20800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},44650:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(1813),o=n(46759),a=n(64355),s=n(31610),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(e){this.image_=e,this.state=o.Z.LOADED,this.unlistenImage_(),this.changed()},t.prototype.handleImageError_=function(){var e;this.state=o.Z.ERROR,this.unlistenImage_(),this.image_=((e=(0,a.E4)(1,1)).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=o.Z.LOADED:this.state=o.Z.EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==o.Z.ERROR&&(this.state=o.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(i.Z)},18529:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tt});var r,i=n(7724),o=n(16253),a=n(2649),s=n(17952),l=n(94628),u=n(81861),c=n(674),d=n(39853),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function p(e,t){u.c.expire()}const h=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n}return f(t,e),t.prototype.dispatchRenderEvent=function(e,t){(0,a.O3)()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;(0,s.qC)(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),(0,s.nb)(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,s){var u,f=t.viewState;function p(e,t,n,r){return i.call(o,t,e?n:null,r)}var h=f.projection,m=(0,d.Cf)(e.slice(),h),g=[[0,0]];if(h.canWrapX()&&r){var v=h.getExtent(),y=(0,l.dz)(v);g.push([-y,0],[y,0])}for(var b=t.layerStatesArray,w=b.length,_=[],x=[],E=0;E<g.length;E++)for(var k=w-1;k>=0;--k){var C=b[k],S=C.layer;if(S.hasRenderer()&&(0,c.j)(C,f)&&a.call(s,S)){var A=S.getRenderer(),T=S.getSource();if(A&&T){var O=T.getWrapX()?m:e,P=p.bind(null,C.managed);x[0]=O[0]+g[E][0],x[1]=O[1]+g[E][1],u=A.forEachFeatureAtCoordinate(x,t,n,P,_)}if(u)return u}}if(0!==_.length){var R=1/_.length;return _.forEach((function(e,t){return e.distanceSq+=t*R})),_.sort((function(e,t){return e.distanceSq-t.distanceSq})),_.some((function(e){return u=e.callback(e.feature,e.layer,e.geometry)})),u}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return(0,a.O3)()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i,a){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,o.uX,this,i,a)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){(0,a.O3)()},t.prototype.scheduleExpireIconCache=function(e){u.c.canExpireCache()&&e.postRenderFunctions.push(p)},t}(i.Z);var m=n(82305),g=n(76866),v=n(60791),y=n(29855),b=n(27002),w=n(53576),_=n(64355),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const E=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=(0,w.oL)(b.sG,m.Z.PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=y.XV+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return x(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new g.Z(e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){(0,w.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(v.Z.PRECOMPOSE,e);var t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];e.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!(0,c.j)(s,n)||"ready"!=u&&"undefined"!=u)l.unrender();else{var d=l.render(e,i);d&&(d!==i&&(this.children_.push(d),i=d),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(e);(0,_.hF)(this.element_,this.children_),this.dispatchRenderEvent(v.Z.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&(0,c.j)(l,o)&&i(u)){var d=u.getRenderer().getDataAtPixel(e,t,n);if(d){var f=r(u,d);if(f)return f}}}},t}(h);var k=n(27230),C=n(12031),S=n(4474),A=n(23992),T=n(48442),O=n(80471),P=n(75759),R=n(2765),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(t,n){var r=e.call(this,t)||this;return r.layer=n,r}return M(t,e),t}(O.ZP),I="layers",L=function(e){function t(t){var n=this,r=t||{},i=(0,R.f0)({},r);delete i.layers;var o=r.layers;return(n=e.call(this,i)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(I,n.handleLayersChanged_),o?Array.isArray(o)?o=new C.Z(o.slice(),{unique:!0}):(0,P.h)("function"==typeof o.getArray,43):o=new C.Z(void 0,{unique:!0}),n.setLayers(o),n}return M(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(w.bN),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push((0,w.oL)(e,S.Z.ADD,this.handleLayersAdd_,this),(0,w.oL)(e,S.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(w.bN);(0,R.ZH)(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.registerLayerListeners_(o),this.dispatchEvent(new D("addlayer",o))}this.changed()},t.prototype.registerLayerListeners_=function(e){var n=[(0,w.oL)(e,m.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,w.oL)(e,A.Z.CHANGE,this.handleLayerChange_,this)];e instanceof t&&n.push((0,w.oL)(e,"addlayer",this.handleLayerGroupAdd_,this),(0,w.oL)(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,a.sq)(e)]=n},t.prototype.handleLayerGroupAdd_=function(e){this.dispatchEvent(new D("addlayer",e.layer))},t.prototype.handleLayerGroupRemove_=function(e){this.dispatchEvent(new D("removelayer",e.layer))},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new D("addlayer",t)),this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=(0,a.sq)(t);this.listenerKeys_[n].forEach(w.bN),delete this.listenerKeys_[n],this.dispatchEvent(new D("removelayer",t)),this.changed()},t.prototype.getLayers=function(){return this.get(I)},t.prototype.setLayers=function(e){var t=this.getLayers();if(t)for(var n=t.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new D("removelayer",n[r]));this.set(I,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));var r=this.getLayerState(),i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(var o=n,a=t.length;o<a;o++){var s=t[o];s.opacity*=r.opacity,s.visible=s.visible&&r.visible,s.maxResolution=Math.min(s.maxResolution,r.maxResolution),s.minResolution=Math.max(s.minResolution,r.minResolution),s.minZoom=Math.max(s.minZoom,r.minZoom),s.maxZoom=Math.min(s.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==s.extent?s.extent=(0,l.Ed)(s.extent,r.extent):s.extent=r.extent),void 0===s.zIndex&&(s.zIndex=i)}return t},t.prototype.getSourceState=function(){return"ready"},t}(T.Z);const j=L;var N=n(10597),F=n(11725);const B="pointerdown";var U=n(4320),z=n(62403),q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const W=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=[],r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=(0,w.oL)(i,B,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=(0,w.oL)(i,"pointermove",r.relayMoveEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(A.Z.TOUCHMOVE,r.boundHandleTouchMove_,!!z.bM&&{passive:!1}),r}return q(t,e),t.prototype.emulateClick_=function(e){var t=new N.Z(F.Z.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new N.Z(F.Z.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new N.Z(F.Z.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e,n=t.pointerId;if(t.type==F.Z.POINTERUP||t.type==F.Z.POINTERCANCEL){for(var r in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[r].target!==t.target){delete this.trackedTouches_[r];break}}else t.type!=F.Z.POINTERDOWN&&t.type!=F.Z.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=(0,R.KX)(this.trackedTouches_)},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new N.Z(F.Z.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(w.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);var t=new N.Z(F.Z.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(t),this.down_={},e){var r=e[n];this.down_[n]="function"==typeof r?o.Zn:r}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,w.oL)(i,F.Z.POINTERMOVE,this.handlePointerMove_,this),(0,w.oL)(i,F.Z.POINTERUP,this.handlePointerUp_,this),(0,w.oL)(this.element_,F.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,w.oL)(this.element_.getRootNode(),F.Z.POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;var t=new N.Z(F.Z.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}},t.prototype.relayMoveEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new N.Z(F.Z.POINTERMOVE,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){var t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,w.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(A.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,w.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(w.bN),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(U.Z);var $=n(75874);const H="postrender",G="loadstart",V="loadend",K="layergroup",Z="size",Y="target",X="view";var Q=1/0;const J=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,R.ZH)(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){(0,P.h)(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=Q&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e<r>>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=l<r&&n[l]<n[s]?l:s;t[e]=t[u],n[e]=n[u],e=u}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){for(var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];t>e;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)(n=r(e=i[t]))==Q?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}();var ee=n(46759),te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ne=function(e){function t(t,n){var r=e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return te(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);return n&&t[0].addEventListener(A.Z.CHANGE,this.boundHandleTileChange_),n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(n===ee.Z.LOADED||n===ee.Z.ERROR||n===ee.Z.EMPTY){t.removeEventListener(A.Z.CHANGE,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){for(var n,r,i=0;this.tilesLoading_<e&&i<t&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),n.getState()!==ee.Z.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())},t}(J);var re=n(66319),ie=n(89681),oe=n(93027),ae=n(24156),se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function le(e){e instanceof c.Z?e.setMapInternal(null):e instanceof j&&e.getLayers().forEach(le)}function ue(e,t){if(e instanceof c.Z)e.setMapInternal(t);else if(e instanceof j)for(var n=e.getLayers().getArray(),r=0,i=n.length;r<i;++r)ue(n[r],t)}const ce=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},a=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new j({layers:e.layers});return o[K]=a,o[Y]=e.target,o[X]=e.view instanceof re.default?e.view:new re.default,void 0!==e.controls&&(Array.isArray(e.controls)?n=new C.Z(e.controls.slice()):((0,P.h)("function"==typeof e.controls.getArray,47),n=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new C.Z(e.interactions.slice()):((0,P.h)("function"==typeof e.interactions.getArray,48),r=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?i=new C.Z(e.overlays.slice()):((0,P.h)("function"==typeof e.overlays.getArray,49),i=e.overlays):i=new C.Z,{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}(t);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:z.MP,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=(0,s.Ue)(),n.pixelToCoordinateTransform_=(0,s.Ue)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new C.Z,n.interactions=r.interactions||new C.Z,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new ne(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(K,n.handleLayerGroupChanged_),n.addChangeListener(X,n.handleViewChanged_),n.addChangeListener(Z,n.handleSizeChanged_),n.addChangeListener(Y,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!t.view||t.view instanceof re.default||t.view.then((function(e){i.setView(new re.default(e))})),n.controls.addEventListener(S.Z.ADD,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(S.Z.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.interactions.addEventListener(S.Z.ADD,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(S.Z.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(S.Z.ADD,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(S.Z.REMOVE,function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}.bind(n)),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return se(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.handleLayerAdd_=function(e){ue(e.layer,this)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,a=void 0!==n.layerFilter?n.layerFilter:o.uX,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,s,t,null,a,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n},t.prototype.getAllLayers=function(){var e=[];return function t(n){n.forEach((function(n){n instanceof j?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance:0,a=r.layerFilter||o.uX;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,a)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:o.uX,i=void 0!==t.hitTolerance?t.hitTolerance:0,a=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,a,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(Y)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return(0,oe.lO)(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?(0,s.nn)(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(K)},t.prototype.setLayers=function(e){var t=this.getLayerGroup();if(e instanceof C.Z)t.setLayers(e);else{var n=t.getLayers();n.clear(),n.extend(e)}},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoadingOrNotReady=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=(0,oe.Vs)(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?(0,s.nn)(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(Z)},t.prototype.getView=function(){return this.get(X)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){var e=this.getTargetElement();return e?e.ownerDocument:document},t.prototype.getTilePriority=function(e,t,n,r){return function(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return Q;if(!e.wantedTiles[n][t.getKey()])return Q;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new N.Z(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===B||n===A.Z.WHEEL||n===A.Z.KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(e)||e.propagationStopped))break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[ie.Z.ANIMATING]||i[ie.Z.INTERACTING]){var o=Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(!0===this.renderComplete_?(this.hasListener(v.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v.Z.RENDERCOMPLETE,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new $.Z(V,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new $.Z(G,this,e))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)(0,w.bN)(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(A.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(A.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,_.ZF)(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new W(this,this.moveTolerance_),F.Z)this.mapBrowserEventHandler_.addEventListener(F.Z[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(A.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(A.Z.WHEEL,this.boundHandleBrowserEvent_,!!z.bM&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[(0,w.oL)(o,A.Z.KEYDOWN,this.handleBrowserEvent,this),(0,w.oL)(o,A.Z.KEYPRESS,this.handleBrowserEvent,this),(0,w.oL)(i,A.Z.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,w.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,w.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,w.oL)(e,m.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,w.oL)(e,A.Z.CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(w.bN),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new D("addlayer",e)),this.layerGroupPropertyListenerKeys_=[(0,w.oL)(e,m.Z.PROPERTYCHANGE,this.render,this),(0,w.oL)(e,A.Z.CHANGE,this.render,this),(0,w.oL)(e,"addlayer",this.handleLayerAdd_,this),(0,w.oL)(e,"removelayer",this.handleLayerRemove_,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.handleLayerRemove_=function(e){le(e.layer)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&(0,ae.py)(n)&&r&&r.isDef()){var s=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),u=r.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,l.p8)(u.center,u.resolution,u.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:u,viewHints:s,wantedTiles:{},mapId:(0,a.sq)(this),renderTargets:{}},u.nextCenter&&u.nextResolution){var c=isNaN(u.nextRotation)?u.rotation:u.nextRotation;o.nextExtent=(0,l.p8)(u.nextCenter,u.nextResolution,c,n)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!(0,l.xb)(this.previousExtent_)&&!(0,l.fS)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new $.Z("movestart",this,i)),this.previousExtent_=(0,l.YN)(this.previousExtent_)),this.previousExtent_&&!o.viewHints[ie.Z.ANIMATING]&&!o.viewHints[ie.Z.INTERACTING]&&!(0,l.fS)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new $.Z("moveend",this,o)),(0,l.d9)(o.extent,this.previousExtent_))),this.dispatchEvent(new $.Z(H,this,o)),this.renderComplete_=this.hasListener(G)||this.hasListener(V)||this.hasListener(v.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()}),0))},t.prototype.setLayerGroup=function(e){var t=this.getLayerGroup();t&&this.handleLayerRemove_(new D("removelayer",t)),this.set(K,e)},t.prototype.setSize=function(e){this.set(Z,e)},t.prototype.setTarget=function(e){this.set(Y,e)},t.prototype.setView=function(e){if(!e||e instanceof re.default)this.set(X,e);else{this.set(X,new re.default);var t=this;e.then((function(e){t.setView(new re.default(e))}))}},t.prototype.updateSize=function(){var e=this.getTargetElement(),t=void 0;if(e){var n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[r,i],!(0,ae.py)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(t),this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}},t}(k.Z);var de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fe=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return de(t,e),t.prototype.disposeInternal=function(){(0,_.ZF)(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&(0,_.ZF)(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)(0,w.bN)(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=e,e&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==o.Zn&&this.listenerKeys.push((0,w.oL)(e,H,this.render,this)),e.render())},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(k.Z);var pe=n(50209),he=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const me=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.expandClassName?r.expandClassName:i+"-expand",s=void 0!==r.collapseLabel?r.collapseLabel:"›",l=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var u=void 0!==r.label?r.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=a):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(A.Z.CLICK,n.handleClick_.bind(n),!1);var d=i+" "+y.XV+" "+y.hg+(n.collapsed_&&n.collapsible_?" "+y.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=d,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return he(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if((0,c.j)(s,e.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var d=u(e);if(d)if(r=r&&!1!==l.getAttributionsCollapsible(),Array.isArray(d))for(var f=0,p=d.length;f<p;++f)d[f]in t||(n.push(d[f]),t[d[f]]=!0);else d in t||(n.push(d),t[d]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,pe.fS)(t,this.renderedAttributions_)){(0,_.ep)(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(y.hN),this.collapsed_?(0,_.$H)(this.collapseLabel_,this.label_):(0,_.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(fe);var ge=n(7287),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧",a=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=r.tipLabel?r.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(A.Z.CLICK,n.handleClick_.bind(n),!1);var u=i+" "+y.XV+" "+y.hg,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(y.oj),n}return ve(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap().getView();if(e){var t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:ge.Vv}):e.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(y.oj);i||0!==n?i&&0!==n&&this.element.classList.remove(y.oj):this.element.classList.add(y.oj)}this.label_.style.transform=r}this.rotation_=n}},t}(fe);const be=ye;var we=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _e=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",s=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",l=void 0!==r.zoomInLabel?r.zoomInLabel:"+",u=void 0!==r.zoomOutLabel?r.zoomOutLabel:"–",c=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",d=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=a,f.setAttribute("type","button"),f.title=c,f.appendChild("string"==typeof l?document.createTextNode(l):l),f.addEventListener(A.Z.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=s,p.setAttribute("type","button"),p.title=d,p.appendChild("string"==typeof u?document.createTextNode(u):u),p.addEventListener(A.Z.CLICK,n.handleClick_.bind(n,-o),!1);var h=i+" "+y.XV+" "+y.hg,m=n.element;return m.className=h,m.appendChild(f),m.appendChild(p),n.duration_=void 0!==r.duration?r.duration:250,n}return we(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap().getView();if(t){var n=t.getZoom();if(void 0!==n){var r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:ge.Vv})):t.setZoom(r)}}},t}(fe);var xe=n(43823),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ke=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return Ee(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==F.Z.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_,a=r.getView();(0,xe.FW)(a,o,i,this.duration_),n.preventDefault(),t=!0}return!t},t}(xe.ZP);var Ce=n(771),Se=n(84374),Ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Te=function(e){function t(t){var n=e.call(this,{stopDown:o.Dv})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:(0,Se.$6)(Se.rM,Se.Xp);return n.condition_=r.onFocusOnly?(0,Se.$6)(Se.yZ,i):i,n.noKinetic_=!1,n}return Ae(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,n=(0,Ce.S)(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=e.map.getView();(0,d.bA)(r,i.getResolution()),(0,d.U1)(r,i.getRotation()),i.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCoordinateInternal(o),s=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:ge.Vv})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(Ce.Z);var Oe=n(64069),Pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Re=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,{stopDown:o.Dv})||this).condition_=r.condition?r.condition:Se.aj,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return Pe(t,e),t.prototype.handleDragEvent=function(e){if((0,Se.QL)(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==Oe.h$){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){return!(0,Se.QL)(e)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){return!(!(0,Se.QL)(e)||!(0,Se.v8)(e)||!this.condition_(e)||(e.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},t}(Ce.Z);var Me=n(48583),De=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ie=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return De(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Me.ZP([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(i.Z);var Le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return Le(t,e),t}(O.ZP);const Ne=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=t||{};return n.box_=new Ie(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:Se.v8,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return Le(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new je("boxdrag",e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new je(t?"boxend":"boxcancel",e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new je("boxstart",e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(Ce.Z);var Fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Be=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:Se.vY;return(n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return Fe(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap().getView(),n=this.getGeometry();if(this.out_){var r=t.rotatedExtentForGeometry(n),i=t.getResolutionForExtentInternal(r),o=t.getResolution()/i;(n=n.clone()).scale(o*o)}t.fitInternal(n,{duration:this.duration_,easing:ge.Vv})},t}(Ne);var Ue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ze=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return(0,Se.rM)(e)&&(0,Se.TN)(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return Ue(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==A.Z.KEYDOWN){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(40==r||37==r||39==r||38==r)){var i=e.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;var l=[a,s];(0,d.U1)(l,i.getRotation()),(0,xe.Cv)(i,l,this.duration_),n.preventDefault(),t=!0}}return!t},t}(xe.ZP);var qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const We=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:Se.TN,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return qe(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==A.Z.KEYDOWN||e.type==A.Z.KEYPRESS){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=e.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_,a=i.getView();(0,xe.FW)(a,o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t},t}(xe.ZP),$e=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}();var He=n(15586),Ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve="trackpad";const Ke=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,r)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:Se.Bx;return n.condition_=r.onFocusOnly?(0,Se.$6)(Se.yZ,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return Ge(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if(e.type!==A.Z.WHEEL)return!0;var t,n=e.map,r=e.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==A.Z.WHEEL&&(t=r.deltaY,z.V&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(t/=z.MP),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(t*=40)),0===t)return!1;this.lastDelta_=t;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(t)<4?Ve:"wheel");var o=n.getView();if(this.mode_===Ve&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=t;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-(0,He.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),(0,xe.FW)(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(xe.ZP);var Ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ye=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=o.Dv),(n=e.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return Ze(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==Oe.h$){var l=a.getViewport().getBoundingClientRect(),u=(0,Ce.S)(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Ce.Z);var Xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Qe=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=o.Dv),(n=e.call(this,i)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return Xe(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var u=s.getViewport().getBoundingClientRect(),c=(0,Ce.S)(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(c),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Ce.Z);var Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(e){function t(t){return(t=(0,R.f0)({},t)).controls||(t.controls=function(e){var t={},n=new C.Z;return(void 0===t.zoom||t.zoom)&&n.push(new _e(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&n.push(new be(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&n.push(new me(t.attributionOptions)),n}()),t.interactions||(t.interactions=function(e){var t={onFocusOnly:!0}||{},n=new C.Z,r=new $e(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&n.push(new Re),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&n.push(new ke({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&n.push(new Te({onFocusOnly:t.onFocusOnly,kinetic:r})),(void 0===t.pinchRotate||t.pinchRotate)&&n.push(new Ye),(void 0===t.pinchZoom||t.pinchZoom)&&n.push(new Qe({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(n.push(new ze),n.push(new We({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&n.push(new Ke({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&n.push(new Be({duration:t.zoomDuration})),n}()),e.call(this,t)||this}return Je(t,e),t.prototype.createRenderer=function(){return new E(this)},t}(ce);const tt=et},10597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r,i=n(75874),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const a=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,o)||this;return s.originalEvent=r,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return o(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},t}(i.Z)},11725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(23992);const i={SINGLECLICK:"singleclick",CLICK:r.Z.CLICK,DBLCLICK:r.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},75874:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r,i=n(80471),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return o(t,e),t}(i.ZP)},27230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r,i=n(80471),o=n(82305),a=n(26667),s=n(2765),l=n(2649),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return u(t,e),t}(i.ZP);const d=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,(0,l.sq)(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return u(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&(0,s.f0)({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n="change:".concat(e),this.hasListener(n)&&this.dispatchEvent(new c(n,e,t)),n=o.Z.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,e,t))},t.prototype.addChangeListener=function(e,t){this.addEventListener("change:".concat(e),t)},t.prototype.removeChangeListener=function(e,t){this.removeEventListener("change:".concat(e),t)},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.applyProperties=function(e){e.values_&&(0,s.f0)(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],(0,s.xb)(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(a.Z)},82305:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={PROPERTYCHANGE:"propertychange"}},26667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(4320),o=n(23992),a=n(53576),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=e.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return s(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.Z.CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.onInternal=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=(0,a.oL)(this,e[i],t);return r}return(0,a.oL)(this,e,t)},t.prototype.onceInternal=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=(0,a.Vx)(this,e[i],t)}else n=(0,a.Vx)(this,e,t);return t.ol_key=n,n},t.prototype.unInternal=function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)(0,a.bN)(e[t]);else(0,a.bN)(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(i.Z);l.prototype.on,l.prototype.once,l.prototype.un;const u=l},1813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r,i=n(4320),o=n(23992),a=n(46759),s=n(2649),l=n(7287),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const c=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(t,e),t.prototype.changed=function(){this.dispatchEvent(o.Z.CHANGE)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==a.Z.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==a.Z.LOADED){e.interimTile=null;break}e.getState()==a.Z.LOADING?t=e:e.getState()==a.Z.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(this.state!==a.Z.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){(0,s.O3)()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:(0,l.YQ)(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(i.Z)},28e3:(e,t,n)=>{"use strict";n.d(t,{T:()=>i,Z:()=>o});var r=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function i(e,t,n,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=n,o.maxY=i,o):new r(e,t,n,i)}const o=r},46759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},66319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createCenterConstraint:()=>T,createResolutionConstraint:()=>O,createRotationConstraint:()=>P,default:()=>D,isNoopAnimation:()=>R});var r=n(27230),i=n(69843),o=n(89681);const a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var s=n(44368),l=n(93027),u=n(16253),c=n(39853),d=n(75759),f=n(2765),p=n(15586);function h(e,t,n){return function(r,i,o,a,s){if(r){if(!i&&!t)return r;var l=t?0:o[0]*i,u=t?0:o[1]*i,c=s?s[0]:0,d=s?s[1]:0,f=e[0]+l/2+c,h=e[2]-l/2+c,m=e[1]+u/2+d,g=e[3]-u/2+d;f>h&&(h=f=(h+f)/2),m>g&&(g=m=(g+m)/2);var v=(0,p.uZ)(r[0],f,h),y=(0,p.uZ)(r[1],m,g);if(a&&n&&i){var b=30*i;v+=-b*Math.log(1+Math.max(0,f-r[0])/b)+b*Math.log(1+Math.max(0,r[0]-h)/b),y+=-b*Math.log(1+Math.max(0,m-r[1])/b)+b*Math.log(1+Math.max(0,r[1]-g)/b)}return[v,y]}}}function m(e){return e}var g=n(94628),v=n(50209);function y(e,t,n,r){var i=(0,g.dz)(t)/n[0],o=(0,g.Cr)(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function b(e,t,n){var r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),(0,p.uZ)(r,n/2,2*t)}function w(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var u=r?y(e,r,s,i):e;return(void 0===n||n)&&l?b(o,u,t):(0,p.uZ)(o,t,u)}}}var _,x=n(64069),E=n(7287),k=n(48583),C=(_=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=0;function A(e,t){setTimeout((function(){e(t)}),0)}function T(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return h(e.extent,e.constrainOnlyCenter,t)}var n=(0,l.UQ)(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,h(r,!1,!1)}return m}function O(e){var t,n,r,o=void 0!==e.minZoom?e.minZoom:S,a=void 0!==e.maxZoom?e.maxZoom:28,u=void 0!==e.zoomFactor?e.zoomFactor:2,c=void 0!==e.multiWorld&&e.multiWorld,d=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,f=void 0!==e.showFullExtent&&e.showFullExtent,h=(0,l.UQ)(e.projection,"EPSG:3857"),m=h.getExtent(),_=e.constrainOnlyCenter,x=e.extent;if(c||x||!h.isGlobal()||(_=!1,x=m),void 0!==e.resolutions){var E=e.resolutions;n=E[o],r=void 0!==E[a]?E[a]:E[E.length-1],t=e.constrainResolution?function(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],u=e[e.length-1],c=n?y(l,n,a,r):l;if(s)return void 0===t||t?b(i,c,u):(0,p.uZ)(i,u,c);var d=Math.min(c,i),f=Math.floor((0,v.h7)(e,d,o));return e[f]>c&&f<e.length-1?e[f+1]:e[f]}}}(E,d,!_&&x,f):w(n,r,d,!_&&x,f)}else{var k=(m?Math.max((0,g.dz)(m),(0,g.Cr)(m)):360*l.Wm[i.ZP.DEGREES]/h.getMetersPerUnit())/s.S/Math.pow(2,S),C=k/Math.pow(2,28-S);void 0!==(n=e.maxResolution)?o=0:n=k/Math.pow(u,o),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(u,a):k/Math.pow(u,a):C),a=o+Math.floor(Math.log(n/r)/Math.log(u)),r=n/Math.pow(u,a-o),t=e.constrainResolution?function(e,t,n,r,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?y(t,i,l,o):t,d=void 0!==n?n:0;if(u)return void 0===r||r?b(a,c,d):(0,p.uZ)(a,d,c);var f=Math.ceil(Math.log(t/c)/Math.log(e)-1e-9),h=-s*(.5-1e-9)+.5,m=Math.min(c,a),g=Math.floor(Math.log(t/m)/Math.log(e)+h),v=Math.max(f,g),w=t/Math.pow(e,v);return(0,p.uZ)(w,d,c)}}}(u,n,r,d,!_&&x,f):w(n,r,d,!_&&x,f)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:o,zoomFactor:u}}function P(e){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;return void 0===t||!0===t?(0,x.Gw)():!1===t?x.YP:"number"==typeof t?(0,x.gE)(t):x.YP}return x.h$}function R(e){return!(e.sourceCenter&&e.targetCenter&&!(0,c.fS)(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function M(e,t,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return[(s+=(t[0]/2-n[0])*r)*o-(l+=(n[1]-t[1]/2)*r)*(a=-a),l*o+s*a]}const D=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=(0,f.f0)({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=(0,l.UQ)(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,r.projection&&(0,l.h_)(),r.center&&(r.center=(0,l.Vs)(r.center,n.projection_)),r.extent&&(r.extent=(0,l.dY)(r.extent,n.projection_)),n.applyOptions_(r),n}return C(t,e),t.prototype.applyOptions_=function(e){var t=(0,f.f0)({},e);for(var n in a)delete t[n];this.setProperties(t,!0);var r=O(e);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=r.minZoom;var i=T(e),o=r.constraint,s=P(e);this.constraints_={center:i,resolution:o,rotation:s},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)},Object.defineProperty(t.prototype,"padding",{get:function(){return this.padding_},set:function(e){var t=this.padding_;this.padding_=e;var n=this.getCenter();if(n){var r=e||[0,0,0,0];t=t||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),a=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-a])}},enumerable:!1,configurable:!0}),t.prototype.getUpdatedOptions_=function(e){var t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),(0,f.f0)({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&((r=(0,f.f0)({},r)).center=(0,l.Vs)(r.center,this.getProjection())),r.anchor&&((r=(0,f.f0)({},r)).anchor=(0,l.Vs)(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];r<n;++r){var d=arguments[r],f={start:a,complete:!1,anchor:d.anchor,duration:void 0!==d.duration?d.duration:1e3,easing:d.easing||E.rd,callback:t};if(d.center&&(f.sourceCenter=s,f.targetCenter=d.center.slice(),s=f.targetCenter),void 0!==d.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(d.zoom),l=f.targetResolution):d.resolution&&(f.sourceResolution=l,f.targetResolution=d.resolution,l=f.targetResolution),void 0!==d.rotation){f.sourceRotation=u;var h=(0,p.$W)(d.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+h,u=f.targetRotation}R(f)?f.complete=!0:a+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(o.Z.ANIMATING,1),this.updateAnimations_()}else t&&A(t,!0)},t.prototype.getAnimating=function(){return this.hints_[o.Z.ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[o.Z.INTERACTING]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(o.Z.ANIMATING,-this.hints_[o.Z.ANIMATING]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&A(r[0].callback,!1),!e)for(var i=0,a=r.length;i<a;++i){var s=r[i];if(!s.complete){e=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,a=0,s=r.length;a<s;++a){var l=r[a];if(!l.complete){var u=e-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var d=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],h=l.sourceCenter[1],m=l.targetCenter[0],g=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=f+d*(m-f),y=h+d*(g-h);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){var b=1===d?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){var w=this.getViewportSize_(this.getRotation()),_=this.constraints_.resolution(b,0,w,!0);this.targetCenter_=this.calculateCenterZoom(_,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=b,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===d?(0,p.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){var E=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(E,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),t=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(o.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var k=r[0].callback;k&&A(k,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],(0,c.U1)(n,e-this.getRotation()),(0,c.IH)(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?(0,l.lO)(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(a.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=this.calculateExtentInternal(e);return(0,l.Fj)(t,this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();(0,d.h)(n,1);var r=this.getResolution();(0,d.h)(void 0!==r,2);var i=this.getRotation();return(0,d.h)(void 0!==i,3),(0,g.p8)(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(a.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal((0,l.dY)(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSizeMinusPadding_(),r=(0,g.dz)(e)/n[0],i=(0,g.Cr)(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return n/Math.pow(t,e*i)}},t.prototype.getRotation=function(){return this.get(a.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}},t.prototype.getViewportSizeMinusPadding_=function(e){var t=this.getViewportSize_(e),n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t},t.prototype.getState=function(){var e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=M(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=(0,v.h7)(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=(0,p.uZ)(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,(0,p.uZ)(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n;if((0,d.h)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e)){(0,d.h)(!(0,g.xb)(e),25);var r=(0,l.dY)(e,this.getProjection());n=(0,k.oJ)(r)}else if("Circle"===e.getType())r=(0,l.dY)(e.getExtent(),this.getProjection()),(n=(0,k.oJ)(r)).rotate(this.getRotation(),(0,g.qg)(r));else{var i=(0,l.Cs)();n=i?e.clone().transform(i,this.getProjection()):e}this.fitInternal(n,t)},t.prototype.rotatedExtentForGeometry=function(e){for(var t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,d=i.length;c<d;c+=o){var f=i[c]*n-i[c+1]*r,p=i[c]*r+i[c+1]*n;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(e),l=this.getResolutionForExtentInternal(s,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var c=this.getRotation(),d=Math.sin(c),f=Math.cos(c),p=(0,g.qg)(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var h=p[0]*f-p[1]*d,m=p[1]*f+p[0]*d,v=this.getConstrainedCenter([h,m],l),y=n.callback?n.callback:u.Zn;void 0!==n.duration?this.animateInternal({resolution:l,center:v,duration:n.duration,easing:n.easing},y):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),A(y,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal((0,l.Vs)(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){this.setCenterInternal(M(e,t,n,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,t,n,r){var i,o=this.padding_;if(o&&e){var a=this.getViewportSizeMinusPadding_(-n),s=M(e,r,[a[0]/2+o[3],a[1]/2+o[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=(0,l.lO)(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&(0,l.Vs)(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=(0,l.Vs)(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(e?(0,l.Vs)(e,this.getProjection()):e)},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),s=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(a.ROTATION)!==r&&this.set(a.ROTATION,r),this.get(a.RESOLUTION)!==o&&(this.set(a.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a.CENTER)&&(0,c.fS)(this.get(a.CENTER),s)||this.set(a.CENTER,s),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&(0,c.fS)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:E.Vv,anchor:u}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o.Z.INTERACTING,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&(0,l.Vs)(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(o.Z.INTERACTING,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(r.Z)},89681:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ANIMATING:0,INTERACTING:1}},50209:(e,t,n)=>{"use strict";function r(e,t,n){for(var r,o,a=n||i,s=0,l=e.length,u=!1;s<l;)(o=+a(e[r=s+(l-s>>1)],t))<0?s=r+1:(l=r,u=!o);return u?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return"function"==typeof n?n(t,e[i-1],e[i])>0?i-1:i:e[i-1]-t<t-e[i]?i-1:i}return r-1}function a(e,t,n){for(;t<n;){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function s(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function l(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function u(e,t,n){var r=t||i;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}n.d(t,{FZ:()=>a,fS:()=>l,h7:()=>o,kK:()=>i,l7:()=>s,pT:()=>u,ry:()=>r})},75759:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(2090);function i(e,t){if(!e)throw new r.Z(t)}},36759:(e,t,n)=>{"use strict";n.d(t,{BB:()=>p,XC:()=>s,_2:()=>d});var r=n(75759),i=n(15586),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(e){return"string"==typeof e?e:p(e)}var l,u,c=(l={},u=0,function(e){var t;if(l.hasOwnProperty(e))t=l[e];else{if(u>=1024){var n=0;for(var i in l)0==(3&n++)&&(delete l[i],--u)}t=function(e){var t,n,i,s,l;if(a.exec(e)&&(e=function(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}(e)),o.exec(e)){var u,c=e.length-1;u=c<=4?1:2;var d=4===c||8===c;t=parseInt(e.substr(1+0*u,u),16),n=parseInt(e.substr(1+1*u,u),16),i=parseInt(e.substr(1+2*u,u),16),s=d?parseInt(e.substr(1+3*u,u),16):255,1==u&&(t=(t<<4)+t,n=(n<<4)+n,i=(i<<4)+i,d&&(s=(s<<4)+s)),l=[t,n,i,s/255]}else 0==e.indexOf("rgba(")?f(l=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((l=e.slice(4,-1).split(",").map(Number)).push(1),f(l)):(0,r.h)(!1,14);return l}(e),l[e]=t,++u}return t});function d(e){return Array.isArray(e)?e:c(e)}function f(e){return e[0]=(0,i.uZ)(e[0]+.5|0,0,255),e[1]=(0,i.uZ)(e[1]+.5|0,0,255),e[2]=(0,i.uZ)(e[2]+.5|0,0,255),e[3]=(0,i.uZ)(e[3],0,1),e}function p(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}},47141:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(36759);function i(e){return Array.isArray(e)?(0,r.BB)(e):e}},39853:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>u,IH:()=>i,U1:()=>a,bA:()=>s,bI:()=>l,fS:()=>o});var r=n(94628);function i(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function o(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function a(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function s(e,t){return e[0]*=t,e[1]*=t,e}function l(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function u(e,t){if(t.canWrapX()){var n=(0,r.dz)(t.getExtent()),i=function(e,t,n){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=n||(0,r.dz)(i);o=Math.floor((e[0]-i[0])/a)}return o}(e,t,n);i&&(e[0]-=i*n)}return e}},29855:(e,t,n)=>{"use strict";n.d(t,{XV:()=>i,hN:()=>a,hg:()=>o,oj:()=>r,p:()=>u});var r="ol-hidden",i="ol-unselectable",o="ol-control",a="ol-collapsed",s=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],u=function(e){var t=e.match(s);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=l.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[l[r]]=o)}return n.families=n.family.split(/,\s?/),n}},64355:(e,t,n)=>{"use strict";n.d(t,{$H:()=>a,E4:()=>i,ZF:()=>s,ep:()=>l,hF:()=>u,jy:()=>o});var r=n(62403);function i(e,t,n,i){var o;return o=n&&n.length?n.shift():r.Id?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(o.width=e),t&&(o.height=t),o.getContext("2d",i)}function o(e){var t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function a(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function s(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function l(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function u(e,t){for(var n=e.childNodes,r=0;;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}},7287:(e,t,n)=>{"use strict";function r(e){return Math.pow(e,3)}function i(e){return 1-r(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}n.d(t,{GE:()=>a,Vv:()=>i,YQ:()=>r,rd:()=>o})},53576:(e,t,n)=>{"use strict";n.d(t,{Vx:()=>o,bN:()=>a,oL:()=>i});var r=n(2765);function i(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function o(e,t,n,r){return i(e,t,n,r,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),(0,r.ZH)(e))}},80471:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r});const r=function(){function e(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}()},23992:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},4320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(7724),o=n(80471),a=n(16253),s=n(2765),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return l(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new o.ZP(e):e;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,u[n]=0),++l[n];for(var c=0,d=r.length;c<d;++c)if(!1===(s="handleEvent"in r[c]?r[c].handleEvent(i):r[c].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[n]){var f=u[n];for(delete u[n];f--;)this.removeEventListener(n,a.Zn);delete l[n]}return s}},t.prototype.disposeInternal=function(){this.listeners_&&(0,s.ZH)(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=a.Zn,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(i.Z)},84374:(e,t,n)=>{"use strict";n.d(t,{$6:()=>a,Bx:()=>u,QL:()=>h,TN:()=>p,Xp:()=>m,aj:()=>s,rM:()=>d,v8:()=>c,vY:()=>f,yZ:()=>l});var r=n(16253),i=n(62403),o=n(75759);function a(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i&&(n=n&&t[r](e));++r);return n}}var s=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},l=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||function(e){var t=e.map.getTargetElement(),n=e.map.getOwnerDocument().activeElement;return t.contains(n)}(e)},u=r.uX,c=function(e){var t=e.originalEvent;return 0==t.button&&!(i.G$&&i.tK&&t.ctrlKey)},d=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},f=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},p=function(e){var t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},h=function(e){var t=e.originalEvent;return(0,o.h)(void 0!==t,56),"mouse"==t.pointerType},m=function(e){var t=e.originalEvent;return(0,o.h)(void 0!==t,56),t.isPrimary&&0===t.button}},94628:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>z,Cr:()=>R,EO:()=>F,Ed:()=>M,GN:()=>v,H6:()=>E,HK:()=>g,I7:()=>B,MV:()=>q,Ne:()=>U,T9:()=>h,Wj:()=>w,Xv:()=>I,YN:()=>m,b8:()=>u,bg:()=>k,d9:()=>s,dY:()=>P,dz:()=>L,f3:()=>a,fS:()=>y,g0:()=>T,hC:()=>C,hI:()=>o,jE:()=>d,kK:()=>j,l7:()=>b,lJ:()=>p,p8:()=>O,pX:()=>f,qP:()=>_,qf:()=>l,qg:()=>A,r4:()=>c,rL:()=>D,w$:()=>S,xb:()=>N});var r=n(41190),i=n(75759);function o(e){for(var t=[1/0,1/0,-1/0,-1/0],n=0,r=e.length;n<r;++n)w(t,e[n]);return t}function a(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function s(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function l(e,t,n){var r,i;return(r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*r+(i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0)*i}function u(e,t){return d(e,t[0],t[1])}function c(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function d(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function f(e,t){var n=e[0],i=e[1],o=e[2],a=e[3],s=t[0],l=t[1],u=r.Z.UNKNOWN;return s<n?u|=r.Z.LEFT:s>o&&(u|=r.Z.RIGHT),l<i?u|=r.Z.BELOW:l>a&&(u|=r.Z.ABOVE),u===r.Z.UNKNOWN&&(u=r.Z.INTERSECTING),u}function p(){return[1/0,1/0,-1/0,-1/0]}function h(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function m(e){return h(1/0,1/0,-1/0,-1/0,e)}function g(e,t){var n=e[0],r=e[1];return h(n,r,n,r,t)}function v(e,t,n,r,i){return _(m(i),e,t,n,r)}function y(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function b(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function w(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function _(e,t,n,r,i){for(;n<r;n+=i)x(e,t[n],t[n+1]);return e}function x(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function E(e,t){var n;return(n=t(C(e)))||(n=t(S(e)))||(n=t(I(e)))?n:(n=t(D(e)))||!1}function k(e){var t=0;return N(e)||(t=L(e)*R(e)),t}function C(e){return[e[0],e[1]]}function S(e){return[e[2],e[1]]}function A(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function T(e,t){var n;return"bottom-left"===t?n=C(e):"bottom-right"===t?n=S(e):"top-left"===t?n=D(e):"top-right"===t?n=I(e):(0,i.h)(!1,13),n}function O(e,t,n,r,i){var o=P(e,t,n,r),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],f=o[6],p=o[7];return h(Math.min(a,l,c,f),Math.min(s,u,d,p),Math.max(a,l,c,f),Math.max(s,u,d,p),i)}function P(e,t,n,r){var i=t*r[0]/2,o=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=i*a,u=i*s,c=o*a,d=o*s,f=e[0],p=e[1];return[f-l+d,p-u-c,f-l-d,p-u+c,f+l-d,p+u+c,f+l+d,p+u-c,f-l+d,p-u-c]}function R(e){return e[3]-e[1]}function M(e,t,n){var r=n||[1/0,1/0,-1/0,-1/0];return j(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):m(r),r}function D(e){return[e[0],e[3]]}function I(e){return[e[2],e[3]]}function L(e){return e[2]-e[0]}function j(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function N(e){return e[2]<e[0]||e[3]<e[1]}function F(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function B(e,t,n){var i=!1,o=f(e,t),a=f(e,n);if(o===r.Z.INTERSECTING||a===r.Z.INTERSECTING)i=!0;else{var s=e[0],l=e[1],u=e[2],c=e[3],d=t[0],p=t[1],h=n[0],m=n[1],g=(m-p)/(h-d),v=void 0,y=void 0;a&r.Z.ABOVE&&!(o&r.Z.ABOVE)&&(i=(v=h-(m-c)/g)>=s&&v<=u),i||!(a&r.Z.RIGHT)||o&r.Z.RIGHT||(i=(y=m-(h-u)*g)>=l&&y<=c),i||!(a&r.Z.BELOW)||o&r.Z.BELOW||(i=(v=h-(m-l)/g)>=s&&v<=u),i||!(a&r.Z.LEFT)||o&r.Z.LEFT||(i=(y=m-(h-s)*g)>=l&&y<=c)}return i}function U(e,t,n,r){var i=[];if(r>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<r;++s)i.push(e[0]+o*s/r,e[1],e[2],e[1]+a*s/r,e[2]-o*s/r,e[3],e[0],e[3]-a*s/r);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var l=[],u=[],c=(s=0,i.length);s<c;s+=2)l.push(i[s]),u.push(i[s+1]);return function(e,t,n){return h(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}(l,u,n)}function z(e,t){var n=t.getExtent(),r=A(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=L(n),o=Math.floor((r[0]-n[0])/i)*i;e[0]-=o,e[2]-=o}return e}function q(e,t){if(t.canWrapX()){var n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];z(e,t);var r=L(n);if(L(e)>r)return[[n[0],e[1],n[2],e[3]]];if(e[0]<n[0])return[[e[0]+r,e[1],n[2],e[3]],[n[0],e[1],e[2],e[3]]];if(e[2]>n[2])return[[e[0],e[1],n[2],e[3]],[n[0],e[1],e[2]-r,e[3]]]}return[e]}},41190:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},85738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r,i=n(57023),o=n(23992),a=n(82429),s=n(94628),l=n(53576),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function c(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}const d=function(e){function t(t){var n=e.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return u(t,e),t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(l.bN),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push((0,l.oL)(this.geometries_[e],o.Z.CHANGE,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<(0,s.qf)(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){(0,s.YN)(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)(0,s.l7)(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return c(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(e);n.push(l),l!==s&&(i=!0)}if(i){var u=new t(null);return u.setGeometriesArray(n),u}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return"GeometryCollection"},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=(0,s.qg)(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(c(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(a.Z);var f=n(69843),p=n(2649),h=n(2765),m=n(93027);const g=function(){function e(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return e.prototype.getReadOptions=function(e,t){var n;if(t){var r=t.dataProjection?(0,m.U2)(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()===f.ZP.TILE_PIXELS&&(r=(0,m.U2)(r)).setWorldExtent(t.extent),n={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(n)},e.prototype.adaptOptions=function(e){return(0,h.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},e.prototype.getType=function(){return(0,p.O3)()},e.prototype.readFeature=function(e,t){return(0,p.O3)()},e.prototype.readFeatures=function(e,t){return(0,p.O3)()},e.prototype.readGeometry=function(e,t){return(0,p.O3)()},e.prototype.readProjection=function(e){return(0,p.O3)()},e.prototype.writeFeature=function(e,t){return(0,p.O3)()},e.prototype.writeFeatures=function(e,t){return(0,p.O3)()},e.prototype.writeGeometry=function(e,t){return(0,p.O3)()},e}();function v(e,t,n){var r,i=n?(0,m.U2)(n.featureProjection):null,o=n?(0,m.U2)(n.dataProjection):null;if(r=i&&o&&!(0,m.OP)(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals);r===e&&(r=e.clone()),r.applyTransform((function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*a)/a;return e}))}return r}var y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function b(e){return"string"==typeof e?JSON.parse(e)||null:null!==e?e:null}const w=function(e){function t(){return e.call(this)||this}return y(t,e),t.prototype.getType=function(){return"json"},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(b(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(b(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return(0,p.O3)()},t.prototype.readFeaturesFromObject=function(e,t){return(0,p.O3)()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(b(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return(0,p.O3)()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(b(e))},t.prototype.readProjectionFromObject=function(e){return(0,p.O3)()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return(0,p.O3)()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return(0,p.O3)()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return(0,p.O3)()},t}(g);var _=n(10536),x=n(75489),E=n(686),k=n(39520),C=n(85804),S=n(48583),A=n(75759),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function O(e,t){if(!e)return null;var n;switch(e.type){case"Point":n=function(e){return new C.Z(e.coordinates)}(e);break;case"LineString":n=function(e){return new _.Z(e.coordinates)}(e);break;case"Polygon":n=function(e){return new S.ZP(e.coordinates)}(e);break;case"MultiPoint":n=function(e){return new E.Z(e.coordinates)}(e);break;case"MultiLineString":n=function(e){return new x.Z(e.coordinates)}(e);break;case"MultiPolygon":n=function(e){return new k.Z(e.coordinates)}(e);break;case"GeometryCollection":n=function(e,t){var n=e.geometries.map((function(e){return O(e,undefined)}));return new d(n)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return v(n,!1,t)}function P(e,t){var n,r=(e=v(e,!0,t)).getType();switch(r){case"Point":n=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case"LineString":n=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case"Polygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"MultiPoint":n=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case"MultiLineString":n=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case"MultiPolygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"GeometryCollection":n=function(e,t){return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){var n=(0,h.f0)({},t);return delete n.featureProjection,P(e,n)}))}}(e,t);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}const R=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this)||this).dataProjection=(0,m.U2)(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=(0,m.U2)(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return T(t,e),t.prototype.readFeatureFromObject=function(e,t){var n,r=O((n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),o=new i.Z;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o},t.prototype.readFeaturesFromObject=function(e,t){var n=null;if("FeatureCollection"===e.type){n=[];for(var r=e.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],t))}else n=[this.readFeatureFromObject(e,t)];return n},t.prototype.readGeometryFromObject=function(e,t){return O(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e.crs;return n?"name"==n.type?t=(0,m.U2)(n.properties.name):"EPSG"===n.type?t=(0,m.U2)("EPSG:"+n.properties.code):(0,A.h)(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;var i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=P(o,t),delete i[e.getGeometryName()]),(0,h.xb)(i)||(n.properties=i),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return P(e,this.adaptOptions(t))},t}(w)},16253:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>o,Zn:()=>a,qe:()=>s,uX:()=>i});var r=n(50209);function i(){return!0}function o(){return!1}function a(){}function s(e){var t,n,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,r.fS)(a,n)||(o=!0,i=this,n=a,t=e.apply(this,arguments)),t}}},82429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r,i=n(27230),o=n(69843),a=n(2649),s=n(17952),l=n(94628),u=n(93027),c=n(16253),d=n(38514),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=(0,s.Ue)();const h=function(e){function t(){var t=e.call(this)||this;return t.extent_=(0,l.lJ)(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=(0,c.qe)((function(e,t,n){if(!n)return this.getSimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})),t}return f(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return(0,a.O3)()},t.prototype.closestPointXY=function(e,t,n,r){return(0,a.O3)()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return(0,a.O3)()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,l.YN)(t),this.extentRevision_=this.getRevision()}return(0,l.EO)(this.extent_,e)},t.prototype.rotate=function(e,t){(0,a.O3)()},t.prototype.scale=function(e,t,n){(0,a.O3)()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return(0,a.O3)()},t.prototype.getType=function(){return(0,a.O3)()},t.prototype.applyTransform=function(e){(0,a.O3)()},t.prototype.intersectsExtent=function(e){return(0,a.O3)()},t.prototype.translate=function(e,t){(0,a.O3)()},t.prototype.transform=function(e,t){var n=(0,u.U2)(e),r=n.getUnits()==o.ZP.TILE_PIXELS?function(e,r,i){var o=n.getExtent(),a=n.getWorldExtent(),c=(0,l.Cr)(a)/(0,l.Cr)(o);return(0,s.qC)(p,a[0],a[3],c,-c,0,0,0),(0,d.vT)(e,0,e.length,i,p,r),(0,u.Ck)(n,t)(e,r,i)}:(0,u.Ck)(n,t);return this.applyTransform(r),this},t}(i.Z)},95678:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},10536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r,i=n(95678),o=n(50335),a=n(2e4),s=n(94628),l=n(24092),u=n(17267),c=n(50209),d=n(11381),f=n(27257),p=n(80222),h=n(74605),m=n(62542),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const v=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return g(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?(0,c.l7)(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<(0,s.qf)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return(0,d.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM)return null;var n=void 0!==t&&t;return(0,p.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return(0,f.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return(0,p.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return(0,m.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.Z.XY)},t.prototype.getType=function(){return"LineString"},t.prototype.intersectsExtent=function(e){return(0,h.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.ZP)},75489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r,i=n(95678),o=n(10536),a=n(50335),s=n(2e4),l=n(94628),u=n(24092),c=n(17267),d=n(50209),f=n(27257),p=n(80222),h=n(74605),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const g=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var f=a[u];0===u&&(o=f.getLayout()),(0,d.l7)(s,f.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return m(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?(0,d.l7)(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<(0,l.qf)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,o=void 0!==n&&n;return(0,p.dG)(this.flatCoordinates,0,this.ends_,this.stride,e,r,o)},t.prototype.getCoordinates=function(){return(0,f.o1)(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new o.Z(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,a=0,s=t.length;a<s;++a){var l=t[a],u=new o.Z(e.slice(i,l),n);r.push(u),i=l}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=(0,p.WW)(t,n,s,i,.5);(0,d.l7)(e,l),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=(0,c.UJ)(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,i.Z.XY,r)},t.prototype.getType=function(){return"MultiLineString"},t.prototype.intersectsExtent=function(e){return(0,h.AW)(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,u._5)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(a.ZP)},686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r,i=n(85804),o=n(50335),a=n(94628),s=n(24092),l=n(50209),u=n(27257),c=n(15586),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const f=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return d(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?(0,l.l7)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<(0,a.qf)(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s<l;s+=o){var u=(0,c.bI)(e,t,i[s],i[s+1]);if(u<r){r=u;for(var d=0;d<o;++d)n[d]=i[s+d];n.length=o}}return r},t.prototype.getCoordinates=function(){return(0,u.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new i.Z(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],o=0,a=e.length;o<a;o+=n){var s=new i.Z(e.slice(o,o+n),t);r.push(s)}return r},t.prototype.getType=function(){return"MultiPoint"},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n){var o=t[r],s=t[r+1];if((0,a.jE)(e,o,s))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.ZP)},39520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r,i=n(95678),o=n(686),a=n(48583),s=n(50335),l=n(2e4),u=n(94628),c=n(24092),d=n(50209),f=n(66649),p=n(27257),h=n(74605),m=n(58701),g=n(63452),v=n(61955),y=n(17267),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const w=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var f=a[u];0===u&&(o=f.getLayout());for(var p=s.length,h=f.getEnds(),m=0,g=h.length;m<g;++m)h[m]+=p;(0,d.l7)(s,f.getFlatCoordinates()),l.push(h)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return b(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;(0,d.l7)(this.flatCoordinates,e.getFlatCoordinates());for(var r=0,i=(t=e.getEnds().slice()).length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();var i=new t(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},t.prototype.closestPointXY=function(e,t,n,r){return r<(0,u.qf)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return(0,v.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return(0,g.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,m.dL)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,(0,p.ug)(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=function(e,t,n,r){for(var i=[],o=(0,u.lJ)(),a=0,s=n.length;a<s;++a){var l=n[a];o=(0,u.GN)(e,t,l[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=l[l.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,f.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new o.Z(this.getFlatInteriorPoints().slice(),i.Z.XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;(0,m.Oj)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,m.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=(0,y.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,i.Z.XY,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,s=r.length;o<s;++o)r[o]-=t;return new a.ZP(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,s=n.length;o<s;++o){var l=n[o].slice(),u=l[l.length-1];if(0!==i)for(var c=0,d=l.length;c<d;++c)l[c]-=i;var f=new a.ZP(t.slice(i,u),e,l);r.push(f),i=u}return r},t.prototype.getType=function(){return"MultiPolygon"},t.prototype.intersectsExtent=function(e){return(0,h.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,c.QT)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(s.ZP)},85804:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(50335),o=n(94628),a=n(24092),s=n(15586),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=(0,s.bI)(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,l=0;l<a;++l)n[l]=i[l];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return(0,o.HK)(this.flatCoordinates,e)},t.prototype.getType=function(){return"Point"},t.prototype.intersectsExtent=function(e){return(0,o.jE)(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.IG)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(i.ZP)},48583:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>E,Bb:()=>C,oJ:()=>k,Ej:()=>S});var r,i=n(95678),o=n(50335),a=n(2e4),s=n(94628),l=n(24092),u=n(17267),c=n(27257),d=n(63452),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const p=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return f(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<(0,s.qf)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return(0,d.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.Z.XY)},t.prototype.getType=function(){return"LinearRing"},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.ZP);var h=n(85804),m=n(50209),g=n(66649),v=n(74605),y=n(58701),b=n(61955),w=n(15586),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return _(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?(0,m.l7)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<(0,s.qf)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return(0,b.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return(0,d.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,y.zX)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,(0,c.o1)(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,g.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new h.Z(this.getFlatInteriorPoint(),i.Z.XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new p(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new p(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;(0,y.$v)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,y.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=(0,u.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,i.Z.XY,r)},t.prototype.getType=function(){return"Polygon"},t.prototype.intersectsExtent=function(e){return(0,v.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,l._5)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(o.ZP);const E=x;function k(e){var t=e[0],n=e[1],r=e[2],o=e[3],a=[t,n,t,o,r,o,r,n,t,n];return new x(a,i.Z.XY,[a.length])}function C(e,t,n){for(var r=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(r+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var d=[l.length],f=new x(l,o,d);return S(f,a,e.getRadius(),n),f}function S(e,t,n,r){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var u=l*o,c=s+2*(0,w.$W)(l,a)*Math.PI/a;i[u]=t[0]+n*Math.cos(c),i[u+1]=t[1]+n*Math.sin(c)}e.changed()}},50335:(e,t,n)=>{"use strict";n.d(t,{Kr:()=>d,ZP:()=>f,tP:()=>c});var r,i=n(82429),o=n(95678),a=n(2649),s=n(94628),l=n(38514),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function c(e){var t;return e==o.Z.XY?t=2:e==o.Z.XYZ||e==o.Z.XYM?t=3:e==o.Z.XYZM&&(t=4),t}function d(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return(0,l.vT)(r,0,r.length,i,t,n)}return null}const f=function(e){function t(){var t=e.call(this)||this;return t.layout=o.Z.XY,t.stride=2,t.flatCoordinates=null,t}return u(t,e),t.prototype.computeExtent=function(e){return(0,s.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return(0,a.O3)()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=c(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){(0,a.O3)()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=c(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=o.Z.XY,void(this.stride=2);t=t[0]}e=function(e){var t;return 2==e?t=o.Z.XY:3==e?t=o.Z.XYZ:4==e&&(t=o.Z.XYZM),t}(r=t.length)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();(0,l.U1)(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=(0,s.qg)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();(0,l.bA)(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();(0,l.Iu)(n,0,n.length,r,e,t,n),this.changed()}},t}(i.Z)},63452:(e,t,n)=>{"use strict";function r(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(e,t,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(e,t,l,i),t=l}return o}function o(e,t,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(e,t,l,r),t=l[l.length-1]}return o}n.d(t,{Eu:()=>o,KP:()=>i,QQ:()=>r})},2e4:(e,t,n)=>{"use strict";n.d(t,{Af:()=>a,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>c,sD:()=>s});var r=n(15586);function i(e,t,n,i,o,a,s){var l,u=e[t],c=e[t+1],d=e[n]-u,f=e[n+1]-c;if(0===d&&0===f)l=t;else{var p=((o-u)*d+(a-c)*f)/(d*d+f*f);if(p>1)l=n;else{if(p>0){for(var h=0;h<i;++h)s[h]=(0,r.t7)(e[t+h],e[n+h],p);return void(s.length=i)}l=t}}for(h=0;h<i;++h)s[h]=e[l+h];s.length=i}function o(e,t,n,i,o){var a=e[t],s=e[t+1];for(t+=i;t<n;t+=i){var l=e[t],u=e[t+1],c=(0,r.bI)(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(e,t,l,r,i),t=l}return i}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(e,t,l,r,i),t=l[l.length-1]}return i}function l(e,t,n,o,a,s,l,u,c,d,f){if(t==n)return d;var p,h;if(0===a){if((h=(0,r.bI)(l,u,e[t],e[t+1]))<d){for(p=0;p<o;++p)c[p]=e[t+p];return c.length=o,h}return d}for(var m=f||[NaN,NaN],g=t+o;g<n;)if(i(e,g-o,g,o,l,u,m),(h=(0,r.bI)(l,u,m[0],m[1]))<d){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(h)-Math.sqrt(d))/a|0,1);if(s&&(i(e,n-o,t,o,l,u,m),(h=(0,r.bI)(l,u,m[0],m[1]))<d)){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o}return d}function u(e,t,n,r,i,o,a,s,u,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=l(e,t,m,r,i,o,a,s,u,c,f),t=m}return c}function c(e,t,n,r,i,o,a,s,l,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=u(e,t,m,r,i,o,a,s,l,c,f),t=m[m.length-1]}return c}},61955:(e,t,n)=>{"use strict";n.d(t,{TG:()=>o,Zl:()=>s,uG:()=>i,wY:()=>a});var r=n(94628);function i(e,t,n,i,a){return!(0,r.H6)(a,(function(r){return!o(e,t,n,i,r[0],r[1])}))}function o(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var u=e[t],c=e[t+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(e,t,n,r,i,a){if(0===n.length)return!1;if(!o(e,t,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(e,n[s-1],n[s],r,i,a))return!1;return!0}function s(e,t,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var u=n[s];if(a(e,t,u,r,i,o))return!0;t=u[u.length-1]}return!1}},24092:(e,t,n)=>{"use strict";function r(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function i(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function o(e,t,n,r,o){for(var a=o||[],s=0,l=0,u=n.length;l<u;++l){var c=i(e,t,n[l],r);a[s++]=c,t=c}return a.length=s,a}function a(e,t,n,r,i){for(var a=i||[],s=0,l=0,u=n.length;l<u;++l){var c=o(e,t,n[l],r,a[s]);a[s++]=c,t=c[c.length-1]}return a.length=s,a}n.d(t,{IG:()=>r,QT:()=>a,Sg:()=>i,_5:()=>o})},27257:(e,t,n)=>{"use strict";function r(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function i(e,t,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=r(e,t,c,i,a[s]),t=c}return a.length=s,a}function o(e,t,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=i(e,t,c,r,a[s]),t=c[c.length-1]}return a.length=s,a}n.d(t,{Ml:()=>r,o1:()=>i,ug:()=>o})},66649:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,X:()=>o});var r=n(61955),i=n(50209);function o(e,t,n,o,a,s,l){for(var u,c,d,f,p,h,m,g=a[s+1],v=[],y=0,b=n.length;y<b;++y){var w=n[y];for(f=e[w-o],h=e[w-o+1],u=t;u<w;u+=o)p=e[u],m=e[u+1],(g<=h&&m<=g||h<=g&&g<=m)&&(d=(g-h)/(m-h)*(p-f)+f,v.push(d)),f=p,h=m}var _=NaN,x=-1/0;for(v.sort(i.kK),f=v[0],u=1,c=v.length;u<c;++u){p=v[u];var E=Math.abs(p-f);E>x&&(d=(f+p)/2,(0,r.wY)(e,t,n,o,d,g)&&(_=d,x=E)),f=p}return isNaN(_)&&(_=a[s]),l?(l.push(_,g,x),l):[_,g,x]}function a(e,t,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var u=n[s];a=o(e,t,u,r,i,2*s,a),t=u[u.length-1]}return a}},80222:(e,t,n)=>{"use strict";n.d(t,{WW:()=>o,dG:()=>s,iJ:()=>a});var r=n(50209),i=n(15586);function o(e,t,n,o,a,s,l){var u,c,d=(n-t)/o;if(1===d)u=t;else if(2===d)u=t,c=a;else if(0!==d){for(var f=e[t],p=e[t+1],h=0,m=[0],g=t+o;g<n;g+=o){var v=e[g],y=e[g+1];h+=Math.sqrt((v-f)*(v-f)+(y-p)*(y-p)),m.push(h),f=v,p=y}var b=a*h,w=(0,r.ry)(m,b);w<0?(c=(b-m[-w-2])/(m[-w-1]-m[-w-2]),u=t+(-w-2)*o):u=t+w*o}var _=l>1?l:2,x=s||new Array(_);for(g=0;g<_;++g)x[g]=void 0===u?NaN:void 0===c?e[u+g]:(0,i.t7)(e[u+g],e[u+o+g],c);return x}function a(e,t,n,r,o,a){if(n==t)return null;var s;if(o<e[t+r-1])return a?((s=e.slice(t,t+r))[r-1]=o,s):null;if(e[n-1]<o)return a?((s=e.slice(n-r,n))[r-1]=o,s):null;if(o==e[t+r-1])return e.slice(t,t+r);for(var l=t/r,u=n/r;l<u;){var c=l+u>>1;o<e[(c+1)*r-1]?u=c:l=c+1}var d=e[l*r-1];if(o==d)return e.slice((l-1)*r,(l-1)*r+r);var f=(o-d)/(e[(l+1)*r-1]-d);s=[];for(var p=0;p<r-1;++p)s.push((0,i.t7)(e[(l-1)*r+p],e[l*r+p],f));return s.push(o),s}function s(e,t,n,r,i,o,s){if(s)return a(e,t,n[n.length-1],r,i,o);var l;if(i<e[r-1])return o?((l=e.slice(0,r))[r-1]=i,l):null;if(e[e.length-1]<i)return o?((l=e.slice(e.length-r))[r-1]=i,l):null;for(var u=0,c=n.length;u<c;++u){var d=n[u];if(t!=d){if(i<e[t+r-1])return null;if(i<=e[d-1])return a(e,t,d,r,i,!1);t=d}}return null}},74605:(e,t,n)=>{"use strict";n.d(t,{AW:()=>s,Kz:()=>a,ac:()=>u,mV:()=>l,oW:()=>c});var r=n(94628),i=n(11381),o=n(61955);function a(e,t,n,o,a){var s=(0,r.qP)((0,r.lJ)(),e,t,n,o);return!!(0,r.kK)(a,s)&&(!!(0,r.r4)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||(0,i.E)(e,t,n,o,(function(e,t){return(0,r.I7)(a,e,t)})))}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(e,t,n[o],r,i))return!0;t=n[o]}return!1}function l(e,t,n,r,i){return!!(a(e,t,n,r,i)||(0,o.TG)(e,t,n,r,i[0],i[1])||(0,o.TG)(e,t,n,r,i[0],i[3])||(0,o.TG)(e,t,n,r,i[2],i[1])||(0,o.TG)(e,t,n,r,i[2],i[3]))}function u(e,t,n,r,i){if(!l(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var s=1,u=n.length;s<u;++s)if((0,o.uG)(e,n[s-1],n[s],r,i)&&!a(e,n[s-1],n[s],r,i))return!1;return!0}function c(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(u(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}},62542:(e,t,n)=>{"use strict";function r(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],u=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}n.d(t,{W:()=>r})},58701:(e,t,n)=>{"use strict";function r(e,t,n,r){for(;t<n-r;){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function i(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(e,t,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var u=n[s],c=i(e,t,u,r);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;t=u}return!0}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(e,t,l,r,i))return!1;l.length&&(t=l[l.length-1])}return!0}function s(e,t,n,o,a){for(var s=void 0!==a&&a,l=0,u=n.length;l<u;++l){var c=n[l],d=i(e,t,c,o);(0===l?s&&d||!s&&!d:s&&!d||!s&&d)&&r(e,t,c,o),t=c}return t}function l(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=s(e,t,n[o],r,i);return t}n.d(t,{$v:()=>o,Oj:()=>a,zX:()=>s,dL:()=>l})},11381:(e,t,n)=>{"use strict";function r(e,t,n,r,i){var o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)))return o;return!1}n.d(t,{E:()=>r})},17267:(e,t,n)=>{"use strict";n.d(t,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>i,uZ:()=>a});var r=n(15586);function i(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t<n;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c=[t,n-i],d=0;c.length>0;){for(var f=c.pop(),p=c.pop(),h=0,m=e[p],g=e[p+1],v=e[f],y=e[f+1],b=p+i;b<f;b+=i){var w=e[b],_=e[b+1],x=(0,r.rU)(w,_,m,g,v,y);x>h&&(d=b,h=x)}h>o&&(u[(d-t)/i]=1,p+i<d&&c.push(p,d),d+i<f&&c.push(d,f))}for(b=0;b<l;++b)u[b]&&(a[s++]=e[t+b*i],a[s++]=e[t+b*i+1]);return s}function o(e,t,n,r,o,a,s,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];s=i(e,t,d,r,o,a,s),l.push(s),t=d}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,n,r,i,o,s){if(t==n)return s;var l,u,c=a(e[t],i),d=a(e[t+1],i);t+=r,o[s++]=c,o[s++]=d;do{if(l=a(e[t],i),u=a(e[t+1],i),(t+=r)==n)return o[s++]=l,o[s++]=u,s}while(l==c&&u==d);for(;t<n;){var f=a(e[t],i),p=a(e[t+1],i);if(t+=r,f!=l||p!=u){var h=l-c,m=u-d,g=f-c,v=p-d;h*v==m*g&&(h<0&&g<h||h==g||h>0&&g>h)&&(m<0&&v<m||m==v||m>0&&v>m)?(l=f,u=p):(o[s++]=l,o[s++]=u,c=l,d=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(e,t,n,r,i,o,a,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];a=s(e,t,d,r,i,o,a),l.push(a),t=d}return a}function u(e,t,n,r,i,o,a,s){for(var u=0,c=n.length;u<c;++u){var d=n[u],f=[];a=l(e,t,d,r,i,o,a,f),s.push(f),t=d[d.length-1]}return a}},38514:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var u=e[l],c=e[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],d=o[1],f=0,p=t;p<n;p+=r){var h=e[p]-c,m=e[p+1]-d;s[f++]=c+h*l-m*u,s[f++]=d+h*u+m*l;for(var g=p+2;g<p+r;++g)s[f++]=e[g]}return a&&s.length!=f&&(s.length=f),s}function o(e,t,n,r,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],d=0,f=t;f<n;f+=r){var p=e[f]-u,h=e[f+1]-c;l[d++]=u+i*p,l[d++]=c+o*h;for(var m=f+2;m<f+r;++m)l[d++]=e[m]}return s&&l.length!=d&&(l.length=d),l}function a(e,t,n,r,i,o,a){for(var s=a||[],l=0,u=t;u<n;u+=r){s[l++]=e[u]+i,s[l++]=e[u+1]+o;for(var c=u+2;c<u+r;++c)s[l++]=e[c]}return a&&s.length!=l&&(s.length=l),s}n.d(t,{Iu:()=>a,U1:()=>i,bA:()=>o,vT:()=>r})},62403:(e,t,n)=>{"use strict";n.d(t,{G$:()=>o,Id:()=>l,MP:()=>s,Tp:()=>u,V:()=>i,bM:()=>c,tK:()=>a});var r="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=(-1!==r.indexOf("safari")&&-1==r.indexOf("chrom")&&(r.indexOf("version/15.4")>=0||r.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==r.indexOf("webkit")&&-1==r.indexOf("edge")),a=-1!==r.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}()},78369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DrawEvent:()=>F,createBox:()=>z,createRegularPolygon:()=>U,default:()=>q});var r,i=n(50335),o=n(94628),a=n(24092),s=n(38514),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r){var i=e.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,t);else{var o=n||0;i.setCenterAndRadius(t,o,r)}return i}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);for(n[0]=i[0]+u*o,n[1]=i[1]+u*a,l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return(0,o.T9)(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return"Circle"},t.prototype.intersectsExtent=function(e){var t=this.getExtent();if((0,o.kK)(e,t)){var n=this.getCenter();return e[0]<=n[0]&&e[2]>=n[0]||e[1]<=n[1]&&e[3]>=n[1]||(0,o.H6)(e,this.intersectsCoordinate.bind(this))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=(0,a.IG)(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,s=this.stride;o<s;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter((0,s.U1)(n,0,n.length,r,e,t,n)),this.changed()},t.prototype.translate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter((0,s.Iu)(n,0,n.length,r,e,t,n)),this.changed()},t}(i.ZP);u.prototype.transform;const c=u;var d=n(80471),f=n(23992),p=n(57023),h=n(95678),m=n(75221),g=n(10536),v=n(10597),y=n(11725),b=n(75489),w=n(686),_=n(39520),x=n(85804),E=n(771),k=n(48583),C=n(2247),S=n(29820),A=n(16253),T=n(84374),O=n(82679),P=n(93027),R=n(39853),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D="Point",I="LineString",L="Polygon",j="Circle",N="drawstart",F=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return M(t,e),t}(d.ZP),B=function(e){function t(t){var n=this,r=t;r.stopDown||(r.stopDown=A.Dv),(n=e.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=function(e){switch(e){case"Point":case"MultiPoint":return D;case"LineString":case"MultiLineString":return I;case"Polygon":case"MultiPolygon":return L;case"Circle":return j;default:throw new Error("Invalid type: "+e)}}(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===L?3:2,n.maxPoints_=n.mode_===j?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:A.uX,n.geometryLayout_=t.geometryLayout?t.geometryLayout:h.Z.XY;var i,o=t.geometryFunction;if(!o){var a,s=n.mode_;s===j?o=function(e,t,n){var r=t||new c([NaN,NaN]),i=(0,P.Vs)(e[0],n),o=(0,R.bI)(i,(0,P.Vs)(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=(0,P.Cs)();return a&&r.transform(n,a),r}:(s===D?a=x.Z:s===I?a=g.Z:s===L&&(a=k.ZP),o=function(e,t,n){return t?s===L?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])],this.geometryLayout_):t.setCoordinates([],this.geometryLayout_):t.setCoordinates(e,this.geometryLayout_):t=new a(e,this.geometryLayout_),t})}return n.geometryFunction_=o,n.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new C.default({source:new S.default({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(i=(0,O.Ly)(),function(e,t){return i[e.getGeometry().getType()]}),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:T.rM,n.freehandCondition_,t.freehand?n.freehandCondition_=T.Bx:n.freehandCondition_=t.freehandCondition?t.freehandCondition:T.vY,n.addChangeListener(m.Z.ACTIVE,n.updateState_),n}return M(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===f.Z.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==D&&this.freehandCondition_(t);var n=t.type===y.Z.POINTERMOVE,r=!0;return!this.freehand_&&this.lastDragTime_&&t.type===y.Z.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===y.Z.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),r=!1):this.freehand_&&t.type===y.Z.POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=t.type===y.Z.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===y.Z.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===y.Z.DBLCLICK&&(r=!1),e.prototype.handleEvent.call(this,t)&&r},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new v.Z(y.Z.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(e.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==D||(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.preventDefault(),t},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===D)t=!0;else if(i===j)t=2===this.sketchCoords_.length;else if(i===I)n=this.sketchCoords_.length>this.minPoints_;else if(i===L){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var u=r[s],c=a.getPixelFromCoordinate(u),d=e[0]-c[0],f=e[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(d*d+f*f)<=p){this.finishCoordinate_=u;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new p.Z(new x.Z(e)),this.updateSketchFeatures_())},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new p.Z);var t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new g.Z(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))},t.prototype.startDrawing_=function(e){for(var t=this.getMap().getView().getProjection(),n=(0,i.tP)(this.geometryLayout_);e.length<n;)e.push(0);this.finishCoordinate_=e,this.mode_===D?this.sketchCoords_=e.slice():this.mode_===L?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new p.Z(new g.Z(this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new p.Z,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new F(N,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){for(var t,n,r=this.getMap(),o=this.sketchFeature_.getGeometry(),a=r.getView().getProjection(),s=(0,i.tP)(this.geometryLayout_);e.length<s;)e.push(0);this.mode_===D?n=this.sketchCoords_:this.mode_===L?(n=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(r.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):n=(t=this.sketchCoords_)[t.length-1],n[0]=e[0],n[1]=e[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),"Polygon"===o.getType()&&this.mode_!==L?this.createOrUpdateCustomSketchLine_(o):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===I||o===j?(this.finishCoordinate_=e.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),this.geometryFunction_(n,r,i)):o===L&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===I||r===j){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var i=this.finishCoordinate_.slice();e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===L){(e=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();e.length>=2&&(i=e[e.length-2].slice(),e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)),o.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===I?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===L&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new w.Z([t])):"MultiLineString"===this.type_?e.setGeometry(new b.Z([t])):"MultiPolygon"===this.type_&&e.setGeometry(new _.Z([t])),this.dispatchEvent(new F("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new F("drawabort",e))},t.prototype.appendCoordinates=function(e){var t,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(e[0]),n===I||n===j)t=this.sketchCoords_;else{if(n!==L)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new p.Z(new x.Z(n)),this.updateSketchFeatures_(),this.dispatchEvent(new F(N,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)},t}(E.Z);function U(e,t){return function(n,r,i){var o=(0,P.Vs)(n[0],i),a=(0,P.Vs)(n[n.length-1],i),s=Math.sqrt((0,R.bI)(o,a)),l=r||(0,k.Bb)(new c(o),e),u=t;if(!t&&0!==t){var d=a[0]-o[0],f=a[1]-o[1];u=Math.atan2(f,d)}(0,k.Ej)(l,o,s,u);var p=(0,P.Cs)();return p&&l.transform(i,p),l}}function z(){return function(e,t,n){var r=(0,o.hI)([e[0],e[e.length-1]].map((function(e){return(0,P.Vs)(e,n)}))),i=[[(0,o.hC)(r),(0,o.w$)(r),(0,o.Xv)(r),(0,o.rL)(r),(0,o.hC)(r)]],a=t;a?a.setCoordinates(i):a=new k.ZP(i);var s=(0,P.Cs)();return s&&a.transform(n,s),a}}const q=B},43823:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>l,FW:()=>u,ZP:()=>c});var r,i=n(27230),o=n(75221),a=n(7287),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:a.GE,center:e.getConstrainedCenter(i)})}}function u(e,t,n,r){var i=e.getZoom();if(void 0!==i){var o=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:a.Vv})}}const c=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return s(t,e),t.prototype.getActive=function(){return this.get(o.Z.ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(o.Z.ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(i.Z)},771:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,Z:()=>l});var r,i=n(43823),o=n(11725),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function s(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}const l=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return a(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==o.Z.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==o.Z.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==o.Z.POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==o.Z.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){e.activePointers&&(this.targetPointers=e.activePointers)},t}(i.ZP)},75221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ACTIVE:"active"}},48442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r,i=n(27230),o=n(93123),a=n(2649),s=n(75759),l=n(2765),u=n(15586),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const d=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un,n.background_=t.background;var r=(0,l.f0)({},t);return"object"==typeof t.properties&&(delete r.properties,(0,l.f0)(r,t.properties)),r[o.Z.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,s.h)("number"==typeof r[o.Z.OPACITY],64),r[o.Z.VISIBLE]=void 0===t.visible||t.visible,r[o.Z.Z_INDEX]=t.zIndex,r[o.Z.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,r[o.Z.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,r[o.Z.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,r[o.Z.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return c(t,e),t.prototype.getBackground=function(){return this.background_},t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return(0,a.O3)()},t.prototype.getLayerStatesArray=function(e){return(0,a.O3)()},t.prototype.getExtent=function(){return this.get(o.Z.EXTENT)},t.prototype.getMaxResolution=function(){return this.get(o.Z.MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(o.Z.MIN_RESOLUTION)},t.prototype.getMinZoom=function(){return this.get(o.Z.MIN_ZOOM)},t.prototype.getMaxZoom=function(){return this.get(o.Z.MAX_ZOOM)},t.prototype.getOpacity=function(){return this.get(o.Z.OPACITY)},t.prototype.getSourceState=function(){return(0,a.O3)()},t.prototype.getVisible=function(){return this.get(o.Z.VISIBLE)},t.prototype.getZIndex=function(){return this.get(o.Z.Z_INDEX)},t.prototype.setBackground=function(e){this.background_=e,this.changed()},t.prototype.setExtent=function(e){this.set(o.Z.EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(o.Z.MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(o.Z.MIN_RESOLUTION,e)},t.prototype.setMaxZoom=function(e){this.set(o.Z.MAX_ZOOM,e)},t.prototype.setMinZoom=function(e){this.set(o.Z.MIN_ZOOM,e)},t.prototype.setOpacity=function(e){(0,s.h)("number"==typeof e,64),this.set(o.Z.OPACITY,e)},t.prototype.setVisible=function(e){this.set(o.Z.VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(o.Z.Z_INDEX,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(i.Z)},674:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p,j:()=>f});var r,i=n(48442),o=n(23992),a=n(93123),s=n(60791),l=n(75759),u=n(2765),c=n(53576),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function f(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const p=function(e){function t(t){var n=this,r=(0,u.f0)({},t);delete r.source,(n=e.call(this,r)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addChangeListener(a.Z.SOURCE,n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return d(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(a.Z.SOURCE)||null},t.prototype.getRenderSource=function(){return this.getSource()},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():"undefined"},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,c.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=(0,c.oL)(e,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise((function(e){return e([])}))},t.prototype.getData=function(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)},t.prototype.unrender=function(){this.rendered=!1},t.prototype.setMapInternal=function(e){e||this.unrender(),this.set(a.Z.MAP,e)},t.prototype.getMapInternal=function(){return this.get(a.Z.MAP)},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&((0,c.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&((0,c.bN)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=(0,c.oL)(e,s.Z.PRECOMPOSE,(function(e){var t=e.frameState.layerStatesArray,n=this.getLayerState(!1);(0,l.h)(!t.some((function(e){return e.layer===n.layer})),67),t.push(n)}),this),this.mapRenderKey_=(0,c.oL)(this,o.Z.CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(a.Z.SOURCE,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),e.prototype.disposeInternal.call(this)},t}(i.Z)},93123:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},10608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(674);const i="preload",o="useInterimTilesOnError";var a,s=n(2765),l=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t){var n=this,r=t||{},i=(0,s.f0)({},r);return delete i.preload,delete i.useInterimTilesOnError,(n=e.call(this,i)||this).on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return l(t,e),t.prototype.getPreload=function(){return this.get(i)},t.prototype.setPreload=function(e){this.set(i,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(o)},t.prototype.setUseInterimTilesOnError=function(e){this.set(o,e)},t.prototype.getData=function(t){return e.prototype.getData.call(this,t)},t}(r.Z);var c=n(30635),d=n(44650),f=n(98150),p=n(28e3),h=n(46759),m=n(9814),g=n(17952),v=n(94628),y=n(93027),b=n(2649),w=n(50209),_=n(24156),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const E=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=(0,v.lJ)(),n.tmpTileRange_=new p.Z(0,0,0,0),n}return x(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==h.Z.LOADED||n==h.Z.EMPTY||n==h.Z.ERROR&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(e,t,n,i,o);return s.getState()==h.Z.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(h.Z.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},t.prototype.getData=function(e){var t=this.frameState;if(!t)return null;var n=this.getLayer(),r=(0,g.nn)(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!(0,v.b8)(i,r))return null;for(var o=t.pixelRatio,a=t.viewState.projection,s=t.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),c=l.getTilePixelRatio(t.pixelRatio),p=u.getZForResolution(s.resolution);p>=u.getMinZoom();--p){var m=u.getTileCoordForCoordAndZ(r,p),y=l.getTile(p,m[1],m[2],o,a);if(!(y instanceof d.Z||y instanceof f.Z))return null;if(y.getState()===h.Z.LOADED){var b=u.getOrigin(p),w=(0,_.Pq)(u.getTileSize(p)),x=u.getResolution(p),E=Math.floor(c*((r[0]-b[0])/x-m[1]*w[0])),k=Math.floor(c*((b[1]-r[1])/x-m[2]*w[1])),C=Math.round(c*l.getGutterForProjection(s.projection));return this.getImageData(y.getImage(),E+C,k+C)}}return null},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,l=r.rotation,u=e.pixelRatio,c=this.getLayer(),d=c.getSource(),f=d.getRevision(),p=d.getTileGridForProjection(i),_=p.getZForResolution(o,d.zDirection),x=p.getResolution(_),E=e.extent,k=e.viewState.resolution,C=d.getTilePixelRatio(u),S=Math.round((0,v.dz)(E)/k*u),A=Math.round((0,v.Cr)(E)/k*u),T=n.extent&&(0,y.dY)(n.extent,i);T&&(E=(0,v.Ed)(E,(0,y.dY)(n.extent,i)));var O=x*S/2/C,P=x*A/2/C,R=[a[0]-O,a[1]-P,a[0]+O,a[1]+P],M=p.getTileRangeForExtentAndZ(E,_),D={};D[_]={};var I=this.createLoadedTileFinder(d,i,D),L=this.tmpExtent,j=this.tmpTileRange_;this.newTiles_=!1;for(var N=l?(0,v.dY)(r.center,k,l,e.size):void 0,F=M.minX;F<=M.maxX;++F)for(var B=M.minY;B<=M.maxY;++B)if(!l||p.tileCoordIntersectsViewport([_,F,B],N)){var U=this.getTile(_,F,B,e);if(this.isDrawableTile(U)){var z=(0,b.sq)(this);if(U.getState()==h.Z.LOADED&&(D[_][U.tileCoord.toString()]=U,(ce=U.inTransition(z))&&1!==n.opacity&&(U.endTransition(z),ce=!1),this.newTiles_||!ce&&-1!==this.renderedTiles.indexOf(U)||(this.newTiles_=!0)),1===U.getAlpha(z,e.time))continue}var q=p.getTileCoordChildTileRange(U.tileCoord,j,L),W=!1;q&&(W=I(_+1,q)),W||p.forEachTileCoordParentTileRange(U.tileCoord,I,j,L)}var $=x/o*u/C;(0,g.qC)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/u,1/u,l,-S/2,-A/2);var H=(0,g.BB)(this.pixelTransform);this.useContainer(t,H,this.getBackground(e));var G=this.context,V=G.canvas;(0,g.nb)(this.inversePixelTransform,this.pixelTransform),(0,g.qC)(this.tempTransform,S/2,A/2,$,$,0,-S/2,-A/2),V.width!=S||V.height!=A?(V.width=S,V.height=A):this.containerReused||G.clearRect(0,0,S,A),T&&this.clipUnrotated(G,e,T),d.getInterpolate()||(0,s.f0)(G,m.$),this.preRender(G,e),this.renderedTiles.length=0;var K,Z,Y,X=Object.keys(D).map(Number);X.sort(w.kK),1!==n.opacity||this.containerReused&&!d.getOpaque(e.viewState.projection)?(K=[],Z=[]):X=X.reverse();for(var Q=X.length-1;Q>=0;--Q){var J=X[Q],ee=d.getTilePixelSize(J,u,i),te=p.getResolution(J)/x,ne=ee[0]*te*$,re=ee[1]*te*$,ie=p.getTileCoordForCoordAndZ((0,v.rL)(R),J),oe=p.getTileCoordExtent(ie),ae=(0,g.nn)(this.tempTransform,[C*(oe[0]-R[0])/x,C*(R[3]-oe[3])/x]),se=C*d.getGutterForProjection(i),le=D[J];for(var ue in le){var ce,de=(U=le[ue]).tileCoord,fe=ie[1]-de[1],pe=Math.round(ae[0]-(fe-1)*ne),he=ie[2]-de[2],me=Math.round(ae[1]-(he-1)*re),ge=pe-(F=Math.round(ae[0]-fe*ne)),ve=me-(B=Math.round(ae[1]-he*re)),ye=_===J,be=!1;if(!(ce=ye&&1!==U.getAlpha((0,b.sq)(this),e.time)))if(K){Y=[F,B,F+ge,B,F+ge,B+ve,F,B+ve];for(var we=0,_e=K.length;we<_e;++we)if(_!==J&&J<Z[we]){var xe=K[we];(0,v.kK)([F,B,F+ge,B+ve],[xe[0],xe[3],xe[4],xe[7]])&&(be||(G.save(),be=!0),G.beginPath(),G.moveTo(Y[0],Y[1]),G.lineTo(Y[2],Y[3]),G.lineTo(Y[4],Y[5]),G.lineTo(Y[6],Y[7]),G.moveTo(xe[6],xe[7]),G.lineTo(xe[4],xe[5]),G.lineTo(xe[2],xe[3]),G.lineTo(xe[0],xe[1]),G.clip())}K.push(Y),Z.push(J)}else G.clearRect(F,B,ge,ve);this.drawTileImage(U,e,F,B,ge,ve,se,ye),K&&!ce?(be&&G.restore(),this.renderedTiles.unshift(U)):this.renderedTiles.push(U),this.updateUsedTiles(e.usedTiles,d,U)}}return this.renderedRevision=f,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,v.fS)(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=u,this.renderedProjection=i,this.manageTilePyramid(e,d,p,u,i,E,_,c.getPreload()),this.scheduleExpireCache(e,d),this.postRender(G,e),n.extent&&G.restore(),(0,s.f0)(G,m.s),H!==V.style.transform&&(V.style.transform=H),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s){var l=this.getTileImage(e);if(l){var u=(0,b.sq)(this),c=t.layerStatesArray[t.layerIndex],d=c.opacity*(s?e.getAlpha(u,t.time):1),f=d!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,r,i,o),f&&this.context.restore(),d!==c.opacity?t.animate=!0:s&&e.endTransition(u)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=(0,b.sq)(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=(0,b.sq)(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,l){var u=(0,b.sq)(t);u in e.wantedTiles||(e.wantedTiles[u]={});var c,d,f,p,m,g,y=e.wantedTiles[u],w=e.tileQueue,_=n.getMinZoom(),x=e.viewState.rotation,E=x?(0,v.dY)(e.viewState.center,e.viewState.resolution,x,e.size):void 0,k=0;for(g=_;g<=a;++g)for(d=n.getTileRangeForExtentAndZ(o,g,d),f=n.getResolution(g),p=d.minX;p<=d.maxX;++p)for(m=d.minY;m<=d.maxY;++m)x&&!n.tileCoordIntersectsViewport([g,p,m],E)||(a-g<=s?(++k,(c=t.getTile(g,p,m,r,i)).getState()==h.Z.IDLE&&(y[c.getKey()]=!0,w.isKeyQueued(c.getKey())||w.enqueue([c,u,n.getTileCoordCenter(c.tileCoord),f])),void 0!==l&&l(c)):t.useTile(g,p,m,i));t.updateCacheSize(k,i)},t}(c.Z);var k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const C=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.createRenderer=function(){return new E(this)},t}(u)},2247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ge});var r,i=n(674),o=n(30147),a=n(2765),s=n(82679),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u="renderOrder";const c=function(e){function t(t){var n=this,r=t||{},i=(0,a.f0)({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(n=e.call(this,i)||this).declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return l(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(u)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new o(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set(u,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:s.yF,this.styleFunction_=null===e?void 0:(0,s.J$)(this.style_),this.changed()},t}(i.Z);var d={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},f=[d.FILL],p=[d.STROKE],h=[d.BEGIN_PATH],m=[d.CLOSE_PATH];const g=d;var v=n(41190);const y=function(){function e(){}return e.prototype.drawCustom=function(e,t,n,r){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}();var b=n(47141),w=n(94628),_=n(27002),x=n(50209),E=n(27257),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return k(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatPointCoordinates=function(e,t){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)r[0]=e[a],r[1]=e[a+1],(0,w.b8)(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},t.prototype.appendFlatLineCoordinates=function(e,t,n,r,i,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(t+=r);var u,c,d,f=e[t],p=e[t+1],h=this.tmpCoordinate_,m=!0;for(u=t+r;u<n;u+=r)h[0]=e[u],h[1]=e[u+1],(d=(0,w.pX)(l,h))!==c?(m&&(a[s++]=f,a[s++]=p,m=!1),a[s++]=h[0],a[s++]=h[1]):d===v.Z.INTERSECTING?(a[s++]=h[0],a[s++]=h[1],m=!1):m=!0,f=h[0],p=h[1],c=d;return(i&&m||u===t+r)&&(a[s++]=f,a[s++]=p),s},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n,r){this.beginGeometry(e,t);var i,o,a,s,l,u=e.getType(),c=e.getStride(),d=this.coordinates.length;switch(u){case"MultiPolygon":i=e.getOrientedFlatCoordinates(),s=[];var f=e.getEndss();l=0;for(var p=0,h=f.length;p<h;++p){var m=[];l=this.drawCustomCoordinates_(i,l,f[p],c,m),s.push(m)}this.instructions.push([g.CUSTOM,d,s,e,n,E.ug]),this.hitDetectionInstructions.push([g.CUSTOM,d,s,e,r||n,E.ug]);break;case"Polygon":case"MultiLineString":a=[],i="Polygon"==u?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),l=this.drawCustomCoordinates_(i,0,e.getEnds(),c,a),this.instructions.push([g.CUSTOM,d,a,e,n,E.o1]),this.hitDetectionInstructions.push([g.CUSTOM,d,a,e,r||n,E.o1]);break;case"LineString":case"Circle":i=e.getFlatCoordinates(),o=this.appendFlatLineCoordinates(i,0,i.length,c,!1,!1),this.instructions.push([g.CUSTOM,d,o,e,n,E.Ml]),this.hitDetectionInstructions.push([g.CUSTOM,d,o,e,r||n,E.Ml]);break;case"MultiPoint":i=e.getFlatCoordinates(),(o=this.appendFlatPointCoordinates(i,c))>d&&(this.instructions.push([g.CUSTOM,d,o,e,n,E.Ml]),this.hitDetectionInstructions.push([g.CUSTOM,d,o,e,r||n,E.Ml]));break;case"Point":i=e.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),o=this.coordinates.length,this.instructions.push([g.CUSTOM,d,o,e,n]),this.hitDetectionInstructions.push([g.CUSTOM,d,o,e,r||n])}this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[g.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[g.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)(r=(n=t[e])[0])==g.END_GEOMETRY?o=e:r==g.BEGIN_GEOMETRY&&(n[2]=e,(0,x.FZ)(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=(0,b.y)(r||_.bL)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=(0,b.y)(i||_.Tx);var o=t.getLineCap();n.lineCap=void 0!==o?o:_.mb;var a=t.getLineDash();n.lineDash=a?a.slice():_.X9;var s=t.getLineDashOffset();n.lineDashOffset=s||_.He;var l=t.getLineJoin();n.lineJoin=void 0!==l?l:_.rc;var u=t.getWidth();n.lineWidth=void 0!==u?u:_.yC;var c=t.getMiterLimit();n.miterLimit=void 0!==c?c:_.V4,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[g.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[g.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!(0,x.fS)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[g.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,w.d9)(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;(0,w.f3)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(y);const S=C;var A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const T=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return A(t,e),t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([g.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([g.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([g.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([g.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t},t}(S);var O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const P=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return O(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[g.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([g.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,_.X9,_.He],h);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(p),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([g.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],h);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(a,l,o[u],s);this.hitDetectionInstructions.push(p),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(p),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(p),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(h)},t}(S);var R=n(17267),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const D=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return M(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(h),this.hitDetectionInstructions.push(h);for(var l=0;l<s;++l){var u=n[l],c=this.coordinates.length,d=this.appendFlatLineCoordinates(e,t,u,r,!0,!a),v=[g.MOVE_TO_LINE_TO,c,d];this.instructions.push(v),this.hitDetectionInstructions.push(v),a&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),t=u}return o&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),a&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([g.SET_FILL_STYLE,_.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([g.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var l=[g.CIRCLE,s];this.instructions.push(h,l),this.hitDetectionInstructions.push(h,l),void 0!==n.fillStyle&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),void 0!==n.strokeStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([g.SET_FILL_STYLE,_.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([g.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([g.SET_FILL_STYLE,_.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([g.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(a,l,o[u],s);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=(0,R.uZ)(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(S);var I=n(2649);function L(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h=n,m=n,g=0,v=0,y=n;for(o=n;o<r;o+=i){var b=t[o],w=t[o+1];void 0!==l&&(f=b-l,p=w-u,s=Math.sqrt(f*f+p*p),void 0!==c&&(v+=a,Math.acos((c*f+d*p)/(a*s))>e&&(v>g&&(g=v,h=y,m=o),v=0,y=o-i)),a=s,c=f,d=p),l=b,u=w}return(v+=s)>g?[y,o]:[h,m]}var j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},F=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return j(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o=this.coordinates,a=o.length,s=e.getType(),l=null,u=e.getStride();if("line"!==i.placement||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){var c=i.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=e.getFlatCoordinates();break;case"LineString":l=e.getFlatMidpoint();break;case"Circle":l=e.getCenter();break;case"MultiLineString":l=e.getFlatMidpoints(),u=2;break;case"Polygon":l=e.getFlatInteriorPoint(),i.overflow||c.push(l[2]/this.resolution),u=3;break;case"MultiPolygon":var d=e.getFlatInteriorPoints();for(l=[],C=0,S=d.length;C<S;C+=3)i.overflow||c.push(d[C+2]/this.resolution),l.push(d[C],d[C+1]);if(0===l.length)return;u=2}if((D=this.appendFlatPointCoordinates(l,u))===a)return;if(c&&(D-a)/2!=l.length/u){var f=a/2;c=c.filter((function(e,t){var n=o[2*(f+t)]===l[t*u]&&o[2*(f+t)+1]===l[t*u+1];return n||--f,n}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var p=i.padding;if(p!=_.oB&&(i.scale[0]<0||i.scale[1]<0)){var h=i.padding[0],m=i.padding[1],v=i.padding[2],y=i.padding[3];i.scale[0]<0&&(m=-m,y=-y),i.scale[1]<0&&(h=-h,v=-v),p=[h,m,v,y]}var b=this.pixelRatio;this.instructions.push([g.DRAW_IMAGE,a,D,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,p==_.oB?_.oB:p.map((function(e){return e*b})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var x=1/b;this.hitDetectionInstructions.push([g.DRAW_IMAGE,a,D,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[x,x],NaN,void 0,this.declutterImageWithText_,p,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(t)}else{if(!(0,w.kK)(this.getBufferedMaxExtent(),e.getExtent()))return;var E=void 0;if(l=e.getFlatCoordinates(),"LineString"==s)E=[l.length];else if("MultiLineString"==s)E=e.getEnds();else if("Polygon"==s)E=e.getEnds().slice(0,1);else if("MultiPolygon"==s){var k=e.getEndss();E=[];for(var C=0,S=k.length;C<S;++C)E.push(k[C][0])}this.beginGeometry(e,t);for(var A=i.textAlign,T=0,O=void 0,P=0,R=E.length;P<R;++P){if(null==A){var M=L(i.maxAngle,l,T,E[P],u);T=M[0],O=M[1]}else O=E[P];for(C=T;C<O;C+=u)o.push(l[C],l[C+1]);var D=o.length;T=E[P],this.drawChars_(a,D),a=D}this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||_.PH,justify:t.justify,textBaseline:t.textBaseline||_.ru,scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t){var n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=N[r.textBaseline],u=this.textOffsetY_*s,c=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([g.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,s,u,i,d*s,c,o,1]),this.hitDetectionInstructions.push([g.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,1,u,i,d,c,o,1/s])},t.prototype.setTextStyle=function(e,t){var n,r,i;if(e){var o=e.getFill();o?((r=this.textFillState_)||(r={},this.textFillState_=r),r.fillStyle=(0,b.y)(o.getColor()||_.bL)):(r=null,this.textFillState_=r);var a=e.getStroke();if(a){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),c=a.getMiterLimit();i.lineCap=a.getLineCap()||_.mb,i.lineDash=s?s.slice():_.X9,i.lineDashOffset=void 0===l?_.He:l,i.lineJoin=a.getLineJoin()||_.rc,i.lineWidth=void 0===u?_.yC:u,i.miterLimit=void 0===c?_.V4:c,i.strokeStyle=(0,b.y)(a.getColor()||_.Tx)}else i=null,this.textStrokeState_=i;n=this.textState_;var d=e.getFont()||_.Df;(0,_.Qx)(d);var f=e.getScaleArray();n.overflow=e.getOverflow(),n.font=d,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.justify=e.getJustify(),n.textBaseline=e.getTextBaseline()||_.ru,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||_.oB,n.scale=void 0===f?[1,1]:f;var p=e.getOffsetX(),h=e.getOffsetY(),m=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===p?0:p,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,I.sq)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+(0,I.sq)(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=t},t}(S),B={Circle:D,Default:S,Image:T,LineString:P,Polygon:D,Text:F};const U=function(){function e(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];return void 0===i&&(i=new(0,B[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i),i},e}();var z=n(30635),q=n(62403),W=n(17952),$=n(15586),H=n(38514);function G(e,t,n,r,i,o,a,s,l,u,c,d){var f=e[t],p=e[t+1],h=0,m=0,g=0,v=0;function y(){h=f,m=p,f=e[t+=r],p=e[t+1],v+=g,g=Math.sqrt((f-h)*(f-h)+(p-m)*(p-m))}do{y()}while(t<n-r&&v+g<o);for(var b=0===g?0:(o-v)/g,w=(0,$.t7)(h,f,b),_=(0,$.t7)(m,p,b),x=t-r,E=v,k=o+s*l(u,i,c);t<n-r&&v+g<k;)y();b=0===g?0:(k-v)/g;var C,S=(0,$.t7)(h,f,b),A=(0,$.t7)(m,p,b);if(d){var T=[w,_,S,A];(0,H.U1)(T,0,4,2,d,T,T),C=T[0]>T[2]}else C=w>S;var O,P=Math.PI,R=[],M=x+r===t;if(g=0,v=E,f=e[t=x],p=e[t+1],M){y(),O=Math.atan2(p-m,f-h),C&&(O+=O>0?-P:P);var D=(S+w)/2,I=(A+_)/2;return R[0]=[D,I,(k-o)/2,O,i],R}for(var L=0,j=(i=i.replace(/\n/g," ")).length;L<j;){y();var N=Math.atan2(p-m,f-h);if(C&&(N+=N>0?-P:P),void 0!==O){var F=N-O;if(F+=F>P?-2*P:F<-P?2*P:0,Math.abs(F)>a)return null}O=N;for(var B=L,U=0;L<j;++L){var z=s*l(u,i[C?j-L-1:L],c);if(t+r<n&&v+g<o+U+z/2)break;U+=z}if(L!==B){var q=C?i.substring(j-B,j-L):i.substring(B,L);b=0===g?0:(o+U/2-v)/g,D=(0,$.t7)(h,f,b),I=(0,$.t7)(m,p,b),R.push([D,I,U/2,N,q]),o+=U}}return R}var V=n(62542),K=(0,w.lJ)(),Z=[],Y=[],X=[],Q=[];function J(e){return e[3].declutterBox}var ee=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function te(e,t){return"start"!==t&&"end"!==t||ee.test(e)||(t="start"===t?"left":"right"),N[t]}function ne(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}var re=function(){function e(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,W.Ue)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var i=e+t+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(e),d=s.justify?N[s.justify]:te(Array.isArray(e)?e[0]:e,s.textAlign||_.PH),f=r&&o.lineWidth?o.lineWidth:0,p=c?e:e.split("\n").reduce(ne,[]),h=(0,_.Zw)(s,p),m=h.width,g=h.height,v=h.widths,y=h.heights,b=h.lineWidths,w=m+f,x=[],E=(w+2)*u[0],k=(g+f)*u[1],C={width:E<0?Math.floor(E):Math.ceil(E),height:k<0?Math.floor(k):Math.ceil(k),contextInstructions:x};1==u[0]&&1==u[1]||x.push("scale",u),r&&(x.push("strokeStyle",o.strokeStyle),x.push("lineWidth",f),x.push("lineCap",o.lineCap),x.push("lineJoin",o.lineJoin),x.push("miterLimit",o.miterLimit),(q.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(x.push("setLineDash",[o.lineDash]),x.push("lineDashOffset",o.lineDashOffset))),n&&x.push("fillStyle",a.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");for(var S,A=.5-d,T=d*w+A*f,O=[],P=[],R=0,M=0,D=0,I=0,L=0,j=p.length;L<j;L+=2){var F=p[L];if("\n"!==F){var B=p[L+1]||s.font;B!==S&&(r&&O.push("font",B),n&&P.push("font",B),S=B),R=Math.max(R,y[D]);var U=[F,T+A*v[D]+d*(v[D]-b[I]),.5*(f+R)+M];T+=v[D],r&&O.push("strokeText",U),n&&P.push("fillText",U),++D}else M+=R,R=0,T=d*w+A*f,++I}return Array.prototype.push.apply(x,O),Array.prototype.push.apply(x,P),this.labels_[i]=C,C},e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m){var g,v=n-(a*=d[0]),y=r-(s*=d[1]),b=i+l>e?e-l:i,_=o+u>t?t-u:o,x=p[3]+b*d[0]+p[1],E=p[0]+_*d[1]+p[2],k=v-p[3],C=y-p[0];return(h||0!==c)&&(Z[0]=k,Q[0]=k,Z[1]=C,Y[1]=C,Y[0]=k+x,X[0]=Y[0],X[1]=C+E,Q[1]=X[1]),0!==c?(g=(0,W.qC)((0,W.Ue)(),n,r,1,1,c,-n,-r),(0,W.nn)(g,Z),(0,W.nn)(g,Y),(0,W.nn)(g,X),(0,W.nn)(g,Q),(0,w.T9)(Math.min(Z[0],Y[0],X[0],Q[0]),Math.min(Z[1],Y[1],X[1],Q[1]),Math.max(Z[0],Y[0],X[0],Q[0]),Math.max(Z[1],Y[1],X[1],Q[1]),K)):(0,w.T9)(Math.min(k,k+x),Math.min(C,C+E),Math.max(k,k+x),Math.max(C,C+E),K),f&&(v=Math.round(v),y=Math.round(y)),{drawImageX:v,drawImageY:y,drawImageW:b,drawImageH:_,originX:l,originY:u,declutterBox:{minX:K[0],minY:K[1],maxX:K[2],maxY:K[3],value:m},canvasTransform:g,scale:d}},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a){var s=!(!o&&!a),l=r.declutterBox,u=e.canvas,c=a?a[2]*r.scale[0]/2:0;return l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0&&(s&&this.replayTextBackground_(e,Z,Y,X,Q,o,a),(0,_._f)(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=(0,W.nn)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var i=this.textStates[t],o=this.createLabel(e,t,r,n),a=this.strokeStates[n],s=this.pixelRatio,l=te(Array.isArray(e)?e[0]:e,i.textAlign||_.PH),u=N[i.textBaseline||_.ru],c=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*i.scale[0])+2*(.5-l)*c,anchorY:u*o.height/s+2*(.5-u)*c}},e.prototype.execute_=function(e,t,n,r,i,o,a,s){var l;this.pixelCoordinates_&&(0,x.fS)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=(0,H.vT)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,W.lk)(this.renderedTransform_,n));for(var u,c,d,f,p,h,m,v,y,b,E,k,C,S,A,T,O=0,P=r.length,R=0,M=0,D=0,I=null,L=null,j=this.coordinateCache_,F=this.viewRotation_,B=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,U={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:F},z=this.instructions!=r||this.overlaps?0:200;O<P;){var q=r[O];switch(q[0]){case g.BEGIN_GEOMETRY:C=q[1],T=q[3],C.getGeometry()?void 0===a||(0,w.kK)(a,T.getExtent())?++O:O=q[2]+1:O=q[2];break;case g.BEGIN_PATH:M>z&&(this.fill_(e),M=0),D>z&&(e.stroke(),D=0),M||D||(e.beginPath(),f=NaN,p=NaN),++O;break;case g.CIRCLE:var $=l[R=q[1]],K=l[R+1],Z=l[R+2]-$,Y=l[R+3]-K,X=Math.sqrt(Z*Z+Y*Y);e.moveTo($+X,K),e.arc($,K,X,0,2*Math.PI,!0),++O;break;case g.CLOSE_PATH:e.closePath(),++O;break;case g.CUSTOM:R=q[1],u=q[2];var Q=q[3],ee=q[4],te=6==q.length?q[5]:void 0;U.geometry=Q,U.feature=C,O in j||(j[O]=[]);var ne=j[O];te?te(l,R,u,2,ne):(ne[0]=l[R],ne[1]=l[R+1],ne.length=2),ee(ne,U),++O;break;case g.DRAW_IMAGE:R=q[1],u=q[2],v=q[3],c=q[4],d=q[5];var re=q[6],ie=q[7],oe=q[8],ae=q[9],se=q[10],le=q[11],ue=q[12],ce=q[13],de=q[14],fe=q[15];if(!v&&q.length>=20){y=q[19],b=q[20],E=q[21],k=q[22];var pe=this.drawLabelWithPointPlacement_(y,b,E,k);v=pe.label,q[3]=v;var he=q[23];c=(pe.anchorX-he)*this.pixelRatio,q[4]=c;var me=q[24];d=(pe.anchorY-me)*this.pixelRatio,q[5]=d,re=v.height,q[6]=re,ce=v.width,q[13]=ce}var ge=void 0;q.length>25&&(ge=q[25]);var ve=void 0,ye=void 0,be=void 0;q.length>17?(ve=q[16],ye=q[17],be=q[18]):(ve=_.oB,ye=!1,be=!1),se&&B?le+=F:se||B||(le-=F);for(var we=0;R<u;R+=2)if(!(ge&&ge[we++]<ce/this.pixelRatio)){var _e=[e,t,v,Ke=this.calculateImageOrLabelDimensions_(v.width,v.height,l[R],l[R+1],ce,re,c,d,oe,ae,le,ue,i,ve,ye||be,C),ie,ye?I:null,be?L:null];if(s){if("none"===de)continue;if("obstacle"===de){s.insert(Ke.declutterBox);continue}var xe=void 0,Ee=void 0;if(fe){var ke=u-R;if(!fe[ke]){fe[ke]=_e;continue}if(xe=fe[ke],delete fe[ke],Ee=J(xe),s.collides(Ee))continue}if(s.collides(Ke.declutterBox))continue;xe&&(s.insert(Ee),this.replayImageOrLabel_.apply(this,xe)),s.insert(Ke.declutterBox)}this.replayImageOrLabel_.apply(this,_e)}++O;break;case g.DRAW_CHARS:var Ce=q[1],Se=q[2],Ae=q[3],Te=q[4];k=q[5];var Oe=q[6],Pe=q[7],Re=q[8];E=q[9];var Me=q[10];y=q[11],b=q[12];var De=[q[13],q[13]],Ie=this.textStates[b],Le=Ie.font,je=[Ie.scale[0]*Pe,Ie.scale[1]*Pe],Ne=void 0;Le in this.widths_?Ne=this.widths_[Le]:(Ne={},this.widths_[Le]=Ne);var Fe=(0,V.W)(l,Ce,Se,2),Be=Math.abs(je[0])*(0,_.Kd)(Le,y,Ne);if(Te||Be<=Fe){var Ue=this.textStates[b].textAlign,ze=G(l,Ce,Se,2,y,(Fe-Be)*N[Ue],Oe,Math.abs(je[0]),_.Kd,Le,Ne,B?0:this.viewRotation_);e:if(ze){var qe=[],We=void 0,$e=void 0,He=void 0,Ge=void 0,Ve=void 0;if(E)for(We=0,$e=ze.length;We<$e;++We){He=(Ve=ze[We])[4],Ge=this.createLabel(He,b,"",E),c=Ve[2]+(je[0]<0?-Me:Me),d=Ae*Ge.height+2*(.5-Ae)*Me*je[1]/je[0]-Re;var Ke=this.calculateImageOrLabelDimensions_(Ge.width,Ge.height,Ve[0],Ve[1],Ge.width,Ge.height,c,d,0,0,Ve[3],De,!1,_.oB,!1,C);if(s&&s.collides(Ke.declutterBox))break e;qe.push([e,t,Ge,Ke,1,null,null])}if(k)for(We=0,$e=ze.length;We<$e;++We){if(He=(Ve=ze[We])[4],Ge=this.createLabel(He,b,k,""),c=Ve[2],d=Ae*Ge.height-Re,Ke=this.calculateImageOrLabelDimensions_(Ge.width,Ge.height,Ve[0],Ve[1],Ge.width,Ge.height,c,d,0,0,Ve[3],De,!1,_.oB,!1,C),s&&s.collides(Ke.declutterBox))break e;qe.push([e,t,Ge,Ke,1,null,null])}s&&s.load(qe.map(J));for(var Ze=0,Ye=qe.length;Ze<Ye;++Ze)this.replayImageOrLabel_.apply(this,qe[Ze])}}++O;break;case g.END_GEOMETRY:if(void 0!==o){var Xe=o(C=q[1],T);if(Xe)return Xe}++O;break;case g.FILL:z?M++:this.fill_(e),++O;break;case g.MOVE_TO_LINE_TO:for(R=q[1],u=q[2],S=l[R],m=(A=l[R+1])+.5|0,(h=S+.5|0)===f&&m===p||(e.moveTo(S,A),f=h,p=m),R+=2;R<u;R+=2)h=(S=l[R])+.5|0,m=(A=l[R+1])+.5|0,R!=u-2&&h===f&&m===p||(e.lineTo(S,A),f=h,p=m);++O;break;case g.SET_FILL_STYLE:I=q,this.alignFill_=q[2],M&&(this.fill_(e),M=0,D&&(e.stroke(),D=0)),e.fillStyle=q[1],++O;break;case g.SET_STROKE_STYLE:L=q,D&&(e.stroke(),D=0),this.setStrokeStyle_(e,q),++O;break;case g.STROKE:z?D++:e.stroke(),++O;break;default:++O}}M&&this.fill_(e),D&&e.stroke()},e.prototype.execute=function(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}();const ie=re;var oe=n(64355),ae=["Polygon","Circle","LineString","Image","Text","Default"],se=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,W.Ue)(),this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t];for(var i in r){var o=r[i];n[i]=new ie(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){var a=2*(r=Math.round(r))+1,s=(0,W.qC)(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,oe.E4)(a,a));var u,c=this.hitDetectionContext_;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):l||c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(u=(0,w.lJ)(),(0,w.Wj)(u,e),(0,w.f3)(u,t*(this.renderBuffer_+r),u));var d,f=function(e){if(void 0!==le[e])return le[e];for(var t=2*e+1,n=e*e,r=new Array(n+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var l=[],u=(i=0,r.length);i<u;++i)r[i]&&l.push.apply(l,r[i]);return le[e]=l,l}(r);function p(e,t){for(var n=c.getImageData(0,0,a,a).data,s=0,l=f.length;s<l;s++)if(n[f[s]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(e)){var u=(f[s]-3)/4,p=r-u%a,h=r-(u/a|0),m=i(e,t,p*p+h*h);if(m)return m}c.clearRect(0,0,a,a);break}}var h,m,g,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(x.kK),h=b.length-1;h>=0;--h){var _=b[h].toString();for(g=this.executorsByZIndex_[_],m=ae.length-1;m>=0;--m)if(void 0!==(v=g[d=ae[m]])&&(y=v.executeHitDetection(c,s,n,p,u)))return y}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return(0,H.vT)(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return(0,a.xb)(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(x.kK),this.maxExtent_&&(e.save(),this.clip(e,n));var l,u,c,d,f,p,h=o||ae;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var m=s[l].toString();for(f=this.executorsByZIndex_[m],c=0,d=h.length;c<d;++c)void 0!==(p=f[h[c]])&&p.execute(e,t,n,r,i,a)}this.maxExtent_&&e.restore()},e}(),le={};const ue=se;var ce=n(89681),de=n(50335),fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const pe=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=r,l.transform_=i,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=(0,W.Ue)(),l}return fe(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=(0,H.vT)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=i.length;u<c;u+=2){var d=i[u]-this.imageAnchorX_,f=i[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var p=d+this.imageAnchorX_,h=f+this.imageAnchorY_;(0,W.qC)(a,p,h,1,1,l,-p,-h),o.setTransform.apply(o,a),o.translate(p,h),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=(0,H.vT)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var u=(0,W.qC)(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,u),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=(0,H.vT)(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if((0,w.kK)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=(0,de.Kr)(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&(0,w.kK)(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,w.kK)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if((0,w.kK)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var u=e.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,w.kK)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,w.kK)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var u=e.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&((0,x.fS)(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:_.PH;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){var n=this;if(e){var r=e.getColor();this.fillState_={fillStyle:(0,b.y)(r||_.bL)}}else this.fillState_=null;if(t){var i=t.getColor(),o=t.getLineCap(),a=t.getLineDash(),s=t.getLineDashOffset(),l=t.getLineJoin(),u=t.getWidth(),c=t.getMiterLimit(),d=a||_.X9;this.strokeState_={lineCap:void 0!==o?o:_.mb,lineDash:1===this.pixelRatio_?d:d.map((function(e){return e*n.pixelRatio_})),lineDashOffset:(s||_.He)*this.pixelRatio_,lineJoin:void 0!==l?l:_.rc,lineWidth:(void 0!==u?u:_.yC)*this.pixelRatio_,miterLimit:void 0!==c?c:_.V4,strokeStyle:(0,b.y)(i||_.Tx)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){var t;if(e&&(t=e.getSize())){var n=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=t[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=t[0]*this.pixelRatio_}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:(0,b.y)(n||_.bL)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),u=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:_.mb,lineDash:a||_.X9,lineDashOffset:s||_.He,lineJoin:void 0!==l?l:_.rc,lineWidth:void 0!==u?u:_.yC,miterLimit:void 0!==c?c:_.V4,strokeStyle:(0,b.y)(i||_.Tx)}}else this.textStrokeState_=null;var d=e.getFont(),f=e.getOffsetX(),p=e.getOffsetY(),h=e.getRotateWithView(),m=e.getRotation(),g=e.getScaleArray(),v=e.getText(),y=e.getTextAlign(),w=e.getTextBaseline();this.textState_={font:void 0!==d?d:_.Df,textAlign:void 0!==y?y:_.PH,textBaseline:void 0!==w?w:_.ru},this.text_=void 0!==v?Array.isArray(v)?v.reduce((function(e,t,n){return e+(n%2?" ":t)}),""):v:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==p?this.pixelRatio_*p:0,this.textRotateWithView_=void 0!==h&&h,this.textRotation_=void 0!==m?m:0,this.textScale_=[this.pixelRatio_*g[0],this.pixelRatio_*g[1]]}else this.text_=""},t}(y),he="fraction",me="pixels";var ge=n(23992);const ve="bottom-left",ye="bottom-right",be="top-left",we="top-right";var _e=n(20800),xe=n(80370),Ee=n(36759),ke=n(75759),Ce=n(4320),Se=n(81861),Ae=n(31610),Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oe=null,Pe=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return Te(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===_e.Z.LOADED){Oe||(Oe=(0,oe.E4)(1,1)),Oe.drawImage(this.image_,0,0);try{Oe.getImageData(0,0,1,1),this.tainted_=!1}catch(e){Oe=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(ge.Z.CHANGE)},t.prototype.handleImageError_=function(){this.imageState_=_e.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=_e.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=(0,oe.E4)(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==_e.Z.IDLE){this.imageState_=_e.Z.LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=(0,Ae.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]&&this.imageState_===_e.Z.LOADED){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=(0,Ee.XC)(this.color_),n.fillRect(0,0,t.width/e,t.height/e),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,t.width,t.height),i=r.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,l=this.color_[3],u=0,c=i.length;u<c;u+=4)i[u]*=o,i[u+1]*=a,i[u+2]*=s,i[u+3]*=l;n.putImageData(r,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(Ce.Z),Re=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.opacity?r.opacity:1,o=void 0!==r.rotation?r.rotation:0,a=void 0!==r.scale?r.scale:1,s=void 0!==r.rotateWithView&&r.rotateWithView;(n=e.call(this,{opacity:i,rotation:o,scale:a,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:s,declutterMode:r.declutterMode})||this).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:be,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:he,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:he,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var l=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var u=r.src;(0,ke.h)(!(void 0!==u&&l),4),(0,ke.h)(!l||l&&n.imgSize_,5),void 0!==u&&0!==u.length||!l||(u=l.src||(0,I.sq)(l)),(0,ke.h)(void 0!==u&&u.length>0,6);var c=void 0!==r.src?_e.Z.IDLE:_e.Z.LOADED;return n.color_=void 0!==r.color?(0,Ee._2)(r.color):null,n.iconImage_=function(e,t,n,r,i,o){var a=Se.c.get(t,r,o);return a||(a=new Pe(e,t,n,r,i,o),Se.c.set(t,r,o,a)),a}(l,u,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:be,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return Re(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(e)?e.slice():e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getAnchor=function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var t=this.getSize();if(this.anchorXUnits_==he||this.anchorYUnits_==he){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==he&&(e[0]*=t[0]),this.anchorYUnits_==he&&(e[1]*=t[1])}if(this.anchorOrigin_!=be){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=we&&this.anchorOrigin_!=ye||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=ve&&this.anchorOrigin_!=ye||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}var n=this.getDisplacement();return[e[0]-n[0],e[1]+n[1]]},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=be){var t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),this.offsetOrigin_!=we&&this.offsetOrigin_!=ye||(e[0]=n[0]-t[0]-e[0]),this.offsetOrigin_!=ve&&this.offsetOrigin_!=ye||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(ge.Z.CHANGE,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(ge.Z.CHANGE,e)},t}(xe.Z);const De=Me;var Ie=.5,Le={Point:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(a){if(a.getImageState()!=_e.Z.LOADED)return;var l=e;if(i){var u=a.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){var c=e.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,o),c.drawPoint(t,r)}else s&&s.getText()&&(o={})}var d=l.getBuilder(n.getZIndex(),"Image");d.setImageStyle(a,o),d.drawPoint(t,r)}if(s&&s.getText()){var f=e;i&&(f=i);var p=f.getBuilder(n.getZIndex(),"Text");p.setTextStyle(s,o),p.drawText(t,r)}},LineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},Polygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}},MultiPoint:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(a){if(a.getImageState()!=_e.Z.LOADED)return;var l=e;if(i){var u=a.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){var c=e.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,o),c.drawMultiPoint(t,r)}else s&&s.getText()&&(o={})}var d=l.getBuilder(n.getZIndex(),"Image");d.setImageStyle(a,o),d.drawMultiPoint(t,r)}if(s&&s.getText()){var f=e;i&&(f=i);var p=f.getBuilder(n.getZIndex(),"Text");p.setTextStyle(s,o),p.drawText(t,r)}},MultiLineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){var o,a,s=t.getGeometriesArray();for(o=0,a=s.length;o<a;++o)(0,Le[s[o].getType()])(e,s[o],n,r,i)},Circle:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}}};function je(e,t){return parseInt((0,I.sq)(e),10)-parseInt((0,I.sq)(t),10)}function Ne(e,t){return.5*e/t}function Fe(e,t,n,r,i,o,a){var s=!1,l=n.getImage();if(l){var u=l.getImageState();u==_e.Z.LOADED||u==_e.Z.ERROR?l.unlistenImageChange(i):(u==_e.Z.IDLE&&l.load(),l.listenImageChange(i),s=!0)}return function(e,t,n,r,i,o){var a=n.getGeometryFunction()(t);if(a){var s=a.simplifyTransformed(r,i);n.getRenderer()?Be(e,s,n,t):(0,Le[s.getType()])(e,s,n,t,o)}}(e,t,n,r,o,a),s}function Be(e,t,n,r){if("GeometryCollection"!=t.getType())e.getBuilder(n.getZIndex(),"Default").drawCustom(t,r,n.getRenderer(),n.getHitDetectionRenderer());else for(var i=t.getGeometries(),o=0,a=i.length;o<a;++o)Be(e,i[o],n,r)}var Ue=n(93027),ze=n(39853),qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=(0,w.lJ)(),n.wrappedRenderedExtent_=(0,w.lJ)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return qe(t,e),t.prototype.renderWorlds=function(e,t,n){var r=t.extent,i=t.viewState,o=i.center,a=i.resolution,s=i.projection,l=i.rotation,u=s.getExtent(),c=this.getLayer().getSource(),d=t.pixelRatio,f=t.viewHints,p=!(f[ce.Z.ANIMATING]||f[ce.Z.INTERACTING]),h=this.compositionContext_,m=Math.round(t.size[0]*d),g=Math.round(t.size[1]*d),v=c.getWrapX()&&s.canWrapX(),y=v?(0,w.dz)(u):null,b=v?Math.ceil((r[2]-u[2])/y)+1:1,_=v?Math.floor((r[0]-u[0])/y):0;do{var x=this.getRenderTransform(o,a,l,d,m,g,_*y);e.execute(h,1,x,l,p,void 0,n)}while(++_<b)},t.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var e=(0,oe.E4)(this.context.canvas.width,this.context.canvas.height,z.r);this.compositionContext_=e}else this.compositionContext_=this.context},t.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var e=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=e,(0,oe.jy)(this.compositionContext_),z.r.push(this.compositionContext_.canvas),this.compositionContext_=null}},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree),this.releaseCompositionContext_())},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];(0,W.n3)(this.pixelTransform,1/n,1/n),(0,W.nb)(this.inversePixelTransform,this.pixelTransform);var i=(0,W.BB)(this.pixelTransform);this.useContainer(t,i,this.getBackground(e));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(e.size[0]*n),c=Math.round(e.size[1]*n);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,e);var d=e.viewState,f=d.projection;this.opacity_=r.opacity,this.setupCompositionContext_();var p=!1,h=!0;if(r.extent&&this.clipping){var m=(0,Ue.dY)(r.extent,f);(p=(h=(0,w.kK)(m,e.extent))&&!(0,w.r4)(m,e.extent))&&this.clipUnrotated(this.compositionContext_,e,m)}return h&&this.renderWorlds(s,e),p&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,e),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];(0,W.nn)(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),u=[],c=n[0]*Ie,d=n[1]*Ie;u.push(this.getRenderTransform(r,i,o,Ie,c,d,0).slice());var f=l.getSource(),p=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!(0,w.r4)(p,s)){for(var h=s[0],m=(0,w.dz)(p),g=0,v=void 0;h<p[0];)v=m*--g,u.push(this.getRenderTransform(r,i,o,Ie,c,d,v).slice()),h+=m;for(g=0,h=s[2];h>p[2];)v=m*++g,u.push(this.getRenderTransform(r,i,o,Ie,c,d,v).slice()),h-=m}this.hitDetectionImageData_=function(e,t,n,r,i,o,a){var s=e[0]*Ie,l=e[1]*Ie,u=(0,oe.E4)(s,l);u.imageSmoothingEnabled=!1;for(var c=u.canvas,d=new pe(u,Ie,i,null,a),f=n.length,p=Math.floor(16777215/f),h={},m=1;m<=f;++m){var g=n[m-1],v=g.getStyleFunction()||r;if(r){var y=v(g,o);if(y){Array.isArray(y)||(y=[y]);for(var b="#"+("000000"+(m*p).toString(16)).slice(-6),_=0,E=y.length;_<E;++_){var k=y[_],C=k.getGeometryFunction()(g);if(C&&(0,w.kK)(i,C.getExtent())){var S=k.clone(),A=S.getFill();A&&A.setColor(b);var T=S.getStroke();T&&(T.setColor(b),T.setLineDash(null)),S.setText(void 0);var O=k.getImage();if(O&&0!==O.getOpacity()){var P=O.getImageSize();if(!P)continue;var R=(0,oe.E4)(P[0],P[1],void 0,{alpha:!1}),M=R.canvas;R.fillStyle=b,R.fillRect(0,0,M.width,M.height),S.setImage(new De({img:M,imgSize:P,anchor:O.getAnchor(),anchorXUnits:me,anchorYUnits:me,offset:O.getOrigin(),opacity:1,size:O.getSize(),scale:O.getScale(),rotation:O.getRotation(),rotateWithView:O.getRotateWithView()}))}var D=S.getZIndex()||0;(j=h[D])||(j={},h[D]=j,j.Polygon=[],j.Circle=[],j.LineString=[],j.Point=[]),j[C.getType().replace("Multi","")].push(C,S)}}}}}for(var I=Object.keys(h).map(Number).sort(x.kK),L=(m=0,I.length);m<L;++m){var j=h[I[m]];for(var N in j){var F=j[N];for(_=0,E=F.length;_<E;_+=2){d.setStyle(F[_+1]);for(var B=0,U=t.length;B<U;++B)d.setTransform(t[B]),d.drawGeometry(F[_])}}}return u.getImageData(0,0,c.width,c.height)}(n,u,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}t(function(e,t,n){var r=[];if(n){var i=Math.floor(Math.round(e[0])*Ie),o=Math.floor(Math.round(e[1])*Ie),a=4*((0,$.uZ)(i,0,n.width-1)+(0,$.uZ)(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],u=n.data[a+2]+256*(l+256*s),c=Math.floor(16777215/t.length);u&&u%c==0&&r.push(t[u/c-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,l=t.viewState.rotation,u=this.getLayer(),c={},d=function(e,t,n){var o=(0,I.sq)(e),a=c[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return c[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,u,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return c[o]=!0,r(e,u,t);i.push(c[o]={feature:e,layer:u,geometry:t,distanceSq:n,callback:r})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(r){return a=r.forEachFeatureAtCoordinate(e,s,l,n,d,r===o.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((function(e){return e.value})):null)})),a}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[ce.Z.ANIMATING],i=e.viewHints[ce.Z.INTERACTING],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=e.extent,l=e.viewState,u=l.projection,c=l.resolution,d=e.pixelRatio,f=t.getRevision(),p=t.getRenderBuffer(),h=t.getRenderOrder();void 0===h&&(h=je);var m=l.center.slice(),g=(0,w.f3)(s,p*c),v=g.slice(),y=[g.slice()],b=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!(0,w.r4)(b,e.extent)){var _=(0,w.dz)(b),E=Math.max((0,w.dz)(g)/2,_);g[0]=b[0]-E,g[2]=b[2]+E,(0,ze.Cf)(m,u);var k=(0,w.Cf)(y[0],u);k[0]<b[0]&&k[2]<b[2]?y.push([k[0]+_,k[1],k[2]+_,k[3]]):k[0]>b[0]&&k[2]>b[2]&&y.push([k[0]-_,k[1],k[2]-_,k[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==h&&(0,w.r4)(this.wrappedRenderedExtent_,g))return(0,x.fS)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var C,S=new U(Ne(c,d),g,c,d);this.getLayer().getDeclutter()&&(C=new U(Ne(c,d),g,c,d));var A,T=(0,Ue.Cs)();if(T){for(var O=0,P=y.length;O<P;++O){var R=y[O],M=(0,Ue.Fj)(R,u);n.loadFeatures(M,(0,Ue.on)(c,u),T)}A=(0,Ue.WO)(T,u)}else for(O=0,P=y.length;O<P;++O)n.loadFeatures(y[O],c,u);var D=function(e,t){var n=Ne(e,t);return n*n}(c,d),I=!0,L=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,c)),n){var i=this.renderFeature(e,D,n,S,A,C);I=I&&!i}}.bind(this),j=(0,Ue.Fj)(g,u),N=n.getFeaturesInExtent(j);for(h&&N.sort(h),O=0,P=N.length;O<P;++O)L(N[O]);this.renderedFeatures_=N,this.ready=I;var F=S.finish(),B=new ue(g,c,d,n.getOverlaps(),F,t.getRenderBuffer());return C&&(this.declutterExecutorGroup=new ue(g,c,d,n.getOverlaps(),C.finish(),t.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=f,this.renderedRenderOrder_=h,this.renderedExtent_=v,this.wrappedRenderedExtent_=g,this.renderedCenter_=m,this.renderedProjection_=u,this.replayGroup_=B,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=Fe(r,e,n[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=Fe(r,e,n,t,this.boundHandleStyleImageChange_,i,o);return a},t}(z.Z);const $e=We;var He=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ge=function(e){function t(t){return e.call(this,t)||this}return He(t,e),t.prototype.createRenderer=function(){return new $e(this)},t}(c)},15586:(e,t,n)=>{"use strict";function r(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,{$W:()=>c,GW:()=>p,SV:()=>l,Yr:()=>u,bI:()=>s,f9:()=>i,k3:()=>o,mD:()=>h,rU:()=>a,t7:()=>d,uZ:()=>r});var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},o="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E};function a(e,t,n,r,i,o){var a=i-n,l=o-r;if(0!==a||0!==l){var u=((e-n)*a+(t-r)*l)/(a*a+l*l);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=l*u)}return s(e,t,n,r)}function s(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function l(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var u=-e[l][n]/e[n][n],c=n;c<t+1;c++)n==c?e[l][c]=0:e[l][c]+=u*e[n][c]}for(var d=new Array(t),f=t-1;f>=0;f--){d[f]=e[f][t]/e[f][f];for(var p=f-1;p>=0;p--)e[p][t]-=e[p][f]*d[f]}return d}function u(e){return e*Math.PI/180}function c(e,t){var n=e%t;return n*t<0?n+t:n}function d(e,t,n){return e+n*(t-e)}function f(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function p(e,t){return Math.floor(f(e,t))}function h(e,t){return Math.ceil(f(e,t))}},2765:(e,t,n)=>{"use strict";n.d(t,{KX:()=>o,ZH:()=>i,f0:()=>r,xb:()=>a});var r="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function i(e){for(var t in e)delete e[t]}var o="function"==typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function a(e){var t;for(t in e)return!1;return!t}},93027:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>r.Wm,UQ:()=>L,h_:()=>T,OP:()=>j,Vs:()=>V,dY:()=>Z,U2:()=>M,_Q:()=>D,Ck:()=>F,WO:()=>N,Cs:()=>H,lO:()=>G,Fj:()=>K,on:()=>Y,vs:()=>B});var r=n(69843);const i=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.Wm[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();var o,a=n(15586),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=6378137,u=Math.PI*l,c=[-u,-u,u,u],d=[-180,-85,180,85],f=l*Math.log(Math.tan(Math.PI/2)),p=function(e){function t(t){return e.call(this,{code:t,units:r.ZP.METERS,extent:c,global:!0,worldExtent:d,getPointResolution:function(e,t){return e/(0,a.f9)(t[1]/l)}})||this}return s(t,e),t}(i),h=[new p("EPSG:3857"),new p("EPSG:102100"),new p("EPSG:102113"),new p("EPSG:900913"),new p("http://www.opengis.net/def/crs/EPSG/0/3857"),new p("http://www.opengis.net/gml/srs/epsg.xml#3857")];var m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=[-180,-90,180,90],v=6378137*Math.PI/180,y=function(e){function t(t,n){return e.call(this,{code:t,units:r.ZP.DEGREES,extent:g,axisOrientation:n,global:!0,metersPerUnit:v,worldExtent:g})||this}return m(t,e),t}(i),b=[new y("CRS:84"),new y("EPSG:4326","neu"),new y("urn:ogc:def:crs:OGC:1.3:CRS84"),new y("urn:ogc:def:crs:OGC:2:84"),new y("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new y("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new y("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={},_={};function x(e,t,n){var r=e.getCode(),i=t.getCode();r in _||(_[r]={}),_[r][i]=n}var E=n(94628),k=n(39853),C=6371008.8;function S(e,t,n){var r=n||C,i=(0,a.Yr)(e[1]),o=(0,a.Yr)(t[1]),s=(o-i)/2,l=(0,a.Yr)(t[0]-e[0])/2,u=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(i)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}var A=!0;function T(e){A=!(void 0===e||e)}function O(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function P(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function R(e){!function(e,t){w[e]=t}(e.getCode(),e),x(e,e,O)}function M(e){return"string"==typeof e?w[t=e]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function D(e,t,n,i){var o,a=(e=M(e)).getPointResolutionFunc();if(a)o=a(t,n),i&&i!==e.getUnits()&&(l=e.getMetersPerUnit())&&(o=o*l/r.Wm[i]);else{var s=e.getUnits();if(s==r.ZP.DEGREES&&!i||i==r.ZP.DEGREES)o=t;else{var l,u=N(e,M("EPSG:4326"));if(u===P&&s!==r.ZP.DEGREES)o=t*e.getMetersPerUnit();else{var c=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];o=(S((c=u(c,c,2)).slice(0,2),c.slice(2,4))+S(c.slice(4,6),c.slice(6,8)))/2}void 0!==(l=i?r.Wm[i]:e.getMetersPerUnit())&&(o/=l)}}return o}function I(e){!function(e){e.forEach(R)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&x(t,e,O)}))}))}function L(e,t){return e?"string"==typeof e?M(e):e:M(t)}function j(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||N(e,t)===O)&&n}function N(e,t){var n=function(e,t){var n;return e in _&&t in _[e]&&(n=_[e][t]),n}(e.getCode(),t.getCode());return n||(n=P),n}function F(e,t){return N(M(e),M(t))}function B(e,t,n){return F(t,n)(e,void 0,e.length)}function U(e,t,n,r){var i=F(t,n);return(0,E.Ne)(e,i,void 0,r)}var z,q,W,$=null;function H(){return $}function G(e,t){return $?B(e,t,$):e}function V(e,t){return $?B(e,$,t):(A&&!(0,k.fS)(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(A=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e)}function K(e,t){return $?U(e,t,$):e}function Z(e,t){return $?U(e,$,t):e}function Y(e,t){if(!$)return e;var n=M(t).getUnits(),i=$.getUnits();return n&&i?e*r.Wm[n]/r.Wm[i]:e}I(h),I(b),z=h,q=function(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=u*e[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>f?s=f:s<-f&&(s=-f),o[a+1]=s}return o},W=function(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/u,o[a+1]=360*Math.atan(Math.exp(e[a+1]/l))/Math.PI-90;return o},b.forEach((function(e){z.forEach((function(t){x(e,t,q),x(t,e,W)}))}))},69843:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>i,ZP:()=>o});var r={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[r.RADIANS]=6370997/(2*Math.PI),i[r.DEGREES]=2*Math.PI*6370997/360,i[r.FEET]=.3048,i[r.METERS]=1,i[r.USFEET]=1200/3937;const o=r},76866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r,i=n(80471),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return o(t,e),t}(i.ZP)},60791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},27002:(e,t,n)=>{"use strict";n.d(t,{Df:()=>u,He:()=>p,Kd:()=>P,PH:()=>v,Qx:()=>S,Tx:()=>g,V4:()=>m,X9:()=>f,Zw:()=>R,_f:()=>M,bL:()=>c,mb:()=>d,oB:()=>b,rc:()=>h,ru:()=>y,sG:()=>_,yC:()=>w});var r=n(27230),i=n(4320),o=n(62403),a=n(2765),s=n(64355),l=n(29855),u="10px sans-serif",c="#000",d="round",f=[],p=0,h="round",m=10,g="#000",v="center",y="middle",b=[0,0,0,0],w=1,_=new r.Z;(new i.Z).setSize=function(){console.warn("labelCache is deprecated.")};var x,E,k=null,C={},S=function(){var e,t,n="32px ",r=["monospace","serif"],i=r.length,o="wmytzilWMYTZIL@#/&?$%10";function s(e,a,s){for(var l=!0,u=0;u<i;++u){var c=r[u];if(t=O(e+" "+a+" "+n+c,o),s!=c){var d=O(e+" "+a+" "+n+s+","+c,o);l=l&&d!=t}}return!!l}function u(){for(var t=!0,n=_.getKeys(),r=0,i=n.length;r<i;++r){var o=n[r];_.get(o)<100&&(s.apply(this,o.split("\n"))?((0,a.ZH)(C),k=null,x=void 0,_.set(o,100)):(_.set(o,_.get(o)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var n=(0,l.p)(t);if(n)for(var r=n.families,i=0,o=r.length;i<o;++i){var a=r[i],c=n.style+"\n"+n.weight+"\n"+a;void 0===_.get(c)&&(_.set(c,100,!0),s(n.style,n.weight,a)||(_.set(c,0,!0),void 0===e&&(e=setInterval(u,32))))}}}(),A=function(e){var t=C[e];if(null==t){if(o.Id){var n=(0,l.p)(e),r=T(e,"Žg");t=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else E||((E=document.createElement("div")).innerHTML="M",E.style.minHeight="0",E.style.maxHeight="none",E.style.height="auto",E.style.padding="0",E.style.border="none",E.style.position="absolute",E.style.display="block",E.style.left="-99999px"),E.style.font=e,document.body.appendChild(E),t=E.offsetHeight,document.body.removeChild(E);C[e]=t}return t};function T(e,t){return k||(k=(0,s.E4)(1,1)),e!=x&&(k.font=e,x=k.font),k.measureText(t)}function O(e,t){return T(e,t).width}function P(e,t,n){if(t in n)return n[t];var r=t.split("\n").reduce((function(t,n){return Math.max(t,O(e,n))}),0);return n[t]=r,r}function R(e,t){for(var n=[],r=[],i=[],o=0,a=0,s=0,l=0,u=0,c=t.length;u<=c;u+=2){var d=t[u];if("\n"!==d&&u!==c){var f=t[u+1]||e.font,p=O(f,d);n.push(p),a+=p;var h=A(f);r.push(h),l=Math.max(l,h)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}function M(e,t,n,r,i,o,a,s,l,u,c){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}(r,e)):c[0]<0||c[1]<0?(e.translate(l,u),e.scale(c[0],c[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,u,a*c[0],s*c[1]),e.restore()}},30635:(e,t,n)=>{"use strict";n.d(t,{r:()=>y,Z:()=>w});var r,i=n(23992),o=n(20800),a=n(26667),s=n(2649),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t){var n=e.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return l(t,e),t.prototype.getFeatures=function(e){return(0,s.O3)()},t.prototype.getData=function(e){return null},t.prototype.prepareFrame=function(e){return(0,s.O3)()},t.prototype.renderFrame=function(e,t){return(0,s.O3)()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return null},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){e.target.getState()===o.Z.LOADED&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return t!=o.Z.LOADED&&t!=o.Z.ERROR&&e.addEventListener(i.Z.CHANGE,this.boundHandleImageChange_),t==o.Z.IDLE&&(e.load(),t=e.getState()),t==o.Z.LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()},t.prototype.disposeInternal=function(){delete this.layer_,e.prototype.disposeInternal.call(this)},t}(a.Z);var c=n(76866),d=n(60791),f=n(17952),p=n(36759),h=n(94628),m=n(64355),g=n(50209),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=[],b=null;const w=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=(0,f.Ue)(),n.pixelTransform=(0,f.Ue)(),n.inversePixelTransform=(0,f.Ue)(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return v(t,e),t.prototype.getImageData=function(e,t,n){var r,i;b||((r=document.createElement("canvas")).width=1,r.height=1,b=r.getContext("2d")),b.clearRect(0,0,1,1);try{b.drawImage(e,t,n,1,1,0,0,1,1),i=b.getImageData(0,0,1,1).data}catch(e){return b=null,null}return i},t.prototype.getBackground=function(e){var t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0},t.prototype.useContainer=function(e,t,n){var r,i,o=this.getLayer().getClassName();if(e&&e.className===o&&(!n||e&&e.style.backgroundColor&&(0,g.fS)((0,p._2)(e.style.backgroundColor),(0,p._2)(n)))&&(s=e.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===t?(this.container=e,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=o;var a=r.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=(0,m.E4)()).canvas;r.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=i}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},t.prototype.clipUnrotated=function(e,t,n){var r=(0,h.rL)(n),i=(0,h.Xv)(n),o=(0,h.w$)(n),a=(0,h.hC)(n);(0,f.nn)(t.coordinateToPixelTransform,r),(0,f.nn)(t.coordinateToPixelTransform,i),(0,f.nn)(t.coordinateToPixelTransform,o),(0,f.nn)(t.coordinateToPixelTransform,a);var s=this.inversePixelTransform;(0,f.nn)(s,r),(0,f.nn)(s,i),(0,f.nn)(s,o),(0,f.nn)(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new c.Z(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.frameState=t,this.dispatchRenderEvent_(d.Z.PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(d.Z.POSTRENDER,e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var s=i/2,l=o/2,u=r/t,c=-u,d=-e[0]+a,p=-e[1];return(0,f.qC)(this.tempTransform,s,l,u,c,-n,d,p)},t.prototype.getDataAtPixel=function(e,t,n){var r=(0,f.nn)(this.inversePixelTransform,e.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=(0,f.nn)(t.pixelToCoordinateTransform,e.slice());if(!(0,h.b8)(o,a))return null}var s,l=Math.round(r[0]),u=Math.round(r[1]),c=this.pixelContext_;if(!c){var d=document.createElement("canvas");d.width=1,d.height=1,c=d.getContext("2d"),this.pixelContext_=c}c.clearRect(0,0,1,1);try{c.drawImage(i.canvas,l,u,1,1,0,0,1,1),s=c.getImageData(0,0,1,1).data}catch(e){return"SecurityError"===e.name?(this.pixelContext_=null,new Uint8Array):s}return 0===s[3]?null:s},t.prototype.disposeInternal=function(){delete this.frameState,e.prototype.disposeInternal.call(this)},t}(u)},9814:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,s:()=>i});var r={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},98150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(58682),i=n(23992),o=n(1813),a=n(46759),s=n(94628),l=n(93027),u=n(15586);const c=function(){function e(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;var a={},c=(0,l.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return a[t]||(a[t]=c(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&(0,s.dz)(r)==(0,s.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,s.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,s.dz)(this.targetProj_.getExtent()):null;var d=(0,s.rL)(n),f=(0,s.Xv)(n),p=(0,s.w$)(n),h=(0,s.hC)(n),m=this.transformInv_(d),g=this.transformInv_(f),v=this.transformInv_(p),y=this.transformInv_(h),b=10+(o?Math.max(0,Math.ceil((0,u.k3)((0,s.bg)(n)/(o*o*256*256)))):0);if(this.addQuad_(d,f,p,h,m,g,v,y,b),this.wrapsXInSource_){var w=1/0;this.triangles_.forEach((function(e,t,n){w=Math.min(w,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-w>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-w>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-w>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-w>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}a={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,r,i,o,a,l,c){var d=(0,s.hI)([i,o,a,l]),f=this.sourceWorldWidth_?(0,s.dz)(d)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,h=this.sourceProj_.canWrapX()&&f>.5&&f<1,m=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=(0,s.hI)([e,t,n,r]);m=(0,s.dz)(g)/this.targetWorldWidth_>.25||m}!h&&this.sourceProj_.isGlobal()&&f&&(m=f>.25||m)}if(!(!m&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3]))||(0,s.kK)(d,this.maxSourceExtent_)){var v=0;if(!(m||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])))if(c>0)m=!0;else if(1!=(v=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(c>0){if(!m){var y=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(y),w=void 0;w=h?((0,u.$W)(i[0],p)+(0,u.$W)(a[0],p))/2-(0,u.$W)(b[0],p):(i[0]+a[0])/2-b[0];var _=(i[1]+a[1])/2-b[1];m=w*w+_*_>this.errorThresholdSquared_}if(m){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var x=[(t[0]+n[0])/2,(t[1]+n[1])/2],E=this.transformInv_(x),k=[(r[0]+e[0])/2,(r[1]+e[1])/2],C=this.transformInv_(k);this.addQuad_(e,t,x,k,i,o,E,C,c-1),this.addQuad_(k,x,n,r,C,E,a,l,c-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],A=this.transformInv_(S),T=[(n[0]+r[0])/2,(n[1]+r[1])/2],O=this.transformInv_(T);this.addQuad_(e,S,T,r,i,A,O,l,c-1),this.addQuad_(S,t,n,T,A,o,a,O,c-1)}return}}if(h){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(e,n,r,i,a,l),0==(14&v)&&this.addTriangle_(e,n,t,i,a,o),v&&(0==(13&v)&&this.addTriangle_(t,r,e,o,l,i),0==(7&v)&&this.addTriangle_(t,r,n,o,l,a))}},e.prototype.calculateSourceExtent=function(){var e=(0,s.lJ)();return this.triangles_.forEach((function(t,n,r){var i=t.source;(0,s.Wj)(e,i[0]),(0,s.Wj)(e,i[1]),(0,s.Wj)(e,i[2])})),e},e.prototype.getTriangles=function(){return this.triangles_},e}();var d,f=n(9814),p=n(2765),h=n(64355),m=[];function g(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function v(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function y(e,t,n,r){var i=(0,l.vs)(n,t,e),o=(0,l._Q)(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var u=e.getMetersPerUnit();void 0!==u&&(o/=u);var c=e.getExtent();if(!c||(0,s.b8)(c,i)){var d=(0,l._Q)(e,o,i)/o;isFinite(d)&&d>0&&(o/=d)}return o}var b,w=n(53576),_=(b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const x=function(e){function t(t,n,i,o,l,d,f,p,h,m,g,v){var b=e.call(this,l,a.Z.IDLE,{interpolate:!!v})||this;b.renderEdges_=void 0!==g&&g,b.pixelRatio_=f,b.gutter_=p,b.canvas_=null,b.sourceTileGrid_=n,b.targetTileGrid_=o,b.wrappedTileCoord_=d||l,b.sourceTiles_=[],b.sourcesListenerKeys_=null,b.sourceZ_=0;var w=o.getTileCoordExtent(b.wrappedTileCoord_),_=b.targetTileGrid_.getExtent(),x=b.sourceTileGrid_.getExtent(),E=_?(0,s.Ed)(w,_):w;if(0===(0,s.bg)(E))return b.state=a.Z.EMPTY,b;var k=t.getExtent();k&&(x=x?(0,s.Ed)(x,k):k);var C=o.getResolution(b.wrappedTileCoord_[0]),S=function(e,t,n,r){var i=(0,s.qg)(n),o=y(e,t,i,r);return(!isFinite(o)||o<=0)&&(0,s.H6)(n,(function(n){return o=y(e,t,n,r),isFinite(o)&&o>0})),o}(t,i,E,C);if(!isFinite(S)||S<=0)return b.state=a.Z.EMPTY,b;var A=void 0!==m?m:r.m;if(b.triangulation_=new c(t,i,E,x,S*A,C),0===b.triangulation_.getTriangles().length)return b.state=a.Z.EMPTY,b;b.sourceZ_=n.getZForResolution(S);var T=b.triangulation_.calculateSourceExtent();if(x&&(t.canWrapX()?(T[1]=(0,u.uZ)(T[1],x[1],x[3]),T[3]=(0,u.uZ)(T[3],x[1],x[3])):T=(0,s.Ed)(T,x)),(0,s.bg)(T)){for(var O=n.getTileRangeForExtentAndZ(T,b.sourceZ_),P=O.minX;P<=O.maxX;P++)for(var R=O.minY;R<=O.maxY;R++){var M=h(b.sourceZ_,P,R,f);M&&b.sourceTiles_.push(M)}0===b.sourceTiles_.length&&(b.state=a.Z.EMPTY)}else b.state=a.Z.EMPTY;return b}return _(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==a.Z.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=a.Z.ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),l=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,a,l,c,y,b,w){var _=(0,h.E4)(Math.round(n*e),Math.round(n*t),m);if(w||(0,p.f0)(_,f.$),0===c.length)return _.canvas;function x(e){return Math.round(e*n)/n}_.scale(n,n),_.globalCompositeOperation="lighter";var E=(0,s.lJ)();c.forEach((function(e,t,n){(0,s.l7)(E,e.extent)}));var k=(0,s.dz)(E),C=(0,s.Cr)(E),S=(0,h.E4)(Math.round(n*k/r),Math.round(n*C/r));w||(0,p.f0)(S,f.$);var A=n/r;c.forEach((function(e,t,n){var r=e.extent[0]-E[0],i=-(e.extent[3]-E[3]),o=(0,s.dz)(e.extent),a=(0,s.Cr)(e.extent);e.image.width>0&&e.image.height>0&&S.drawImage(e.image,y,y,e.image.width-2*y,e.image.height-2*y,r*A,i*A,o*A,a*A)}));var T=(0,s.rL)(a);return l.getTriangles().forEach((function(e,t,i){var a=e.source,s=e.target,l=a[0][0],c=a[0][1],f=a[1][0],p=a[1][1],h=a[2][0],m=a[2][1],y=x((s[0][0]-T[0])/o),b=x(-(s[0][1]-T[1])/o),k=x((s[1][0]-T[0])/o),C=x(-(s[1][1]-T[1])/o),A=x((s[2][0]-T[0])/o),O=x(-(s[2][1]-T[1])/o),P=l,R=c;l=0,c=0;var M=[[f-=P,p-=R,0,0,k-y],[h-=P,m-=R,0,0,A-y],[0,0,f,p,C-b],[0,0,h,m,O-b]],D=(0,u.SV)(M);if(D){if(_.save(),_.beginPath(),function(){if(void 0===d){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",g(e,4,5,4,0),g(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;d=v(t,0)||v(t,4)||v(t,8)}return d}()||!w){_.moveTo(k,C);for(var I=y-k,L=b-C,j=0;j<4;j++)_.lineTo(k+x((j+1)*I/4),C+x(j*L/3)),3!=j&&_.lineTo(k+x((j+1)*I/4),C+x((j+1)*L/3));_.lineTo(A,O)}else _.moveTo(k,C),_.lineTo(y,b),_.lineTo(A,O);_.clip(),_.transform(D[0],D[2],D[1],D[3],y,b),_.translate(E[0]-P,E[3]-R),_.scale(r/n,-r/n),_.drawImage(S.canvas,0,0),_.restore()}})),b&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,l.getTriangles().forEach((function(e,t,n){var r=e.target,i=(r[0][0]-T[0])/o,a=-(r[0][1]-T[1])/o,s=(r[1][0]-T[0])/o,l=-(r[1][1]-T[1])/o,u=(r[2][0]-T[0])/o,c=-(r[2][1]-T[1])/o;_.beginPath(),_.moveTo(s,l),_.lineTo(i,a),_.lineTo(u,c),_.closePath(),_.stroke()})),_.restore()),_.canvas}(r,i,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=a.Z.LOADED}this.changed()},t.prototype.load=function(){if(this.state==a.Z.IDLE){this.state=a.Z.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var o=t.getState();if(o==a.Z.IDLE||o==a.Z.LOADING){e++;var s=(0,w.oL)(t,i.Z.CHANGE,(function(n){var r=t.getState();r!=a.Z.LOADED&&r!=a.Z.ERROR&&r!=a.Z.EMPTY||((0,w.bN)(s),0==--e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){e.getState()==a.Z.IDLE&&e.load()}))}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(w.bN),this.sourcesListenerKeys_=null},t.prototype.release=function(){this.canvas_&&((0,h.jy)(this.canvas_.getContext("2d")),m.push(this.canvas_),this.canvas_=null),e.prototype.release.call(this)},t}(o.Z)},58682:(e,t,n)=>{"use strict";n.d(t,{j:()=>i,m:()=>r});var r=.5,i=!0},64069:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>s,YP:()=>o,gE:()=>a,h$:()=>i});var r=n(15586);function i(e){return void 0!==e?0:void 0}function o(e){return void 0!==e?e:void 0}function a(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}function s(e){var t=e||(0,r.Yr)(5);return function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},24156:(e,t,n)=>{"use strict";function r(e){return e[0]>0&&e[1]>0}function i(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function o(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}n.d(t,{Pq:()=>o,bA:()=>i,py:()=>r})},64127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ATTRIBUTION:()=>G,default:()=>V});var r=n(23992),i=n(44650),o=n(98150),a=n(75759),s=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return(0,a.h)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return(0,a.h)(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.peek=function(e){if(this.containsKey(e))return this.entries_[e].value_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){(0,a.h)(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}();function l(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function u(e,t,n){return e+"/"+t+"/"+n}function c(e){return u(e[0],e[1],e[2])}var d,f=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.expireCache=function(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=this.peekFirstKey().split("/").map(Number)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(c(t.tileCoord)),t.release())}.bind(this))}},t}(s);var h=n(46759);var m=n(80471),g=n(97951),v=n(2649),y=n(93027),b=n(28e3),w=n(44368),_=n(15586),x=n(94628),E=n(74605),k=n(50209),C=n(24156),S=[0,0,0];const A=function(){function e(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,(0,a.h)((0,k.pT)(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,r=this.resolutions_.length-1;n<r;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,(0,a.h)(this.origins_.length==this.resolutions_.length,20));var i=e.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,x.rL)(i)),(0,a.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,(0,a.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:w.S,(0,a.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){var n=new b.Z(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(i){var r=this.getTileRangeForExtentAndZ(i,t);n.minX=Math.max(r.minX,n.minX),n.maxX=Math.min(r.maxX,n.maxX),n.minY=Math.max(r.minY,n.minY),n.maxY=Math.min(r.maxY,n.maxY)}return n}),this):i&&this.calculateTileRanges_(i)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,r){var i,o,a,s=null,l=e[0]-1;for(2===this.zoomFactor_?(o=e[1],a=e[2]):s=this.getTileCoordExtent(e,r);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=(0,b.T)(o,o,a,a,n)):i=this.getTileRangeForExtentAndZ(s,l,n),t(l,i))return!0;--l}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*e[1],i=2*e[2];return(0,b.T)(r,r+1,i,i+1,t)}var o=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},e.prototype.getTileRangeForTileCoordAndZ=function(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;var r=e[0],i=e[1],o=e[2];if(t===r)return(0,b.T)(i,o,i,o,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,t-r),s=Math.floor(i*a),l=Math.floor(o*a);if(t<r)return(0,b.T)(s,s,l,l,n);var u=Math.floor(a*(i+1))-1,c=Math.floor(a*(o+1))-1;return(0,b.T)(s,u,l,c,n)}var d=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(d,t,n)},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=(0,C.Pq)(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,s=r[0]+(t.maxX+1)*o[0]*i,l=r[1]+t.minY*o[1]*i,u=r[1]+(t.maxY+1)*o[1]*i;return(0,x.T9)(a,l,s,u,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var r=S;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,r);var i=r[1],o=r[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,r),(0,b.T)(i,r[1],o,r[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=(0,C.Pq)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=(0,C.Pq)(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r,s=o+i[0]*r,l=a+i[1]*r;return(0,x.T9)(o,a,s,l,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),u=(0,C.Pq)(this.getTileSize(o),this.tmpSize_),c=a*(e-s[0])/n/u[0],d=a*(s[1]-t)/n/u[1];return r?(c=(0,_.mD)(c,5)-1,d=(0,_.mD)(d,5)-1):(c=(0,_.GW)(c,5),d=(0,_.GW)(d,5)),l(o,c,d,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=(0,C.Pq)(this.getTileSize(n),this.tmpSize_),u=(e-o[0])/a/s[0],c=(o[1]-t)/a/s[1];return r?(u=(0,_.mD)(u,5)-1,c=(0,_.mD)(c,5)-1):(u=(0,_.GW)(u,5),c=(0,_.GW)(c,5)),l(n,u,c,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},e.prototype.getZForResolution=function(e,t){var n=(0,k.h7)(this.resolutions_,e,t||0);return(0,_.uZ)(n,this.minZoom,this.maxZoom)},e.prototype.tileCoordIntersectsViewport=function(e,t){return(0,E.mV)(t,0,t.length,2,this.getTileCoordExtent(e))},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}();var T=n(69843);function O(e){var t=e.getDefaultTileGrid();return t||(t=function(e,t,n,r){return function(e,t,n,r){var i=P(e,undefined,n);return new A({extent:e,origin:(0,x.g0)(e,"top-left"),resolutions:i,tileSize:n})}(R(e),0,void 0)}(e),e.setDefaultTileGrid(t)),t}function P(e,t,n,r){for(var i=void 0!==t?t:w.e,o=(0,x.Cr)(e),a=(0,x.dz)(e),s=(0,C.Pq)(void 0!==n?n:w.S),l=r>0?r:Math.max(a/s[0],o/s[1]),u=i+1,c=new Array(u),d=0;d<u;++d)c[d]=l/Math.pow(2,d);return c}function R(e){var t=(e=(0,y.U2)(e)).getExtent();if(!t){var n=180*y.Wm[T.ZP.DEGREES]/e.getMetersPerUnit();t=(0,x.T9)(-n,-n,n,n)}return t}var M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate})||this;return n.on,n.once,n.un,n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,n.tileGrid&&(0,C.Pq)(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new p(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition,interpolate:t.interpolate},n.zDirection=t.zDirection?t.zDirection:0,n}return M(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,a,s,l=!0,c=n.minX;c<=n.maxX;++c)for(var d=n.minY;d<=n.maxY;++d)a=u(t,c,d),s=!1,i.containsKey(a)&&(s=(o=i.get(a)).getState()===h.Z.LOADED)&&(s=!1!==r(o)),s||(l=!1);return l},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,t,n,r,i){return(0,v.O3)()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:O(e)},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();return(0,a.h)(null===t||(0,y.OP)(t,e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=(0,C.Pq)(r.getTileSize(e),this.tmpSize);return 1==i?o:(0,C.bA)(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=function(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=R(n);if((0,x.b8)(o,i))return t;var a=(0,x.dz)(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}(r,e,n)),function(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(g.Z),I=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return M(t,e),t}(m.ZP);const L=D;function j(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(s,l,u){return s?e.replace(n,s[0].toString()).replace(r,s[1].toString()).replace(i,s[2].toString()).replace(o,(function(){var e=s[0],n=t.getFullTileRange(e);return(0,a.h)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}var N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const F=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return N(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=(0,v.sq)(n),i=n.getState();i==h.Z.LOADING?(this.tileLoadingKeys_[r]=!0,t="tileloadstart"):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=i==h.Z.ERROR?"tileloaderror":i==h.Z.LOADED?"tileloadend":void 0),null!=t&&this.dispatchEvent(new I(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=function(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=j(e[i],t);return function(e){return 1===e.length?e[0]:function(t,n,r){if(t){var i=function(e){return(e[1]<<e[0])+e[2]}(t),o=(0,_.$W)(i,e.length);return e[o](t,n,r)}}}(r)}(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=u(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(L);var B=n(58682),U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function z(e,t){e.getImage().src=t}const q=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:z,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:r,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this).crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:i.Z,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return U(t,e),t.prototype.canExpireCache=function(){if(!B.j)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(B.j){var r=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getGutterForProjection=function(e){return B.j&&this.getProjection()&&e&&!(0,y.OP)(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},t.prototype.getOpaque=function(t){return!(B.j&&this.getProjection()&&t&&!(0,y.OP)(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!B.j)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!(0,y.OP)(n,t)){var r=(0,v.sq)(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=O(t)),this.tileGridForProjection[r]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!B.j)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||(0,y.OP)(n,t))return this.tileCache;var r=(0,v.sq)(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new p(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},t.prototype.createTile_=function(e,t,n,i,o,a){var s=[e,t,n],l=this.getTileCoordForTileUrlFunction(s,o),u=l?this.tileUrlFunction(l,i,o):void 0,c=new this.tileClass(s,void 0!==u?h.Z.IDLE:h.Z.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=a,c.addEventListener(r.Z.CHANGE,this.handleTileChange.bind(this)),c},t.prototype.getTile=function(e,t,n,r,i){var a=this.getProjection();if(B.j&&a&&i&&!(0,y.OP)(a,i)){var s=this.getTileCacheForProjection(i),l=[e,t,n],u=void 0,d=c(l);s.containsKey(d)&&(u=s.get(d));var f=this.getKey();if(u&&u.key==f)return u;var p=this.getTileGridForProjection(a),h=this.getTileGridForProjection(i),m=this.getTileCoordForTileUrlFunction(l,i),g=new o.Z(a,p,i,h,l,m,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return g.key=f,u?(g.interimTile=u,g.refreshInterimChain(),s.replace(d,g)):s.set(d,g),g}return this.getTileInternal(e,t,n,r,a||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var o=null,a=u(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(e,t,n,r,i,s),l.getState()==h.Z.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(e){if(B.j&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(B.j){var n=(0,y.U2)(e);if(n){var r=(0,v.sq)(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}},t}(F);var W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const $=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:function(e){var t=e||{},n=t.extent||(0,y.U2)("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:P(n,t.maxZoom,t.tileSize,t.maxResolution)};return new A(r)}({extent:R(o),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return(n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:r.opaque,projection:o,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n}return W(t,e),t.prototype.getGutter=function(){return this.gutter_},t}(q);var H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';const V=function(e){function t(t){var n,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate),n=void 0!==r.attributions?r.attributions:[G];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return e.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})||this}return H(t,e),t}($)},97951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,i=n(27230),o=n(2649),a=n(93027),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}const u=function(e){function t(t){var n=e.call(this)||this;n.projection=(0,a.U2)(t.projection),n.attributions_=l(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:"ready",n.wrapX_=void 0!==t.wrapX&&t.wrapX,n.interpolate_=!!t.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise((function(e,t){r.viewResolver=e,r.viewRejector=t})),n}return s(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection},t.prototype.getResolutions=function(){return(0,o.O3)()},t.prototype.getView=function(){return this.viewPromise_},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getInterpolate=function(){return this.interpolate_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=l(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(i.Z)},29820:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VectorSourceEvent:()=>k,default:()=>S});var r=n(12031),i=n(4474),o=n(80471),a=n(23992),s=n(82305),l=n(30147),u=n(94628),c=n(2649),d=n(2765);const f=function(){function e(e){this.rbush_=new l(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[(0,c.sq)(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],a=t[r],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[r]=s,this.items_[(0,c.sq)(a)]=s}this.rbush_.load(n)},e.prototype.remove=function(e){var t=(0,c.sq)(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[(0,c.sq)(t)],r=[n.minX,n.minY,n.maxX,n.maxY];(0,u.fS)(r,e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){return this.rbush_.all().map((function(e){return e.value}))},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]))return n;return n},e.prototype.isEmpty=function(){return(0,d.xb)(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return(0,u.T9)(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}();var p=n(97951);const h="addfeature",m="removefeature";var g=n(16253);function v(e,t){return[[-1/0,-1/0,1/0,1/0]]}n(93027);var y=n(75759),b=n(50209),w=n(53576);function _(e,t){return function(n,r,i,o,a){var s=this;!function(e,t,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof e?e(n,r,i):e,!0),"arraybuffer"==t.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var r=t.getType(),l=void 0;"json"==r||"text"==r?l=s.responseText:"xml"==r?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==r&&(l=s.response),l?o(t.readFeatures(l,{extent:n,featureProjection:i}),t.readProjection(l)):a()}else a()},s.onerror=a,s.send()}(e,t,n,r,i,(function(e,t){s.addFeatures(e),void 0!==o&&o(e)}),a||g.Zn)}}var x,E=(x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},x(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.feature=n,i.features=r,i}return E(t,e),t}(o.ZP),C=function(e){function t(t){var n=this,i=t||{};(n=e.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).on,n.once,n.un,n.loader_=g.Zn,n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&((0,y.h)(n.format_,7),n.loader_=_(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:v;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new f:null,n.loadedExtentsRtree_=new f,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new r.Z(a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return E(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=(0,c.sq)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new k(h,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[(0,w.oL)(t,a.Z.CHANGE,this.handleFeatureChange_,this),(0,w.oL)(t,s.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&((0,y.h)(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=(0,c.sq)(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=(0,c.sq)(a),this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var d=u.getExtent();t.push(d),r.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(h)){i=0;for(var f=n.length;i<f;i++)this.dispatchEvent(new k(h,n[i]))}},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(h,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(m,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(i.Z.ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(i.Z.REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(w.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(e){this.removeFeatureInternal(e)}.bind(this);for(var r in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new k("clear");this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){var r=t(n);if(r)return r}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),(0,d.xb)(this.nullGeometryFeatures_)||(0,b.l7)(e,(0,d.KX)(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e,t){var n=this;if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);var r=(0,u.MV)(e,t);return[].concat.apply([],r.map((function(e){return n.featuresRtree_.getInExtent(e)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||g.uX;return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),u=a;if((a=t.closestPointXY(n,r,o,a))<u){i=e;var c=Math.sqrt(a);s[0]=n-c,s[1]=r-c,s[2]=n+c,s[3]=r+c}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=(0,c.sq)(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new k("changefeature",t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:(0,c.sq)(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,d.xb)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},t.prototype.loadFeatures=function(e,t,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n),o=function(e,o){var s=i[e];r.forEachInExtent(s,(function(e){return(0,u.r4)(e.extent,s)}))||(++a.loadingExtentsCount_,a.dispatchEvent(new k("featuresloadstart")),a.loader_.call(a,s,t,n,function(e){--this.loadingExtentsCount_,this.dispatchEvent(new k("featuresloadend",void 0,e))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new k("featuresloaderror"))}.bind(a)),r.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if((0,u.fS)(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){if(e){var t=(0,c.sq)(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}},t.prototype.removeFeatureInternal=function(e){var t=(0,c.sq)(e),n=this.featureChangeKeys_[t];if(n){n.forEach(w.bN),delete this.featureChangeKeys_[t];var r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new k(m,e)),e}},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){(0,y.h)(this.format_,7),this.url_=e,this.setLoader(_(e,this.format_))},t}(p.Z);const S=C},81861:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(36759);function i(e,t,n){return t+":"+e+":"+(n?(0,r.XC)(n):"null")}var o=new(function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=i(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var o=i(e,t,n);this.cache_[o]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}())},80370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2649),i=n(24156);const o=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=(0,i.Pq)(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getDeclutterMode=function(){return this.declutterMode_},e.prototype.getAnchor=function(){return(0,r.O3)()},e.prototype.getImage=function(e){return(0,r.O3)()},e.prototype.getHitDetectionImage=function(){return(0,r.O3)()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return(0,r.O3)()},e.prototype.getImageSize=function(){return(0,r.O3)()},e.prototype.getOrigin=function(){return(0,r.O3)()},e.prototype.getSize=function(){return(0,r.O3)()},e.prototype.setDisplacement=function(e){this.displacement_=e},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=(0,i.Pq)(e)},e.prototype.listenImageChange=function(e){(0,r.O3)()},e.prototype.load=function(){(0,r.O3)()},e.prototype.unlistenImageChange=function(e){(0,r.O3)()},e}()},82679:(e,t,n)=>{"use strict";n.d(t,{yF:()=>w,Ly:()=>_,J$:()=>y});var r,i=n(20800),o=n(80370),a=n(36759),s=n(47141),l=n(64355),u=n(27002),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const d=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return(n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})||this).canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.getAnchor=function(){var e=this.size_;if(!e)return null;var t=this.getDisplacement();return[e[0]/2-t[0],e[1]/2+t[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(e){this.fill_=e,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(e){var t=this.canvas_[e];if(!t){var n=this.renderOptions_,r=(0,l.E4)(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return i.Z.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(e){this.stroke_=e,this.render()},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.calculateLineJoinSize_=function(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=r-Math.sqrt(i*i-l*l),c=Math.sqrt(l*l+u*u),d=c/l;if("miter"===e&&d<=n)return d*t;var f=t/2/d,p=t/2*(u/c),h=Math.sqrt((r+f)*(r+f)+p*p)-r;if(void 0===this.radius2_||"bevel"===e)return 2*h;var m=r*Math.sin(s),g=i-Math.sqrt(r*r-m*m),v=Math.sqrt(m*m+g*g)/m;if(v<=n){var y=v*t/2-i-r;return 2*Math.max(h,y)}return 2*h},t.prototype.createRenderOptions=function(){var e,t=u.rc,n=0,r=null,i=0,o=0;this.stroke_&&(null===(e=this.stroke_.getColor())&&(e=u.Tx),e=(0,s.y)(e),void 0===(o=this.stroke_.getWidth())&&(o=u.yC),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(t=this.stroke_.getLineJoin())&&(t=u.rc),void 0===(n=this.stroke_.getMiterLimit())&&(n=u.V4));var a=this.calculateLineJoinSize_(t,o,n),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:e,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:r,lineDashOffset:i,lineJoin:t,miterLimit:n}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]},t.prototype.draw_=function(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){var r=this.fill_.getColor();null===r&&(r=u.bL),t.fillStyle=(0,s.y)(r),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t.prototype.createHitDetectionCanvas_=function(e){if(this.fill_){var t=this.fill_.getColor(),n=0;if("string"==typeof t&&(t=(0,a._2)(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=(0,l.E4)(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},t.prototype.createPath_=function(e){var t=this.points_,n=this.radius_;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/t,a=0;a<t;a++){var s=i+a*o,l=a%2==0?n:r;e.lineTo(l*Math.cos(s),l*Math.sin(s))}e.closePath()}},t.prototype.drawHitDetectionCanvas_=function(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=u.bL,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t}(o.Z);var f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const p=function(e){function t(t){var n=t||{};return e.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return f(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(d),h=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}(),m=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}();var g=n(75759),v=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=x,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.setHitDetectionRenderer=function(e){this.hitDetectionRenderer_=e},e.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=x,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}();function y(e){var t,n;"function"==typeof e?t=e:(Array.isArray(e)?n=e:((0,g.h)("function"==typeof e.getZIndex,41),n=[e]),t=function(){return n});return t}var b=null;function w(e,t){if(!b){var n=new h({color:"rgba(255,255,255,0.4)"}),r=new m({color:"#3399CC",width:1.25});b=[new v({image:new p({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return b}function _(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new v({fill:new h({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new v({stroke:new m({color:t,width:5})}),new v({stroke:new m({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new v({image:new p({radius:6,fill:new h({color:n}),stroke:new m({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}function x(e){return e.getGeometry()}},44368:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,e:()=>r});var r=42,i=256},17952:(e,t,n)=>{"use strict";n.d(t,{BB:()=>f,Ue:()=>a,lk:()=>s,n3:()=>u,nb:()=>d,nn:()=>l,qC:()=>c});var r,i=n(62403),o=n(75759);function a(){return[1,0,0,1,0,0]}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function l(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function u(e,t,n){return i=t,o=0,a=0,s=n,l=0,u=0,(r=e)[0]=i,r[1]=o,r[2]=a,r[3]=s,r[4]=l,r[5]=u,r;var r,i,o,a,s,l,u}function c(e,t,n,r,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return e[0]=r*u,e[1]=i*l,e[2]=-r*l,e[3]=i*u,e[4]=a*r*u-s*r*l+t,e[5]=a*i*l+s*i*u+n,e}function d(e,t){var n,r=(n=t)[0]*n[3]-n[1]*n[2];(0,o.h)(0!==r,32);var i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],c=t[5];return e[0]=l/r,e[1]=-a/r,e[2]=-s/r,e[3]=i/r,e[4]=(s*c-l*u)/r,e[5]=-(i*c-a*u)/r,e}function f(e){var t="matrix("+e.join(", ")+")";if(i.Id)return t;var n=r||(r=document.createElement("div"));return n.style.transform=t,n.style.transform}new Array(6)},2649:(e,t,n)=>{"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(t,{O3:()=>r,q4:()=>a,sq:()=>o});var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="6.15.1"},10362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"==typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},56093:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,n){return f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i},f.apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},p(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function g(e){var t=d();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function v(e,t,n){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},v(e,t,n||e)}function y(e,t){return w(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||_(e,t)||E()}function b(e){return w(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_(e)||E()}function w(e){if(Array.isArray(e))return e}function _(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.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)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,{YAML:()=>Xt});var C={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},S={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},A="tag:yaml.org,2002:",T={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function O(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function P(e){var t,n;return"string"==typeof e?(t=O(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=O(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function R(e,t){if("number"!=typeof e||e<0)return null;var n=P(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o<r.length;++o){var a=r[o];if(e<a)return{line:o,col:e-r[o-1]+1};if(e===a)return{line:o+1,col:1}}var s=r.length;return{line:s,col:e-r[s-1]+1}}var M=function(){function e(t,n){i(this,e),this.start=t,this.end=n||t}return a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var i=t;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;for(var o=i;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),D=function(){function e(t,n,r){i(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return a(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,C.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,C.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===C.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==C.COMMENT)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[S.FLOW_MAP,S.FLOW_SEQ,S.QUOTE_DOUBLE,S.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=R(this.range.start,this.context.root);if(e)return{start:e,end:R(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,C.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);return n[0],{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=t;i<n;++i)if("\n"===r[i])return!0;return!1}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===C.COMMENT){var r=e.endOfLine(n,t+1),i=new M(t,r);return this.props.push(i),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(n){return n.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}}],[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==C.DIRECTIVES_END&&r!==C.DOCUMENT_END)return!1;var o=e[t+1],a=e[t+2];if(o!==r||a!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var i=e.endOfIndent(t,r);if(i>r+n)return i;var o=e.endOfWhiteSpace(t,i),a=t[o];return a&&"\n"!==a?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var i=0,o=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,n+=1,a+="\n";break;case"\t":i<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&i<=r&&(o=!0),{fold:a,offset:n,error:o}}}]),e}(),I=function(e){l(n,e);var t=g(n);function n(e,r,o){var a;if(i(this,n),!(o&&r instanceof D))throw new Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=o,a.source=r,a}return a(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new M(this.offset,this.offset+1);var t=e&&R(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,i=r.line,o=r.col;this.message+=" at line ".concat(i,", column ").concat(o);var a=e&&function(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=function(e,t){var n=P(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var o=r[e-1],a=r[e];a&&a>o&&"\n"===i[a-1];)--a;return i.slice(o,a)}(n.line,t);if(!o)return null;var a=n.col;if(o.length>i)if(a<=i-10)o=o.substr(0,i-1)+"…";else{var s=Math.round(i/2);o.length>a+s&&(o=o.substr(0,a+s-1)+"…"),a-=o.length-i,o="…"+o.substr(1-i)}var l=1,u="";r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?l=r.col-n.col:(l=Math.min(o.length+1,i)-a,u="…"));var c=a>1?" ".repeat(a-1):"",d="^".repeat(l);return"".concat(o,"\n").concat(c).concat(d).concat(u)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),n}(p(Error)),L=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLReferenceError",e,r)}return n}(I),j=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSemanticError",e,r)}return n}(I),N=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSyntaxError",e,r)}return n}(I),F=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLWarning",e,r)}return n}(I),B=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=r[n-1];t<n&&("\n"===i||"\t"===i||" "===i);)i=r[--n-1];for(var o="",a=t;a<n;++a){var s=r[a];if("\n"===s){var l=D.foldNewline(r,a,-1);o+=l.fold,a=l.offset}else if(" "===s||"\t"===s){for(var u=a,c=r[a+1];a<n&&(" "===c||"\t"===c);)c=r[(a+=1)+1];"\n"!==c&&(o+=a>u?r.slice(u,a+1):s)}else o+=s}var d=r[t];switch(d){case"\t":return{errors:[new j(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":var f="Plain value cannot start with reserved character ".concat(d);return{errors:[new j(this,f)],str:o};default:return o}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,i=t.inFlow,o=t.src,a=e,s=e,l=o[a];"\n"===l&&!D.atDocumentBoundary(o,a+1);l=o[a]){var u=D.endOfBlockIndent(o,r,a+1);if(null===u||"#"===o[u])break;a="\n"===o[u]?u:s=n.endOfLine(o,u,i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var r=e.inFlow,i=e.src,o=t,a=i[o];return a&&"#"!==a&&"\n"!==a&&(o=n.endOfLine(i,t,r)),this.valueRange=new M(t,o),o=D.endOfWhiteSpace(i,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],i=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[i+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;i+=1,r=o}return i}}]),n}(D),U=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.call(this,S.BLANK_LINE)}return a(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(e,t){return this.context=e,this.range=new M(t,t+1),t+1}}]),n}(D),z=function(e){l(n,e);var t=g(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).node=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.atLineStart,o=e.lineStart;i||this.type!==S.SEQ_ITEM||(this.error=new j(this,"Sequence items must not have preceding content on the same line"));for(var a=i?t-o:e.indent,s=D.endOfWhiteSpace(r,t+1),l=r[s],u="#"===l,c=[],d=null;"\n"===l||"#"===l;){if("#"===l){var f=D.endOfLine(r,s+1);c.push(new M(s,f)),s=f}else i=!0,o=s+1,"\n"===r[D.endOfWhiteSpace(r,o)]&&0===c.length&&(o=(d=new U).parse({src:r},o)),s=D.endOfIndent(r,o);l=r[s]}if(D.nextNodeIsIndented(l,s-(o+a),this.type!==S.SEQ_ITEM)?this.node=n({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},s):l&&o>t+1&&(s=o-1),this.node){if(d){var p=e.parent.items||e.parent.contents;p&&p.push(d)}c.length&&Array.prototype.push.apply(this.props,c),s=this.node.range.end}else if(u){var h=c[0];this.props.push(h),s=h.end}else s=D.endOfLine(r,t+1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new M(t,m),s}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var i=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return D.addStringTerminator(e,n.end,i)}}]),n}(D),q=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.call(this,S.COMMENT)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new M(t,n),n}}]),n}(D);function W(e){for(var t=e;t instanceof z;)t=t.node;if(!(t instanceof $))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===S.COMMENT){var a=o.context,s=a.indent,l=a.lineStart;if(s>0&&o.range.start>=l+s)break;r=i}else{if(o.type!==S.BLANK_LINE)break;r=i}}if(-1===r)return null;for(var u=t.items.splice(r,n-r),c=u[0].range.start;t.range.end=c,t.valueRange&&t.valueRange.end>c&&(t.valueRange.end=c),t!==e;)t=t.context.parent;return u}var $=function(e){l(n,e);var t=g(n);function n(e){var r;i(this,n),r=t.call(this,e.type===S.SEQ_ITEM?S.SEQ:S.MAP);for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){r.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}r.items=[e];var s=W(e);return s&&Array.prototype.push.apply(r.items,s),r}return a(n,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(e,t){this.context=e;var r=e.parseNode,i=e.src,o=D.startOfLine(i,t),a=this.items[0];a.context.parent=this,this.valueRange=M.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,l=t,u=i[l=D.normalizeOffset(i,l)],c=D.endOfWhiteSpace(i,o)===l,d=!1;u;){for(;"\n"===u||"#"===u;){if(c&&"\n"===u&&!d){var f=new U;if(l=f.parse({src:i},l),this.valueRange.end=l,l>=i.length){u=null;break}this.items.push(f),l-=1}else if("#"===u){if(l<o+s&&!n.nextContentHasIndent(i,l,s))return l;var p=new q;if(l=p.parse({indent:s,lineStart:o,src:i},l),this.items.push(p),this.valueRange.end=l,l>=i.length){u=null;break}}if(o=l+1,l=D.endOfIndent(i,o),D.atBlank(i,l)){var h=D.endOfWhiteSpace(i,l),m=i[h];m&&"\n"!==m&&"#"!==m||(l=h)}u=i[l],c=!0}if(!u)break;if(l!==o+s&&(c||":"!==u)){if(l<o+s){o>t&&(l=o);break}this.error||(this.error=new N(this,"All collection items must start at the same column"))}if(a.type===S.SEQ_ITEM){if("-"!==u){o>t&&(l=o);break}}else if("-"===u&&!this.error){var g=i[l+1];g&&"\n"!==g&&"\t"!==g&&" "!==g||(this.error=new N(this,"A collection cannot be both a mapping and a sequence"))}var v=r({atLineStart:c,inCollection:!0,indent:s,lineStart:o,parent:this},l);if(!v)return l;if(this.items.push(v),this.valueRange.end=v.valueRange.end,u=i[l=D.normalizeOffset(i,v.range.end)],c=!1,d=v.includesTrailingLines,u){for(var y=l-1,b=i[y];" "===b||"\t"===b;)b=i[--y];"\n"===b&&(o=y+1,c=!0)}var w=W(v);w&&Array.prototype.push.apply(this.items,w)}return l}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){t=n.setOrigRanges(e,t)})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var i=e.slice(n.start,t[0].range.start)+String(t[0]),o=1;o<t.length;++o){var a=t[o],s=a.context,l=s.atLineStart,u=s.indent;if(l)for(var c=0;c<u;++c)i+=" ";i+=String(a)}return D.addStringTerminator(e,n.end,i)}}],[{key:"nextContentHasIndent",value:function(e,t,r){var i=D.endOfLine(e,t)+1,o=e[t=D.endOfWhiteSpace(e,i)];return!!o&&(t>=i+r||("#"===o||"\n"===o)&&n.nextContentHasIndent(e,t,r))}}]),n}(D),H=function(e){l(n,e);var t=g(n);function n(){var e;return i(this,n),(e=t.call(this,S.DIRECTIVE)).name=null,e}return a(n,[{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new M(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new M(t,n),n}}]),n}(D),G=function(e){l(n,e);var t=g(n);function n(){var e;return i(this,n),(e=t.call(this,S.DOCUMENT)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return a(n,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var r=!0,i=!1,o=e;!D.atDocumentBoundary(t,o,C.DIRECTIVES_END);)switch(t[o=n.startCommentOrEndBlankLine(t,o)]){case"\n":if(r){var a=new U;(o=a.parse({src:t},o))<t.length&&this.directives.push(a)}else o+=1,r=!0;break;case"#":var s=new q;o=s.parse({src:t},o),this.directives.push(s),r=!1;break;case"%":var l=new H;o=l.parse({parent:this,src:t},o),this.directives.push(l),i=!0,r=!1;break;default:return i?this.error=new j(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new M(o,o+3),o+3):(i?this.error=new j(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}},{key:"parseContents",value:function(e){var t=this.context,r=t.parseNode,i=t.src;this.contents||(this.contents=[]);for(var o=e;"-"===i[o-1];)o-=1;var a=D.endOfWhiteSpace(i,e),s=o===e;for(this.valueRange=new M(a);!D.atDocumentBoundary(i,a,C.DOCUMENT_END);){switch(i[a]){case"\n":if(s){var l=new U;(a=l.parse({src:i},a))<i.length&&this.contents.push(l)}else a+=1,s=!0;o=a;break;case"#":var u=new q;a=u.parse({src:i},a),this.contents.push(u),s=!1;break;default:var c=D.endOfIndent(i,a),d=r({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:o,parent:this},c);if(!d)return this.valueRange.end=c;this.contents.push(d),a=d.range.end,s=!1;var f=W(d);f&&Array.prototype.push.apply(this.contents,f)}a=n.startCommentOrEndBlankLine(i,a)}if(this.valueRange.end=a,i[a]&&(this.documentEndMarker=new M(a,a+3),i[a+=3])){if("#"===i[a=D.endOfWhiteSpace(i,a)]){var p=new q;a=p.parse({src:i},a),this.contents.push(p)}switch(i[a]){case"\n":a+=1;break;case void 0:break;default:this.error=new N(this,"Document end marker line cannot have a non-comment suffix")}}return a}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),this.parseContents(n)}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach((function(n){t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((function(n){t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===S.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}],[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=D.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),n}(D),V=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=D.endOfIdentifier(n,t+1);return this.valueRange=new M(t+1,r),r=D.endOfWhiteSpace(n,r),this.parseComment(r)}}]),n}(D),K="KEEP",Z="STRIP",Y=function(e){l(n,e);var t=g(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).blockIndent=null,o.chomping="CLIP",o.header=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return this.chomping===K}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,i=r.indent,o=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=o[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===K)break;return""}"\n"===s&&(a=n),s=o[n-1]}var l=n+1;a&&(this.chomping===K?(l=a,n=this.valueRange.end):n=a);for(var u=i+this.blockIndent,c=this.type===S.BLOCK_FOLDED,d=!0,f="",p="",h=!1,m=t;m<n;++m){for(var g=0;g<u&&" "===o[m];++g)m+=1;var v=o[m];if("\n"===v)"\n"===p?f+="\n":p="\n";else{var y=D.endOfLine(o,m),b=o.slice(m,y);m=y,c&&(" "===v||"\t"===v)&&m<l?(" "===p?p="\n":h||d||"\n"!==p||(p="\n\n"),f+=p+b,p=y<n&&o[y]||"",h=!0):(f+=p+b,p=c&&m<l?" ":"\n",h=!1),d&&""!==b&&(d=!1)}}return this.chomping===Z?f:f+"\n"}},{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var i=t[n];switch(i){case"-":this.chomping=Z;break;case"+":this.chomping=K;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=i;break;default:return this.blockIndent=Number(r)||null,this.header=new M(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,i=!!this.blockIndent,o=e,a=e,s=1,l=r[o];"\n"===l&&(o+=1,!D.atDocumentBoundary(r,o));l=r[o]){var u=D.endOfBlockIndent(r,n,o);if(null===u)break;var c=r[u],d=u-(o+n);if(this.blockIndent){if(c&&"\n"!==c&&d<this.blockIndent){if("#"===r[u])break;if(!this.error){var f="Block scalars must not be less indented than their ".concat(i?"explicit indentation indicator":"first line");this.error=new j(this,f)}}}else"\n"!==r[u]?(d<s&&(this.error=new j(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")),this.blockIndent=d):d>s&&(s=d);o="\n"===r[u]?u:a=D.endOfLine(r,u)}return this.chomping!==K&&(o=r[a]?a+1:a),this.valueRange=new M(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=D.endOfWhiteSpace(n,r),r=this.parseComment(r),this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),n}(D),X=function(e){l(n,e);var t=g(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).items=null,o}return a(n,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===S.COMMENT&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.indent,o=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=D.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(o=s+1,"\n"===r[D.endOfWhiteSpace(r,o)]){var l=new U;o=l.parse({src:r},o),this.items.push(l)}(s=D.endOfIndent(r,o))<=o+i&&(a=r[s],s<o+i||"]"!==a&&"}"!==a)&&(this.error=new j(this,"Insufficient indentation in flow collection"));break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var u=new q;s=u.parse({src:r},s),this.items.push(u);break;case"?":case":":var c=r[s+1];if("\n"===c||"\t"===c||" "===c||","===c||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}default:var d=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},s);if(!d)return this.valueRange=new M(t,s),s;this.items.push(d),s=D.normalizeOffset(r,d.range.end)}a=r[s=D.endOfWhiteSpace(r,s)]}return this.valueRange=new M(t,s+1),a&&(this.items.push({char:a,offset:s}),s=D.endOfWhiteSpace(r,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){if(n instanceof D)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{for(var r=t;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var i=t.filter((function(e){return e instanceof D})),o="",a=n.start;return i.forEach((function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(o+=n+String(t))[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),o+=e.slice(a,n.end),D.addStringTerminator(e,n.end,o)}}]),n}(D),Q=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;'"'!==a[r-1]&&e.push(new N(this,'Missing closing "quote'));for(var s="",l=n+1;l<r-1;++l){var u=a[l];if("\n"===u){D.atDocumentBoundary(a,l+1)&&e.push(new j(this,"Document boundary indicators are not allowed within string values"));var c=D.foldNewline(a,l,o);s+=c.fold,l=c.offset,c.error&&e.push(new j(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===u)switch(a[l+=1]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"\t":s+="\t";break;case"v":s+="\v";break;case"N":s+="
";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(l+1,2,e),l+=2;break;case"u":s+=this.parseCharCode(l+1,4,e),l+=4;break;case"U":s+=this.parseCharCode(l+1,8,e),l+=8;break;case"\n":for(;" "===a[l+1]||"\t"===a[l+1];)l+=1;break;default:e.push(new N(this,"Invalid escape sequence ".concat(a.substr(l-1,2)))),s+="\\"+a[l]}else if(" "===u||"\t"===u){for(var d=l,f=a[l+1];" "===f||"\t"===f;)f=a[(l+=1)+1];"\n"!==f&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}return e.length>0?{errors:e,str:s}:s}},{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,i=r.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(n.push(new N(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new M(t,i),i=D.endOfWhiteSpace(r,i),this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),n}(D),J=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;"'"!==a[r-1]&&e.push(new N(this,"Missing closing 'quote"));for(var s="",l=n+1;l<r-1;++l){var u=a[l];if("\n"===u){D.atDocumentBoundary(a,l+1)&&e.push(new j(this,"Document boundary indicators are not allowed within string values"));var c=D.foldNewline(a,l,o);s+=c.fold,l=c.offset,c.error&&e.push(new j(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===u)s+=u,"'"!==a[l+=1]&&e.push(new N(this,"Unescaped single quote? This should not happen."));else if(" "===u||"\t"===u){for(var d=l,f=a[l+1];" "===f||"\t"===f;)f=a[(l+=1)+1];"\n"!==f&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}return e.length>0?{errors:e,str:s}:s}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new M(t,i),i=D.endOfWhiteSpace(r,i),this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),n}(D),ee=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.atLineStart,a=r.inCollection,l=r.inFlow,u=r.indent,c=r.lineStart,d=r.parent;i(this,e),s(this,"parseNode",(function(n,r){if(D.atDocumentBoundary(t.src,r))return null;var i=new e(t,n),o=i.parseProps(r),a=o.props,s=o.type,l=o.valueStart,u=function(e,t){switch(e){case S.ALIAS:return new V(e,t);case S.BLOCK_FOLDED:case S.BLOCK_LITERAL:return new Y(e,t);case S.FLOW_MAP:case S.FLOW_SEQ:return new X(e,t);case S.MAP_KEY:case S.MAP_VALUE:case S.SEQ_ITEM:return new z(e,t);case S.COMMENT:case S.PLAIN:return new B(e,t);case S.QUOTE_DOUBLE:return new Q(e,t);case S.QUOTE_SINGLE:return new J(e,t);default:return null}}(s,a),c=u.parse(i,l);if(u.range=new M(r,c),c<=r&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=c,u.error.source=u,u.range.end=r+1),i.nodeStartsCollection(u)){u.error||i.atLineStart||i.parent.type!==S.DOCUMENT||(u.error=new N(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var d=new $(u);return c=d.parse(new e(i),c),d.range=new M(r,c),d}return u})),this.atLineStart=null!=o?o:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=l?l:n.inFlow||!1,this.indent=null!=u?u:n.indent,this.lineStart=null!=c?c:n.lineStart,this.parent=null!=d?d:n.parent||{},this.root=n.root,this.src=n.src}return a(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof z)return!0;var i=e.range.end;return"\n"!==r[i]&&"\n"!==r[i-1]&&":"===r[i=D.endOfWhiteSpace(r,i)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,i=this.src,o=[],a=!1,s=i[t=this.atLineStart?D.endOfIndent(i,t):D.endOfWhiteSpace(i,t)];s===C.ANCHOR||s===C.COMMENT||s===C.TAG||"\n"===s;){if("\n"===s){var l=t,u=void 0;do{u=l+1,l=D.endOfIndent(i,u)}while("\n"===i[l]);var c=l-(u+this.indent),d=r.type===S.SEQ_ITEM&&r.context.atLineStart;if("#"!==i[l]&&!D.nextNodeIsIndented(i[l],c,!d))break;this.atLineStart=!0,this.lineStart=u,a=!1,t=l}else if(s===C.COMMENT){var f=D.endOfLine(i,t+1);o.push(new M(t,f)),t=f}else{var p=D.endOfIdentifier(i,t+1);s===C.TAG&&","===i[p]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(t+1,p+13))&&(p=D.endOfIdentifier(i,p+5)),o.push(new M(t,p)),a=!0,t=D.endOfWhiteSpace(i,p)}s=i[t]}return a&&":"===s&&D.atBlank(i,t+1,!0)&&(t-=1),{props:o,type:e.parseType(i,t,n),valueStart:t}}}],[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return S.ALIAS;case">":return S.BLOCK_FOLDED;case"|":return S.BLOCK_LITERAL;case"{":return S.FLOW_MAP;case"[":return S.FLOW_SEQ;case"?":return!n&&D.atBlank(e,t+1,!0)?S.MAP_KEY:S.PLAIN;case":":return!n&&D.atBlank(e,t+1,!0)?S.MAP_VALUE:S.PLAIN;case"-":return!n&&D.atBlank(e,t+1,!0)?S.SEQ_ITEM:S.PLAIN;case'"':return S.QUOTE_DOUBLE;case"'":return S.QUOTE_SINGLE;default:return S.PLAIN}}}]),e}();function te(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(function(e,n){return e.length>1&&t.push(n),"\n"})));var n=[],r=0;do{var i=new G,o=new ee({src:e});r=i.parse(o,r),n.push(i)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,i=0;i<n.length;++i)r=n[i].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}function ne(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var re=function e(){i(this,e)};function ie(e,t,n){if(Array.isArray(e))return e.map((function(e,t){return ie(e,String(t),n)}));if(e&&"function"==typeof e.toJSON){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(e){r.res=e,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var oe=function(e){l(n,e);var t=g(n);function n(e){var r;return i(this,n),(r=t.call(this)).value=e,r}return a(n,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:ie(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),n}(re);function ae(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var a=[];a[o]=r,r=a}else{var s={};Object.defineProperty(s,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=s}}return e.createNode(r,!1)}var se=function(e){return null==e||"object"===r(e)&&e[Symbol.iterator]().next().done},le=function(e){l(n,e);var t=g(n);function n(e){var r;return i(this,n),s(h(r=t.call(this)),"items",[]),r.schema=e,r}return a(n,[{key:"addIn",value:function(e,t){if(se(e))this.add(t);else{var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);if(a instanceof n)a.addIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,ae(this.schema,o,t))}}}},{key:"deleteIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.delete(r);var o=this.get(r,!0);if(o instanceof n)return o.deleteIn(i);throw new Error("Expected YAML collection at ".concat(r,". Remaining path: ").concat(i))}},{key:"getIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);return 0===o.length?!t&&a instanceof oe?a.value:a:a instanceof n?a.getIn(o,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof oe&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.has(r);var o=this.get(r,!0);return o instanceof n&&o.hasIn(i)}},{key:"setIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1);if(0===o.length)this.set(i,t);else{var a=this.get(i,!0);if(a instanceof n)a.setIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,ae(this.schema,o,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,r,i){var o=this,a=t.blockItem,s=t.flowChars,l=t.isMap,u=t.itemIndent,c=e,d=c.indent,f=c.indentStep,p=c.stringify,h=this.type===S.FLOW_MAP||this.type===S.FLOW_SEQ||e.inFlow;h&&(u+=f);var m=l&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:m,indent:u,inFlow:h,type:null});var g,v=!1,y=!1,b=this.items.reduce((function(t,n,r){var i;n&&(!v&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(i=n.comment),h&&(!v&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(y=!0)),v=!1;var a=p(n,e,(function(){return i=null}),(function(){return v=!0}));return h&&!y&&a.includes("\n")&&(y=!0),h&&r<o.items.length-1&&(a+=","),a=ne(a,u,i),v&&(i||h)&&(v=!1),t.push({type:"item",str:a}),t}),[]);if(0===b.length)g=s.start+s.end;else if(h){var w=s.start,_=s.end,x=b.map((function(e){return e.str}));if(y||x.reduce((function(e,t){return e+t.length+2}),2)>n.maxFlowStringSingleLineLength){g=w;var E,C=k(x);try{for(C.s();!(E=C.n()).done;){var A=E.value;g+=A?"\n".concat(f).concat(d).concat(A):"\n"}}catch(e){C.e(e)}finally{C.f()}g+="\n".concat(d).concat(_)}else g="".concat(w," ").concat(x.join(" ")," ").concat(_)}else{var T=b.map(a);g=T.shift();var O,P=k(T);try{for(P.s();!(O=P.n()).done;){var R=O.value;g+=R?"\n".concat(d).concat(R):"\n"}}catch(e){P.e(e)}finally{P.f()}}return this.comment?(g+="\n"+this.comment.replace(/^/gm,"".concat(d,"#")),r&&r()):v&&i&&i(),g}}]),n}(re);function ue(e){var t=e instanceof oe?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}s(le,"maxFlowStringSingleLineLength",60);var ce=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=ue(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=ue(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof oe?r.value:r}}},{key:"has",value:function(e){var t=ue(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=ue(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var r,i=0,o=k(this.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(ie(a,String(i++),t))}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"toString",value:function(e,t,r){return e?v(u(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,r):JSON.stringify(this)}}]),n}(le),de=function(e){l(n,e);var t=g(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i(this,n),(r=t.call(this)).key=e,r.value=o,r.type=n.Type.PAIR,r}return a(n,[{key:"commentBefore",get:function(){return this.key instanceof re?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new oe(null)),!(this.key instanceof re))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}},{key:"addToJSMap",value:function(e,t){var n=ie(this.key,"",e);if(t instanceof Map){var i=ie(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==r(t)?String(t):e instanceof re&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)}(this.key,n,e),a=ie(this.value,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var i=e.doc.options,o=i.indent,a=i.indentSeq,s=i.simpleKeys,l=this.key,u=this.value,c=l instanceof re&&l.comment;if(s){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(l instanceof le)throw new Error("With simple keys, collection cannot be used as a key value")}var d=!s&&(!l||c||(l instanceof re?l instanceof le||l.type===S.BLOCK_FOLDED||l.type===S.BLOCK_LITERAL:"object"===r(l))),f=e,p=f.doc,h=f.indent,m=f.indentStep,g=f.stringify;e=Object.assign({},e,{implicitKey:!d,indent:h+m});var v=!1,y=g(l,e,(function(){return c=null}),(function(){return v=!0}));if(y=ne(y,e.indent,c),!d&&y.length>1024){if(s)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(e.allNullValues&&!s)return this.comment?(y=ne(y,e.indent,this.comment),t&&t()):v&&!c&&n&&n(),e.inFlow&&!d?y:"? ".concat(y);y=d?"? ".concat(y,"\n").concat(h,":"):"".concat(y,":"),this.comment&&(y=ne(y,e.indent,this.comment),t&&t());var b="",w=null;if(u instanceof re){if(u.spaceBefore&&(b="\n"),u.commentBefore){var _=u.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));b+="\n".concat(_)}w=u.comment}else u&&"object"===r(u)&&(u=p.schema.createNode(u,!0));e.implicitKey=!1,!d&&!this.comment&&u instanceof oe&&(e.indentAtStart=y.length+1),v=!1,!a&&o>=2&&!e.inFlow&&!d&&u instanceof ce&&u.type!==S.FLOW_SEQ&&!u.tag&&!p.anchors.getName(u)&&(e.indent=e.indent.substr(2));var x=g(u,e,(function(){return w=null}),(function(){return v=!0})),E=" ";return b||this.comment?E="".concat(b,"\n").concat(e.indent):!d&&u instanceof le?("["===x[0]||"{"===x[0])&&!x.includes("\n")||(E="\n".concat(e.indent)):"\n"===x[0]&&(E=""),v&&!w&&n&&n(),ne(y+E+x,e.indent,w)}}]),n}(re);s(de,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var fe=function e(t,n){if(t instanceof pe){var r=n.get(t.source);return r.count*r.aliasCount}if(t instanceof le){var i,o=0,a=k(t.items);try{for(a.s();!(i=a.n()).done;){var s=e(i.value,n);s>o&&(o=s)}}catch(e){a.e(e)}finally{a.f()}return o}if(t instanceof de){var l=e(t.key,n),u=e(t.value,n);return Math.max(l,u)}return 1},pe=function(e){l(n,e);var t=g(n);function n(e){var r;return i(this,n),(r=t.call(this)).source=e,r.type=S.ALIAS,r}return a(n,[{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(e,t){if(!t)return ie(this.source,e,t);var n=t.anchors,r=t.maxAliasCount,i=n.get(this.source);if(!i||void 0===i.res){var o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new L(this.cstNode,o):new ReferenceError(o)}if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=fe(this.source,n)),i.count*i.aliasCount>r)){var a="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new L(this.cstNode,a):new ReferenceError(a)}return i.res}},{key:"toString",value:function(e){return n.stringify(this,e)}}],[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,i=t.anchors,o=t.doc,a=t.implicitKey,s=t.inStringifyKey,l=Object.keys(i).find((function(e){return i[e]===r}));if(!l&&s&&(l=o.anchors.getName(r)||o.anchors.newName()),l)return"*".concat(l).concat(a?" ":"");var u=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(u," [").concat(n,"]"))}}]),n}(re);function he(e,t){var n,r=t instanceof oe?t.value:t,i=k(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof de){if(o.key===t||o.key===r)return o;if(o.key&&o.key.value===r)return o}}}catch(e){i.e(e)}finally{i.f()}}s(pe,"default",!0);var me=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e,t){e?e instanceof de||(e=new de(e.key||e,e.value)):e=new de(e);var n=he(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){var i=this.items.findIndex((function(t){return r(e,t)<0}));-1===i?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=he(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=he(this.items,e),r=n&&n.value;return!t&&r instanceof oe?r.value:r}},{key:"has",value:function(e){return!!he(this.items,e)}},{key:"set",value:function(e,t){this.add(new de(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var i,o=k(this.items);try{for(o.s();!(i=o.n()).done;)i.value.addToJSMap(t,r)}catch(e){o.e(e)}finally{o.f()}return r}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);var i,o=k(this.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!(a instanceof de))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(a)," instead"))}}catch(e){o.e(e)}finally{o.f()}return v(u(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,r)}}]),n}(le),ge=function(e){l(n,e);var t=g(n);function n(e){var r;if(i(this,n),e instanceof de){var o=e.value;o instanceof ce||((o=new ce).items.push(e.value),o.range=e.value.range),(r=t.call(this,e.key,o)).range=e.range}else r=t.call(this,new oe("<<"),new ce);return r.type=de.Type.MERGE_PAIR,m(r)}return a(n,[{key:"addToJSMap",value:function(e,t){var n,r=k(this.value.items);try{for(r.s();!(n=r.n()).done;){var i=n.value.source;if(!(i instanceof me))throw new Error("Merge sources must be maps");var o,a=k(i.toJSON(null,e,Map));try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),l=s[0],u=s[1];t instanceof Map?t.has(l)||t.set(l,u):t instanceof Set?t.add(l):Object.prototype.hasOwnProperty.call(t,l)||Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0})}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"toString",value:function(e,t){var r=this.value;if(r.items.length>1)return v(u(n.prototype),"toString",this).call(this,e,t);this.value=r.items[0];var i=v(u(n.prototype),"toString",this).call(this,e,t);return this.value=r,i}}]),n}(de),ve={defaultType:S.BLOCK_LITERAL,lineWidth:76},ye={trueStr:"true",falseStr:"false"},be={asBigInt:!1},we={nullStr:"null"},_e={defaultType:S.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function xe(e,t,n){var r,i=k(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.format,s=o.test,l=o.resolve;if(s){var u=e.match(s);if(u){var c=l.apply(null,u);return c instanceof oe||(c=new oe(c)),a&&(c.format=a),c}}}}catch(e){i.e(e)}finally{i.f()}return n&&(e=n(e)),new oe(e)}var Ee="flow",ke="block",Ce="quoted",Se=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function Ae(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,a=void 0===o?80:o,s=r.minContentWidth,l=void 0===s?20:s,u=r.onFold,c=r.onOverflow;if(!a||a<0)return e;var d=Math.max(1+l,1+a-t.length);if(e.length<=d)return e;var f=[],p={},h=a-t.length;"number"==typeof i&&(i>a-Math.max(2,l)?f.push(0):h=a-i);var m,g=void 0,v=void 0,y=!1,b=-1,w=-1,_=-1;for(n===ke&&-1!==(b=Se(e,b))&&(h=b+d);m=e[b+=1];){if(n===Ce&&"\\"===m){switch(w=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}_=b}if("\n"===m)n===ke&&(b=Se(e,b)),h=b+d,g=void 0;else{if(" "===m&&v&&" "!==v&&"\n"!==v&&"\t"!==v){var x=e[b+1];x&&" "!==x&&"\n"!==x&&"\t"!==x&&(g=b)}if(b>=h)if(g)f.push(g),h=g+d,g=void 0;else if(n===Ce){for(;" "===v||"\t"===v;)v=m,m=e[b+=1],y=!0;var E=b>_+1?b-2:w-1;if(p[E])return e;f.push(E),p[E]=!0,h=E+d,g=void 0}else y=!0}v=m}if(y&&c&&c(),0===f.length)return e;u&&u();for(var k=e.slice(0,f[0]),C=0;C<f.length;++C){var S=f[C],A=f[C+1]||e.length;0===S?k="\n".concat(t).concat(e.slice(0,A)):(n===Ce&&p[S]&&(k+="".concat(e[S],"\\")),k+="\n".concat(t).concat(e.slice(S+1,A)))}return k}var Te=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},_e.fold):_e.fold},Oe=function(e){return/^(%|---|\.\.\.)/m.test(e)};function Pe(e,t){var n=t.implicitKey,r=_e.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,a=JSON.stringify(e);if(i)return a;for(var s=t.indent||(Oe(e)?" ":""),l="",u=0,c=0,d=a[c];d;d=a[++c])if(" "===d&&"\\"===a[c+1]&&"n"===a[c+2]&&(l+=a.slice(u,c)+"\\ ",u=c+=1,d="\\"),"\\"===d)switch(a[c+1]){case"u":l+=a.slice(u,c);var f=a.substr(c+2,4);switch(f){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===f.substr(0,2)?l+="\\x"+f.substr(2):l+=a.substr(c,6)}u=(c+=5)+1;break;case"n":if(n||'"'===a[c+2]||a.length<o)c+=1;else{for(l+=a.slice(u,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)l+="\n",c+=2;l+=s," "===a[c+2]&&(l+="\\"),u=(c+=1)+1}break;default:c+=1}return l=u?l+a.slice(u):a,n?l:Ae(l,s,Ce,Te(t))}function Re(e,t){if(t.implicitKey){if(/\n/.test(e))return Pe(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Pe(e,t);var n=t.indent||(Oe(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:Ae(r,n,Ee,Te(t))}function Me(e,t,n,r){var i=e.comment,o=e.type,a=e.value;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return Pe(a,t);var s=t.indent||(t.forceBlockIndent||Oe(a)?" ":""),l=s?"2":"1",u=o!==S.BLOCK_FOLDED&&(o===S.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;var r=t-n,i=e.length;if(i<=r)return!1;for(var o=0,a=0;o<i;++o)if("\n"===e[o]){if(o-a>r)return!0;if(i-(a=o+1)<=r)return!1}return!0}(a,_e.fold.lineWidth,s.length)),c=u?"|":">";if(!a)return c+"\n";var d="",f="";if(a=a.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?c+="-":a!==e&&t===e.length-1||(c+="+",r&&r()),f=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(c+=l);var t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),f&&(f=f.replace(/\n+(?!\n|$)/g,"$&".concat(s))),d&&(d=d.replace(/\n+/g,"$&".concat(s))),i&&(c+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!a)return"".concat(c).concat(l,"\n").concat(s).concat(f);if(u)return a=a.replace(/\n+/g,"$&".concat(s)),"".concat(c,"\n").concat(s).concat(d).concat(a).concat(f);a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(s));var p=Ae("".concat(d).concat(a).concat(f),s,ke,_e.fold);return"".concat(c,"\n").concat(s).concat(p)}function De(e,t,n,r){var i=_e.defaultType,o=t.implicitKey,a=t.inFlow,s=e,l=s.type,u=s.value;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));var c=function(i){switch(i){case S.BLOCK_FOLDED:case S.BLOCK_LITERAL:return Me(e,t,n,r);case S.QUOTE_DOUBLE:return Pe(u,t);case S.QUOTE_SINGLE:return Re(u,t);case S.PLAIN:return function(e,t,n,r){var i=e.comment,o=e.type,a=e.value,s=t.actualString,l=t.implicitKey,u=t.indent,c=t.inFlow;if(l&&/[\n[\]{},]/.test(a)||c&&/[[\]{},]/.test(a))return Pe(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||c||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?Re(a,t):Pe(a,t):Me(e,t,n,r);if(!l&&!c&&o!==S.PLAIN&&-1!==a.indexOf("\n"))return Me(e,t,n,r);if(""===u&&Oe(a))return t.forceBlockIndent=!0,Me(e,t,n,r);var d=a.replace(/\n+/g,"$&\n".concat(u));if(s){var f=t.doc.schema.tags;if("string"!=typeof xe(d,f,f.scalarFallback).value)return Pe(a,t)}var p=l?d:Ae(d,u,Ee,Te(t));return!i||c||-1===p.indexOf("\n")&&-1===i.indexOf("\n")?p:(n&&n(),function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(p,u,i))}(e,t,n,r);default:return null}};l!==S.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?l=S.QUOTE_DOUBLE:!o&&!a||l!==S.BLOCK_FOLDED&&l!==S.BLOCK_LITERAL||(l=S.QUOTE_DOUBLE);var d=c(l);if(null===d&&null===(d=c(i)))throw new Error("Unsupported default string type ".concat(i));return d}function Ie(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var a=o.indexOf(".");a<0&&(a=o.length,o+=".");for(var s=n-(o.length-a-1);s-- >0;)o+="0"}return o}function Le(e,t){var n,r,i;switch(t.type){case S.FLOW_MAP:n="}",r="flow map";break;case S.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new j(t,"Not a flow collection!?"))}for(var o=t.items.length-1;o>=0;--o){var a=t.items[o];if(!a||a.type!==S.COMMENT){i=a;break}}if(i&&i.char!==n){var s,l="Expected ".concat(r," to end with ").concat(n);"number"==typeof i.offset?(s=new j(t,l)).offset=i.offset+1:(s=new j(i,l),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}}function je(e,t){var n=t.context.src[t.range.start-1];"\n"!==n&&"\t"!==n&&" "!==n&&e.push(new j(t,"Comments must be separated from other tokens by white space characters"))}function Ne(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new j(e,'The "'.concat(r,'" key is too long'))}function Fe(e,t){var n,r=k(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.afterKey,a=i.before,s=i.comment,l=e.items[a];l?(o&&l.value&&(l=l.value),void 0===s?!o&&l.commentBefore||(l.spaceBefore=!0):l.commentBefore?l.commentBefore+="\n"+s:l.commentBefore=s):void 0!==s&&(e.comment?e.comment+="\n"+s:e.comment=s)}}catch(e){r.e(e)}finally{r.f()}}function Be(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((function(n){n.source||(n.source=t),e.errors.push(n)})),n.str):""}function Ue(e,t,n){var r,i=e.schema.tags,o=[],a=k(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.tag===n){if(!s.test){var l=s.resolve(e,t);return l instanceof le?l:new oe(l)}o.push(s)}}}catch(e){a.e(e)}finally{a.f()}var u=Be(e,t);return"string"==typeof u&&o.length>0?xe(u,o,i.scalarFallback):null}var ze=function(e){if(!e)return!1;var t=e.type;return t===S.MAP_KEY||t===S.MAP_VALUE||t===S.SEQ_ITEM};function qe(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=function(e,t){var n,r={before:[],after:[]},i=!1,o=!1,a=k(ze(t.context.parent)?t.context.parent.props.concat(t.props):t.props);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.start,u=s.end;switch(t.context.src[l]){case C.COMMENT:t.commentHasRequiredWhitespace(l)||e.push(new j(t,"Comments must be separated from other tokens by white space characters"));var c=t.header,d=t.valueRange;(d&&(l>d.start||c&&l>c.start)?r.after:r.before).push(t.context.src.slice(l+1,u));break;case C.ANCHOR:i&&e.push(new j(t,"A node can have at most one anchor")),i=!0;break;case C.TAG:o&&e.push(new j(t,"A node can have at most one tag")),o=!0}}}catch(e){a.e(e)}finally{a.f()}return{comments:r,hasAnchor:i,hasTag:o}}(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var a=e.anchors,s=t.anchor,l=a.getNode(s);l&&(a.map[a.newName(s)]=l),a.map[s]=t}t.type===S.ALIAS&&(i||o)&&e.errors.push(new j(t,"An alias node must not specify any properties"));var u=function(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===S.ALIAS){var o=t.rawValue,a=n.getNode(o);if(!a){var s="Aliased anchor not found: ".concat(o);return r.push(new L(t,s)),null}var l=new pe(a);return n._cstAliases.push(l),l}var u=function(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,a=n.suffix,s=n.verbatim;if(s){if("!"!==s&&"!!"!==s)return s;var l="Verbatim tags aren't resolved, so ".concat(s," is invalid.");e.errors.push(new j(t,l))}else if("!"!==o||a)try{return function(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find((function(e){return e.handle===r}));if(!o){var a=e.getDefaults().tagPrefixes;if(a&&(o=a.find((function(e){return e.handle===r}))),!o)throw new j(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new j(t,"The ".concat(r," tag has no suffix."));if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new F(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var s=i.match(/^([a-z0-9-]+)\/(.*)/i);return s?"tag:".concat(s[1],".yaml.org,2002:").concat(s[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}(e,t)}catch(t){e.errors.push(t)}else i=!0}switch(r){case S.BLOCK_FOLDED:case S.BLOCK_LITERAL:case S.QUOTE_DOUBLE:case S.QUOTE_SINGLE:return T.STR;case S.FLOW_MAP:case S.MAP:return T.MAP;case S.FLOW_SEQ:case S.SEQ:return T.SEQ;case S.PLAIN:return i?T.STR:null;default:return null}}(e,t);if(u)return function(e,t,n){try{var r=Ue(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{var i=function(e){switch(e.type){case S.FLOW_MAP:case S.MAP:return T.MAP;case S.FLOW_SEQ:case S.SEQ:return T.SEQ;default:return T.STR}}(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new F(t,o));var a=Ue(e,t,i);return a.tag=n,a}catch(n){var s=new L(t,n.message);return s.stack=n.stack,e.errors.push(s),null}}(e,t,u);if(t.type!==S.PLAIN){var c="Failed to resolve ".concat(t.type," node here");return r.push(new N(t,c)),null}try{return xe(Be(e,t),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);var c=r.before.join("\n");c&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(c):c);var d=r.after.join("\n");d&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(d):d)}return t.resolved=u}function We(e,t){if(t.type!==S.MAP&&t.type!==S.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new N(t,n)),null}var r=t.type===S.FLOW_MAP?function(e,t){for(var n=[],r=[],i=void 0,o=!1,a="{",s=0;s<t.items.length;++s){var l=t.items[s];if("string"==typeof l.char){var u=l.char,c=l.offset;if("?"===u&&void 0===i&&!o){o=!0,a=":";continue}if(":"===u){if(void 0===i&&(i=null),":"===a){a=",";continue}}else if(o&&(void 0===i&&","!==u&&(i=null),o=!1),void 0!==i&&(r.push(new de(i)),i=void 0,","===u)){a=":";continue}if("}"===u){if(s===t.items.length-1)continue}else if(u===a){a=":";continue}var d="Flow map contains an unexpected ".concat(u),f=new N(t,d);f.offset=c,e.errors.push(f)}else l.type===S.BLANK_LINE?n.push({afterKey:!!i,before:r.length}):l.type===S.COMMENT?(je(e.errors,l),n.push({afterKey:!!i,before:r.length,comment:l.comment})):void 0===i?(","===a&&e.errors.push(new j(l,"Separator , missing in flow map")),i=qe(e,l)):(","!==a&&e.errors.push(new j(l,"Indicator : missing in flow map entry")),r.push(new de(i,qe(e,l))),i=void 0,o=!1)}return Le(e.errors,t),void 0!==i&&r.push(new de(i)),{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=void 0,o=null,a=0;a<t.items.length;++a){var s=t.items[a];switch(s.type){case S.BLANK_LINE:n.push({afterKey:!!i,before:r.length});break;case S.COMMENT:n.push({afterKey:!!i,before:r.length,comment:s.comment});break;case S.MAP_KEY:void 0!==i&&r.push(new de(i)),s.error&&e.errors.push(s.error),i=qe(e,s.node),o=null;break;case S.MAP_VALUE:if(void 0===i&&(i=null),s.error&&e.errors.push(s.error),!s.context.atLineStart&&s.node&&s.node.type===S.MAP&&!s.node.context.atLineStart){e.errors.push(new j(s.node,"Nested mappings are not allowed in compact mappings"))}var l=s.node;if(!l&&s.props.length>0){(l=new B(S.PLAIN,[])).context={parent:s,src:s.context.src};var u=s.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},"number"==typeof s.range.origStart){var c=s.range.origStart+1;l.range.origStart=l.range.origEnd=c,l.valueRange.origStart=l.valueRange.origEnd=c}}var d=new de(i,qe(e,l));He(s,d),r.push(d),i&&"number"==typeof o&&s.range.start>o+1024&&e.errors.push(Ne(t,i)),i=void 0,o=null;break;default:void 0!==i&&r.push(new de(i)),i=qe(e,s),o=s.range.start,s.error&&e.errors.push(s.error);e:for(var f=a+1;;++f){var p=t.items[f];switch(p&&p.type){case S.BLANK_LINE:case S.COMMENT:continue e;case S.MAP_VALUE:break e;default:e.errors.push(new j(s,"Implicit map keys need to be followed by map values"));break e}}if(s.valueRangeContainsNewline){e.errors.push(new j(s,"Implicit map keys need to be on a single line"))}}}return void 0!==i&&r.push(new de(i)),{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new me;a.items=o,Fe(a,i);for(var s=!1,l=0;l<o.length;++l){var u=o[l].key;if(u instanceof le&&(s=!0),e.schema.merge&&u&&"<<"===u.value){o[l]=new ge(o[l]);var c=o[l].value.items,d=null;c.some((function(e){if(e instanceof pe){var t=e.source.type;return t!==S.MAP&&t!==S.FLOW_MAP&&(d="Merge nodes aliases can only point to maps")}return d="Merge nodes can only have Alias nodes as values"})),d&&e.errors.push(new j(t,d))}else for(var f=l+1;f<o.length;++f){var p=o[f].key;if(u===p||u&&p&&Object.prototype.hasOwnProperty.call(u,"value")&&u.value===p.value){var h='Map keys must be unique; "'.concat(u,'" is repeated');e.errors.push(new j(t,h));break}}}return s&&!e.options.mapAsMap&&e.warnings.push(new F(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}var $e=function(e){var t=e.context,n=t.lineStart,r=t.node,i=t.src,o=e.props;if(0===o.length)return!1;var a=o[0].start;if(r&&a>r.valueRange.start)return!1;if(i[a]!==C.COMMENT)return!1;for(var s=n;s<a;++s)if("\n"===i[s])return!1;return!0};function He(e,t){if($e(e)){var n=e.getPropValue(0,C.COMMENT,!0),r=!1,i=t.value.commentBefore;if(i&&i.startsWith(n))t.value.commentBefore=i.substr(n.length+1),r=!0;else{var o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}function Ge(e,t){if(t.type!==S.SEQ&&t.type!==S.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new N(t,n)),null}var r=t.type===S.FLOW_SEQ?function(e,t){for(var n=[],r=[],i=!1,o=void 0,a=null,s="[",l=null,u=0;u<t.items.length;++u){var c=t.items[u];if("string"==typeof c.char){var d=c.char,f=c.offset;if(":"===d||!i&&void 0===o||(i&&void 0===o&&(o=s?r.pop():null),r.push(new de(o)),i=!1,o=void 0,a=null),d===s)s=null;else if(s||"?"!==d){if("["!==s&&":"===d&&void 0===o){if(","===s){if((o=r.pop())instanceof de){var p=new j(t,"Chaining flow sequence pairs is invalid");p.offset=f,e.errors.push(p)}if(!i&&"number"==typeof a){var h=c.range?c.range.start:c.offset;h>a+1024&&e.errors.push(Ne(t,o));for(var m=l.context.src,g=a;g<h;++g)if("\n"===m[g]){e.errors.push(new j(l,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else o=null;a=null,i=!1,s=null}else if("["===s||"]"!==d||u<t.items.length-1){var v="Flow sequence contains an unexpected ".concat(d),y=new N(t,v);y.offset=f,e.errors.push(y)}}else i=!0}else if(c.type===S.BLANK_LINE)n.push({before:r.length});else if(c.type===S.COMMENT)je(e.errors,c),n.push({comment:c.comment,before:r.length});else{if(s){var b="Expected a ".concat(s," in flow sequence");e.errors.push(new j(c,b))}var w=qe(e,c);void 0===o?(r.push(w),l=c):(r.push(new de(o,w)),o=void 0),a=c.range.start,s=","}}return Le(e.errors,t),void 0!==o&&r.push(new de(o)),{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=0;i<t.items.length;++i){var o=t.items[i];switch(o.type){case S.BLANK_LINE:n.push({before:r.length});break;case S.COMMENT:n.push({comment:o.comment,before:r.length});break;case S.SEQ_ITEM:if(o.error&&e.errors.push(o.error),r.push(qe(e,o.node)),o.hasProps){e.errors.push(new j(o,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new N(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new ce;return a.items=o,Fe(a,i),!e.options.mapAsMap&&o.some((function(e){return e instanceof de&&e.key instanceof le}))&&e.warnings.push(new F(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}var Ve=n(48834).Buffer,Ke={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=Be(e,t);if("function"==typeof Ve)return Ve.from(n,"base64");if("function"==typeof atob){for(var r=atob(n.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}return e.errors.push(new L(t,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:ve,stringify:function(e,t,n,r){var i,o=e.comment,a=e.type,s=e.value;if("function"==typeof Ve)i=s instanceof Ve?s.toString("base64"):Ve.from(s.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var l="",u=0;u<s.length;++u)l+=String.fromCharCode(s[u]);i=btoa(l)}if(a||(a=ve.defaultType),a===S.QUOTE_DOUBLE)s=i;else{for(var c=ve.lineWidth,d=Math.ceil(i.length/c),f=new Array(d),p=0,h=0;p<d;++p,h+=c)f[p]=i.substr(h,c);s=f.join(a===S.BLOCK_LITERAL?"\n":" ")}return De({comment:o,type:a,value:s},t,n,r)}};function Ze(e,t){for(var n=Ge(e,t),r=0;r<n.items.length;++r){var i=n.items[r];if(!(i instanceof de)){if(i instanceof me){if(i.items.length>1)throw new j(t,"Each pair must have its own sequence indicator");var o=i.items[0]||new de;i.commentBefore&&(o.commentBefore=o.commentBefore?"".concat(i.commentBefore,"\n").concat(o.commentBefore):i.commentBefore),i.comment&&(o.comment=o.comment?"".concat(i.comment,"\n").concat(o.comment):i.comment),i=o}n.items[r]=i instanceof de?i:new de(i)}}return n}function Ye(e,t,n){var r=new ce(e);r.tag="tag:yaml.org,2002:pairs";var i,o=k(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=void 0,l=void 0;if(Array.isArray(a)){if(2!==a.length)throw new TypeError("Expected [key, value] tuple: ".concat(a));s=a[0],l=a[1]}else if(a&&a instanceof Object){var u=Object.keys(a);if(1!==u.length)throw new TypeError("Expected { key: value } tuple: ".concat(a));l=a[s=u[0]]}else s=a;var c=e.createPair(s,l,n);r.items.push(c)}}catch(e){o.e(e)}finally{o.f()}return r}var Xe={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ze,createNode:Ye},Qe=function(e){l(n,e);var t=g(n);function n(){var e;return i(this,n),s(h(e=t.call(this)),"add",me.prototype.add.bind(h(e))),s(h(e),"delete",me.prototype.delete.bind(h(e))),s(h(e),"get",me.prototype.get.bind(h(e))),s(h(e),"has",me.prototype.has.bind(h(e))),s(h(e),"set",me.prototype.set.bind(h(e))),e.tag=n.tag,e}return a(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,i=k(this.items);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=void 0,s=void 0;if(o instanceof de?(a=ie(o.key,"",t),s=ie(o.value,a,t)):a=ie(o,"",t),n.has(a))throw new Error("Ordered maps must not include duplicate keys");n.set(a,s)}}catch(e){i.e(e)}finally{i.f()}return n}}]),n}(ce);s(Qe,"tag","tag:yaml.org,2002:omap");var Je={identify:function(e){return e instanceof Map},nodeClass:Qe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=Ze(e,t),i=[],o=k(r.items);try{for(o.s();!(n=o.n()).done;){var a=n.value.key;if(a instanceof oe){if(i.includes(a.value))throw new j(t,"Ordered maps must not include duplicate keys");i.push(a.value)}}}catch(e){o.e(e)}finally{o.f()}return Object.assign(new Qe,r)},createNode:function(e,t,n){var r=Ye(e,t,n),i=new Qe;return i.items=r.items,i}},et=function(e){l(n,e);var t=g(n);function n(){var e;return i(this,n),(e=t.call(this)).tag=n.tag,e}return a(n,[{key:"add",value:function(e){var t=e instanceof de?e:new de(e);he(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=he(this.items,e);return!t&&n instanceof de?n.key instanceof oe?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(r(t)));var n=he(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new de(e))}},{key:"toJSON",value:function(e,t){return v(u(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return v(u(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(me);s(et,"tag","tag:yaml.org,2002:set");var tt={identify:function(e){return e instanceof Set},nodeClass:et,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=We(e,t);if(!n.hasAllNullValues())throw new j(t,"Set items must all have null values");return Object.assign(new et,n)},createNode:function(e,t,n){var r,i=new et,o=k(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.items.push(e.createPair(a,null,n))}}catch(e){o.e(e)}finally{o.f()}return i}},nt=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},rt=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Ie(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},it={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return nt(t,n.replace(/_/g,""))},stringify:rt},ot={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return nt(t,n.replace(/_/g,""))},stringify:rt},at={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,o,a,s,l){s&&(s=(s+"00").substr(1,3));var u=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(l&&"Z"!==l){var c=nt(l[0],l.slice(1));Math.abs(c)<30&&(c*=60),u-=6e4*c}return new Date(u)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function st(e){var t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function lt(e,t){if(st(!1)){var n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var ut={},ct={createNode:function(e,t,n){var i=new me(e);if(t instanceof Map){var o,a=k(t);try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),l=s[0],u=s[1];i.items.push(e.createPair(l,u,n))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===r(t))for(var c=0,d=Object.keys(t);c<d.length;c++){var f=d[c];i.items.push(e.createPair(f,t[f],n))}return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:me,tag:"tag:yaml.org,2002:map",resolve:We},dt={createNode:function(e,t,n){var r=new ce(e);if(t&&t[Symbol.iterator]){var i,o=k(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e.createNode(a,n.wrapScalars,null,n);r.items.push(s)}}catch(e){o.e(e)}finally{o.f()}}return r},default:!0,nodeClass:ce,tag:"tag:yaml.org,2002:seq",resolve:Ge},ft=[ct,dt,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:Be,stringify:function(e,t,n,r){return De(e,t=Object.assign({actualString:!0},t),n,r)},options:_e}],pt=function(e){return"bigint"==typeof e||Number.isInteger(e)},ht=function(e,t,n){return be.asBigInt?BigInt(e):parseInt(t,n)};function mt(e,t,n){var r=e.value;return pt(r)&&r>=0?n+r.toString(t):Ie(e)}var gt={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new oe(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:we,stringify:function(){return we.nullStr}},vt={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:ye,stringify:function(e){return e.value?ye.trueStr:ye.falseStr}},yt={identify:function(e){return pt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return ht(e,t,8)},options:be,stringify:function(e){return mt(e,8,"0o")}},bt={identify:pt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return ht(e,e,10)},options:be,stringify:Ie},wt={identify:function(e){return pt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return ht(e,t,16)},options:be,stringify:function(e){return mt(e,16,"0x")}},_t={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Ie},xt={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},Et={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,i=new oe(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:Ie},kt=ft.concat([gt,vt,yt,bt,wt,_t,xt,Et]),Ct=function(e){return"bigint"==typeof e||Number.isInteger(e)},St=function(e){var t=e.value;return JSON.stringify(t)},At=[ct,dt,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:Be,stringify:St},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new oe(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:St},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:St},{identify:Ct,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return be.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return Ct(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:St}];At.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var Tt=function(e){return e.value?ye.trueStr:ye.falseStr},Ot=function(e){return"bigint"==typeof e||Number.isInteger(e)};function Pt(e,t,n){var r=t.replace(/_/g,"");if(be.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}var i=BigInt(r);return"-"===e?BigInt(-1)*i:i}var o=parseInt(r,n);return"-"===e?-1*o:o}function Rt(e,t,n){var r=e.value;if(Ot(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Ie(e)}var Mt=ft.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new oe(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:we,stringify:function(){return we.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:ye,stringify:Tt},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:ye,stringify:Tt},{identify:Ot,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,n){return Pt(t,n,2)},stringify:function(e){return Rt(e,2,"0b")}},{identify:Ot,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,n){return Pt(t,n,8)},stringify:function(e){return Rt(e,8,"0")}},{identify:Ot,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,n){return Pt(t,n,10)},stringify:Ie},{identify:Ot,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,n){return Pt(t,n,16)},stringify:function(e){return Rt(e,16,"0x")}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Ie},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new oe(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:Ie}],Ke,Je,Xe,tt,it,ot,at),Dt={core:kt,failsafe:ft,json:At,yaml11:Mt},It={binary:Ke,bool:vt,float:Et,floatExp:xt,floatNaN:_t,floatTime:ot,int:bt,intHex:wt,intOct:yt,intTime:it,map:ct,null:gt,omap:Je,pairs:Xe,seq:dt,set:tt,timestamp:at};var Lt=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},jt=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.sortMapEntries,s=t.tags;i(this,e),this.merge=!!r,this.name=o,this.sortMapEntries=!0===a?Lt:a||null,!n&&s&&function(e,t){if(!ut[e]&&st(!0)){ut[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");lt(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}("tags","customTags"),this.tags=function(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var a,s=k(n);try{for(s.s();!(a=s.n()).done;){var l=a.value;i=i.concat(l)}}catch(e){s.e(e)}finally{s.f()}}else"function"==typeof n&&(i=n(i.slice()));for(var u=0;u<i.length;++u){var c=i[u];if("string"==typeof c){var d=t[c];if(!d){var f=Object.keys(t).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(f))}i[u]=d}}return i}(Dt,It,n||s,o)}return a(e,[{key:"createNode",value:function(t,n,i,o){var a={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return function(e,t,n){if(e instanceof re)return e;var i=n.defaultPrefix,o=n.onTagObj,a=n.prevObjects,s=n.schema,l=n.wrapScalars;t&&t.startsWith("!!")&&(t=i+t.slice(2));var u=function(e,t,n){if(t){var r=n.filter((function(e){return e.tag===t})),i=r.find((function(e){return!e.format}))||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find((function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format}))}(e,t,s.tags);if(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==r(e))return l?new oe(e):e;u=e instanceof Map?ct:e[Symbol.iterator]?dt:ct}o&&(o(u),delete n.onTagObj);var c={value:void 0,node:void 0};if(e&&"object"===r(e)&&a){var d=a.get(e);if(d){var f=new pe(d);return n.aliasNodes.push(f),f}c.value=e,a.set(e,c)}return c.node=u.createNode?u.createNode(n.schema,e,n):l?new oe(e):e,t&&c.node instanceof re&&(c.node.tag=t),c.node}(t,i,o?Object.assign(o,a):a)}},{key:"createPair",value:function(e,t,n){n||(n={wrapScalars:!0});var r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new de(r,i)}}]),e}();s(jt,"defaultPrefix",A),s(jt,"defaultTags",T);var Nt={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ft={get binary(){return ve},set binary(e){Object.assign(ve,e)},get bool(){return ye},set bool(e){Object.assign(ye,e)},get int(){return be},set int(e){Object.assign(be,e)},get null(){return we},set null(e){Object.assign(we,e)},get str(){return _e},set str(e){Object.assign(_e,e)}},Bt={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:A},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:A}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:A}]}};function Ut(e,t){if("1.0"===(e.version||e.options.version)){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find((function(e){return 0===t.indexOf(e.prefix)}));if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find((function(e){return 0===t.indexOf(e.prefix)}))}if(!i)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,(function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]}));return i.handle+a}function zt(e,t,n,i){var o,a=t.doc,s=a.anchors,l=a.schema;if(!(e instanceof re)){var u={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=l.createNode(e,!0,null,u);var c,d=k(u.aliasNodes);try{for(d.s();!(c=d.n()).done;){var f=c.value;f.source=f.source.node;var p=s.getName(f.source);p||(p=s.newName(),s.map[p]=f.source)}}catch(e){d.e(e)}finally{d.f()}}if(e instanceof de)return e.toString(t,n,i);o||(o=function(e,t){if(t instanceof pe)return pe;if(t.tag){var n=e.filter((function(e){return e.tag===t.tag}));if(n.length>0)return n.find((function(e){return e.format===t.format}))||n[0]}var i,o;if(t instanceof oe){o=t.value;var a=e.filter((function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class}));i=a.find((function(e){return e.format===t.format}))||a.find((function(e){return!e.format}))}else o=t,i=e.find((function(e){return e.nodeClass&&o instanceof e.nodeClass}));if(!i){var s=o&&o.constructor?o.constructor.name:r(o);throw new Error("Tag not resolved for ".concat(s," value"))}return i}(l.tags,e));var h=function(e,t,n){var r=n.anchors,i=n.doc,o=[],a=i.anchors.getName(e);return a&&(r[a]=e,o.push("&".concat(a))),e.tag?o.push(Ut(i,e.tag)):t.default||o.push(Ut(i,t.tag)),o.join(" ")}(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var m="function"==typeof o.stringify?o.stringify(e,t,n,i):e instanceof oe?De(e,t,n,i):e.toString(t,n,i);return h?e instanceof oe||"{"===m[0]||"["===m[0]?"".concat(h," ").concat(m):"".concat(h,"\n").concat(t.indent).concat(m):m}var qt=function(){function e(t){i(this,e),s(this,"map",Object.create(null)),this.prefix=t}return a(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new pe(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new ge,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.value.items=r.map((function(t){if(t instanceof pe){if(t.source instanceof me)return t}else if(t instanceof me)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find((function(n){return t[n]===e}))}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach((function(t){e[t]=e[t].resolved})),t.forEach((function(e){e.source=e.source.resolved})),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,i=t&&Object.keys(r).find((function(e){return r[e]===t}));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}],[{key:"validAnchorNode",value:function(e){return e instanceof oe||e instanceof ce||e instanceof me}}]),e}(),Wt=function e(t,n){if(t&&"object"===r(t)){var i=t.tag;t instanceof le?(i&&(n[i]=!0),t.items.forEach((function(t){return e(t,n)}))):t instanceof de?(e(t.key,n),e(t.value,n)):t instanceof oe&&i&&(n[i]=!0)}return n},$t=function(e){return Object.keys(Wt(e,{}))};function Ht(e,t){var n=e.tagPrefixes,r=y(t.parameters,2),i=r[0],o=r[1];if(!i||!o)throw new j(t,"Insufficient parameters given for %TAG directive");if(n.some((function(e){return e.handle===i})))throw new j(t,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:i,prefix:o}}function Gt(e,t){var n=y(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),!n)throw new j(t,"Insufficient parameters given for %YAML directive");if(!Bt[n]){var r=e.version||e.options.version,i="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);e.warnings.push(new F(t,i))}return n}function Vt(e){if(e instanceof le)return!0;throw new Error("Expected a YAML collection as document contents")}var Kt=function(){function e(t){i(this,e),this.anchors=new qt(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return a(e,[{key:"add",value:function(e){return Vt(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){Vt(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return Vt(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return se(e)?null!=this.contents&&(this.contents=null,!0):(Vt(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof le?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return se(e)?!t&&this.contents instanceof oe?this.contents.value:this.contents:this.contents instanceof le?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof le&&this.contents.has(e)}},{key:"hasIn",value:function(e){return se(e)?void 0!==this.contents:this.contents instanceof le&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){Vt(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){se(e)?this.contents=t:(Vt(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new jt(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,i=e.contents,o=void 0===i?[]:i,a=e.directivesEndMarker,s=e.error,l=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),function(e,t,n){var r,i=[],o=!1,a=k(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.comment,u=s.name;switch(u){case"TAG":try{e.tagPrefixes.push(Ht(e,s))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":e.version&&e.errors.push(new j(s,"The %YAML directive must only be given at most once per document."));try{e.version=Gt(e,s)}catch(t){e.errors.push(t)}o=!0;break;default:if(u){var c="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new F(s,c))}}l&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}n&&!o&&"1.1"===(e.version||n.version||e.options.version)&&(e.tagPrefixes=n.tagPrefixes.map((function(e){return{handle:e.handle,prefix:e.prefix}})),e.version=n.version),e.commentBefore=i.join("\n")||null}(this,r,t),a&&(this.directivesEndMarker=!0),this.range=l?[l.start,l.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var n,r={before:[],after:[]},i=void 0,o=!1,a=k(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.valueRange){if(void 0!==i){e.errors.push(new N(s,"Document contains trailing content not separated by a ... or --- line"));break}var l=qe(e,s);o&&(l.spaceBefore=!0,o=!1),i=l}else null!==s.comment?(void 0===i?r.before:r.after).push(s.comment):s.type===S.BLANK_LINE&&(o=!0,void 0===i&&r.before.length>0&&!e.commentBefore&&(e.commentBefore=r.before.join("\n"),r.before=[]))}}catch(e){a.e(e)}finally{a.f()}if(e.contents=i||null,i){var u=r.before.join("\n");if(u){var c=i instanceof le&&i.items[0]?i.items[0]:i;c.commentBefore=c.commentBefore?"".concat(u,"\n").concat(c.commentBefore):u}e.comment=r.after.join("\n")||null}else e.comment=r.before.concat(r.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){var u,c=k(this.errors);try{for(c.s();!(u=c.n()).done;){var d=u.value;d instanceof I&&d.makePretty()}}catch(e){c.e(e)}finally{c.f()}var f,p=k(this.warnings);try{for(p.s();!(f=p.n()).done;){var h=f.value;h instanceof I&&h.makePretty()}}catch(e){p.e(e)}finally{p.f()}}return this}},{key:"listNonDefaultTags",value:function(){return $t(this.contents).filter((function(e){return 0!==e.indexOf(jt.defaultPrefix)}))}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find((function(t){return t.handle===e}));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((function(t){return t.handle!==e}))}},{key:"toJSON",value:function(e,t){var n=this,r=this.options,i=r.keepBlobsInJSON,o=r.mapAsMap,a=r.maxAliasCount,s=i&&("string"!=typeof e||!(this.contents instanceof oe)),l={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!o,maxAliasCount:a,stringify:zt},u=Object.keys(this.anchors.map);u.length>0&&(l.anchors=new Map(u.map((function(e){return[n.anchors.map[e],{alias:[],aliasCount:0,count:1}]}))));var c=ie(this.contents,e,l);if("function"==typeof t&&l.anchors){var d,f=k(l.anchors.values());try{for(f.s();!(d=f.n()).done;){var p=d.value,h=p.count;t(p.res,h)}}catch(e){f.e(e)}finally{f.f()}}return c}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var n=[],r=!1;if(this.version){var i="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?i="%YAML:1.0":"1.1"===this.version&&(i="%YAML 1.1")),n.push(i),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach((function(e){var t=e.handle,i=e.prefix;o.some((function(e){return 0===e.indexOf(i)}))&&(n.push("%TAG ".concat(t," ").concat(i)),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:zt},s=!1,l=null;if(this.contents){this.contents instanceof re&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,l=this.contents.comment);var u=l?null:function(){return s=!0},c=zt(this.contents,a,(function(){return l=null}),u);n.push(ne(c,"",l))}else void 0!==this.contents&&n.push(zt(this.contents,a));return this.comment&&(s&&!l||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}]),e}();s(Kt,"defaults",Bt);var Zt=function(e){l(n,e);var t=g(n);function n(e){return i(this,n),t.call(this,Object.assign({},Nt,e))}return n}(Kt);function Yt(e,t){var n=te(e),r=new Zt(t).parse(n[0]);return n.length>1&&r.errors.unshift(new j(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()")),r}var Xt={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},Kt.defaults[Nt.version],Nt);return new jt(r).createNode(e,t,n)},defaultOptions:Nt,Document:Zt,parse:function(e,t){var n=Yt(e,t);if(n.warnings.forEach((function(e){return lt(e)})),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r,i=[],o=k(te(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=new Zt(t);s.parse(a,n),i.push(s),n=s}}catch(e){o.e(e)}finally{o.f()}return i},parseCST:te,parseDocument:Yt,scalarOptions:Ft,stringify:function(e,t){var n=new Zt(t);return n.contents=e,String(n)}}},22017:e=>{"use strict";e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"′","Prime":"″","oline":"‾","frasl":"⁄","weierp":"℘","image":"ℑ","real":"ℜ","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"−","lowast":"∗","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"∨","cap":"∩","cup":"∪","int":"∫","there4":"∴","sim":"∼","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":" ","emsp":" ","thinsp":" ","zwnj":"","zwj":"","lrm":"","rlm":"","ndash":"–","mdash":"—","lsquo":"‘","rsquo":"’","sbquo":"‚","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"‹","rsaquo":"›","euro":"€"}')},93562:e=>{"use strict";e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},71216:e=>{"use strict";e.exports=JSON.parse('{"0":"<22>","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},98176:e=>{"use strict";e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},25183:e=>{"use strict";e.exports=JSON.parse('["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]')},47185:e=>{"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},99026:e=>{"use strict";e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},11653:e=>{"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},26916:e=>{"use strict";e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')},74388:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},44746:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},88194:e=>{"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{DecapCmsApp:()=>T});var e=__webpack_require__(84185),t=__webpack_require__(55281),n=__webpack_require__(59405),r=__webpack_require__(48638),i=__webpack_require__(34554),o=__webpack_require__(38589),a=__webpack_require__(12318),s=__webpack_require__(17134),l=__webpack_require__(58908),u=__webpack_require__(99307),c=__webpack_require__(67353),d=__webpack_require__(82133),f=__webpack_require__(53651),p=__webpack_require__(79386),h=__webpack_require__(76889),m=__webpack_require__(31540),g=__webpack_require__(79425),v=__webpack_require__(57677),y=__webpack_require__(16044),b=__webpack_require__(73884),w=__webpack_require__(56293),_=__webpack_require__(71515),x=__webpack_require__(23827),E=__webpack_require__(15646),k=__webpack_require__(58335),C=__webpack_require__(40299),S=__webpack_require__(92035);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.Nw.registerBackend("git-gateway",a.UU),e.Nw.registerBackend("azure",t.XK),e.Nw.registerBackend("aws-cognito-github-proxy",n.ON),e.Nw.registerBackend("github",r.GitHubBackend),e.Nw.registerBackend("gitlab",i.GitLabBackend),e.Nw.registerBackend("gitea",o.bu),e.Nw.registerBackend("bitbucket",s.BitbucketBackend),e.Nw.registerBackend("test-repo",l.$f),e.Nw.registerBackend("proxy",u.JZ),e.Nw.registerWidget([c.ZP.Widget(),d.ZP.Widget(),f.ZP.Widget(),p.ZP.Widget(),h.default.Widget(),m.ZP.Widget(),g.ZP.Widget(),v.ZP.Widget(),y.default.Widget(),b.ZP.Widget(),w.ZP.Widget(),_.ZP.Widget(),x.ZP.Widget(),E.ZP.Widget(),k.ZP.Widget()]),e.Nw.registerEditorComponent(C.ZP),e.Nw.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(S).forEach((t=>{e.Nw.registerLocale(t,S[t])})),"undefined"!=typeof window&&console.log("decap-cms-app 3.3.3");const T=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i))?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.Nw)})(),__webpack_exports__=__webpack_exports__.DecapCmsApp,__webpack_exports__})()));
|
||
//# sourceMappingURL=decap-cms-app.js.map |