/*! For license information please see inspector.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditorInspector=t():e.CKEditorInspector=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}([function(e,t,n){"use strict";e.exports=n(21)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var r=n(19);function o(e,t=!0){if(void 0===e)return"undefined";if("function"==typeof e)return"function() {…}";const n=Object(r.stringify)(e,s,null,{maxDepth:2});return t?n:n.replace(/(^"|"$)/g,"")}function i(e){const t={};for(const n in e)t[n]=e[n],t[n].value=o(t[n].value);return t}function a(e,t){return e.length>t?e.substr(0,t)+`… [${e.length-t} characters left]`:e}function s(e,t,n){return"string"==typeof e?`"${e.replace("'",'"')}"`:n(e)}},function(e,t,n){"use strict";function r(e){return e&&e.name}function o(e){return e&&r(e)&&e.is("attributeElement")}function i(e){return e&&r(e)&&e.is("emptyElement")}function a(e){return e&&r(e)&&e.is("uiElement")}function s(e){return e&&r(e)&&e.is("rawElement")}function l(e){return e&&r(e)&&e.is("editableElement")}function c(e){return e&&e.is("rootElement")}function u(e){return{path:[...e.parent.getPath(),e.offset],offset:e.offset,isAtEnd:e.isAtEnd,isAtStart:e.isAtStart,parent:p(e.parent)}}function p(e){return r(e)?o(e)?"attribute:"+e.name:c(e)?"root:"+e.name:"container:"+e.name:e.data}n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{static group(...e){console.group(...e)}static groupEnd(...e){console.groupEnd(...e)}static log(...e){console.log(...e)}static warn(...e){console.warn(...e)}}},function(e,t,n){"use strict";function r(e){return e&&e.is("element")}function o(e){return e&&e.is("rootElement")}function i(e){return e.getPath?e.getPath():e.path}function a(e){return{path:i(e),stickiness:e.stickiness,index:e.index,isAtEnd:e.isAtEnd,isAtStart:e.isAtStart,offset:e.offset,textNode:e.textNode&&e.textNode.data}}n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}))},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,f=u||p||Function("return this")(),d=t&&!t.nodeType&&t,h=d&&"object"==typeof n&&n&&!n.nodeType&&n,m=h&&h.exports===d,g=m&&u.process,y=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),b=y&&y.isTypedArray;function v(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,p=!0,f=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++u-1},re.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(V||re),string:new ne}},oe.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return ge(this,e).get(e)},oe.prototype.has=function(e){return ge(this,e).has(e)},oe.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(e,t),this.size=n.size,this};var be=F?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==typeof e}var Pe=b?function(e){return function(t){return e(t)}}(b):function(e){return Ne(e)&&Te(e.length)&&!!c[ce(e)]};function De(e){return null!=(t=e)&&Te(t.length)&&!Ce(t)?se(e):de(e);var t}n.exports=function(e,t){return pe(e,t)}}).call(this,n(15),n(33)(e))},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;nFind out why. -->`,l=`<!--The View raw element content has been skipped. Find out why. -->`;function c(e){return e?[...e.editing.view.document.roots]:[]}function u(e,t){if(!e)return[];const n=[],o=e.editing.view.document.selection;for(const e of o.getRanges())e.root.rootName===t&&n.push({type:"selection",start:Object(r.a)(e.start),end:Object(r.a)(e.end)});return n}function p({currentEditor:e,currentRootName:t,ranges:n}){if(!e||!t)return null;return[d(e.editing.view.document.getRoot(t),[...n])]}function f(e){const t={editorNode:e,properties:{},attributes:{},customProperties:{}};if(Object(r.d)(e)){Object(r.g)(e)?(t.type="RootEditableElement",t.name=e.rootName,t.url=a+"_rooteditableelement-RootEditableElement.html"):(t.name=e.name,Object(r.b)(e)?(t.type="AttributeElement",t.url=a+"_attributeelement-AttributeElement.html"):Object(r.e)(e)?(t.type="EmptyElement",t.url=a+"_emptyelement-EmptyElement.html"):Object(r.h)(e)?(t.type="UIElement",t.url=a+"_uielement-UIElement.html"):Object(r.f)(e)?(t.type="RawElement",t.url=a+"_rawelement-RawElement.html"):Object(r.c)(e)?(t.type="EditableElement",t.url=a+"_editableelement-EditableElement.html"):(t.type="ContainerElement",t.url=a+"_containerelement-ContainerElement.html")),g(e).forEach(([e,n])=>{t.attributes[e]={value:n}}),t.properties={index:{value:e.index},isEmpty:{value:e.isEmpty},childCount:{value:e.childCount}};for(let[n,r]of e.getCustomProperties())"symbol"==typeof n&&(n=n.toString()),t.customProperties[n]={value:r}}else t.name=e.data,t.type="Text",t.url=a+"_text-Text.html",t.properties={index:{value:e.index}};return t.properties=Object(i.b)(t.properties),t.customProperties=Object(i.b)(t.customProperties),t.attributes=Object(i.b)(t.attributes),t}function d(e,t){const n={};return Object.assign(n,{index:e.index,path:e.getPath(),node:e,positionsBefore:[],positionsAfter:[]}),Object(r.d)(e)?function(e,t){const n=e.node;Object.assign(e,{type:"element",children:[],positions:[]}),e.name=n.name,Object(r.b)(n)?e.elementType="attribute":Object(r.g)(n)?e.elementType="root":Object(r.e)(n)?e.elementType="empty":Object(r.h)(n)?e.elementType="ui":Object(r.f)(n)?e.elementType="raw":e.elementType="container";Object(r.e)(n)?e.presentation={isEmpty:!0}:Object(r.h)(n)?e.children.push({type:"comment",text:s}):Object(r.f)(n)&&e.children.push({type:"comment",text:l});for(const r of n.getChildren())e.children.push(d(r,t));(function(e,t){for(const n of t){const t=h(e,n);for(const n of t){const t=n.offset;if(0===t){const t=e.children[0];t?t.positionsBefore.push(n):e.positions.push(n)}else if(t===e.children.length){const t=e.children[e.children.length-1];t?t.positionsAfter.push(n):e.positions.push(n)}else{let r=n.isEnd?0:e.children.length-1,o=e.children[r];for(;o;){if(o.index===t){o.positionsBefore.push(n);break}if(o.index+1===t){o.positionsAfter.push(n);break}r+=n.isEnd?1:-1,o=e.children[r]}}}}})(e,t),e.attributes=function(e){const t=g(e).map(([e,t])=>[e,Object(i.a)(t,!1)]);return new Map(t)}(n)}(n,t):function(e,t){Object.assign(e,{type:"text",startOffset:0,text:e.node.data,positions:[]});for(const n of t){const t=h(e,n);e.positions.push(...t)}}(n,t),n}function h(e,t){const n=e.path,r=t.start.path,o=t.end.path,i=[];return m(n,r)&&i.push({offset:r[r.length-1],isEnd:!1,presentation:t.presentation||null,type:t.type,name:t.name||null}),m(n,o)&&i.push({offset:o[o.length-1],isEnd:!0,presentation:t.presentation||null,type:t.type,name:t.name||null}),i}function m(e,t){if(e.length===t.length-1){if("prefix"===Object(o.a)(e,t))return!0}return!1}function g(e){return[...e.getAttributes()].sort(([e],[t])=>e.toUpperCase()"$graveyard"!==e).concat(t.filter(({rootName:e})=>"$graveyard"===e))}function c(e,t){if(!e)return[];const n=[],o=e.model;for(const e of o.document.selection.getRanges())e.root.rootName===t&&n.push({type:"selection",start:Object(r.a)(e.start),end:Object(r.a)(e.end)});return n}function u(e,t){if(!e)return[];const n=[],o=e.model;let i=0;for(const e of o.markers){const{name:o,affectsData:a,managedUsingOperations:l}=e,c=e.getStart(),u=e.getEnd();c.root.rootName===t&&n.push({type:"marker",marker:e,name:o,affectsData:a,managedUsingOperations:l,presentation:{color:s[i++%(s.length-1)]},start:Object(r.a)(c),end:Object(r.a)(u)})}return n}function p({currentEditor:e,currentRootName:t,ranges:n,markers:r}){if(!e)return[];return[d(e.model.document.getRoot(t),[...n,...r])]}function f(e,t){const n={editorNode:t,properties:{},attributes:{}};Object(r.c)(t)?(Object(r.d)(t)?(n.type="RootElement",n.name=t.rootName,n.url=a+"rootelement-RootElement.html"):(n.type="Element",n.name=t.name,n.url=a+"element-Element.html"),n.properties={childCount:{value:t.childCount},startOffset:{value:t.startOffset},endOffset:{value:t.endOffset},maxOffset:{value:t.maxOffset}}):(n.name=t.data,n.type="Text",n.url=a+"text-Text.html",n.properties={startOffset:{value:t.startOffset},endOffset:{value:t.endOffset},offsetSize:{value:t.offsetSize}}),n.properties.path={value:Object(r.b)(t)},m(t).forEach(([e,t])=>{n.attributes[e]={value:t}}),n.properties=Object(i.b)(n.properties),n.attributes=Object(i.b)(n.attributes);for(const t in n.attributes){const r={},o=e.model.schema.getAttributeProperties(t);for(const e in o)r[e]={value:o[e]};n.attributes[t].subProperties=Object(i.b)(r)}return n}function d(e,t){const n={},{startOffset:o,endOffset:i}=e;return Object.assign(n,{startOffset:o,endOffset:i,node:e,path:e.getPath(),positionsBefore:[],positionsAfter:[]}),Object(r.c)(e)?function(e,t){const n=e.node;Object.assign(e,{type:"element",name:n.name,children:[],maxOffset:n.maxOffset,positions:[]});for(const r of n.getChildren())e.children.push(d(r,t));(function(e,t){for(const n of t){const t=g(e,n);for(const n of t){const t=n.offset;if(0===t){const t=e.children[0];t?t.positionsBefore.push(n):e.positions.push(n)}else if(t===e.maxOffset){const t=e.children[e.children.length-1];t?t.positionsAfter.push(n):e.positions.push(n)}else{let r=n.isEnd?0:e.children.length-1,o=e.children[r];for(;o;){if(o.startOffset===t){o.positionsBefore.push(n);break}if(o.endOffset===t){const t=e.children[r+1],i="text"===o.type&&t&&"element"===t.type,a="element"===o.type&&t&&"text"===t.type,s="text"===o.type&&t&&"text"===t.type;n.isEnd&&(i||a||s)?t.positionsBefore.push(n):o.positionsAfter.push(n);break}if(o.startOffsett){o.positions.push(n);break}r+=n.isEnd?1:-1,o=e.children[r]}}}}})(e,t),e.attributes=h(n)}(n,t):function(e){const t=e.node;Object.assign(e,{type:"text",text:t.data,positions:[],presentation:{dontRenderAttributeValue:!0}}),e.attributes=h(t)}(n),n}function h(e){const t=m(e).map(([e,t])=>[e,Object(i.a)(t,!1)]);return new Map(t)}function m(e){return[...e.getAttributes()].sort(([e],[t])=>eh(e,t,this.props.globalTreeProps))}get definition(){return this.props.definition}get globalTreeProps(){return this.props.globalTreeProps||{}}get isActive(){return this.definition.node===this.globalTreeProps.activeNode}shouldComponentUpdate(e){return!a()(this.props,e)}}var l=n(1);class c extends r.PureComponent{render(){let e;const t=Object(l.c)(this.props.value,500);return this.props.dontRenderValue||(e=o.a.createElement("span",{className:"ck-inspector-tree-node__attribute__value"},t)),o.a.createElement("span",{className:"ck-inspector-tree-node__attribute"},o.a.createElement("span",{className:"ck-inspector-tree-node__attribute__name",title:t},this.props.name),e)}}class u extends r.Component{render(){const e=this.props.definition,t={className:["ck-inspector-tree__position","selection"===e.type?"ck-inspector-tree__position_selection":"","marker"===e.type?"ck-inspector-tree__position_marker":"",e.isEnd?"ck-inspector-tree__position_end":""].join(" "),style:{}};return e.presentation&&e.presentation.color&&(t.style["--ck-inspector-color-tree-position"]=e.presentation.color),"marker"===e.type&&(t["data-marker-name"]=e.name),o.a.createElement("span",t,"​")}shouldComponentUpdate(e){return!a()(this.props,e)}}class p extends s{render(){const e=this.definition,t=e.presentation,n=t&&t.isEmpty,r=t&&t.cssClass,i=this.getChildren(),a=["ck-inspector-code","ck-inspector-tree-node",this.isActive?"ck-inspector-tree-node_active":"",n?"ck-inspector-tree-node_empty":"",r],s=[],l=[];e.positionsBefore&&e.positionsBefore.forEach((e,t)=>{s.push(o.a.createElement(u,{key:"position-before:"+t,definition:e}))}),e.positionsAfter&&e.positionsAfter.forEach((e,t)=>{l.push(o.a.createElement(u,{key:"position-after:"+t,definition:e}))}),e.positions&&e.positions.forEach((e,t)=>{i.push(o.a.createElement(u,{key:"position"+t,definition:e}))});let c=e.name;return this.globalTreeProps.showElementTypes&&(c=e.elementType+":"+c),o.a.createElement("div",{className:a.join(" "),onClick:this.handleClick},s,o.a.createElement("span",{className:"ck-inspector-tree-node__name"},o.a.createElement("span",{className:"ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open"}),c,this.getAttributes(),n?"":o.a.createElement("span",{className:"ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close"})),o.a.createElement("div",{className:"ck-inspector-tree-node__content"},i),n?"":o.a.createElement("span",{className:"ck-inspector-tree-node__name ck-inspector-tree-node__name_close"},o.a.createElement("span",{className:"ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open"}),"/",c,o.a.createElement("span",{className:"ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close"}),l))}getAttributes(){const e=[],t=this.definition;for(const[n,r]of t.attributes)e.push(o.a.createElement(c,{key:n,name:n,value:r}));return e}shouldComponentUpdate(e){return!a()(this.props,e)}}class f extends s{render(){const e=this.definition,t=["ck-inspector-tree-text",this.isActive?"ck-inspector-tree-node_active":""].join(" ");let n=this.definition.text;e.positions&&e.positions.length&&(n=n.split(""),Array.from(e.positions).sort((e,t)=>e.offset{n.splice(t.offset-e.startOffset,0,o.a.createElement(u,{key:"position"+r,definition:t}))}));const r=[n];return e.positionsBefore&&e.positionsBefore.length&&e.positionsBefore.forEach((e,t)=>{r.unshift(o.a.createElement(u,{key:"position-before:"+t,definition:e}))}),e.positionsAfter&&e.positionsAfter.length&&e.positionsAfter.forEach((e,t)=>{r.push(o.a.createElement(u,{key:"position-after:"+t,definition:e}))}),o.a.createElement("span",{className:t,onClick:this.handleClick},o.a.createElement("span",{className:"ck-inspector-tree-node__content"},this.globalTreeProps.showCompactText?"":this.getAttributes(),this.globalTreeProps.showCompactText?"":'"',r,this.globalTreeProps.showCompactText?"":'"'))}getAttributes(){const e=[],t=this.definition,n=t.presentation,r=n&&n.dontRenderAttributeValue;for(const[n,i]of t.attributes)e.push(o.a.createElement(c,{key:n,name:n,value:i,dontRenderValue:r}));return o.a.createElement("span",{className:"ck-inspector-tree-text__attributes"},e)}shouldComponentUpdate(e){return!a()(this.props,e)}}class d extends r.Component{render(){return o.a.createElement("span",{className:"ck-inspector-tree-comment",dangerouslySetInnerHTML:{__html:this.props.definition.text}})}}function h(e,t,n){return"element"===e.type?o.a.createElement(p,{key:t,definition:e,globalTreeProps:n}):"text"===e.type?o.a.createElement(f,{key:t,definition:e,globalTreeProps:n}):"comment"===e.type?o.a.createElement(d,{key:t,definition:e}):void 0}n(34);class m extends r.Component{render(){let e;return e=this.props.definition?this.props.definition.map((e,t)=>h(e,t,{onClick:this.props.onClick,showCompactText:this.props.showCompactText,showElementTypes:this.props.showElementTypes,activeNode:this.props.activeNode})):"Nothing to show.",o.a.createElement("div",{className:["ck-inspector-tree",...this.props.className||[],this.props.textDirection?"ck-inspector-tree_text-direction_"+this.props.textDirection:"",this.props.showCompactText?"ck-inspector-tree_compact-text":""].join(" ")},e)}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const r=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function i(e){return o.get(e)||"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}t.quoteString=function(e){return`'${e.replace(r,i)}'`};const a=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function s(e){return"string"==typeof e&&!a.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=s,t.quoteKey=function(e,t){return s(e)?e:t(e)},t.stringifyPath=function(e,t){let n="";for(const r of e)s(r)?n+="."+r:n+=`[${t(r)}]`;return n}},function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}};e.exports=function(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,t){for(var n,s,l=a(e),c=1;c ? =".split(" "));t.USED_METHOD_KEY=new WeakSet;function l(e){let t;for(const n of e.split("\n").slice(1)){const r=/^[\s\t]+/.exec(n);if(!r)return e;const[o]=r;(void 0===t||o.length{const i="string"==typeof o?o:void 0;return void 0!==i&&t.USED_METHOD_KEY.add(e),new c(e,n,r,i).stringify()},t.dedentFunction=l;class c{constructor(e,t,n,o){this.fn=e,this.indent=t,this.next=n,this.key=o,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===o?"":r.quoteKey(o,n),this.keyPrefix=void 0===o?"":`${this.keyQuote}:${t?" ":""}`,this.isMethodCandidate=void 0!==o&&(""===this.fn.name||this.fn.name===o)}stringify(){const e=this.tryParse();return e?l(e):`${this.keyPrefix}void ${this.next(this.fnString)}`}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?a[this.fnType]+this.keyQuote:this.keyPrefix+i[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(o)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&r.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[n,r]=t;if(this.consumeWhitespace(),r)return e||r;switch(n){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return n}consumeSyntaxUntil(e,t){let n=!0;for(;;){const r=this.consumeSyntax();if(r===t)return e+t;if(!r||")"===r||"]"===r||"}"===r)return;"/"===r&&n&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(n=!1,this.consumeWhitespace()):n=s.has(r)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const n=e.exec(this.fnString.substr(this.pos));if(n)return this.pos+=n[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=c},function(e,t,n){e.exports=n(53)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;const r=n(25),o=n(13),i=Symbol("root");t.stringify=function(e,t,n,a={}){const s="string"==typeof n?n:" ".repeat(n||0),l=[],c=new Set,u=new Map,p=new Map;let f=0;const{maxDepth:d=100,references:h=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=a,y=function(e){return e?(t,n,o,i)=>e(t,n,e=>r.toString(e,n,o,i),i):r.toString}(t),b=(e,t)=>{if(++f>g)return;if(m&&void 0===e)return;if(l.length>d)return;if(void 0===t)return y(e,s,b,t);l.push(t);const n=v(e,t===i?void 0:t);return l.pop(),n},v=h?(e,t)=>{if(null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)){if(u.has(e))return p.set(l.slice(1),u.get(e)),y(void 0,s,b,t);u.set(e,l.slice(1))}return y(e,s,b,t)}:(e,t)=>{if(c.has(e))return;c.add(e);const n=y(e,s,b,t);return c.delete(e),n},k=b(e,i);if(p.size){const e=s?" ":"",t=s?"\n":"";let n=`var x${e}=${e}${k};${t}`;for(const[r,i]of p.entries()){n+=`x${o.stringifyPath(r,b)}${e}=${e}x${o.stringifyPath(i,b)};${t}`}return`(function${e}()${e}{${t}${n}return x;${t}}())`}return k}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;nP.length&&P.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c