Viewing File: /home/ubuntu/allinonecluster-landing/blog/wp-content/plugins/web-stories/assets/js/1344.js

(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[1344],{88862:function(t,e){!function(t){"use strict";function e(t){var e,r=t.toLowerCase();if("rgb"===r.substring(0,3)){var n=/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)([^)]*)\)$/.exec(r);e={r:n[1]/255,g:n[2]/255,b:n[3]/255,a:1},n[4]&&(e.a=parseFloat(/^,\s*(.*)$/.exec(n[4])[1]))}else"#"===r.charAt(0)&&(r=r.substr(1)),3===r.length&&(r=r.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3")),4===r.length&&(r=r.replace(/^(.)(.)(.)(.)$/,"$1$1$2$2$3$3$4$4")),e={r:parseInt(r.substr(0,2),16)/255,g:parseInt(r.substr(2,2),16)/255,b:parseInt(r.substr(4,2),16)/255,a:1},8===r.length&&(e.a=parseInt(r.substr(6,2),16)/255);return e}function r(t){var e,r,n,o=t.r,i=t.g,a=t.b,s=t.a,c=Math.min(o,i,a),l=Math.max(o,i,a),u=l-c;return l===c?e=0:o===l?e=(i-a)/u:i===l?e=2+(a-o)/u:a===l&&(e=4+(o-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(c+l)/2,r=l===c?0:n<=.5?u/(l+c):u/(2-l-c),{h:e,s:r*=100,l:n*=100,a:s}}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e){return s(t)||c(t,e)||l(t,e)||_nonIterableRest()}function s(t){if(Array.isArray(t))return t}function c(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _nonIterableRest(){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 p(t){var e=r(i(i({},t),{},{a:1}));return{h:e.h,s:e.s,l:e.l}}function f(t){var e,r,n,o,i,a,s=t.h,c=t.s,l=t.l,u=t.a;return isFinite(s)||(s=0),isFinite(c)||(c=0),isFinite(l)||(l=0),(s/=60)<0&&(s=6- -s%6),s%=6,c=Math.max(0,Math.min(1,c/100)),l=Math.max(0,Math.min(1,l/100)),a=(i=(1-Math.abs(2*l-1))*c)*(1-Math.abs(s%2-1)),s<1?(e=i,r=a,n=0):s<2?(e=a,r=i,n=0):s<3?(e=0,r=i,n=a):s<4?(e=0,r=a,n=i):s<5?(e=a,r=0,n=i):(e=i,r=0,n=a),{r:e+=o=l-i/2,g:r+=o,b:n+=o,a:u}}function d(t){var e=f(i(i({},t),{},{a:1}));return{r:e.r,g:e.g,b:e.b}}function h(t){var e=t.r,r=t.g,n=t.b,o=t.a;return"#"+(255*e|256).toString(16).slice(1)+(255*r|256).toString(16).slice(1)+(255*n|256).toString(16).slice(1)+(255*o|256).toString(16).slice(1)}function m(t){return h(i(i({},t),{},{a:1})).slice(0,7)}function g(t,e){return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function y(t){var e=t.r,r=t.g,n=t.b,o=t.a,i=a([e,r,n].map((function(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),3);return(.2126*i[0]+.7152*i[1]+.0722*i[2])*o}var v={"min-ratio-3":{description:"(WCAG AA, large text)",minRatio:3},"min-ratio-4.5":{description:"(WCAG AA, normal text / WCAG AAA, large text)",minRatio:4.5},"min-ratio-7":{description:"(WCAG AAA, normal text)",minRatio:7},"AA-large":{description:"(WCAG AA, large text)",minRatio:3},AA:{description:"(WCAG AA, normal text)",minRatio:4.5},AAA:{description:"(WCAG AAA, normal text)",minRatio:7}};function b(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=3&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)>=18?(e&&console.log(v["min-ratio-3"]),!0):t>=4.5&&(e&&console.log(v["min-ratio-4.5"]),!0)}function x(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=4.5&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)>=18?(e&&console.log(v["min-ratio-4.5"]),!0):t>=7&&(e&&console.log(v["min-ratio-7"]),!0)}function w(t,e){var r=t.h,n=t.s,o=t.l,i=t.a,a=e[0],s=e[1],c=e[2],l=(r+a)%360;return l<0&&(l+=360),{h:l,s:Math.min(Math.max(n+s,0),100),l:Math.min(Math.max(o+c,0),100),a:i}}var O=.1;function E(t,n,o){var i,a=t;do{i=g(y(e(h(a=f(w(r(a),[0,0,O]))))),y(n))}while(Math.round(100*i)/100<=o);return a}t.aa=b,t.aaa=x,t.contrast=g,t.getAccesibleHexColor=E,t.hsl2rgb=d,t.hsla2rgba=f,t.hslaVector3=w,t.ratios=v,t.relativeLuminance=y,t.rgb2hex=m,t.rgb2hsl=p,t.rgba2hex=h,t.rgba2hsla=r,t.str2rgba=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},91703:(t,e,r)=>{const n=r(67294);function o(t){return t&&!Array.isArray(t)&&Object(t)===t}function i(t){let e=null;if(navigator.mediaDevices&&(e=navigator.mediaDevices.getSupportedConstraints()),null===e)return;let r=Object.keys(t).filter((t=>!e[t]));if(0!==r.length){let t=r.join(",");console.error(`The following constraints ${t} are not supported on this browser.`)}}const a=()=>{};t.exports=function({blobOptions:t,recordScreen:e,customMediaStream:r,onStop:s=a,onStart:c=a,onError:l=a,mediaRecorderOptions:u,onDataAvailable:p=a,mediaStreamConstraints:f={}}){let d=n.useRef([]),h=n.useRef(null),m=n.useRef(null),[g,y]=n.useState("idle"),[v,b]=n.useState(null),[x,w]=n.useState(null),[O,E]=n.useState(!1);async function A(){if(v&&b(null),y("acquiring_media"),r&&r instanceof MediaStream)return h.current=r,r;try{let t;if(t=e?await window.navigator.mediaDevices.getDisplayMedia(f):await window.navigator.mediaDevices.getUserMedia(f),e&&f.audio){(await window.navigator.mediaDevices.getUserMedia({audio:f.audio})).getAudioTracks().forEach((e=>t.addTrack(e)))}return h.current=t,y("ready"),t}catch(t){b(t),y("failed")}}function j(){h.current&&(h.current.getTracks().forEach((t=>t.stop())),h.current=null)}function P(t){t.data.size&&d.current.push(t.data),p(t.data)}function k(){let e=new Blob,r=new Blob;if(d.current.length){[r]=d.current;let n=Object.assign({type:r.type},t);e=new Blob(d.current,n),w(e)}y("stopped"),s(e)}function R(t){b(t.error),y("idle"),l(t.error)}function C(t){E(t),h.current&&h.current.getAudioTracks().forEach((e=>{e.enabled=!t}))}return n.useEffect((()=>{if(!window.MediaRecorder)throw new ReferenceError("MediaRecorder is not supported in this browser. Please ensure that you are running the latest version of chrome/firefox/edge.");if(e&&!window.navigator.mediaDevices.getDisplayMedia)throw new ReferenceError("This browser does not support screen capturing.");o(f.video)&&i(f.video),o(f.audio)&&i(f.audio),u&&u.mimeType&&(MediaRecorder.isTypeSupported(u.mimeType)||console.error("The specified MIME type supplied to MediaRecorder is not supported by this browser."))}),[f,u,e]),{error:v,status:g,mediaBlob:x,isAudioMuted:O,stopRecording:function(){m.current&&(y("stopping"),m.current.stop(),m.current.removeEventListener("dataavailable",P),m.current.removeEventListener("stop",k),m.current.removeEventListener("error",R),m.current=null,r||j())},getMediaStream:A,startRecording:async function(t){if(v&&b(null),h.current||await A(),d.current=[],h.current){m.current=new MediaRecorder(h.current,u),m.current.addEventListener("dataavailable",P),m.current.addEventListener("stop",k),m.current.addEventListener("error",R);try{m.current.start(t),y("recording"),c()}catch(t){R({error:t})}}},pauseRecording:function(){m.current&&"recording"===m.current.state&&(m.current.pause(),y("paused"))},resumeRecording:function(){m.current&&"paused"===m.current.state&&(m.current.resume(),y("recording"))},clearMediaStream:j,clearMediaBlob:function(){w(null)},muteAudio:()=>C(!0),unMuteAudio:()=>C(!1),get liveStream(){return h.current?new MediaStream(h.current.getTracks()):null}}}},96077:(t,e,r)=>{var n=r(60614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},51223:(t,e,r)=>{var n=r(5112),o=r(70030),i=r(3070).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},25787:(t,e,r)=>{var n=r(47976),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw o("Incorrect invocation")}},24019:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:(t,e,r)=>{"use strict";var n,o,i,a=r(24019),s=r(19781),c=r(17854),l=r(60614),u=r(70111),p=r(92597),f=r(70648),d=r(66330),h=r(68880),m=r(98052),g=r(3070).f,y=r(47976),v=r(79518),b=r(27674),x=r(5112),w=r(69711),O=r(29909),E=O.enforce,A=O.get,j=c.Int8Array,P=j&&j.prototype,k=c.Uint8ClampedArray,R=k&&k.prototype,C=j&&v(j),M=P&&v(P),I=Object.prototype,S=c.TypeError,_=x("toStringTag"),T=w("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",D=a&&!!b&&"Opera"!==f(c.opera),z=!1,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},F=function(t){var e=v(t);if(u(e)){var r=A(e);return r&&p(r,B)?r.TypedArrayConstructor:F(e)}},N=function(t){if(!u(t))return!1;var e=f(t);return p(V,e)||p(L,e)};for(n in V)(i=(o=c[n])&&o.prototype)?E(i).TypedArrayConstructor=o:D=!1;for(n in L)(i=(o=c[n])&&o.prototype)&&(E(i).TypedArrayConstructor=o);if((!D||!l(C)||C===Function.prototype)&&(C=function TypedArray(){throw S("Incorrect invocation")},D))for(n in V)c[n]&&b(c[n],C);if((!D||!M||M===I)&&(M=C.prototype,D))for(n in V)c[n]&&b(c[n].prototype,M);if(D&&v(R)!==M&&b(R,M),s&&!p(M,_))for(n in z=!0,g(M,_,{get:function(){return u(this)?this[T]:void 0}}),V)c[n]&&h(c[n],T,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:z&&T,aTypedArray:function(t){if(N(t))return t;throw S("Target is not a typed array")},aTypedArrayConstructor:function(t){if(l(t)&&(!b||y(C,t)))return t;throw S(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(s){if(r)for(var o in V){var i=c[o];if(i&&p(i.prototype,t))try{delete i.prototype[t]}catch(r){try{i.prototype[t]=e}catch(t){}}}M[t]&&!r||m(M,t,r?e:D&&P[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(s){if(b){if(r)for(n in V)if((o=c[n])&&p(o,t))try{delete o[t]}catch(t){}if(C[t]&&!r)return;try{return m(C,t,r?e:D&&C[t]||e)}catch(t){}}for(n in V)!(o=c[n])||o[t]&&!r||m(o,t,e)}},getTypedArrayConstructor:F,isView:function(t){if(!u(t))return!1;var e=f(t);return"DataView"===e||p(V,e)||p(L,e)},isTypedArray:N,TypedArray:C,TypedArrayPrototype:M}},41318:(t,e,r)=>{var n=r(45656),o=r(51400),i=r(26244),a=function(t){return function(e,r,a){var s,c=n(e),l=i(c),u=o(a,l);if(t&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9671:(t,e,r)=>{var n=r(49974),o=r(68361),i=r(47908),a=r(26244),s=function(t){var e=1==t;return function(r,s,c){for(var l,u=i(r),p=o(u),f=n(s,c),d=a(p);d-- >0;)if(f(l=p[d],d,u))switch(t){case 0:return l;case 1:return d}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},84326:(t,e,r)=>{var n=r(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},70648:(t,e,r)=>{var n=r(51694),o=r(60614),i=r(84326),a=r(5112)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?r:c?i(e):"Object"==(n=i(e))&&o(e.callee)?"Arguments":n}},77741:(t,e,r)=>{var n=r(1702),o=Error,i=n("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},99920:(t,e,r)=>{var n=r(92597),o=r(53887),i=r(31236),a=r(3070);t.exports=function(t,e,r){for(var s=o(e),c=a.f,l=i.f,u=0;u<s.length;u++){var p=s[u];n(t,p)||r&&n(r,p)||c(t,p,l(e,p))}}},49920:(t,e,r)=>{var n=r(47293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},86135:(t,e,r)=>{"use strict";var n=r(34948),o=r(3070),i=r(79114);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},98052:(t,e,r)=>{var n=r(60614),o=r(3070),i=r(56339),a=r(13072);t.exports=function(t,e,r,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(n(r)&&i(r,l,s),s.global)c?t[e]=r:a(e,r);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},93678:t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7871:(t,e,r)=>{var n=r(83823),o=r(35268);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},83823:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},35268:(t,e,r)=>{var n=r(84326),o=r(17854);t.exports="process"==n(o.process)},80748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},22914:(t,e,r)=>{var n=r(47293),o=r(79114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},82109:(t,e,r)=>{var n=r(17854),o=r(31236).f,i=r(68880),a=r(98052),s=r(13072),c=r(99920),l=r(54705);t.exports=function(t,e){var r,u,p,f,d,h=t.target,m=t.global,g=t.stat;if(r=m?n:g?n[h]||s(h,{}):(n[h]||{}).prototype)for(u in e){if(f=e[u],p=t.dontCallGetSet?(d=o(r,u))&&d.value:r[u],!l(m?u:h+(g?".":"#")+u,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),a(r,u,f,t)}}},49974:(t,e,r)=>{var n=r(1702),o=r(19662),i=r(34374),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},71246:(t,e,r)=>{var n=r(70648),o=r(58173),i=r(97497),a=r(5112)("iterator");t.exports=function(t){if(null!=t)return o(t,a)||o(t,"@@iterator")||i[n(t)]}},18554:(t,e,r)=>{var n=r(46916),o=r(19662),i=r(19670),a=r(66330),s=r(71246),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(o(r))return i(n(r,t));throw c(a(t)+" is not iterable")}},60490:(t,e,r)=>{var n=r(35005);t.exports=n("document","documentElement")},68361:(t,e,r)=>{var n=r(1702),o=r(47293),i=r(84326),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},79587:(t,e,r)=>{var n=r(60614),o=r(70111),i=r(27674);t.exports=function(t,e,r){var a,s;return i&&n(a=e.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(t,s),t}},97659:(t,e,r)=>{var n=r(5112),o=r(97497),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4411:(t,e,r)=>{var n=r(1702),o=r(47293),i=r(60614),a=r(70648),s=r(35005),c=r(42788),l=function(){},u=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),h=!f.exec(l),m=function(t){if(!i(t))return!1;try{return p(l,u,t),!0}catch(t){return!1}},g=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(t))}catch(t){return!0}};g.sham=!0,t.exports=!p||o((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?g:m},54705:(t,e,r)=>{var n=r(47293),o=r(60614),i=/#|\.prototype\./,a=function(t,e){var r=c[s(t)];return r==u||r!=l&&(o(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},20408:(t,e,r)=>{var n=r(49974),o=r(46916),i=r(19670),a=r(66330),s=r(97659),c=r(26244),l=r(47976),u=r(18554),p=r(71246),f=r(99212),d=TypeError,Result=function(t,e){this.stopped=t,this.result=e},h=Result.prototype;t.exports=function(t,e,r){var m,g,y,v,b,x,w,O=r&&r.that,E=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),k=n(e,O),R=function(t){return m&&f(m,"normal",t),new Result(!0,t)},C=function(t){return E?(i(t),P?k(t[0],t[1],R):k(t[0],t[1])):P?k(t,R):k(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(g=p(t)))throw d(a(t)+" is not iterable");if(s(g)){for(y=0,v=c(t);v>y;y++)if((b=C(t[y]))&&l(h,b))return b;return new Result(!1)}m=u(t,g)}for(x=A?t.next:m.next;!(w=o(x,m)).done;){try{b=C(w.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&l(h,b))return b}return new Result(!1)}},99212:(t,e,r)=>{var n=r(46916),o=r(19670),i=r(58173);t.exports=function(t,e,r){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw r;if(s)throw a;return o(a),r}},97497:t=>{t.exports={}},26244:(t,e,r)=>{var n=r(17466);t.exports=function(t){return n(t.length)}},74758:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},56277:(t,e,r)=>{var n=r(41340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},70030:(t,e,r)=>{var n,o=r(19670),i=r(36048),a=r(80748),s=r(3501),c=r(60490),l=r(80317),u=r(6200),p=u("IE_PROTO"),EmptyConstructor=function(){},f=function(t){return"<script>"+t+"</"+"script>"},NullProtoObjectViaActiveX=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):NullProtoObjectViaActiveX(n);for(var r=a.length;r--;)delete NullProtoObject.prototype[a[r]];return NullProtoObject()};s[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(EmptyConstructor.prototype=o(t),r=new EmptyConstructor,EmptyConstructor.prototype=null,r[p]=t):r=NullProtoObject(),void 0===e?r:i.f(r,e)}},36048:(t,e,r)=>{var n=r(19781),o=r(3353),i=r(3070),a=r(19670),s=r(45656),c=r(81956);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=c(e),l=o.length,u=0;l>u;)i.f(t,r=o[u++],n[r]);return t}},3070:(t,e,r)=>{var n=r(19781),o=r(64664),i=r(3353),a=r(19670),s=r(34948),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",d="writable";e.f=n?i?function(t,e,r){if(a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r.writable){var n=u(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:f in r?r.configurable:n.configurable,enumerable:p in r?r.enumerable:n.enumerable,writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(a(t),e=s(e),a(r),o)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},31236:(t,e,r)=>{var n=r(19781),o=r(46916),i=r(55296),a=r(79114),s=r(45656),c=r(34948),l=r(92597),u=r(64664),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(t){}if(l(t,e))return a(!o(i.f,t,e),t[e])}},8006:(t,e,r)=>{var n=r(16324),o=r(80748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},25181:(t,e)=>{e.f=Object.getOwnPropertySymbols},79518:(t,e,r)=>{var n=r(92597),o=r(60614),i=r(47908),a=r(6200),s=r(49920),c=a("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof l?u:null}},16324:(t,e,r)=>{var n=r(1702),o=r(92597),i=r(45656),a=r(41318).indexOf,s=r(3501),c=n([].push);t.exports=function(t,e){var r,n=i(t),l=0,u=[];for(r in n)!o(s,r)&&o(n,r)&&c(u,r);for(;e.length>l;)o(n,r=e[l++])&&(~a(u,r)||c(u,r));return u}},81956:(t,e,r)=>{var n=r(16324),o=r(80748);t.exports=Object.keys||function(t){return n(t,o)}},55296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},27674:(t,e,r)=>{var n=r(1702),o=r(19670),i=r(96077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},53887:(t,e,r)=>{var n=r(35005),o=r(1702),i=r(8006),a=r(25181),s=r(19670),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=a.f;return r?c(e,r(t)):e}},34706:(t,e,r)=>{var n=r(46916),o=r(92597),i=r(47976),a=r(67066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||o(t,"flags")||!i(s,t)?e:n(a,t)}},51400:(t,e,r)=>{var n=r(19303),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},45656:(t,e,r)=>{var n=r(68361),o=r(84488);t.exports=function(t){return n(o(t))}},19303:(t,e,r)=>{var n=r(74758);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},17466:(t,e,r)=>{var n=r(19303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},51694:(t,e,r)=>{var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},41340:(t,e,r)=>{var n=r(70648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},48053:t=>{var e=TypeError;t.exports=function(t,r){if(t<r)throw e("Not enough arguments");return t}},52262:(t,e,r)=>{"use strict";var n=r(82109),o=r(47908),i=r(26244),a=r(19303),s=r(51223);n({target:"Array",proto:!0},{at:function(t){var e=o(this),r=i(e),n=a(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}}),s("at")},77287:(t,e,r)=>{"use strict";var n=r(82109),o=r(9671).findLastIndex,i=r(51223);n({target:"Array",proto:!0},{findLastIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},24506:(t,e,r)=>{"use strict";var n=r(82109),o=r(1702),i=r(84488),a=r(19303),s=r(41340),c=r(47293),l=o("".charAt);n({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(i(this)),r=e.length,n=a(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:l(e,o)}})},48675:(t,e,r)=>{"use strict";var n=r(90260),o=r(26244),i=r(19303),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(t){var e=a(this),r=o(e),n=i(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}))},14590:(t,e,r)=>{"use strict";var n=r(90260),o=r(9671).findLastIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},63408:(t,e,r)=>{"use strict";var n=r(90260),o=r(9671).findLast,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},77461:(t,e,r)=>{r(77287)},1118:(t,e,r)=>{r(14590)},37380:(t,e,r)=>{r(63408)},82801:(t,e,r)=>{"use strict";var n=r(82109),o=r(17854),i=r(35005),a=r(79114),s=r(3070).f,c=r(92597),l=r(25787),u=r(79587),p=r(56277),f=r(93678),d=r(77741),h=r(19781),m=r(31913),g="DOMException",y=i("Error"),v=i(g),b=function DOMException(){l(this,x);var t=arguments.length,e=p(t<1?void 0:arguments[0]),r=p(t<2?void 0:arguments[1],"Error"),n=new v(e,r),o=y(e);return o.name=g,s(n,"stack",a(1,d(o.stack,1))),u(n,this,b),n},x=b.prototype=v.prototype,w="stack"in y(g),O="stack"in new v(1,2),E=v&&h&&Object.getOwnPropertyDescriptor(o,g),A=!(!E||E.writable&&E.configurable),j=w&&!A&&!O;n({global:!0,constructor:!0,forced:m||j},{DOMException:j?b:v});var P=i(g),k=P.prototype;if(k.constructor!==P)for(var R in m||s(k,"constructor",a(1,P)),f)if(c(f,R)){var C=f[R],M=C.s;c(P,M)||s(P,M,a(6,C.c))}},61295:(t,e,r)=>{var n,o=r(31913),i=r(82109),a=r(17854),s=r(35005),c=r(1702),l=r(47293),u=r(69711),p=r(60614),f=r(4411),d=r(70111),h=r(52190),m=r(20408),g=r(19670),y=r(70648),v=r(92597),b=r(86135),x=r(68880),w=r(26244),O=r(48053),E=r(34706),A=r(22914),j=r(7392),P=r(7871),k=r(83823),R=r(35268),C=a.Object,M=a.Date,I=a.Error,S=a.EvalError,_=a.RangeError,T=a.ReferenceError,B=a.SyntaxError,D=a.TypeError,z=a.URIError,V=a.PerformanceMark,L=a.WebAssembly,F=L&&L.CompileError||I,N=L&&L.LinkError||I,$=L&&L.RuntimeError||I,W=s("DOMException"),U=s("Set"),q=s("Map"),G=q.prototype,H=c(G.has),K=c(G.get),Y=c(G.set),X=c(U.prototype.add),Q=s("Object","keys"),J=c([].push),Z=c((!0).valueOf),tt=c(1..valueOf),et=c("".valueOf),rt=c(M.prototype.getTime),nt=u("structuredClone"),ot="DataCloneError",it="Transferring",at=function(t){return!l((function(){var e=new a.Set([7]),r=t(e),n=t(C(7));return r==e||!r.has(7)||"object"!=typeof n||7!=n}))&&t},st=function(t,e){return!l((function(){var r=new e,n=t({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof e&&n.a.stack===r.stack)}))},ct=a.structuredClone,lt=o||!st(ct,I)||!st(ct,W)||(n=ct,!!l((function(){var t=n(new a.AggregateError([1],nt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=nt||3!=t.cause}))),ut=!ct&&at((function(t){return new V(nt,{detail:t}).detail})),pt=at(ct)||ut,ft=function(t){throw new W("Uncloneable type: "+t,ot)},dt=function(t,e){throw new W((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",ot)},ht=function(t,e){if(h(t)&&ft("Symbol"),!d(t))return t;if(e){if(H(e,t))return K(e,t)}else e=new q;var r,n,o,i,c,l,u,m,g,O,j=y(t),P=!1;switch(j){case"Array":o=[],P=!0;break;case"Object":o={},P=!0;break;case"Map":o=new q,P=!0;break;case"Set":o=new U,P=!0;break;case"RegExp":o=new RegExp(t.source,E(t));break;case"Error":switch(n=t.name){case"AggregateError":o=s("AggregateError")([]);break;case"EvalError":o=S();break;case"RangeError":o=_();break;case"ReferenceError":o=T();break;case"SyntaxError":o=B();break;case"TypeError":o=D();break;case"URIError":o=z();break;case"CompileError":o=F();break;case"LinkError":o=N();break;case"RuntimeError":o=$();break;default:o=I()}P=!0;break;case"DOMException":o=new W(t.message,t.name),P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":r=a[j],d(r)||dt(j),o=new r(ht(t.buffer,e),t.byteOffset,"DataView"===j?t.byteLength:t.length);break;case"DOMQuad":try{o=new DOMQuad(ht(t.p1,e),ht(t.p2,e),ht(t.p3,e),ht(t.p4,e))}catch(e){pt?o=pt(t):dt(j)}break;case"FileList":if(r=a.DataTransfer,f(r)){for(i=new r,c=0,l=w(t);c<l;c++)i.items.add(ht(t[c],e));o=i.files}else pt?o=pt(t):dt(j);break;case"ImageData":try{o=new ImageData(ht(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){pt?o=pt(t):dt(j)}break;default:if(pt)o=pt(t);else switch(j){case"BigInt":o=C(t.valueOf());break;case"Boolean":o=C(Z(t));break;case"Number":o=C(tt(t));break;case"String":o=C(et(t));break;case"Date":o=new M(rt(t));break;case"ArrayBuffer":(r=a.DataView)||"function"==typeof t.slice||dt(j);try{if("function"==typeof t.slice)o=t.slice(0);else for(l=t.byteLength,o=new ArrayBuffer(l),g=new r(t),O=new r(o),c=0;c<l;c++)O.setUint8(c,g.getUint8(c))}catch(t){throw new W("ArrayBuffer is detached",ot)}break;case"SharedArrayBuffer":o=t;break;case"Blob":try{o=t.slice(0,t.size,t.type)}catch(t){dt(j)}break;case"DOMPoint":case"DOMPointReadOnly":r=a[j];try{o=r.fromPoint?r.fromPoint(t):new r(t.x,t.y,t.z,t.w)}catch(t){dt(j)}break;case"DOMRect":case"DOMRectReadOnly":r=a[j];try{o=r.fromRect?r.fromRect(t):new r(t.x,t.y,t.width,t.height)}catch(t){dt(j)}break;case"DOMMatrix":case"DOMMatrixReadOnly":r=a[j];try{o=r.fromMatrix?r.fromMatrix(t):new r(t)}catch(t){dt(j)}break;case"AudioData":case"VideoFrame":p(t.clone)||dt(j);try{o=t.clone()}catch(t){ft(j)}break;case"File":try{o=new File([t],t.name,t)}catch(t){dt(j)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":dt(j);default:ft(j)}}if(Y(e,t,o),P)switch(j){case"Array":case"Object":for(u=Q(t),c=0,l=w(u);c<l;c++)m=u[c],b(o,m,ht(t[m],e));break;case"Map":t.forEach((function(t,r){Y(o,ht(r,e),ht(t,e))}));break;case"Set":t.forEach((function(t){X(o,ht(t,e))}));break;case"Error":x(o,"message",ht(t.message,e)),v(t,"cause")&&x(o,"cause",ht(t.cause,e)),"AggregateError"==n&&(o.errors=ht(t.errors,e));case"DOMException":A&&x(o,"stack",ht(t.stack,e))}return o},mt=ct&&!l((function(){if(k&&j>92||R&&j>94||P&&j>97)return!1;var t=new ArrayBuffer(8),e=ct(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),gt=function(t,e){if(!d(t))throw D("Transfer option cannot be converted to a sequence");var r=[];m(t,(function(t){J(r,g(t))}));var n,o,i,s,c,l,u=0,h=w(r);if(mt)for(s=ct(r,{transfer:r});u<h;)Y(e,r[u],s[u++]);else for(;u<h;){if(n=r[u++],H(e,n))throw new W("Duplicate transferable",ot);switch(o=y(n)){case"ImageBitmap":i=a.OffscreenCanvas,f(i)||dt(o,it);try{(l=new i(n.width,n.height)).getContext("bitmaprenderer").transferFromImageBitmap(n),c=l.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":p(n.clone)&&p(n.close)||dt(o,it);try{c=n.clone(),n.close()}catch(t){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":dt(o,it)}if(void 0===c)throw new W("This object cannot be transferred: "+o,ot);Y(e,n,c)}};i({global:!0,enumerable:!0,sham:!mt,forced:lt},{structuredClone:function(t){var e,r=O(arguments.length,1)>1&&null!=arguments[1]?g(arguments[1]):void 0,n=r?r.transfer:void 0;return void 0!==n&&(e=new q,gt(n,e)),ht(t,e)}})},42699:(t,e,r)=>{"use strict";r.d(e,{default:()=>i});var n=r(19013),o=r(13882);function i(t,e){(0,o.default)(2,arguments);var r=(0,n.default)(t),i=(0,n.default)(e);return r.getTime()>i.getTime()}},29042:(t,e,r)=>{"use strict";r.d(e,{default:()=>s});var n=r(83946),o=r(51820),i=r(13882);function a(t,e){(0,i.default)(2,arguments);var r=(0,n.default)(e);return(0,o.default)(t,6e4*r)}function s(t,e){(0,i.default)(2,arguments);var r=(0,n.default)(e);return a(t,-r)}},84693:(t,e,r)=>{"use strict";r.d(e,{filterEditorState:()=>w});var n=r(9041);const o="atomic",i="unstyled",a="unordered-list-item",s="ordered-list-item",c=t=>{const e=t.getBlockMap(),r=e.filter((t=>{const e=t.getText(),r=t.getEntityAt(0);return Boolean(r)&&["📷"," ","📷 "].includes(e)})).map((t=>t.set("type",o)));return 0!==r.size?t.merge({blockMap:e.merge(r)}):t},l=t=>{let e=t.getBlockMap();const r=e.filter((t=>t.getType()===o&&(" "!==t.getText()||0!==t.getInlineStyleAt(0).size))).map((t=>{const e=t.getCharacterList().slice(0,1).map((t=>{let e=t;return t.getStyle().forEach((t=>{e=n.CharacterMetadata.removeStyle(e,t)})),e}));return t.merge({text:" ",characterList:e})}));return 0!==r.size&&(e=e.merge(r)),t.merge({blockMap:e})},u=(t,e)=>{const r=e.getBlockMap(),n=r.filter((r=>{if(r.getType()!==o)return!0;const n=r.getEntityAt(0);let i;if(n){const r=e.getEntity(n).getType();i=t.some((t=>t.type===r))}else i=!1;return i}));return n.size!==r.size?e.merge({blockMap:n}):e},p=t=>{const e=t.getBlockMap(),r=e.filter((t=>[a,s].includes(t.getType())||0===t.getDepth()));return r.size!==e.size?t.merge({blockMap:r}):t},f=(t,e)=>{const r=e.getBlockMap(),n=r.filter((t=>"unstyled"===t.getType())).map((e=>{const r=e.getText();let n,o=e;const i=t.find((t=>(n=new RegExp(t.test).exec(r),null!==n)));if(i&&n&&n[0]){const t=o.getText();if(o.getEntityAt(0)&&n[0]===t)return o;const e=n[0].length;let r=o.getCharacterList(),a=0;for(;a<e;)r=r.shift(),a++;o=o.merge({type:i.type,depth:i.depth,text:t.slice(e),characterList:r})}return o}));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},d=(t,e)=>{const r=e.getBlockMap(),n=r.filter((e=>e.getDepth()>t)).map((e=>e.set("depth",t)));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},h=(t,e)=>{const r=e.getBlockMap(),n=r.filter((e=>!t.includes(e.getType()))).map((t=>t.merge({type:i,depth:0})));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},m=(t,e)=>{const r=e.getBlockMap(),o=r.map((e=>{let r=!1;const o=e.getCharacterList().map((e=>{let o=e;return e.getStyle().filter((e=>!t.includes(e))).forEach((t=>{r=!0,o=n.CharacterMetadata.removeStyle(o,t)})),o}));return r?e.set("characterList",o):e}));return e.merge({blockMap:r.merge(o)})},g=t=>{let e=t;const r=e.getBlockMap(),o=[],i=t=>{const e=t.getEntity();if(e){if(o.includes(e))return!0;o.push(e)}return!1},a=r.map((t=>{let r=t.getCharacterList(),o=!1;return t.findEntityRanges(i,((t,i)=>{const a=r.get(t).getEntity(),s=e.getEntity(a);e=e.createEntity(s.getType(),s.getMutability(),s.getData());const c=e.getLastCreatedEntityKey();r=r.map(((e,r)=>t<=r&&r<=i?n.CharacterMetadata.applyEntity(e,c):e)),o=!0})),o?t.set("characterList",r):t}));return e.merge({blockMap:r.merge(a)})},y=(t,e)=>{const r=e.getBlockMap(),o=r.map((r=>{let o=!1;const i=r.getCharacterList().map((i=>{const a=i.getEntity();if(a){if(!t(e,a,r))return o=!0,n.CharacterMetadata.applyEntity(i,null)}return i}));return o?r.set("characterList",i):r}));return e.merge({blockMap:r.merge(o)})},v=(t,e)=>{let r=e;const n={};return r.getBlockMap().forEach((t=>{t.findEntityRanges((t=>{const e=t.getEntity();if(e){const t=r.getEntity(e);n[e]=t}return!1}))})),Object.keys(n).forEach((e=>{const o=n[e],i=o.getData(),a=t.find((t=>t.type===o.getType())),s=a?a.attributes:null;if(!s)return i;const c=s.reduce(((t,e)=>(i.hasOwnProperty(e)&&(t[e]=i[e]),t)),{});r=r.replaceEntityData(e,c)})),r},b=(t,e)=>{const r=e.getBlockMap(),n=r.map((e=>{const r=e.getText(),n=t.reduce(((t,e)=>t.replace(new RegExp(e,"g")," ".repeat(e.length))),r);return r!==n?e.set("text",n):e}));return e.merge({blockMap:r.merge(n)})},x=[{test:"^(· |•\t|•|📷 |\t| \t)",type:"unordered-list-item",depth:0},{test:"^(◦|o |o\t)",type:"unordered-list-item",depth:1},{test:"^(§ |\t|◾)",type:"unordered-list-item",depth:2},{test:"^1{0,1}\\d\\.[ \t]",type:"ordered-list-item",depth:0},{test:"^x{0,1}(i|ii|iii|iv|v|vi|vii|viii|ix|x)\\.[ \t]",type:"ordered-list-item",depth:2},{test:"^[a-z]\\.[ \t]",type:"ordered-list-item",depth:1}],w=(t,e)=>{const{blocks:r,styles:a,entities:s,maxNesting:w,whitespacedCharacters:O,blockTextRules:E=x}=t,A=[p,f.bind(null,E),d.bind(null,w),m.bind(null,a),h.bind(null,r.concat([i,o])),c,l,y.bind(null,((t,e,r)=>{const n=t.getEntity(e),i=n.getData(),a=n.getType(),c=r.getType();return l=a,s.some((t=>t.type===l))&&((t,e,r)=>{const n=t.find((t=>t.type===e)),o=n&&n.allowlist?n.allowlist:n&&n.whitelist?n.whitelist:{};return Object.keys(o).every((t=>{const e=o[t];if("boolean"==typeof e){const n=r.hasOwnProperty(t);return e?n:!n}return new RegExp(e).test(r[t])}))})(s,a,i)&&!((t,e)=>"IMAGE"===t&&e!==o)(a,c);var l})),u.bind(null,s),v.bind(null,s),g,b.bind(null,O)],j=e.getCurrentContent();return((t,e,r)=>{if(r===e)return t;if(0===r.getBlockMap().size)return n.EditorState.moveFocusToEnd(n.EditorState.set(t,{currentContent:n.ContentState.createFromText("")}));const o=n.EditorState.set(t,{currentContent:r}),i=t.getSelection(),a=i.getAnchorKey(),s=r.getBlockForKey(a);if(!i.isCollapsed()||s)return o;const c=r.getBlockMap().keySeq().reverse().find((t=>e.getKeyAfter(t)!==r.getKeyAfter(t)));if(c){const t=r.getBlockForKey(c).getText().length,e=i.merge({anchorKey:c,focusKey:c,anchorOffset:t,focusOffset:t});return n.EditorState.acceptSelection(o,e)}return o})(e,j,A.reduce(((t,e)=>e(t)),j))}},1745:(t,e,r)=>{"use strict";r.d(e,{FlagsProvider:()=>FlagsProvider,useFeature:()=>c,useFeatures:()=>s});var n=r(67294);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}var i=(0,n.createContext)({});function a(t){return Array.isArray(t)?Object.fromEntries(t.map((function(t){return[t,!0]}))):t}function FlagsProvider(t){var e,r,c=t.features,l=void 0===c?{}:c,u=t.children,p=s();return(0,n.createElement)(i.Provider,{value:(e=a(p),r=a(l),o({},e,r))},u)}function s(){return(0,n.useContext)(i)}function c(t){var e=s();return Array.isArray(e)?e.includes(t):"boolean"==typeof e[t]?e[t]:t.split("/").reduce((function(t,e){return"boolean"==typeof t?t:void 0!==t[e]&&t[e]}),e)}},84967:(t,e,r)=>{"use strict";r.d(e,{parseToRgb:()=>b,readableColor:()=>R,rgba:()=>E});var n=r(97326),o=r(94578),i=r(52146);var a=function(t){function PolishedError(e){var r;return r=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this,(0,n.default)(r)}return(0,o.default)(PolishedError,t),PolishedError}((0,i.default)(Error));function s(t){return Math.round(255*t)}function c(t,e,r){return s(t)+","+s(e)+","+s(r)}function l(t,e,r,n){if(void 0===n&&(n=c),0===e)return n(r,r,r);var o=(t%360+360)%360/60,i=(1-Math.abs(2*r-1))*e,a=i*(1-Math.abs(o%2-1)),s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var p=r-i/2;return n(s+p,l+p,u+p)}var u={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};var p=/^#[a-fA-F0-9]{6}$/,f=/^#[a-fA-F0-9]{8}$/,d=/^#[a-fA-F0-9]{3}$/,h=/^#[a-fA-F0-9]{4}$/,m=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,g=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,y=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,v=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function b(t){if("string"!=typeof t)throw new a(3);var e=function(t){if("string"!=typeof t)return t;var e=t.toLowerCase();return u[e]?"#"+u[e]:t}(t);if(e.match(p))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(f)){var r=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:r}}if(e.match(d))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(h)){var n=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:n}}var o=m.exec(e);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=g.exec(e.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=y.exec(e);if(s){var c="rgb("+l(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",b=m.exec(c);if(!b)throw new a(4,e,c);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10)}}var x=v.exec(e.substring(0,50));if(x){var w="rgb("+l(parseInt(""+x[1],10),parseInt(""+x[2],10)/100,parseInt(""+x[3],10)/100)+")",O=m.exec(w);if(!O)throw new a(4,e,w);return{red:parseInt(""+O[1],10),green:parseInt(""+O[2],10),blue:parseInt(""+O[3],10),alpha:parseFloat(""+x[4])>1?parseFloat(""+x[4])/100:parseFloat(""+x[4])}}throw new a(5)}var x=function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t};function w(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function O(t,e,r){if("number"==typeof t&&"number"==typeof e&&"number"==typeof r)return x("#"+w(t)+w(e)+w(r));if("object"==typeof t&&void 0===e&&void 0===r)return x("#"+w(t.red)+w(t.green)+w(t.blue));throw new a(6)}function E(t,e,r,n){if("string"==typeof t&&"number"==typeof e){var o=b(t);return"rgba("+o.red+","+o.green+","+o.blue+","+e+")"}if("number"==typeof t&&"number"==typeof e&&"number"==typeof r&&"number"==typeof n)return n>=1?O(t,e,r):"rgba("+t+","+e+","+r+","+n+")";if("object"==typeof t&&void 0===e&&void 0===r&&void 0===n)return t.alpha>=1?O(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new a(7)}function A(t){if("transparent"===t)return 0;var e=b(t),r=Object.keys(e).map((function(t){var r=e[t]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)})),n=r[0],o=r[1],i=r[2];return parseFloat((.2126*n+.7152*o+.0722*i).toFixed(3))}function j(t,e){var r=A(t),n=A(e);return parseFloat((r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)).toFixed(2))}var P="#000",k="#fff";function R(t,e,r,n){void 0===e&&(e=P),void 0===r&&(r=k),void 0===n&&(n=!0);var o=A(t)>.179,i=o?e:r;return!n||j(t,i)>=4.5?i:o?P:k}},38823:(t,e,r)=>{"use strict";r.d(e,{Blurhash:()=>v});var n=r(67294);const o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],i=t=>{let e=0;for(let r=0;r<t.length;r++){const n=t[r];e=83*e+o.indexOf(n)}return e},a=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},s=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.round(12.92*e*255+.5):Math.round(255*(1.055*Math.pow(e,1/2.4)-.055)+.5)},c=(t,e)=>(t<0?-1:1)*Math.pow(Math.abs(t),e);class ValidationError extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}}const l=t=>{if(!t||t.length<6)throw new ValidationError("The blurhash string must be at least 6 characters");const e=i(t[0]),r=Math.floor(e/9)+1,n=e%9+1;if(t.length!==4+2*n*r)throw new ValidationError(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*n*r}`)},u=t=>{const e=t>>8&255,r=255&t;return[a(t>>16),a(e),a(r)]},p=(t,e)=>{const r=Math.floor(t/361),n=Math.floor(t/19)%19,o=t%19;return[c((r-9)/9,2)*e,c((n-9)/9,2)*e,c((o-9)/9,2)*e]},f=(t,e,r,n)=>{l(t),n|=1;const o=i(t[0]),a=Math.floor(o/9)+1,c=o%9+1,f=(i(t[1])+1)/166,d=new Array(c*a);for(let e=0;e<d.length;e++)if(0===e){const r=i(t.substring(2,6));d[e]=u(r)}else{const r=i(t.substring(4+2*e,6+2*e));d[e]=p(r,f*n)}const h=4*e,m=new Uint8ClampedArray(h*r);for(let t=0;t<r;t++)for(let n=0;n<e;n++){let o=0,i=0,l=0;for(let s=0;s<a;s++)for(let a=0;a<c;a++){const u=Math.cos(Math.PI*n*a/e)*Math.cos(Math.PI*t*s/r);let p=d[a+s*c];o+=p[0]*u,i+=p[1]*u,l+=p[2]*u}let u=s(o),p=s(i),f=s(l);m[4*n+0+t*h]=u,m[4*n+1+t*h]=p,m[4*n+2+t*h]=f,m[4*n+3+t*h]=255}return m};var d,h=(d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},d(t,e)},function(t,e){function __(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),__assign=function(){return __assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},__assign.apply(this,arguments)},__rest=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};const m=function(t){function BlurhashCanvas(){var e=null!==t&&t.apply(this,arguments)||this;return e.canvas=null,e.handleRef=function(t){e.canvas=t,e.draw()},e.draw=function(){var t=e.props,r=t.hash,n=t.height,o=t.punch,i=t.width;if(e.canvas){var a=f(r,i,n,o),s=e.canvas.getContext("2d"),c=s.createImageData(i,n);c.data.set(a),s.putImageData(c,0,0)}},e}return h(BlurhashCanvas,t),BlurhashCanvas.prototype.componentDidUpdate=function(){this.draw()},BlurhashCanvas.prototype.render=function(){var t=this.props,e=(t.hash,t.height),r=t.width,o=__rest(t,["hash","height","width"]);return n.createElement("canvas",__assign({},o,{height:e,width:r,ref:this.handleRef}))},BlurhashCanvas.defaultProps={height:128,width:128},BlurhashCanvas}(n.PureComponent);var g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function __(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(__.prototype=r.prototype,new __)}}(),Blurhash_assign=function(){return Blurhash_assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Blurhash_assign.apply(this,arguments)},Blurhash_rest=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},y={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};const v=function(t){function Blurhash(){return null!==t&&t.apply(this,arguments)||this}return g(Blurhash,t),Blurhash.prototype.componentDidUpdate=function(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")},Blurhash.prototype.render=function(){var t=this.props,e=t.hash,r=t.height,o=t.width,i=t.punch,a=t.resolutionX,s=t.resolutionY,c=t.style,l=Blurhash_rest(t,["hash","height","width","punch","resolutionX","resolutionY","style"]);return n.createElement("div",Blurhash_assign({},l,{style:Blurhash_assign(Blurhash_assign({display:"inline-block",height:r,width:o},c),{position:"relative"})}),n.createElement(m,{hash:e,height:s,width:a,punch:i,style:y}))},Blurhash.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32},Blurhash}(n.PureComponent)},73935:(t,e,r)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=r(64448)},63240:(t,e,r)=>{"use strict";r.d(e,{default:()=>PhotoAlbum});var n=r(85893),o=r(67294);const i=({width:t,height:e})=>t/e,a=(t,e=0)=>{const r=10**e;return Math.round((t+Number.EPSILON)*r)/r},MinHeap=t=>{const e=[],r=t;let n=0;const o=(t,n)=>r(e[t],e[n])<0,i=(t,r)=>{const n=e[t];e[t]=e[r],e[r]=n};return{push:t=>{n+=1,e[n]=t,(t=>{let e=t>>1;for(;t>1&&o(e,t);)i(e,t),e=(t=e)>>1})(n)},pop:()=>{if(0===n)return;i(1,n),n-=1;const t=e.pop();return(t=>{let e=t<<1;for(;e<=n&&(e<n&&o(e,e+1)&&e++,o(t,e));)i(t,e),e=(t=e)<<1})(1),t},size:()=>n}},s=(t,e,r)=>{const n=((t,e,r)=>{const n={},o={},i={};i[e]=0;const a=MinHeap((s=t=>t.weight,(t,e)=>s(e)-s(t)));var s;let c;for(a.push({id:e,weight:0});void 0!==(c=a.pop());){const e=c.id;if(o[e])continue;const r=t(e);o[e]=1;for(const t in r){const o=c.weight+r[t];(void 0===i[t]||i[t]>o&&(i[t]/o>1.005||n[t]<e))&&(i[t]=o,a.push({id:t,weight:o}),n[t]=e)}}if(void 0!==i[r])return n})(t,e,r);return void 0!==n?((t,e)=>{const r=[];let n=e;for(;n;)r.push(n),n=t[n];return r.reverse()})(n,r):void 0},c=(t,e,r,n)=>(e-(t.length-1)*r-2*n*t.length)/t.reduce(((t,e)=>t+i(e)),0),l=(t,e,r,n,o,i,a)=>{const s=t.slice(e,r),l=c(s,n,i,a);return l>0?(l-o)**2*s.length:void 0},u=({photos:t,layoutOptions:e,instrumentation:r})=>{var n,o;const{spacing:u,padding:p,containerWidth:f,targetRowHeight:d,rowConstraints:h}=e;null===(n=null==r?void 0:r.onStartLayoutComputation)||void 0===n||n.call(r);const m=(({photos:t,targetRowHeight:e,containerWidth:r})=>{const n=t.reduce(((t,e)=>Math.min(i(e),t)),Number.MAX_VALUE);return a(r/e/n)+2})({photos:t,containerWidth:f,targetRowHeight:d}),g=(({photos:t,layoutOptions:e,targetRowHeight:r,limitNodeSearch:n,rowConstraints:o,instrumentation:i})=>a=>{var s,c;const{containerWidth:u,spacing:p,padding:f}=e,d={},h=+a;d[+h]=0;const m=null!==(s=null==o?void 0:o.minPhotos)&&void 0!==s?s:1,g=Math.min(n,null!==(c=null==o?void 0:o.maxPhotos)&&void 0!==c?c:1/0);for(let e=h+m;e<t.length+1&&(!(e-h>g)||(null==i?void 0:i.fullGraphSearch));e+=1){const n=l(t,h,e,u,r,p,f);if(void 0===n)break;d[e.toString()]=n}return d})({photos:t,layoutOptions:e,targetRowHeight:d,limitNodeSearch:m,rowConstraints:h,instrumentation:r}),y=s(g,"0",`${t.length}`);if(void 0===y)return;const v=[];for(let e=1;e<y.length;e+=1){const r=t.map(((t,e)=>({photo:t,index:e}))).slice(+y[e-1],+y[e]),n=c(r.map((({photo:t})=>t)),f,u,p);v.push(r.map((({photo:t,index:e},o)=>({photo:t,layout:{height:n,width:n*i(t),index:e,photoIndex:o,photosCount:r.length}}))))}return null===(o=null==r?void 0:r.onFinishLayoutComputation)||void 0===o||o.call(r,v),v},p=(t,{width:e,photosCount:r},{spacing:n,padding:o,containerWidth:i})=>{const s=n*(r-1)+2*o*r;return`calc((${t} - ${s}px) / ${a((i-s)/e,5)})`},f=(t,e)=>"rows"!==e.layout?`calc(100% - ${2*e.padding}px)`:p("100%",t,e),d=(t,e,r)=>{var n,o;return p(null!==(o=null===(n=t.match(/calc\((.*)\)/))||void 0===n?void 0:n[1])&&void 0!==o?o:t,e,r)},h=(t,e,r)=>{let n,o;return t.images&&t.images.length>0&&(n=t.images.concat([{src:t.src,width:t.width,height:t.height}]).sort(((t,e)=>t.width-e.width)).map((t=>`${t.src} ${t.width}w`)).join(", ")),o=r.sizes?(r.sizes.sizes||[]).map((({viewport:t,size:n})=>`${t} ${d(n,e,r)}`)).concat(d(r.sizes.size,e,r)).join(", "):`${Math.ceil(e.width/(r.viewportWidth||r.containerWidth)*100)}vw`,{srcSet:n,sizes:o}},PhotoRenderer=t=>{var e,r;const{photo:o,layout:i,layoutOptions:a,imageProps:{style:s,...c}={},renderPhoto:l}=t,{onClick:u}=a,p={display:"block",boxSizing:"content-box",width:f(i,a),height:"auto",aspectRatio:`${o.width} / ${o.height}`,...a.padding?{padding:`${a.padding}px`}:null,...("columns"===a.layout||"masonry"===a.layout)&&i.photoIndex<i.photosCount-1?{marginBottom:`${a.spacing}px`}:null,...u?{cursor:"pointer"}:null,...s},d=u?t=>{u(t,o,i.index)}:void 0,m={src:o.src,alt:null!==(e=o.alt)&&void 0!==e?e:"",title:o.title,onClick:d,style:p,className:"react-photo-album--photo",...h(o,i,a),...c},g=({wrapped:t}={})=>{const{src:e,alt:r,srcSet:o,sizes:i,style:a,...s}=m;return(0,n.jsx)("img",{alt:r,...o?{srcSet:o,sizes:i}:null,src:e,style:t?{display:"block",width:"100%",height:"100%"}:a,...s})},y=(({display:t,boxSizing:e,width:r,aspectRatio:n,padding:o,marginBottom:i})=>({display:t,boxSizing:e,width:r,aspectRatio:n,padding:o,marginBottom:i}))(p);return(0,n.jsx)(n.Fragment,{children:null!==(r=null==l?void 0:l({photo:o,layout:i,layoutOptions:a,imageProps:m,renderDefaultPhoto:g,wrapperStyle:y}))&&void 0!==r?r:g()})},m=({rowContainerProps:t,children:e})=>(0,n.jsx)("div",{...t,children:e}),RowContainerRenderer=t=>{const{layoutOptions:e,rowIndex:r,rowsCount:o,renderRowContainer:i,rowContainerProps:{style:a,...s}={},children:c}=t,l={className:"react-photo-album--row",style:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between",...r<o-1?{marginBottom:`${e.spacing}px`}:null,...a},...s};return(0,n.jsx)(n.Fragment,{children:(null!=i?i:m)({layoutOptions:e,rowIndex:r,rowsCount:o,rowContainerProps:l,children:c})})},RowsLayout=t=>{const{photos:e,layoutOptions:r,renderPhoto:o,renderRowContainer:i,componentsProps:a,instrumentation:s}=t,c=u({photos:e,layoutOptions:r,instrumentation:s});return void 0===c?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:c.map(((t,e)=>(0,n.jsx)(RowContainerRenderer,{layoutOptions:r,rowIndex:e,rowsCount:c.length,renderRowContainer:i,rowContainerProps:null==a?void 0:a.rowContainerProps,children:t.map((({photo:t,layout:e})=>(0,n.jsx)(PhotoRenderer,{photo:t,layout:e,layoutOptions:r,renderPhoto:o,imageProps:null==a?void 0:a.imageProps},t.key||t.src)))},`row-${e}`)))})},g=(t,e,r,n)=>((t,e,r)=>{const n=[r];for(let o=r,i=e;i>0;i-=1){const[e]=t[o][i];o=e,n.push(o)}return n.reverse()})(((t,e,r,n)=>{const o=[],i={0:{[r]:null}};for(let r=0;r<e;r+=1)Object.keys(i[r]).forEach((a=>{const s=+a,c=r>0&&o[s][r]?o[s][r][1]:0;t(s).forEach((({neighbor:t,weight:a})=>{o[t]||(o[t]=[]);const l=c+a;(!o[t][r+1]||o[t][r+1][1]>l&&(o[t][r+1][1]/l>1.0001||s<o[t][r+1][0]))&&(o[t][r+1]=[s,l]),r<e-1&&t!==n&&(i[r+1]||(i[r+1]={}),i[r+1][t]=null)}))}));return o})(t,e,r,n),e,n),y=({path:t,photos:e,containerWidth:r,columnsGaps:n,columnsRatios:o,spacing:a,padding:s})=>{const c=[],l=o.reduce(((t,e)=>t+e),0);for(let u=0;u<t.length-1;u+=1){const p=e.map(((t,e)=>({photo:t,index:e}))).slice(t[u],t[u+1]),f=o.reduce(((t,e,r)=>t+(n[u]-n[r])*e),0),d=(r-(t.length-2)*a-2*(t.length-1)*s-f)*o[u]/l;c.push(p.map((({photo:t,index:e},r)=>({photo:t,layout:{width:d,height:d/i(t),index:e,photoIndex:r,photosCount:p.length}}))))}return c},v=({photos:t,layoutOptions:e,targetColumnWidth:r,instrumentation:n})=>{var o;const{columns:a,spacing:s,padding:c,containerWidth:l}=e,u=[],p=[];if(t.length<=a){for(let e=0;e<t.length;e+=1)u[e]=2*c,p[e]=i(t[e]);const r=y({path:Array.from({length:t.length+1}).map(((t,e)=>e)),photos:t,columnsRatios:p,columnsGaps:u,containerWidth:l,spacing:s,padding:c});for(let n=t.length;n<((null===(o=e.columnConstraints)||void 0===o?void 0:o.minColumns)||0);n+=1)u[n]=0,p[n]=t.length>0?t.reduce(((t,e)=>t+i(e)),0)/t.length:1,r[n]=[];return{columnsGaps:u,columnsRatios:p,columnsModel:r}}const f=(t.reduce(((t,e)=>t+r/i(e)),0)+s*(t.length-a)+2*c*t.length)/a,d=(({photos:t,spacing:e,padding:r,targetColumnWidth:n,targetColumnHeight:o,instrumentation:a})=>s=>{const c=[],l=1.5*o;let u=n/i(t[s])+2*r;for(let p=s+1;p<t.length+1&&(c.push({neighbor:p,weight:(o-u)**2}),!(u>l&&!(null==a?void 0:a.fullGraphSearch)||p===t.length));p+=1)u+=n/i(t[p])+e+2*r;return c})({photos:t,targetColumnWidth:r,targetColumnHeight:f,spacing:s,padding:c,instrumentation:n}),h=g(d,a,0,t.length).map((t=>+t));for(let e=0;e<h.length-1;e+=1){const r=t.slice(h[e],h[e+1]);u[e]=s*(r.length-1)+2*c*r.length,p[e]=1/r.reduce(((t,e)=>t+1/i(e)),0)}return{columnsGaps:u,columnsRatios:p,columnsModel:y({path:h,photos:t,columnsRatios:p,columnsGaps:u,containerWidth:l,spacing:s,padding:c})}},b=t=>{const{photos:e,layoutOptions:r,instrumentation:n}=t,{columns:o,spacing:i,padding:a,containerWidth:s}=r,c=(s-i*(o-1)-2*a*o)/o,{columnsGaps:l,columnsRatios:u,columnsModel:p}=v({photos:e,layoutOptions:r,targetColumnWidth:c,instrumentation:n});return p.findIndex((t=>t.findIndex((({layout:{width:t,height:e}})=>t<0||e<0))>=0))>=0?o>1?b({photos:e,layoutOptions:{...r,columns:o-1},instrumentation:n}):void 0:{columnsModel:p,columnsGaps:l,columnsRatios:u}},x=({columnContainerProps:t,children:e})=>(0,n.jsx)("div",{...t,children:e}),w=t=>{const{layoutOptions:e,columnIndex:r,columnsCount:n,columnsGaps:o,columnsRatios:i}=t,{layout:s,spacing:c,padding:l}=e;if("masonry"===s||!o||!i)return`calc((100% - ${c*(n-1)}px) / ${n})`;const u=i.reduce(((t,e)=>t+e),0),p=i.reduce(((t,e,n)=>t+(o[r]-o[n])*e),0);return`calc((100% - ${a((n-1)*c+2*n*l+p,3)}px) * ${a(i[r]/u,5)} + ${2*l}px)`},ColumnContainerRenderer=t=>{const{layoutOptions:e,renderColumnContainer:r,children:o,columnContainerProps:{style:i,...a}={},...s}=t,c={className:"react-photo-album--column",style:{display:"flex",flexDirection:"column",flexWrap:"nowrap",alignItems:"flex-start",width:w(t),justifyContent:"columns"===e.layout?"space-between":"flex-start",...i},...a};return(0,n.jsx)(n.Fragment,{children:(null!=r?r:x)({layoutOptions:e,columnContainerProps:c,children:o,...s})})},ColumnsLayout=t=>{const{photos:e,layoutOptions:r,renderPhoto:o,renderColumnContainer:i,componentsProps:a,instrumentation:s}=t,c=(({photos:t,layoutOptions:e,instrumentation:r})=>{var n,o,i;null===(n=null==r?void 0:r.onStartLayoutComputation)||void 0===n||n.call(r);const a=b({photos:t,layoutOptions:{...e,columns:Math.min(e.columns,Math.max(t.length,(null===(o=e.columnConstraints)||void 0===o?void 0:o.minColumns)||0))},instrumentation:r});return null===(i=null==r?void 0:r.onFinishLayoutComputation)||void 0===i||i.call(r,a),a})({photos:e,layoutOptions:r,instrumentation:s});if(void 0===c)return(0,n.jsx)(n.Fragment,{});const{columnsModel:l,columnsRatios:u,columnsGaps:p}=c;return(0,n.jsx)(n.Fragment,{children:l.map(((t,e)=>(0,n.jsx)(ColumnContainerRenderer,{layoutOptions:r,columnIndex:e,columnsCount:l.length,columnsGaps:p,columnsRatios:u,renderColumnContainer:i,columnContainerProps:null==a?void 0:a.columnContainerProps,children:t.map((({photo:t,layout:e})=>(0,n.jsx)(PhotoRenderer,{photo:t,layout:e,layoutOptions:r,renderPhoto:o,imageProps:null==a?void 0:a.imageProps},t.key||t.src)))},`column-${e}`)))})},O=t=>{var e,r,n;const{photos:o,layoutOptions:a,instrumentation:s}=t,{spacing:c,padding:l,containerWidth:u}=a,p=Math.min(a.columns,Math.max(o.length,(null===(e=a.columnConstraints)||void 0===e?void 0:e.minColumns)||0));null===(r=null==s?void 0:s.onStartLayoutComputation)||void 0===r||r.call(s);const f=(u-c*(p-1)-2*l*p)/p;if(f<=0)return p>1?O({...t,layoutOptions:{...a,columns:p-1}}):void 0;const d=[];for(let t=0;t<p;t+=1)d[t]=0;const h=o.reduce(((t,e,r)=>{const n=d.reduce(((t,e,r)=>e<d[t]-1?r:t),0);return d[n]=d[n]+f/i(e)+c+2*l,t[n].push({photo:e,index:r}),t}),Array.from({length:p}).map((()=>[]))).map((t=>t.map((({photo:e,index:r},n)=>({photo:e,layout:{width:f,height:f/i(e),index:r,photoIndex:n,photosCount:t.length}})))));return null===(n=null==s?void 0:s.onFinishLayoutComputation)||void 0===n||n.call(s,h),h},MasonryLayout=t=>{const{photos:e,layoutOptions:r,renderPhoto:o,renderColumnContainer:i,componentsProps:a,instrumentation:s}=t,c=O({photos:e,layoutOptions:r,instrumentation:s});return void 0===c?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:c.map(((t,e)=>(0,n.jsx)(ColumnContainerRenderer,{layoutOptions:r,columnsCount:c.length,columnIndex:e,renderColumnContainer:i,columnContainerProps:null==a?void 0:a.columnContainerProps,children:t.map((({photo:t,layout:e})=>(0,n.jsx)(PhotoRenderer,{photo:t,layout:e,layoutOptions:r,renderPhoto:o,imageProps:null==a?void 0:a.imageProps},t.key||t.src)))},`masonry-column-${e}`)))})},E=({containerProps:t,children:e,containerRef:r})=>(0,n.jsx)("div",{ref:r,...t,children:e}),ContainerRenderer=t=>{const{layoutOptions:e,renderContainer:r,children:o,containerRef:i,containerProps:{style:a,...s}={}}=t,{layout:c}=e,l={className:`react-photo-album react-photo-album--${c}`,style:{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",flexDirection:"rows"===c?"column":"row",...a},...s};if(r&&"object"==typeof r){const t=r;return(0,n.jsx)(t,{ref:i,layoutOptions:e,containerProps:l,children:o})}return(0,n.jsx)(n.Fragment,{children:(null!=r?r:E)({containerProps:l,containerRef:i,layoutOptions:e,children:o})})},A="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,j=t=>{const e=(0,o.useRef)(t);return A((()=>{e.current=t})),(0,o.useCallback)(((...t)=>{var r;return null===(r=e.current)||void 0===r?void 0:r.call(e,...t)}),[])},P=Object.freeze([1200,600,300,0]),k=(t,e)=>"function"==typeof t?t(e):t,R=(t,e)=>void 0!==t?k(t,e):void 0,C=(t,e,r,n=0)=>{const o=R(t,e);return Math.round(Math.max(void 0===o?((t,e)=>{const r=P.findIndex((t=>t<=e));return k(t[r>=0?r:0],e)})(r,e):o,n))},PhotoAlbum=t=>{const{photos:e,layout:r,renderPhoto:i,renderContainer:a,renderRowContainer:s,renderColumnContainer:c,defaultContainerWidth:l,resizeObserverProvider:u,breakpoints:p,instrumentation:f}=t,[d,h]=(0,o.useState)(!1),{containerRef:m,containerWidth:g}=((t,e)=>{const[r,n]=(0,o.useState)(),[i,a]=(0,o.useState)(),s=(0,o.useRef)(null),c=(0,o.useRef)(),l=j((()=>{var t;let o=null===(t=s.current)||void 0===t?void 0:t.clientWidth;if(void 0!==o&&e&&e.length>0){const t=[...e.filter((t=>t>0))].sort(((t,e)=>e-t));t.push(Math.floor(t[t.length-1]/2));const r=o;o=t.find(((e,n)=>e<=r||n===t.length-1))}const c=window.innerWidth-document.documentElement.clientWidth;c!==i&&a(c),void 0!==r&&void 0!==i&&void 0!==o&&o>r&&o-r<=20&&c<i||o!==r&&n(o)}));return{containerRef:j((e=>{var r,n;null===(r=c.current)||void 0===r||r.disconnect(),c.current=void 0,s.current=e,l(),e&&(c.current="undefined"!=typeof ResizeObserver?new ResizeObserver(l):null==t?void 0:t(l),null===(n=c.current)||void 0===n||n.observe(e))})),containerWidth:r}})(u,p);if(A((()=>h(!0)),[]),!r||!["rows","columns","masonry"].includes(r)||!Array.isArray(e))return(0,n.jsx)(n.Fragment,{});const y=(({layout:t,onClick:e,viewportWidth:r,containerWidth:n,targetRowHeight:o,rowConstraints:i,columnConstraints:a,columns:s,spacing:c,padding:l,sizes:u})=>({layout:t,onClick:e,viewportWidth:r,containerWidth:n,columns:C(s,n,[5,4,3,2],1),spacing:C(c,n,[20,15,10,5]),padding:C(l,n,[0,0,0,0,0]),targetRowHeight:C(o,n,[t=>t/5,t=>t/4,t=>t/3,t=>t/2]),rowConstraints:R(i,n),columnConstraints:R(a,n),sizes:u}))({containerWidth:d&&g||l||800,viewportWidth:d&&window.innerWidth||void 0,...t}),v=((t,e)=>"function"==typeof t?t(e):t)(t.componentsProps,y.containerWidth),b={photos:e,renderPhoto:i,componentsProps:v,instrumentation:f};return(0,n.jsx)(ContainerRenderer,{containerRef:m,layoutOptions:y,renderContainer:a,containerProps:null==v?void 0:v.containerProps,children:"rows"===r?(0,n.jsx)(RowsLayout,{layoutOptions:y,renderRowContainer:s,...b}):"columns"===r?(0,n.jsx)(ColumnsLayout,{layoutOptions:y,renderColumnContainer:c,...b}):(0,n.jsx)(MasonryLayout,{layoutOptions:y,renderColumnContainer:c,...b})})}},75251:(t,e,r)=>{"use strict";r(27418);var n=r(67294),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,n)&&!c.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===i[n]&&(i[n]=e[n]);return{$$typeof:o,type:t,key:l,ref:u,props:i,_owner:a.current}}e.jsx=l},67294:(t,e,r)=>{"use strict";t.exports=r(72408)},85893:(t,e,r)=>{"use strict";t.exports=r(75251)},63594:function(t,e,r){var n,o;!function(i,a){"use strict";void 0===(o="function"==typeof(n=function(){var t={};function Vector(t,e){this.x=t||0,this.y=e||0}function Circle(t,e){this.pos=t||new Vector,this.r=e||0,this.offset=new Vector}function Polygon(t,e){this.pos=t||new Vector,this.angle=0,this.offset=new Vector,this.setPoints(e||[])}function Box(t,e,r){this.pos=t||new Vector,this.w=e||0,this.h=r||0}function Response(){this.a=null,this.b=null,this.overlapN=new Vector,this.overlapV=new Vector,this.clear()}t.Vector=Vector,t.V=Vector,Vector.prototype.copy=Vector.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Vector.prototype.clone=Vector.prototype.clone=function(){return new Vector(this.x,this.y)},Vector.prototype.perp=Vector.prototype.perp=function(){var t=this.x;return this.x=this.y,this.y=-t,this},Vector.prototype.rotate=Vector.prototype.rotate=function(t){var e=this.x,r=this.y;return this.x=e*Math.cos(t)-r*Math.sin(t),this.y=e*Math.sin(t)+r*Math.cos(t),this},Vector.prototype.reverse=Vector.prototype.reverse=function(){return this.x=-this.x,this.y=-this.y,this},Vector.prototype.normalize=Vector.prototype.normalize=function(){var t=this.len();return t>0&&(this.x=this.x/t,this.y=this.y/t),this},Vector.prototype.add=Vector.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Vector.prototype.sub=Vector.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Vector.prototype.scale=Vector.prototype.scale=function(t,e){return this.x*=t,this.y*=void 0!==e?e:t,this},Vector.prototype.project=Vector.prototype.project=function(t){var e=this.dot(t)/t.len2();return this.x=e*t.x,this.y=e*t.y,this},Vector.prototype.projectN=Vector.prototype.projectN=function(t){var e=this.dot(t);return this.x=e*t.x,this.y=e*t.y,this},Vector.prototype.reflect=Vector.prototype.reflect=function(t){var e=this.x,r=this.y;return this.project(t).scale(2),this.x-=e,this.y-=r,this},Vector.prototype.reflectN=Vector.prototype.reflectN=function(t){var e=this.x,r=this.y;return this.projectN(t).scale(2),this.x-=e,this.y-=r,this},Vector.prototype.dot=Vector.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Vector.prototype.len2=Vector.prototype.len2=function(){return this.dot(this)},Vector.prototype.len=Vector.prototype.len=function(){return Math.sqrt(this.len2())},t.Circle=Circle,Circle.prototype.getAABBAsBox=Circle.prototype.getAABBAsBox=function(){var t=this.r;return new Box(this.pos.clone().add(this.offset).sub(new Vector(t,t)),2*t,2*t)},Circle.prototype.getAABB=Circle.prototype.getAABB=function(){return this.getAABBAsBox().toPolygon()},Circle.prototype.setOffset=Circle.prototype.setOffset=function(t){return this.offset=t,this},t.Polygon=Polygon,Polygon.prototype.setPoints=Polygon.prototype.setPoints=function(t){if(!this.points||this.points.length!==t.length){var e,r=this.calcPoints=[],n=this.edges=[],o=this.normals=[];for(e=0;e<t.length;e++){var i=t[e],a=e<t.length-1?t[e+1]:t[0];i===a||i.x!==a.x||i.y!==a.y?(r.push(new Vector),n.push(new Vector),o.push(new Vector)):(t.splice(e,1),e-=1)}}return this.points=t,this._recalc(),this},Polygon.prototype.setAngle=Polygon.prototype.setAngle=function(t){return this.angle=t,this._recalc(),this},Polygon.prototype.setOffset=Polygon.prototype.setOffset=function(t){return this.offset=t,this._recalc(),this},Polygon.prototype.rotate=Polygon.prototype.rotate=function(t){for(var e=this.points,r=e.length,n=0;n<r;n++)e[n].rotate(t);return this._recalc(),this},Polygon.prototype.translate=Polygon.prototype.translate=function(t,e){for(var r=this.points,n=r.length,o=0;o<n;o++)r[o].x+=t,r[o].y+=e;return this._recalc(),this},Polygon.prototype._recalc=function(){var t,e=this.calcPoints,r=this.edges,n=this.normals,o=this.points,i=this.offset,a=this.angle,s=o.length;for(t=0;t<s;t++){var c=e[t].copy(o[t]);c.x+=i.x,c.y+=i.y,0!==a&&c.rotate(a)}for(t=0;t<s;t++){var l=e[t],u=t<s-1?e[t+1]:e[0],p=r[t].copy(u).sub(l);n[t].copy(p).perp().normalize()}return this},Polygon.prototype.getAABBAsBox=Polygon.prototype.getAABBAsBox=function(){for(var t=this.calcPoints,e=t.length,r=t[0].x,n=t[0].y,o=t[0].x,i=t[0].y,a=1;a<e;a++){var s=t[a];s.x<r?r=s.x:s.x>o&&(o=s.x),s.y<n?n=s.y:s.y>i&&(i=s.y)}return new Box(this.pos.clone().add(new Vector(r,n)),o-r,i-n)},Polygon.prototype.getAABB=Polygon.prototype.getAABB=function(){return this.getAABBAsBox().toPolygon()},Polygon.prototype.getCentroid=Polygon.prototype.getCentroid=function(){for(var t=this.calcPoints,e=t.length,r=0,n=0,o=0,i=0;i<e;i++){var a=t[i],s=i===e-1?t[0]:t[i+1],c=a.x*s.y-s.x*a.y;r+=(a.x+s.x)*c,n+=(a.y+s.y)*c,o+=c}return new Vector(r/=o*=3,n/=o)},t.Box=Box,Box.prototype.toPolygon=Box.prototype.toPolygon=function(){var t=this.pos,e=this.w,r=this.h;return new Polygon(new Vector(t.x,t.y),[new Vector,new Vector(e,0),new Vector(e,r),new Vector(0,r)])},t.Response=Response,Response.prototype.clear=Response.prototype.clear=function(){return this.aInB=!0,this.bInA=!0,this.overlap=Number.MAX_VALUE,this};for(var e=[],r=0;r<10;r++)e.push(new Vector);var n=[];for(r=0;r<5;r++)n.push([]);var o=new Response,i=new Box(new Vector,1e-6,1e-6).toPolygon();function a(t,e,r){for(var n=Number.MAX_VALUE,o=-Number.MAX_VALUE,i=t.length,a=0;a<i;a++){var s=t[a].dot(e);s<n&&(n=s),s>o&&(o=s)}r[0]=n,r[1]=o}function s(t,r,o,i,s,c){var l=n.pop(),u=n.pop(),p=e.pop().copy(r).sub(t),f=p.dot(s);if(a(o,s,l),a(i,s,u),u[0]+=f,u[1]+=f,l[0]>u[1]||u[0]>l[1])return e.push(p),n.push(l),n.push(u),!0;if(c){var d,h,m=0;if(l[0]<u[0])if(c.aInB=!1,l[1]<u[1])m=l[1]-u[0],c.bInA=!1;else m=(d=l[1]-u[0])<(h=u[1]-l[0])?d:-h;else if(c.bInA=!1,l[1]>u[1])m=l[0]-u[1],c.aInB=!1;else m=(d=l[1]-u[0])<(h=u[1]-l[0])?d:-h;var g=Math.abs(m);g<c.overlap&&(c.overlap=g,c.overlapN.copy(s),m<0&&c.overlapN.reverse())}return e.push(p),n.push(l),n.push(u),!1}function c(t,e){var r=t.len2(),n=e.dot(t);return n<0?l:n>r?p:u}t.isSeparatingAxis=s;var l=-1,u=0,p=1;function f(t,r){var n=e.pop().copy(t).sub(r.pos).sub(r.offset),o=r.r*r.r,i=n.len2();return e.push(n),i<=o}function d(t,e){i.pos.copy(t),o.clear();var r=y(i,e,o);return r&&(r=o.aInB),r}function h(t,r,n){var o=e.pop().copy(r.pos).add(r.offset).sub(t.pos).sub(t.offset),i=t.r+r.r,a=i*i,s=o.len2();if(s>a)return e.push(o),!1;if(n){var c=Math.sqrt(s);n.a=t,n.b=r,n.overlap=i-c,n.overlapN.copy(o.normalize()),n.overlapV.copy(o).scale(n.overlap),n.aInB=t.r<=r.r&&c<=r.r-t.r,n.bInA=r.r<=t.r&&c<=t.r-r.r}return e.push(o),!0}function m(t,r,n){for(var o=e.pop().copy(r.pos).add(r.offset).sub(t.pos),i=r.r,a=i*i,s=t.calcPoints,u=s.length,f=e.pop(),d=e.pop(),h=0;h<u;h++){var m=h===u-1?0:h+1,g=0===h?u-1:h-1,y=0,v=null;f.copy(t.edges[h]),d.copy(o).sub(s[h]),n&&d.len2()>a&&(n.aInB=!1);var b=c(f,d);if(b===l){f.copy(t.edges[g]);var x=e.pop().copy(o).sub(s[g]);if((b=c(f,x))===p){if((O=d.len())>i)return e.push(o),e.push(f),e.push(d),e.push(x),!1;n&&(n.bInA=!1,v=d.normalize(),y=i-O)}e.push(x)}else if(b===p){if(f.copy(t.edges[m]),d.copy(o).sub(s[m]),(b=c(f,d))===l){if((O=d.len())>i)return e.push(o),e.push(f),e.push(d),!1;n&&(n.bInA=!1,v=d.normalize(),y=i-O)}}else{var w=f.perp().normalize(),O=d.dot(w),E=Math.abs(O);if(O>0&&E>i)return e.push(o),e.push(w),e.push(d),!1;n&&(v=w,y=i-O,(O>=0||y<2*i)&&(n.bInA=!1))}v&&n&&Math.abs(y)<Math.abs(n.overlap)&&(n.overlap=y,n.overlapN.copy(v))}return n&&(n.a=t,n.b=r,n.overlapV.copy(n.overlapN).scale(n.overlap)),e.push(o),e.push(f),e.push(d),!0}function g(t,e,r){var n=m(e,t,r);if(n&&r){var o=r.a,i=r.aInB;r.overlapN.reverse(),r.overlapV.reverse(),r.a=r.b,r.b=o,r.aInB=r.bInA,r.bInA=i}return n}function y(t,e,r){for(var n=t.calcPoints,o=n.length,i=e.calcPoints,a=i.length,c=0;c<o;c++)if(s(t.pos,e.pos,n,i,t.normals[c],r))return!1;for(c=0;c<a;c++)if(s(t.pos,e.pos,n,i,e.normals[c],r))return!1;return r&&(r.a=t,r.b=e,r.overlapV.copy(r.overlapN).scale(r.overlap)),!0}return t.pointInCircle=f,t.pointInPolygon=d,t.testCircleCircle=h,t.testPolygonCircle=m,t.testCirclePolygon=g,t.testPolygonPolygon=y,t})?n.call(e,r,e,t):n)||(t.exports=o)}()},20477:t=>{"use strict";t.exports=function(t,e,r,n){var o=self||window;try{try{var i;try{i=new o.Blob([t])}catch(e){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(t),i=i.getBlob()}var a=o.URL||o.webkitURL,s=a.createObjectURL(i),c=new o[e](s,r);return a.revokeObjectURL(s),c}catch(n){return new o[e]("data:application/javascript,".concat(encodeURIComponent(t)),r)}}catch(t){if(!n)throw Error("Inline worker is not supported");return new o[e](n,r)}}},17137:t=>{"use strict";function Mime(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Mime.prototype.define=function(t,e){for(let r in t){let n=t[r].map((function(t){return t.toLowerCase()}));r=r.toLowerCase();for(let t=0;t<n.length;t++){const o=n[t];if("*"!==o[0]){if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(e||!this._extensions[r]){const t=n[0];this._extensions[r]="*"!==t[0]?t:t.substr(1)}}},Mime.prototype.getType=function(t){let e=(t=String(t)).replace(/^.*[/\\]/,"").toLowerCase(),r=e.replace(/^.*\./,"").toLowerCase(),n=e.length<t.length;return(r.length<e.length-1||!n)&&this._types[r]||null},Mime.prototype.getExtension=function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null},t.exports=Mime},22133:(t,e,r)=>{"use strict";let n=r(17137);t.exports=new n(r(94776))},94776:t=>{t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},13012:(t,e,r)=>{"use strict";r.d(e,{default:()=>m});var n=1e6,o=1e6,i="[big.js] ",a=i+"Invalid ",s=a+"decimal places",c=i+"Division by zero",l={},u=void 0,p=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function f(t,e,r,n){var o=t.c;if(r===u&&(r=t.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error("[big.js] Invalid rounding mode");if(e<1)n=3===r&&(n||!!o[0])||0===e&&(1===r&&o[0]>=5||2===r&&(o[0]>5||5===o[0]&&(n||o[1]!==u))),o.length=1,n?(t.e=t.e-e+1,o[0]=1):o[0]=t.e=0;else if(e<o.length){if(n=1===r&&o[e]>=5||2===r&&(o[e]>5||5===o[e]&&(n||o[e+1]!==u||1&o[e-1]))||3===r&&(n||!!o[0]),o.length=e,n)for(;++o[--e]>9;)if(o[e]=0,0===e){++t.e,o.unshift(1);break}for(e=o.length;!o[--e];)o.pop()}return t}function d(t,e,r){var n=t.e,o=t.c.join(""),i=o.length;if(e)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)o="0"+o;o="0."+o}else if(n>0)if(++n>i)for(n-=i;n--;)o+="0";else n<i&&(o=o.slice(0,n)+"."+o.slice(n));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return t.s<0&&r?"-"+o:o}l.abs=function(){var t=new this.constructor(this);return t.s=1,t},l.cmp=function(t){var e,r=this,n=r.c,o=(t=new r.constructor(t)).c,i=r.s,a=t.s,s=r.e,c=t.e;if(!n[0]||!o[0])return n[0]?i:o[0]?-a:0;if(i!=a)return i;if(e=i<0,s!=c)return s>c^e?1:-1;for(a=(s=n.length)<(c=o.length)?s:c,i=-1;++i<a;)if(n[i]!=o[i])return n[i]>o[i]^e?1:-1;return s==c?0:s>c^e?1:-1},l.div=function(t){var e=this,r=e.constructor,o=e.c,i=(t=new r(t)).c,a=e.s==t.s?1:-1,l=r.DP;if(l!==~~l||l<0||l>n)throw Error(s);if(!i[0])throw Error(c);if(!o[0])return t.s=a,t.c=[t.e=0],t;var p,d,h,m,g,y=i.slice(),v=p=i.length,b=o.length,x=o.slice(0,p),w=x.length,O=t,E=O.c=[],A=0,j=l+(O.e=e.e-t.e)+1;for(O.s=a,a=j<0?0:j,y.unshift(0);w++<p;)x.push(0);do{for(h=0;h<10;h++){if(p!=(w=x.length))m=p>w?1:-1;else for(g=-1,m=0;++g<p;)if(i[g]!=x[g]){m=i[g]>x[g]?1:-1;break}if(!(m<0))break;for(d=w==p?i:y;w;){if(x[--w]<d[w]){for(g=w;g&&!x[--g];)x[g]=9;--x[g],x[w]+=10}x[w]-=d[w]}for(;!x[0];)x.shift()}E[A++]=m?h:++h,x[0]&&m?x[w]=o[v]||0:x=[o[v]]}while((v++<b||x[0]!==u)&&a--);return E[0]||1==A||(E.shift(),O.e--,j--),A>j&&f(O,j,r.RM,x[0]!==u),O},l.eq=function(t){return 0===this.cmp(t)},l.gt=function(t){return this.cmp(t)>0},l.gte=function(t){return this.cmp(t)>-1},l.lt=function(t){return this.cmp(t)<0},l.lte=function(t){return this.cmp(t)<1},l.minus=l.sub=function(t){var e,r,n,o,i=this,a=i.constructor,s=i.s,c=(t=new a(t)).s;if(s!=c)return t.s=-c,i.plus(t);var l=i.c.slice(),u=i.e,p=t.c,f=t.e;if(!l[0]||!p[0])return p[0]?t.s=-c:l[0]?t=new a(i):t.s=1,t;if(s=u-f){for((o=s<0)?(s=-s,n=l):(f=u,n=p),n.reverse(),c=s;c--;)n.push(0);n.reverse()}else for(r=((o=l.length<p.length)?l:p).length,s=c=0;c<r;c++)if(l[c]!=p[c]){o=l[c]<p[c];break}if(o&&(n=l,l=p,p=n,t.s=-t.s),(c=(r=p.length)-(e=l.length))>0)for(;c--;)l[e++]=0;for(c=e;r>s;){if(l[--r]<p[r]){for(e=r;e&&!l[--e];)l[e]=9;--l[e],l[r]+=10}l[r]-=p[r]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(t.s=1,l=[f=0]),t.c=l,t.e=f,t},l.mod=function(t){var e,r=this,n=r.constructor,o=r.s,i=(t=new n(t)).s;if(!t.c[0])throw Error(c);return r.s=t.s=1,e=1==t.cmp(r),r.s=o,t.s=i,e?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(t),n.DP=o,n.RM=i,this.minus(r.times(t)))},l.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},l.plus=l.add=function(t){var e,r,n,o=this,i=o.constructor;if(t=new i(t),o.s!=t.s)return t.s=-t.s,o.minus(t);var a=o.e,s=o.c,c=t.e,l=t.c;if(!s[0]||!l[0])return l[0]||(s[0]?t=new i(o):t.s=o.s),t;if(s=s.slice(),e=a-c){for(e>0?(c=a,n=l):(e=-e,n=s),n.reverse();e--;)n.push(0);n.reverse()}for(s.length-l.length<0&&(n=l,l=s,s=n),e=l.length,r=0;e;s[e]%=10)r=(s[--e]=s[e]+l[e]+r)/10|0;for(r&&(s.unshift(r),++c),e=s.length;0===s[--e];)s.pop();return t.c=s,t.e=c,t},l.pow=function(t){var e=this,r=new e.constructor("1"),n=r,i=t<0;if(t!==~~t||t<-1e6||t>o)throw Error(a+"exponent");for(i&&(t=-t);1&t&&(n=n.times(e)),t>>=1;)e=e.times(e);return i?r.div(n):n},l.prec=function(t,e){if(t!==~~t||t<1||t>n)throw Error(a+"precision");return f(new this.constructor(this),t,e)},l.round=function(t,e){if(t===u)t=0;else if(t!==~~t||t<-n||t>n)throw Error(s);return f(new this.constructor(this),t+this.e+1,e)},l.sqrt=function(){var t,e,r,n=this,o=n.constructor,a=n.s,s=n.e,c=new o("0.5");if(!n.c[0])return new o(n);if(a<0)throw Error(i+"No square root");0===(a=Math.sqrt(n+""))||a===1/0?((e=n.c.join("")).length+s&1||(e+="0"),s=((s+1)/2|0)-(s<0||1&s),t=new o(((a=Math.sqrt(e))==1/0?"5e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+s)):t=new o(a+""),s=t.e+(o.DP+=4);do{r=t,t=c.times(r.plus(n.div(r)))}while(r.c.slice(0,s).join("")!==t.c.slice(0,s).join(""));return f(t,(o.DP-=4)+t.e+1,o.RM)},l.times=l.mul=function(t){var e,r=this,n=r.constructor,o=r.c,i=(t=new n(t)).c,a=o.length,s=i.length,c=r.e,l=t.e;if(t.s=r.s==t.s?1:-1,!o[0]||!i[0])return t.c=[t.e=0],t;for(t.e=c+l,a<s&&(e=o,o=i,i=e,l=a,a=s,s=l),e=new Array(l=a+s);l--;)e[l]=0;for(c=s;c--;){for(s=0,l=a+c;l>c;)s=e[l]+i[c]*o[l-c-1]+s,e[l--]=s%10,s=s/10|0;e[l]=s}for(s?++t.e:e.shift(),c=e.length;!e[--c];)e.pop();return t.c=e,t},l.toExponential=function(t,e){var r=this,o=r.c[0];if(t!==u){if(t!==~~t||t<0||t>n)throw Error(s);for(r=f(new r.constructor(r),++t,e);r.c.length<t;)r.c.push(0)}return d(r,!0,!!o)},l.toFixed=function(t,e){var r=this,o=r.c[0];if(t!==u){if(t!==~~t||t<0||t>n)throw Error(s);for(t=t+(r=f(new r.constructor(r),t+r.e+1,e)).e+1;r.c.length<t;)r.c.push(0)}return d(r,!1,!!o)},l[Symbol.for("nodejs.util.inspect.custom")]=l.toJSON=l.toString=function(){var t=this,e=t.constructor;return d(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])},l.toNumber=function(){var t=Number(d(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(i+"Imprecise conversion");return t},l.toPrecision=function(t,e){var r=this,o=r.constructor,i=r.c[0];if(t!==u){if(t!==~~t||t<1||t>n)throw Error(a+"precision");for(r=f(new o(r),t,e);r.c.length<t;)r.c.push(0)}return d(r,t<=r.e||r.e<=o.NE||r.e>=o.PE,!!i)},l.valueOf=function(){var t=this,e=t.constructor;if(!0===e.strict)throw Error(i+"valueOf disallowed");return d(t,t.e<=e.NE||t.e>=e.PE,!0)};var h=function t(){function Big(e){var r=this;if(!(r instanceof Big))return e===u?t():new Big(e);if(e instanceof Big)r.s=e.s,r.e=e.e,r.c=e.c.slice();else{if("string"!=typeof e){if(!0===Big.strict&&"bigint"!=typeof e)throw TypeError(a+"value");e=0===e&&1/e<0?"-0":String(e)}!function(t,e){var r,n,o;if(!p.test(e))throw Error(a+"number");t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(r=e.indexOf("."))>-1&&(e=e.replace(".",""));(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length);for(o=e.length,n=0;n<o&&"0"==e.charAt(n);)++n;if(n==o)t.c=[t.e=0];else{for(;o>0&&"0"==e.charAt(--o););for(t.e=r-n-1,t.c=[],r=0;n<=o;)t.c[r++]=+e.charAt(n++)}}(r,e)}r.constructor=Big}return Big.prototype=l,Big.DP=20,Big.RM=1,Big.NE=-7,Big.PE=21,Big.strict=false,Big.roundDown=0,Big.roundHalfUp=1,Big.roundHalfEven=2,Big.roundUp=3,Big}();const m=h},12902:(t,e,r)=>{"use strict";function n(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(t){return!!t&&!!t[q]}function i(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var r=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===G}(t)||Array.isArray(t)||!!t[U]||!!t.constructor[U]||f(t)||d(t))}function a(t,e,r){void 0===r&&(r=!1),0===s(t)?(r?Object.keys:H)(t).forEach((function(n){r&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(r,n){return e(n,r,t)}))}function s(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:f(t)?2:d(t)?3:0}function c(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){return 2===s(t)?t.get(e):t[e]}function u(t,e,r){var n=s(t);2===n?t.set(e,r):3===n?(t.delete(e),t.add(r)):t[e]=r}function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function f(t){return F&&t instanceof Map}function d(t){return N&&t instanceof Set}function h(t){return t.o||t.t}function m(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=K(t);delete e[q];for(var r=H(e),n=0;n<r.length;n++){var o=r[n],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function g(t,e){return void 0===e&&(e=!1),v(t)||o(t)||!i(t)||(s(t)>1&&(t.set=t.add=t.clear=t.delete=y),Object.freeze(t),e&&a(t,(function(t,e){return g(e,!0)}),!0)),t}function y(){n(2)}function v(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(t){var e=Y[t];return e||n(18,t),e}function x(){return V}function w(t,e){e&&(b("Patches"),t.u=[],t.s=[],t.v=e)}function O(t){E(t),t.p.forEach(j),t.p=null}function E(t){t===V&&(V=t.l)}function A(t){return V={p:[],l:V,h:t,m:!0,_:0}}function j(t){var e=t[q];0===e.i||1===e.i?e.j():e.O=!0}function P(t,e){e._=e.p.length;var r=e.p[0],o=void 0!==t&&t!==r;return e.h.g||b("ES5").S(e,t,o),o?(r[q].P&&(O(e),n(4)),i(t)&&(t=k(e,t),e.l||C(e,t)),e.u&&b("Patches").M(r[q].t,t,e.u,e.s)):t=k(e,r,[]),O(e),e.u&&e.v(e.u,e.s),t!==W?t:void 0}function k(t,e,r){if(v(e))return e;var n=e[q];if(!n)return a(e,(function(o,i){return R(t,n,e,o,i,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return C(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=m(n.k):n.o;a(3===n.i?new Set(o):o,(function(e,i){return R(t,n,o,e,i,r)})),C(t,o,!1),r&&t.u&&b("Patches").R(n,r,t.u,t.s)}return n.o}function R(t,e,r,n,a,s){if(o(a)){var l=k(t,a,s&&e&&3!==e.i&&!c(e.D,n)?s.concat(n):void 0);if(u(r,n,l),!o(l))return;t.m=!1}if(i(a)&&!v(a)){if(!t.h.F&&t._<1)return;k(t,a),e&&e.A.l||C(t,a)}}function C(t,e,r){void 0===r&&(r=!1),t.h.F&&t.m&&g(e,r)}function M(t,e){var r=t[q];return(r?h(r):t)[e]}function I(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function S(t){t.P||(t.P=!0,t.l&&S(t.l))}function _(t){t.o||(t.o=m(t.t))}function T(t,e,r){var n=f(e)?b("MapSet").N(e,r):d(e)?b("MapSet").T(e,r):t.g?function(t,e){var r=Array.isArray(t),n={i:r?1:0,A:e?e.A:x(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,i=X;r&&(o=[n],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(e,r):b("ES5").J(e,r);return(r?r.A:x()).p.push(n),n}function B(t){return o(t)||n(22,t),function t(e){if(!i(e))return e;var r,n=e[q],o=s(e);if(n){if(!n.P&&(n.i<4||!b("ES5").K(n)))return n.t;n.I=!0,r=D(e,o),n.I=!1}else r=D(e,o);return a(r,(function(e,o){n&&l(n.t,e)===o||u(r,e,t(o))})),3===o?new Set(r):r}(t)}function D(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return m(t)}r.d(e,{current:()=>B,produce:()=>tt});var z,V,L="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,N="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=L?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),U=L?Symbol.for("immer-draftable"):"__$immer_draftable",q=L?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),H="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(t){var e={};return H(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Y={},X={get:function(t,e){if(e===q)return t;var r=h(t);if(!c(r,e))return function(t,e,r){var n,o=I(e,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,r,e);var n=r[e];return t.I||!i(n)?n:n===M(t.t,e)?(_(t),t.o[e]=T(t.A.h,n,t)):n},has:function(t,e){return e in h(t)},ownKeys:function(t){return Reflect.ownKeys(h(t))},set:function(t,e,r){var n=I(h(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=M(h(t),e),i=null==o?void 0:o[q];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(p(r,o)&&(void 0!==r||c(t.t,e)))return!0;_(t),S(t)}return t.o[e]===r&&"number"!=typeof r&&(void 0!==r||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==M(t.t,e)||e in t.t?(t.D[e]=!1,_(t),S(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=h(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:r[e]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){n(12)}},Q={};a(X,(function(t,e){Q[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Q.deleteProperty=function(t,e){return Q.set.call(this,t,e,void 0)},Q.set=function(t,e,r){return X.set.call(this,t[0],e,r,t[0])};var J=function(){function t(t){var e=this;this.g=$,this.F=!0,this.produce=function(t,r,o){if("function"==typeof t&&"function"!=typeof r){var a=r;r=t;var s=e;return function(t){var e=this;void 0===t&&(t=a);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s.produce(t,(function(t){var n;return(n=r).call.apply(n,[e,t].concat(o))}))}}var c;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),i(t)){var l=A(e),u=T(e,t,void 0),p=!0;try{c=r(u),p=!1}finally{p?O(l):E(l)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(t){return w(l,o),P(t,l)}),(function(t){throw O(l),t})):(w(l,o),P(c,l))}if(!t||"object"!=typeof t){if(void 0===(c=r(t))&&(c=t),c===W&&(c=void 0),e.F&&g(c,!0),o){var f=[],d=[];b("Patches").M(t,c,f,d),o(f,d)}return c}n(21,t)},this.produceWithPatches=function(t,r){if("function"==typeof t)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.produceWithPatches(r,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,i=e.produce(t,r,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,n,o]})):[i,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){i(t)||n(8),o(t)&&(t=B(t));var e=A(this),r=T(this,t,void 0);return r[q].C=!0,E(e),r},e.finishDraft=function(t,e){var r=(t&&t[q]).A;return w(r,e),P(void 0,r)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!$&&n(20),this.g=t},e.applyPatches=function(t,e){var r;for(r=e.length-1;r>=0;r--){var n=e[r];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}r>-1&&(e=e.slice(r+1));var i=b("Patches").$;return o(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Z=new J,tt=Z.produce;Z.produceWithPatches.bind(Z),Z.setAutoFreeze.bind(Z),Z.setUseProxies.bind(Z),Z.applyPatches.bind(Z),Z.createDraft.bind(Z),Z.finishDraft.bind(Z)},78720:(t,e,r)=>{"use strict";r.d(e,{useVirtual:()=>g});var n=r(67294);function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}var i,a=["bottom","height","left","right","top","width"],s=new Map,c=function t(){var e=[];s.forEach((function(t,r){var n,o,i=r.getBoundingClientRect();n=i,o=t.rect,void 0===n&&(n={}),void 0===o&&(o={}),a.some((function(t){return n[t]!==o[t]}))&&(t.rect=i,e.push(t))})),e.forEach((function(t){t.callbacks.forEach((function(e){return e(t.rect)}))})),i=window.requestAnimationFrame(t)};var l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function u(t,e){void 0===e&&(e={width:0,height:0});var r=n.useState(t.current),o=r[0],a=r[1],u=n.useReducer(p,e),f=u[0],d=u[1],h=n.useRef(!1);return l((function(){t.current!==o&&a(t.current)})),l((function(){if(o&&!h.current){h.current=!0;var t=o.getBoundingClientRect();d({rect:t})}}),[o]),n.useEffect((function(){if(o){var t,e,r=(t=o,e=function(t){d({rect:t})},{observe:function(){var r=0===s.size;s.has(t)?s.get(t).callbacks.push(e):s.set(t,{rect:void 0,hasRectChanged:!1,callbacks:[e]}),r&&c()},unobserve:function(){var r=s.get(t);if(r){var n=r.callbacks.indexOf(e);n>=0&&r.callbacks.splice(n,1),r.callbacks.length||s.delete(t),s.size||cancelAnimationFrame(i)}}});return r.observe(),function(){r.unobserve()}}}),[o]),f}function p(t,e){var r=e.rect;return t.height!==r.height||t.width!==r.width?r:t}var f=function(){return 50},d=function(t){return t},h=function(t,e){return t[e?"offsetWidth":"offsetHeight"]},m=function(t){for(var e=Math.max(t.start-t.overscan,0),r=Math.min(t.end+t.overscan,t.size-1),n=[],o=e;o<=r;o++)n.push(o);return n};function g(t){var e,r=t.size,i=void 0===r?0:r,a=t.estimateSize,s=void 0===a?f:a,c=t.overscan,p=void 0===c?1:c,g=t.paddingStart,y=void 0===g?0:g,v=t.paddingEnd,b=void 0===v?0:v,x=t.parentRef,w=t.horizontal,O=t.scrollToFn,E=t.useObserver,A=t.initialRect,j=t.onScrollElement,P=t.scrollOffsetFn,k=t.keyExtractor,R=void 0===k?d:k,C=t.measureSize,M=void 0===C?h:C,I=t.rangeExtractor,S=void 0===I?m:I,_=w?"width":"height",T=w?"scrollLeft":"scrollTop",B=n.useRef({scrollOffset:0,measurements:[]}),D=n.useState(0),z=D[0],V=D[1];B.current.scrollOffset=z;var L=(E||u)(x,A)[_];B.current.outerSize=L;var F=n.useCallback((function(t){x.current&&(x.current[T]=t)}),[x,T]),N=O||F;O=n.useCallback((function(t){N(t,F)}),[F,N]);var $=n.useState({}),W=$[0],U=$[1],q=n.useCallback((function(){return U({})}),[]),G=n.useRef([]),H=n.useMemo((function(){var t=G.current.length>0?Math.min.apply(Math,G.current):0;G.current=[];for(var e=B.current.measurements.slice(0,t),r=t;r<i;r++){var n=R(r),o=W[n],a=e[r-1]?e[r-1].end:y,c="number"==typeof o?o:s(r),l=a+c;e[r]={index:r,start:a,size:c,end:l,key:n}}return e}),[s,W,y,i,R]),K=((null==(e=H[i-1])?void 0:e.end)||y)+b;B.current.measurements=H,B.current.totalSize=K;var Y=j?j.current:x.current,X=n.useRef(P);X.current=P,l((function(){if(Y){var t=function(t){var e=X.current?X.current(t):Y[T];V(e)};return t(),Y.addEventListener("scroll",t,{capture:!1,passive:!0}),function(){Y.removeEventListener("scroll",t)}}V(0)}),[Y,T]);var Q=function(t){var e=t.measurements,r=t.outerSize,n=t.scrollOffset,o=e.length-1,i=function(t,e,r,n){for(;t<=e;){var o=(t+e)/2|0,i=r(o);if(i<n)t=o+1;else{if(!(i>n))return o;e=o-1}}return t>0?t-1:0}(0,o,(function(t){return e[t].start}),n),a=i;for(;a<o&&e[a].end<n+r;)a++;return{start:i,end:a}}(B.current),J=Q.start,Z=Q.end,tt=n.useMemo((function(){return S({start:J,end:Z,overscan:p,size:H.length})}),[J,Z,p,H.length,S]),et=n.useRef(M);et.current=M;var rt=n.useMemo((function(){for(var t=[],e=function(e,r){var n=tt[e],i=o(o({},H[n]),{},{measureRef:function(t){if(t){var e=et.current(t,w);if(e!==i.size){var r=B.current.scrollOffset;i.start<r&&F(r+(e-i.size)),G.current.push(n),U((function(t){var r;return o(o({},t),{},((r={})[i.key]=e,r))}))}}}});t.push(i)},r=0,n=tt.length;r<n;r++)e(r);return t}),[tt,F,w,H]),nt=n.useRef(!1);l((function(){nt.current&&U({}),nt.current=!0}),[s]);var ot=n.useCallback((function(t,e){var r=(void 0===e?{}:e).align,n=void 0===r?"start":r,o=B.current,i=o.scrollOffset,a=o.outerSize;"auto"===n&&(n=t<=i?"start":t>=i+a?"end":"start"),"start"===n?O(t):"end"===n?O(t-a):"center"===n&&O(t-a/2)}),[O]),it=n.useCallback((function(t,e){var r=void 0===e?{}:e,n=r.align,a=void 0===n?"auto":n,s=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(r,["align"]),c=B.current,l=c.measurements,u=c.scrollOffset,p=c.outerSize,f=l[Math.max(0,Math.min(t,i-1))];if(f){if("auto"===a)if(f.end>=u+p)a="end";else{if(!(f.start<=u))return;a="start"}var d="center"===a?f.start+f.size/2:"end"===a?f.end:f.start;ot(d,o({align:a},s))}}),[ot,i]),at=n.useCallback((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];it.apply(void 0,e),requestAnimationFrame((function(){it.apply(void 0,e)}))}),[it]);return{virtualItems:rt,totalSize:K,scrollToOffset:ot,scrollToIndex:at,measure:q}}}}]);
Back to Directory File Manager