@wangeditor-next/plugin-link-card 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/config/interface.d.ts +7 -7
- package/dist/core/src/index.d.ts +6 -6
- package/dist/core/src/menus/index.d.ts +2 -2
- package/dist/core/src/text-area/TextArea.d.ts +2 -0
- package/dist/core/src/upload/index.d.ts +3 -2
- package/dist/core/src/upload/interface.d.ts +2 -2
- package/dist/editor/src/Boot.d.ts +3 -2
- package/dist/editor/src/create.d.ts +3 -2
- package/dist/editor/src/index.d.ts +4 -2
- package/dist/editor/src/register-builtin-modules/register.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/table-module/src/module/pre-parse-html.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @description config interface
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
|
|
6
|
-
import { VideoElement } from 'packages/video-module/src/module/custom-types';
|
|
7
|
-
import { Descendant, Node, NodeEntry, Range } from 'slate';
|
|
8
|
-
import { IDomEditor } from '../editor/interface';
|
|
9
|
-
import { IMenuGroup } from '../menus/interface';
|
|
10
|
-
import { IUploadConfig } from '../upload';
|
|
11
|
-
import { DOMElement } from '../utils/dom';
|
|
5
|
+
import type { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
|
|
6
|
+
import type { VideoElement } from 'packages/video-module/src/module/custom-types';
|
|
7
|
+
import type { Descendant, Node, NodeEntry, Range } from 'slate';
|
|
8
|
+
import type { IDomEditor } from '../editor/interface';
|
|
9
|
+
import type { IMenuGroup } from '../menus/interface';
|
|
10
|
+
import type { IUploadConfig } from '../upload';
|
|
11
|
+
import type { DOMElement } from '../utils/dom';
|
|
12
12
|
interface IHoverbarConf {
|
|
13
13
|
[key: string]: {
|
|
14
14
|
match?: (editor: IDomEditor, n: Node) => boolean;
|
package/dist/core/src/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import './assets/index.less';
|
|
6
|
-
import { IDomEditor } from './editor/interface';
|
|
7
|
-
import { IRegisterMenuConf } from './menus/index';
|
|
8
|
-
import { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
|
|
9
|
-
import { IRenderElemConf, RenderStyleFnType } from './render/index';
|
|
10
|
-
import { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
|
|
6
|
+
import type { IDomEditor } from './editor/interface';
|
|
7
|
+
import type { IRegisterMenuConf } from './menus/index';
|
|
8
|
+
import type { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
|
|
9
|
+
import type { IRenderElemConf, RenderStyleFnType } from './render/index';
|
|
10
|
+
import type { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
|
|
11
11
|
export * from './create/index';
|
|
12
|
-
export { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
|
|
12
|
+
export type { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
|
|
13
13
|
export * from './editor/dom-editor';
|
|
14
14
|
export * from './editor/interface';
|
|
15
15
|
export * from './render/index';
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Toolbar from './bar/Toolbar';
|
|
6
6
|
export { registerMenu } from './register';
|
|
7
|
-
export { IButtonMenu,
|
|
8
|
-
export {
|
|
7
|
+
export type { IButtonMenu, IDropPanelMenu, IModalMenu, IOption, IRegisterMenuConf, ISelectMenu, } from './interface';
|
|
8
|
+
export { genModalButtonElems, genModalInputElems, genModalTextareaElems, } from './panel-and-modal/Modal';
|
|
9
9
|
export { Toolbar };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Dom7Array, DOMElement } from '../utils/dom';
|
|
6
6
|
declare class TextArea {
|
|
7
7
|
private selectionChangeRoot;
|
|
8
|
+
private destroyed;
|
|
8
9
|
readonly id: number;
|
|
9
10
|
$box: Dom7Array;
|
|
10
11
|
$textAreaContainer: Dom7Array;
|
|
@@ -21,6 +22,7 @@ declare class TextArea {
|
|
|
21
22
|
private latestEditorSelection;
|
|
22
23
|
constructor(boxSelector: string | DOMElement);
|
|
23
24
|
private get editorInstance();
|
|
25
|
+
private getActiveEditor;
|
|
24
26
|
private bindSelectionChange;
|
|
25
27
|
private onDOMSelectionChange;
|
|
26
28
|
flushDOMSelectionChange(): void;
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import createUploader from './createUploader';
|
|
6
|
-
import { IUploadConfig } from './interface';
|
|
7
|
-
export { createUploader
|
|
6
|
+
import type { IUploadConfig } from './interface';
|
|
7
|
+
export { createUploader };
|
|
8
|
+
export type { IUploadConfig };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @description upload interface
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { UppyFile } from '@uppy/core';
|
|
6
|
-
import { IDomEditor } from '../editor/interface';
|
|
5
|
+
import type { UppyFile } from '@uppy/core';
|
|
6
|
+
import type { IDomEditor } from '../editor/interface';
|
|
7
7
|
type FilesType = {
|
|
8
8
|
[key: string]: UppyFile<{}, {}>;
|
|
9
9
|
};
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* @description Editor View class
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { IEditorConfig, IElemToHtmlConf, IModuleConf, IParseElemHtmlConf, IPreParseHtmlConf, IRegisterMenuConf, IRenderElemConf, IToolbarConfig, ParseStyleHtmlFnType, RenderStyleFnType, styleToHtmlFnType } from '@wangeditor-next/core';
|
|
6
|
+
import { IDomEditor } from '@wangeditor-next/core';
|
|
7
|
+
import type { ISingleMenuConfig } from 'packages/core/src/config/interface';
|
|
7
8
|
type PluginType = <T extends IDomEditor>(editor: T) => T;
|
|
8
9
|
declare class Boot {
|
|
9
10
|
constructor();
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* @description create
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
+
import type { IEditorConfig, IToolbarConfig } from '@wangeditor-next/core';
|
|
6
|
+
import { IDomEditor, Toolbar } from '@wangeditor-next/core';
|
|
5
7
|
import { Descendant } from 'slate';
|
|
6
|
-
import { DOMElement } from './utils/dom';
|
|
7
|
-
import { IEditorConfig, IDomEditor, IToolbarConfig, Toolbar } from '@wangeditor-next/core';
|
|
8
|
+
import type { DOMElement } from './utils/dom';
|
|
8
9
|
export interface ICreateEditorOption {
|
|
9
10
|
selector: string | DOMElement;
|
|
10
11
|
config: Partial<IEditorConfig>;
|
|
@@ -10,8 +10,10 @@ import './register-builtin-modules/index';
|
|
|
10
10
|
import './init-default-config';
|
|
11
11
|
import Boot from './Boot';
|
|
12
12
|
export { Boot };
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
13
|
+
export type { IButtonMenu, IDomEditor, IDropPanelMenu, IEditorConfig, IModalMenu, IModuleConf, ISelectMenu, IToolbarConfig, IUploadConfig, } from '@wangeditor-next/core';
|
|
14
|
+
export { createUploader, DomEditor, genModalButtonElems, genModalInputElems, genModalTextareaElems, i18nAddResources, i18nChangeLanguage, i18nGetResources, t, Toolbar, } from '@wangeditor-next/core';
|
|
15
|
+
export type { Descendant as SlateDescendant, Location as SlateLocation, } from 'slate';
|
|
16
|
+
export { Editor as SlateEditor, Element as SlateElement, Node as SlateNode, Path as SlatePath, Point as SlatePoint, Range as SlateRange, Text as SlateText, Transforms as SlateTransforms, } from 'slate';
|
|
15
17
|
export { createEditor, createToolbar } from './create';
|
|
16
18
|
declare const _default: {};
|
|
17
19
|
export default _default;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* @description 注册 module
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { IModuleConf } from '@wangeditor-next/core';
|
|
5
|
+
import type { IModuleConf } from '@wangeditor-next/core';
|
|
6
6
|
declare function registerModule(module: Partial<IModuleConf>): void;
|
|
7
7
|
export default registerModule;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@wangeditor-next/editor"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/editor","snabbdom"],t):(r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorLinkCardPlugin=t(r.editor,r.snabbdom)}(this,function(r,t){"use strict";r.i18nAddResources("en",{linkCard:{toCard:"To Card"}}),r.i18nAddResources("zh-CN",{linkCard:{toCard:"转为卡片"}});var n,e,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function u(){if(e)return n;e=1;var r=function(r){return r&&r.Math===Math&&r};return n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof o&&o)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var c,a,f,s,l,v,p,d,h={};function g(){return a?c:(a=1,c=function(r){try{return!!r()}catch(r){return!0}})}function y(){if(s)return f;s=1;var r=g();return f=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(v)return l;v=1;var r=g();return l=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function b(){if(d)return p;d=1;var r=m(),t=Function.prototype.call;return p=r?t.bind(t):function(){return t.apply(t,arguments)},p}var w,A,S,E,j,O,x,C,T,I,P,R,k,N,D,U,B,M,L,W,F,K,G,V,Y,H,Z,q,z,J,Q,X,_,$,rr,tr,nr,er,or,ir,ur,cr={};function ar(){return S?A:(S=1,A=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function fr(){if(j)return E;j=1;var r=m(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return E=r?e:function(r){return function(){return n.apply(r,arguments)}},E}function sr(){if(x)return O;x=1;var r=fr(),t=r({}.toString),n=r("".slice);return O=function(r){return n(t(r),8,-1)}}function lr(){return P?I:(P=1,I=function(r){return null==r})}function vr(){if(k)return R;k=1;var r=lr(),t=TypeError;return R=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function pr(){if(D)return N;D=1;var r=function(){if(T)return C;T=1;var r=fr(),t=g(),n=sr(),e=Object,o=r("".split);return C=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}(),t=vr();return N=function(n){return r(t(n))}}function dr(){if(B)return U;B=1;var r="object"==typeof document&&document.all;return U=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function hr(){if(L)return M;L=1;var r=dr();return M=function(t){return"object"==typeof t?null!==t:r(t)}}function gr(){if(F)return W;F=1;var r=u(),t=dr();return W=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},W}function yr(){if(G)return K;G=1;var r=fr();return K=r({}.isPrototypeOf)}function mr(){if(Y)return V;Y=1;var r=u().navigator,t=r&&r.userAgent;return V=t?String(t):""}function br(){if(Z)return H;Z=1;var r,t,n=u(),e=mr(),o=n.process,i=n.Deno,c=o&&o.versions||i&&i.version,a=c&&c.v8;return a&&(t=(r=a.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),H=t}function wr(){if(z)return q;z=1;var r=br(),t=g(),n=u().String;return q=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Ar(){if(Q)return J;Q=1;var r=wr();return J=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Sr(){if(_)return X;_=1;var r=gr(),t=dr(),n=yr(),e=Ar(),o=Object;return X=e?function(r){return"symbol"==typeof r}:function(e){var i=r("Symbol");return t(i)&&n(i.prototype,o(e))}}function Er(){if(rr)return $;rr=1;var r=String;return $=function(t){try{return r(t)}catch(r){return"Object"}}}function jr(){if(nr)return tr;nr=1;var r=dr(),t=Er(),n=TypeError;return tr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Or(){if(or)return er;or=1;var r=jr(),t=lr();return er=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function xr(){if(ur)return ir;ur=1;var r=b(),t=dr(),n=hr(),e=TypeError;return ir=function(o,i){var u,c;if("string"===i&&t(u=o.toString)&&!n(c=r(u,o)))return c;if(t(u=o.valueOf)&&!n(c=r(u,o)))return c;if("string"!==i&&t(u=o.toString)&&!n(c=r(u,o)))return c;throw new e("Can't convert object to primitive value")}}var Cr,Tr,Ir,Pr,Rr,kr,Nr,Dr,Ur,Br,Mr,Lr,Wr,Fr,Kr,Gr,Vr,Yr,Hr,Zr,qr,zr,Jr,Qr,Xr={exports:{}};function _r(){return Tr?Cr:(Tr=1,Cr=!1)}function $r(){if(Pr)return Ir;Pr=1;var r=u(),t=Object.defineProperty;return Ir=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function rt(){if(Rr)return Xr.exports;Rr=1;var r=_r(),t=u(),n=$r(),e="__core-js_shared__",o=Xr.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xr.exports}function tt(){if(Nr)return kr;Nr=1;var r=rt();return kr=function(t,n){return r[t]||(r[t]=n||{})}}function nt(){if(Ur)return Dr;Ur=1;var r=vr(),t=Object;return Dr=function(n){return t(r(n))}}function et(){if(Mr)return Br;Mr=1;var r=fr(),t=nt(),n=r({}.hasOwnProperty);return Br=Object.hasOwn||function(r,e){return n(t(r),e)}}function ot(){if(Wr)return Lr;Wr=1;var r=fr(),t=0,n=Math.random(),e=r(1.1.toString);return Lr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function it(){if(Kr)return Fr;Kr=1;var r=u(),t=tt(),n=et(),e=ot(),o=wr(),i=Ar(),c=r.Symbol,a=t("wks"),f=i?c.for||c:c&&c.withoutSetter||e;return Fr=function(r){return n(a,r)||(a[r]=o&&n(c,r)?c[r]:f("Symbol."+r)),a[r]}}function ut(){if(Vr)return Gr;Vr=1;var r=b(),t=hr(),n=Sr(),e=Or(),o=xr(),i=it(),u=TypeError,c=i("toPrimitive");return Gr=function(i,a){if(!t(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=r(s,i,a),!t(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function ct(){if(Hr)return Yr;Hr=1;var r=ut(),t=Sr();return Yr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function at(){if(qr)return Zr;qr=1;var r=u(),t=hr(),n=r.document,e=t(n)&&t(n.createElement);return Zr=function(r){return e?n.createElement(r):{}}}function ft(){if(Jr)return zr;Jr=1;var r=y(),t=g(),n=at();return zr=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function st(){if(Qr)return h;Qr=1;var r=y(),t=b(),n=function(){if(w)return cr;w=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return cr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,cr}(),e=ar(),o=pr(),i=ct(),u=et(),c=ft(),a=Object.getOwnPropertyDescriptor;return h.f=r?a:function(r,f){if(r=o(r),f=i(f),c)try{return a(r,f)}catch(r){}if(u(r,f))return e(!t(n.f,r,f),r[f])},h}var lt,vt,pt,dt,ht,gt,yt,mt={};function bt(){if(vt)return lt;vt=1;var r=y(),t=g();return lt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function wt(){if(dt)return pt;dt=1;var r=hr(),t=String,n=TypeError;return pt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function At(){if(ht)return mt;ht=1;var r=y(),t=ft(),n=bt(),e=wt(),o=ct(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return mt.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var i=c(r,t);i&&i[s]&&(r[t]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(r,t,n)}:u:function(r,n,c){if(e(r),n=o(n),e(c),t)try{return u(r,n,c)}catch(r){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(r[n]=c.value),r},mt}function St(){if(yt)return gt;yt=1;var r=y(),t=At(),n=ar();return gt=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}var Et,jt,Ot,xt,Ct,Tt,It,Pt,Rt,kt,Nt,Dt,Ut,Bt,Mt,Lt={exports:{}};function Wt(){if(xt)return Ot;xt=1;var r=fr(),t=dr(),n=rt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),Ot=n.inspectSource}function Ft(){if(Pt)return It;Pt=1;var r=tt(),t=ot(),n=r("keys");return It=function(r){return n[r]||(n[r]=t(r))}}function Kt(){return kt?Rt:(kt=1,Rt={})}function Gt(){if(Dt)return Nt;Dt=1;var r,t,n,e=function(){if(Tt)return Ct;Tt=1;var r=u(),t=dr(),n=r.WeakMap;return Ct=t(n)&&/native code/.test(String(n))}(),o=u(),i=hr(),c=St(),a=et(),f=rt(),s=Ft(),l=Kt(),v="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var h=f.state||(f.state=new d);h.get=h.get,h.has=h.has,h.set=h.set,r=function(r,t){if(h.has(r))throw new p(v);return t.facade=r,h.set(r,t),t},t=function(r){return h.get(r)||{}},n=function(r){return h.has(r)}}else{var g=s("state");l[g]=!0,r=function(r,t){if(a(r,g))throw new p(v);return t.facade=r,c(r,g,t),t},t=function(r){return a(r,g)?r[g]:{}},n=function(r){return a(r,g)}}return Nt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new p("Incompatible receiver, "+r+" required");return e}}}}function Vt(){if(Ut)return Lt.exports;Ut=1;var r=fr(),t=g(),n=dr(),e=et(),o=y(),i=function(){if(jt)return Et;jt=1;var r=y(),t=et(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!r||r&&e(n,"name").configurable);return Et={EXISTS:o,PROPER:i,CONFIGURABLE:u}}().CONFIGURABLE,u=Wt(),c=Gt(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),h=o&&!t(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=Lt.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+p(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||i&&r.name!==t)&&(o?l(r,"name",{value:t,configurable:!0}):r.name=t),h&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=d(m,"string"==typeof t?t:"")),r};return Function.prototype.toString=b(function(){return n(this)&&f(this).source||u(this)},"toString"),Lt.exports}function Yt(){if(Mt)return Bt;Mt=1;var r=dr(),t=At(),n=Vt(),e=$r();return Bt=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(r(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(r){}a?o[i]=u:t.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Ht,Zt,qt,zt,Jt,Qt,Xt,_t,$t,rn,tn,nn,en,on,un,cn,an,fn={};function sn(){if(zt)return qt;zt=1;var r=function(){if(Zt)return Ht;Zt=1;var r=Math.ceil,t=Math.floor;return Ht=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return qt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function ln(){if(Qt)return Jt;Qt=1;var r=sn(),t=Math.max,n=Math.min;return Jt=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}function vn(){if(_t)return Xt;_t=1;var r=sn(),t=Math.min;return Xt=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function pn(){if(rn)return $t;rn=1;var r=vn();return $t=function(t){return r(t.length)}}function dn(){if(on)return en;on=1;var r=fr(),t=et(),n=pr(),e=function(){if(nn)return tn;nn=1;var r=pr(),t=ln(),n=pn(),e=function(e){return function(o,i,u){var c=r(o),a=n(c);if(0===a)return!e&&-1;var f,s=t(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return tn={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Kt(),i=r([].push);return en=function(r,u){var c,a=n(r),f=0,s=[];for(c in a)!t(o,c)&&t(a,c)&&i(s,c);for(;u.length>f;)t(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function hn(){return cn?un:(cn=1,un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var gn,yn,mn,bn,wn,An,Sn,En,jn,On,xn,Cn,Tn,In,Pn,Rn,kn,Nn,Dn,Un,Bn,Mn,Ln,Wn,Fn,Kn,Gn,Vn,Yn,Hn,Zn={};function qn(){if(mn)return yn;mn=1;var r=gr(),t=fr(),n=function(){if(an)return fn;an=1;var r=dn(),t=hn().concat("length","prototype");return fn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},fn}(),e=(gn||(gn=1,Zn.f=Object.getOwnPropertySymbols),Zn),o=wt(),i=t([].concat);return yn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),u=e.f;return u?i(t,u(r)):t}}function zn(){if(wn)return bn;wn=1;var r=et(),t=qn(),n=st(),e=At();return bn=function(o,i,u){for(var c=t(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];r(o,l)||u&&r(u,l)||a(o,l,f(i,l))}}}function Jn(){if(Sn)return An;Sn=1;var r=g(),t=dr(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return An=e}function Qn(){if(jn)return En;jn=1;var r=u(),t=st().f,n=St(),e=Yt(),o=$r(),i=zn(),c=Jn();return En=function(u,a){var f,s,l,v,p,d=u.target,h=u.global,g=u.stat;if(f=h?r:g?r[d]||o(d,{}):r[d]&&r[d].prototype)for(s in a){if(v=a[s],l=u.dontCallGetSet?(p=t(f,s))&&p.value:f[s],!c(h?s:d+(g?".":"#")+s,u.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(u.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,u)}}}function Xn(){if(xn)return On;xn=1;var r=sr();return On=Array.isArray||function(t){return"Array"===r(t)}}function _n(){if(Tn)return Cn;Tn=1;var r=TypeError;return Cn=function(t){if(t>9007199254740991)throw new r("Maximum allowed index exceeded");return t}}function $n(){if(Pn)return In;Pn=1;var r=y(),t=At(),n=ar();return In=function(e,o,i){r?t.f(e,o,n(0,i)):e[o]=i}}function re(){if(Dn)return Nn;Dn=1;var r={};return r[it()("toStringTag")]="z",Nn="[object z]"===String(r)}function te(){if(Bn)return Un;Bn=1;var r=re(),t=dr(),n=sr(),e=it()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Un=r?n:function(r){var u,c,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(c=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?c:i?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ne(){if(Ln)return Mn;Ln=1;var r=fr(),t=g(),n=dr(),e=te(),o=gr(),i=Wt(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=r(a.exec),s=!a.test(u),l=function(r){if(!n(r))return!1;try{return c(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(r))}catch(r){return!0}};return v.sham=!0,Mn=!c||t(function(){var r;return l(l.call)||!l(Object)||!l(function(){r=!0})||r})?v:l}function ee(){if(Fn)return Wn;Fn=1;var r=Xn(),t=ne(),n=hr(),e=it()("species"),o=Array;return Wn=function(i){var u;return r(i)&&(u=i.constructor,(t(u)&&(u===o||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function oe(){if(Gn)return Kn;Gn=1;var r=ee();return Kn=function(t,n){return new(r(t))(0===n?0:n)}}function ie(){if(Yn)return Vn;Yn=1;var r=g(),t=it(),n=br(),e=t("species");return Vn=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(Hn)return i;Hn=1;var r=Qn(),t=g(),n=Xn(),e=hr(),o=nt(),u=pn(),c=_n(),a=$n(),f=function(){if(kn)return Rn;kn=1;var r=y(),t=Xn(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return Rn=o?function(r,o){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=o}:function(r,t){return r.length=t}}(),s=oe(),l=ie(),v=it(),p=br(),d=v("isConcatSpreadable"),h=p>=51||!t(function(){var r=[];return r[d]=!1,r.concat()[0]!==r}),m=function(r){if(!e(r))return!1;var t=r[d];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(r){var t,n,e,i,l,v=o(this),p=s(v,0),d=0;for(t=-1,e=arguments.length;t<e;t++)if(m(l=-1===t?v:arguments[t]))for(i=u(l),c(d+i),n=0;n<i;n++,d++)n in l&&a(p,d,l[n]);else c(d+1),a(p,d++,l);return f(p,d),p}})}();var ue,ce,ae,fe,se,le,ve,pe={};function de(){if(ce)return ue;ce=1;var r=te(),t=String;return ue=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}!function(){if(ve)return pe;ve=1;var r=Qn(),t=function(){if(fe)return ae;fe=1;var r=fr(),t=vr(),n=de(),e=/"/g,o=r("".replace);return ae=function(r,i,u,c){var a=n(t(r)),f="<"+i;return""!==u&&(f+=" "+u+'="'+o(n(c),e,""")+'"'),f+">"+a+"</"+i+">"}}(),n=function(){if(le)return se;le=1;var r=g();return se=function(t){return r(function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3})}}();r({target:"String",proto:!0,forced:n("link")},{link:function(r){return t(this,"a","href",r)}})}();var he,ge,ye,me={type:"link-card",elemToHtml:function(r,t){var n=r,e=n.title,o=void 0===e?"":e,i=n.link,u=void 0===i?"":i,c=n.iconImgSrc,a=void 0===c?"":c;return'<div data-w-e-type="link-card" data-w-e-is-void data-title="'.concat(o,'" data-link="').concat(u,'" data-iconImgSrc="').concat(a,'">\n <div class="info-container">\n <div class="title-container"><p>').concat(o,'</p></div>\n <div class="link-container"><span>').concat(u,'</span></div>\n </div>\n <div class="icon-container">\n <img src="').concat(a,'"/>\n </div>\n </div>')}},be={};!function(){if(ye)return be;ye=1;var r=re(),t=Yt(),n=function(){if(ge)return he;ge=1;var r=re(),t=te();return he=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var we,Ae,Se,Ee,je,Oe,xe,Ce,Te,Ie,Pe,Re,ke,Ne,De,Ue,Be,Me,Le,We,Fe,Ke,Ge,Ve,Ye,He,Ze,qe,ze,Je,Qe,Xe,_e,$e,ro,to,no,eo,oo,io,uo,co,ao,fo,so,lo,vo,po,ho,go,yo,mo,bo,wo,Ao,So,Eo,jo,Oo,xo,Co={};function To(){if(Ae)return we;Ae=1;var r=u(),t=mr(),n=sr(),e=function(r){return t.slice(0,r.length)===r};return we=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}function Io(){if(Ee)return Se;Ee=1;var r=To();return Se="NODE"===r}function Po(){if(Oe)return je;Oe=1;var r=u();return je=r}function Ro(){if(Ie)return Te;Ie=1;var r=hr();return Te=function(t){return r(t)||null===t}}function ko(){if(Re)return Pe;Re=1;var r=Ro(),t=String,n=TypeError;return Pe=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function No(){if(Ne)return ke;Ne=1;var r=function(){if(Ce)return xe;Ce=1;var r=fr(),t=jr();return xe=function(n,e,o){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(r){}}}(),t=hr(),n=vr(),e=ko();return ke=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=r(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(i?o(r,u):r.__proto__=u,r):r}}():void 0)}function Do(){if(Ue)return De;Ue=1;var r=At().f,t=et(),n=it()("toStringTag");return De=function(e,o,i){e&&!i&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:o})}}function Uo(){if(Me)return Be;Me=1;var r=Vt(),t=At();return Be=function(n,e,o){return o.get&&r(o.get,e,{getter:!0}),o.set&&r(o.set,e,{setter:!0}),t.f(n,e,o)}}function Bo(){if(We)return Le;We=1;var r=gr(),t=Uo(),n=it(),e=y(),o=n("species");return Le=function(n){var i=r(n);e&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function Mo(){if(Ke)return Fe;Ke=1;var r=yr(),t=TypeError;return Fe=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Lo(){if(Ve)return Ge;Ve=1;var r=ne(),t=Er(),n=TypeError;return Ge=function(e){if(r(e))return e;throw new n(t(e)+" is not a constructor")}}function Wo(){if(He)return Ye;He=1;var r=wt(),t=Lo(),n=lr(),e=it()("species");return Ye=function(o,i){var u,c=r(o).constructor;return void 0===c||n(u=r(c)[e])?i:t(u)}}function Fo(){if(qe)return Ze;qe=1;var r=m(),t=Function.prototype,n=t.apply,e=t.call;return Ze="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),Ze}function Ko(){if(Je)return ze;Je=1;var r=sr(),t=fr();return ze=function(n){if("Function"===r(n))return t(n)}}function Go(){if(Xe)return Qe;Xe=1;var r=Ko(),t=jr(),n=m(),e=r(r.bind);return Qe=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},Qe}function Vo(){if($e)return _e;$e=1;var r=gr();return _e=r("document","documentElement")}function Yo(){if(to)return ro;to=1;var r=fr();return ro=r([].slice)}function Ho(){if(eo)return no;eo=1;var r=TypeError;return no=function(t,n){if(t<n)throw new r("Not enough arguments");return t}}function Zo(){if(io)return oo;io=1;var r=mr();return oo=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)}function qo(){if(co)return uo;co=1;var r,t,n,e,o=u(),i=Fo(),c=Go(),a=dr(),f=et(),s=g(),l=Vo(),v=Yo(),p=at(),d=Ho(),h=Zo(),y=Io(),m=o.setImmediate,b=o.clearImmediate,w=o.process,A=o.Dispatch,S=o.Function,E=o.MessageChannel,j=o.String,O=0,x={},C="onreadystatechange";s(function(){r=o.location});var T=function(r){if(f(x,r)){var t=x[r];delete x[r],t()}},I=function(r){return function(){T(r)}},P=function(r){T(r.data)},R=function(t){o.postMessage(j(t),r.protocol+"//"+r.host)};return m&&b||(m=function(r){d(arguments.length,1);var n=a(r)?r:S(r),e=v(arguments,1);return x[++O]=function(){i(n,void 0,e)},t(O),O},b=function(r){delete x[r]},y?t=function(r){w.nextTick(I(r))}:A&&A.now?t=function(r){A.now(I(r))}:E&&!h?(e=(n=new E).port2,n.port1.onmessage=P,t=c(e.postMessage,e)):o.addEventListener&&a(o.postMessage)&&!o.importScripts&&r&&"file:"!==r.protocol&&!s(R)?(t=R,o.addEventListener("message",P,!1)):t=C in p("script")?function(r){l.appendChild(p("script"))[C]=function(){l.removeChild(this),T(r)}}:function(r){setTimeout(I(r),0)}),uo={set:m,clear:b}}function zo(){if(fo)return ao;fo=1;var r=u(),t=y(),n=Object.getOwnPropertyDescriptor;return ao=function(e){if(!t)return r[e];var o=n(r,e);return o&&o.value}}function Jo(){if(lo)return so;lo=1;var r=function(){this.head=null,this.tail=null};return r.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r)return null===(this.head=r.next)&&(this.tail=null),r.item}},so=r}function Qo(){if(mo)return yo;mo=1;var r,t,n,e,o,i=u(),c=zo(),a=Go(),f=qo().set,s=Jo(),l=Zo(),v=function(){if(po)return vo;po=1;var r=mr();return vo=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble}(),p=function(){if(go)return ho;go=1;var r=mr();return ho=/web0s(?!.*chrome)/i.test(r)}(),d=Io(),h=i.MutationObserver||i.WebKitMutationObserver,g=i.document,y=i.process,m=i.Promise,b=c("queueMicrotask");if(!b){var w=new s,A=function(){var t,n;for(d&&(t=y.domain)&&t.exit();n=w.get();)try{n()}catch(t){throw w.head&&r(),t}t&&t.enter()};l||d||p||!h||!g?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,o=a(e.then,e),r=function(){o(A)}):d?r=function(){y.nextTick(A)}:(f=a(f,i),r=function(){f(A)}):(t=!0,n=g.createTextNode(""),new h(A).observe(n,{characterData:!0}),r=function(){n.data=t=!t}),b=function(t){w.head||r(),w.add(t)}}return yo=b}function Xo(){return wo||(wo=1,bo=function(r,t){try{1===arguments.length?console.error(r):console.error(r,t)}catch(r){}}),bo}function _o(){return So?Ao:(So=1,Ao=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}})}function $o(){if(jo)return Eo;jo=1;var r=u();return Eo=r.Promise}function ri(){if(xo)return Oo;xo=1;var r=u(),t=$o(),n=dr(),e=Jn(),o=Wt(),i=it(),c=To(),a=_r(),f=br(),s=t&&t.prototype,l=i("species"),v=!1,p=n(r.PromiseRejectionEvent),d=e("Promise",function(){var r=o(t),n=r!==String(t);if(!n&&66===f)return!0;if(a&&(!s.catch||!s.finally))return!0;if(!f||f<51||!/native code/.test(r)){var e=new t(function(r){r(1)}),i=function(r){r(function(){},function(){})};if((e.constructor={})[l]=i,!(v=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==c&&"DENO"!==c||p)});return Oo={CONSTRUCTOR:d,REJECTION_EVENT:p,SUBCLASSING:v}}var ti,ni,ei={};function oi(){if(ti)return ei;ti=1;var r=jr(),t=TypeError,n=function(n){var e,o;this.promise=new n(function(r,n){if(void 0!==e||void 0!==o)throw new t("Bad Promise constructor");e=r,o=n}),this.resolve=r(e),this.reject=r(o)};return ei.f=function(r){return new n(r)},ei}var ii,ui,ci,ai,fi,si,li,vi,pi,di,hi,gi,yi,mi,bi,wi,Ai,Si={};function Ei(){return ui?ii:(ui=1,ii={})}function ji(){if(ai)return ci;ai=1;var r=it(),t=Ei(),n=r("iterator"),e=Array.prototype;return ci=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Oi(){if(si)return fi;si=1;var r=te(),t=Or(),n=lr(),e=Ei(),o=it()("iterator");return fi=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||e[r(i)]}}function xi(){if(vi)return li;vi=1;var r=b(),t=jr(),n=wt(),e=Er(),o=Oi(),i=TypeError;return li=function(u,c){var a=arguments.length<2?o(u):c;if(t(a))return n(r(a,u));throw new i(e(u)+" is not iterable")},li}function Ci(){if(di)return pi;di=1;var r=b(),t=wt(),n=Or();return pi=function(e,o,i){var u,c;t(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=r(u,e)}catch(r){c=!0,u=r}if("throw"===o)throw i;if(c)throw u;return t(u),i}}function Ti(){if(gi)return hi;gi=1;var r=Go(),t=b(),n=wt(),e=Er(),o=ji(),i=pn(),u=yr(),c=xi(),a=Oi(),f=Ci(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return hi=function(p,d,h){var g,y,m,b,w,A,S,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),O=!(!h||!h.IS_RECORD),x=!(!h||!h.IS_ITERATOR),C=!(!h||!h.INTERRUPTED),T=r(d,E),I=function(r){var t=g;return g=void 0,t&&f(t,"normal"),new l(!0,r)},P=function(r){return j?(n(r),C?T(r[0],r[1],I):T(r[0],r[1])):C?T(r,I):T(r)};if(O)g=p.iterator;else if(x)g=p;else{if(!(y=a(p)))throw new s(e(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((w=P(p[m]))&&u(v,w))return w;return new l(!1)}g=c(p,y)}for(A=O?p.next:g.next;!(S=t(A,g)).done;){var R=S.value;try{w=P(R)}catch(r){if(!g)throw r;f(g,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Ii(){if(mi)return yi;mi=1;var r=it()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return yi=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var o=!1;try{var i={};i[r]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(r){}return o}}function Pi(){if(wi)return bi;wi=1;var r=$o(),t=Ii(),n=ri().CONSTRUCTOR;return bi=n||!t(function(t){r.all(t).then(void 0,function(){})})}var Ri,ki={};var Ni,Di={};var Ui,Bi={};var Mi,Li,Wi,Fi,Ki={};function Gi(){if(Li)return Mi;Li=1;var r=wt(),t=hr(),n=oi();return Mi=function(e,o){if(r(e),t(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Vi(r,t,n,e){return new(n||(n=Promise))(function(o,i){function u(r){try{a(e.next(r))}catch(r){i(r)}}function c(r){try{a(e.throw(r))}catch(r){i(r)}}function a(r){var t;r.done?o(r.value):(t=r.value,t instanceof n?t:new n(function(r){r(t)})).then(u,c)}a((e=e.apply(r,t||[])).next())})}function Yi(r,t){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(r,i)}catch(r){c=[6,r],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}Fi||(Fi=1,function(){if(ni)return Co;ni=1;var r,t,n,e,o=Qn(),i=_r(),c=Io(),a=u(),f=Po(),s=b(),l=Yt(),v=No(),p=Do(),d=Bo(),h=jr(),g=dr(),y=hr(),m=Mo(),w=Wo(),A=qo().set,S=Qo(),E=Xo(),j=_o(),O=Jo(),x=Gt(),C=$o(),T=ri(),I=oi(),P="Promise",R=T.CONSTRUCTOR,k=T.REJECTION_EVENT,N=T.SUBCLASSING,D=x.getterFor(P),U=x.set,B=C&&C.prototype,M=C,L=B,W=a.TypeError,F=a.document,K=a.process,G=I.f,V=G,Y=!!(F&&F.createEvent&&a.dispatchEvent),H="unhandledrejection",Z=function(r){var t;return!(!y(r)||!g(t=r.then))&&t},q=function(r,t){var n,e,o,i=t.value,u=1===t.state,c=u?r.ok:r.fail,a=r.resolve,f=r.reject,l=r.domain;try{c?(u||(2===t.rejection&&_(t),t.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===r.promise?f(new W("Promise-chain cycle")):(e=Z(n))?s(e,n,a,f):a(n)):f(i)}catch(r){l&&!o&&l.exit(),f(r)}},z=function(r,t){r.notified||(r.notified=!0,S(function(){for(var n,e=r.reactions;n=e.get();)q(n,r);r.notified=!1,t&&!r.rejection&&Q(r)}))},J=function(r,t,n){var e,o;Y?((e=F.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),a.dispatchEvent(e)):e={promise:t,reason:n},!k&&(o=a["on"+r])?o(e):r===H&&E("Unhandled promise rejection",n)},Q=function(r){s(A,a,function(){var t,n=r.facade,e=r.value;if(X(r)&&(t=j(function(){c?K.emit("unhandledRejection",e,n):J(H,n,e)}),r.rejection=c||X(r)?2:1,t.error))throw t.value})},X=function(r){return 1!==r.rejection&&!r.parent},_=function(r){s(A,a,function(){var t=r.facade;c?K.emit("rejectionHandled",t):J("rejectionhandled",t,r.value)})},$=function(r,t,n){return function(e){r(t,e,n)}},rr=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,z(r,!0))},tr=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new W("Promise can't be resolved itself");var e=Z(t);e?S(function(){var n={done:!1};try{s(e,t,$(tr,n,r),$(rr,n,r))}catch(t){rr(n,t,r)}}):(r.value=t,r.state=1,z(r,!1))}catch(t){rr({done:!1},t,r)}}};if(R&&(L=(M=function(t){m(this,L),h(t),s(r,this);var n=D(this);try{t($(tr,n),$(rr,n))}catch(r){rr(n,r)}}).prototype,(r=function(r){U(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(r,t){var n=D(this),e=G(w(this,M));return n.parent=!0,e.ok=!g(r)||r,e.fail=g(t)&&t,e.domain=c?K.domain:void 0,0===n.state?n.reactions.add(e):S(function(){q(e,n)}),e.promise}),t=function(){var t=new r,n=D(t);this.promise=t,this.resolve=$(tr,n),this.reject=$(rr,n)},I.f=G=function(r){return r===M||r===n?new t(r):V(r)},!i&&g(C)&&B!==Object.prototype)){e=B.then,N||l(B,"then",function(r,t){var n=this;return new M(function(r,t){s(e,n,r,t)}).then(r,t)},{unsafe:!0});try{delete B.constructor}catch(r){}v&&v(B,L)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:M}),n=f.Promise,p(M,P,!1,!0),d(P)}(),function(){if(Ai)return Si;Ai=1;var r=Qn(),t=b(),n=jr(),e=oi(),o=_o(),i=Ti();r({target:"Promise",stat:!0,forced:Pi()},{all:function(r){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(r,function(r){var n=c++,i=!1;s++,t(e,u,r).then(function(r){i||(i=!0,o[n]=r,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Ri)return ki;Ri=1;var r=Qn(),t=_r(),n=ri().CONSTRUCTOR,e=$o(),o=gr(),i=dr(),u=Yt(),c=e&&e.prototype;if(r({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(r){return this.then(void 0,r)}}),!t&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Ni)return Di;Ni=1;var r=Qn(),t=b(),n=jr(),e=oi(),o=_o(),i=Ti();r({target:"Promise",stat:!0,forced:Pi()},{race:function(r){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(r,function(r){t(e,u,r).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Ui)return Bi;Ui=1;var r=Qn(),t=oi();r({target:"Promise",stat:!0,forced:ri().CONSTRUCTOR},{reject:function(r){var n=t.f(this);return(0,n.reject)(r),n.promise}})}(),function(){if(Wi)return Ki;Wi=1;var r=Qn(),t=gr(),n=_r(),e=$o(),o=ri().CONSTRUCTOR,i=Gi(),u=t("Promise"),c=n&&!o;r({target:"Promise",stat:!0,forced:n||o},{resolve:function(r){return i(c&&this===u?e:this,r)}})}()),"function"==typeof SuppressedError&&SuppressedError;var Hi,Zi,qi,zi,Ji={};function Qi(){if(Zi)return Hi;Zi=1;var r=wt();return Hi=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}var Xi,_i,$i,ru,tu,nu,eu,ou,iu,uu,cu,au,fu={};function su(){if(_i)return Xi;_i=1;var r=dn(),t=hn();return Xi=Object.keys||function(n){return r(n,t)}}function lu(){if(tu)return ru;tu=1;var r,t=wt(),n=function(){if($i)return fu;$i=1;var r=y(),t=bt(),n=At(),e=wt(),o=pr(),i=su();return fu.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,c=o(t),a=i(t),f=a.length,s=0;f>s;)n.f(r,u=a[s++],c[u]);return r},fu}(),e=hn(),o=Kt(),i=Vo(),u=at(),c=Ft(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(r){return"<"+f+">"+r+"</"+f+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,o;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,ru=Object.create||function(r,e){var o;return null!==r?(l[a]=t(r),o=new l,l[a]=null,o[s]=r):o=d(),void 0===e?o:n.f(o,e)}}function vu(){if(cu)return uu;cu=1;var r,t,n=b(),e=fr(),o=de(),i=Qi(),c=function(){if(zi)return qi;zi=1;var r=g(),t=u().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),o=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return qi={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),a=tt(),f=lu(),s=Gt().get,l=function(){if(eu)return nu;eu=1;var r=g(),t=u().RegExp;return nu=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),v=function(){if(iu)return ou;iu=1;var r=g(),t=u().RegExp;return ou=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),p=a("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,h=d,y=e("".charAt),m=e("".indexOf),w=e("".replace),A=e("".slice),S=(t=/b*/g,n(d,r=/a/,"a"),n(d,t,"a"),0!==r.lastIndex||0!==t.lastIndex),E=c.BROKEN_CARET,j=void 0!==/()??/.exec("")[1],O=function(r,t){for(var n=r.groups=f(null),e=0;e<t.length;e++){var o=t[e];n[o[0]]=r[o[1]]}};return(S||j||E||l||v)&&(h=function(r){var t,e,u,c=this,a=s(c),f=o(r),l=a.raw;if(l)return l.lastIndex=c.lastIndex,t=n(h,l,f),c.lastIndex=l.lastIndex,t&&a.groups&&O(t,a.groups),t;var v=a.groups,g=E&&c.sticky,b=n(i,c),x=c.source,C=0,T=f;if(g){b=w(b,"y",""),-1===m(b,"g")&&(b+="g"),T=A(f,c.lastIndex);var I=c.lastIndex>0&&y(f,c.lastIndex-1);c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==I&&"\r"!==I&&"\u2028"!==I&&"\u2029"!==I)&&(x="(?: (?:"+x+"))",T=" "+T,C++),e=new RegExp("^(?:"+x+")",b)}j&&(e=new RegExp("^"+x+"$(?!\\s)",b)),S&&(u=c.lastIndex);var P=n(d,g?e:c,T);return g?P?(P.input=f,P[0]=A(P[0],C),P.index=c.lastIndex,c.lastIndex+=P[0].length):c.lastIndex=0:S&&P&&(c.lastIndex=c.global?P.index+P[0].length:u),j&&P&&P.length>1&&n(p,P[0],e,function(){for(var r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(P[r]=void 0)}),P&&v&&O(P,v),P}),uu=h}!function(){if(au)return Ji;au=1;var r=Qn(),t=vu();r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})}();var pu=function(){function t(){this.title=r.t("linkCard.toCard"),this.iconSvg="",this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var n=r.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(r){return""},t.prototype.isActive=function(r){return!1},t.prototype.isDisabled=function(r){return null==r.selection||null==this.getSelectedLinkElem(r)},t.prototype.exec=function(t,n){return Vi(this,void 0,void 0,function(){var n,e,o,i,u,c,a,f,s,l;return Yi(this,function(v){switch(v.label){case 0:if(this.isDisabled(t))return[2];if(null==(n=this.getSelectedLinkElem(t)))return[2];if("function"!=typeof(e=t.getMenuConfig("convertToLinkCard").getLinkCardInfo))return[2];o=n.url,i=r.SlateNode.string(n),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,e(i,o)];case 2:return u=v.sent(),c=u.title,a=u.iconImgSrc,f=r.DomEditor.findPath(t,n),r.SlateTransforms.removeNodes(t,{at:f}),r.SlateTransforms.splitNodes(t,{always:!0}),s={type:"link-card",link:o,title:c,iconImgSrc:a,children:[{text:""}]},r.SlateTransforms.insertNodes(t,s),[3,4];case 3:return l=v.sent(),console.error("Convert to link-cart error",l),[3,4];case 4:return[2]}})})},t}(),du={key:"convertToLinkCard",factory:function(){return new pu},config:{getLinkCardInfo:function(r,t){return Vi(this,void 0,void 0,function(){return Yi(this,function(t){return[2,new Promise(function(t){setTimeout(function(){t({title:r,iconImgSrc:""})},100)})]})})}}};var hu,gu,yu,mu,bu,wu,Au,Su={selector:'div[data-w-e-type="link-card"]',parseElemHtml:function(r,t,n){return{type:"link-card",link:r.getAttribute("data-link")||"",title:r.getAttribute("data-title")||"",iconImgSrc:r.getAttribute("data-iconImgSrc")||"",children:[{text:""}]}}},Eu={};function ju(){if(mu)return yu;mu=1;var r=function(){if(gu)return hu;gu=1;var r=hr(),t=sr(),n=it()("match");return hu=function(e){var o;return r(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===t(e))}}(),t=TypeError;return yu=function(n){if(r(n))throw new t("The method doesn't accept regular expressions");return n}}!function(){if(Au)return Eu;Au=1;var r,t=Qn(),n=Ko(),e=st().f,o=vn(),i=de(),u=ju(),c=vr(),a=function(){if(wu)return bu;wu=1;var r=it()("match");return bu=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(r){}}return!1}}(),f=_r(),s=n("".slice),l=Math.min,v=a("startsWith");t({target:"String",proto:!0,forced:!!(f||v||(r=e(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(r){var t=i(c(this));u(r);var n=i(r),e=o(l(arguments.length>1?arguments[1]:void 0,t.length));return s(t,e,e+n.length)===n}})}();var Ou={editorPlugin:function(t){var n=t.isVoid,e=t.normalizeNode,o=t;return o.isVoid=function(t){return"link-card"===r.DomEditor.getNodeType(t)||n(t)},o.normalizeNode=function(t){var n=function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(t,2),i=n[0],u=n[1];if("link-card"!==r.DomEditor.getNodeType(i))return e([i,u]);var c=(o.children||[])[u[0]+1]||{},a=r.DomEditor.getNodeType(c);if("paragraph"!==a&&"blockquote"!==a&&!a.startsWith("header")){var f=[u[0]+1];r.SlateTransforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{at:f})}},o},renderElems:[{type:"link-card",renderElem:function(n,e,o){var i=r.DomEditor.isNodeSelected(o,n),u=n,c=u.title,a=u.link,f=u.iconImgSrc,s=t.h("div",{props:{className:"w-e-textarea-link-card-text-container"}},[t.h("p",{props:{className:"w-e-link-card-title"}},c),t.h("span",{props:{className:"w-e-link-card-url",title:a}},a)]),l=t.h("div",{props:{className:"w-e-textarea-link-card-icon-container"}},[t.h("img",{props:{src:f||"data:image/png;base64,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"}})]);return t.h("div",{props:{contentEditable:!1,className:"w-e-textarea-link-card-container"},dataset:{selected:i?"true":"",href:a},on:{mousedown:function(r){return r.preventDefault()},click:function(r){i||window.open(a,"_blank","noopener,noreferrer")}}},[s,l])}}],elemsToHtml:[me],parseElemsHtml:[Su],menus:[du]};return Ou});
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@wangeditor-next/editor"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/editor","snabbdom"],r):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorLinkCardPlugin=r(t.editor,t.snabbdom)}(this,function(t,r){"use strict";t.i18nAddResources("en",{linkCard:{toCard:"To Card"}}),t.i18nAddResources("zh-CN",{linkCard:{toCard:"转为卡片"}});var n,e,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function u(){if(e)return n;e=1;var t=function(t){return t&&t.Math===Math&&t};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof o&&o)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var c,a,f,s,l,v,p,d,h={};function g(){return a?c:(a=1,c=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(s)return f;s=1;var t=g();return f=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(v)return l;v=1;var t=g();return l=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function b(){if(d)return p;d=1;var t=m(),r=Function.prototype.call;return p=t?r.bind(r):function(){return r.apply(r,arguments)},p}var w,S,A,E,j,O,x,C,T,I,P,R,k,N,U,D,B,M,L,W,F,K,G,V,Y,H,Z,q,z,J,Q,X,_,$,tt,rt,nt,et,ot,it,ut,ct={};function at(){return A?S:(A=1,S=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function ft(){if(j)return E;j=1;var t=m(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return E=t?e:function(t){return function(){return n.apply(t,arguments)}},E}function st(){if(x)return O;x=1;var t=ft(),r=t({}.toString),n=t("".slice);return O=function(t){return n(r(t),8,-1)}}function lt(){return P?I:(P=1,I=function(t){return null==t})}function vt(){if(k)return R;k=1;var t=lt(),r=TypeError;return R=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function pt(){if(U)return N;U=1;var t=function(){if(T)return C;T=1;var t=ft(),r=g(),n=st(),e=Object,o=t("".split);return C=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}(),r=vt();return N=function(n){return t(r(n))}}function dt(){if(B)return D;B=1;var t="object"==typeof document&&document.all;return D=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function ht(){if(L)return M;L=1;var t=dt();return M=function(r){return"object"==typeof r?null!==r:t(r)}}function gt(){if(F)return W;F=1;var t=u(),r=dt();return W=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},W}function yt(){if(G)return K;G=1;var t=ft();return K=t({}.isPrototypeOf)}function mt(){if(Y)return V;Y=1;var t=u().navigator,r=t&&t.userAgent;return V=r?String(r):""}function bt(){if(Z)return H;Z=1;var t,r,n=u(),e=mt(),o=n.process,i=n.Deno,c=o&&o.versions||i&&i.version,a=c&&c.v8;return a&&(r=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),H=r}function wt(){if(z)return q;z=1;var t=bt(),r=g(),n=u().String;return q=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function St(){if(Q)return J;Q=1;var t=wt();return J=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function At(){if(_)return X;_=1;var t=gt(),r=dt(),n=yt(),e=St(),o=Object;return X=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Et(){if(tt)return $;tt=1;var t=String;return $=function(r){try{return t(r)}catch(t){return"Object"}}}function jt(){if(nt)return rt;nt=1;var t=dt(),r=Et(),n=TypeError;return rt=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function Ot(){if(ot)return et;ot=1;var t=jt(),r=lt();return et=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function xt(){if(ut)return it;ut=1;var t=b(),r=dt(),n=ht(),e=TypeError;return it=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}var Ct,Tt,It,Pt,Rt,kt,Nt,Ut,Dt,Bt,Mt,Lt,Wt,Ft,Kt,Gt,Vt,Yt,Ht,Zt,qt,zt,Jt,Qt,Xt={exports:{}};function _t(){return Tt?Ct:(Tt=1,Ct=!1)}function $t(){if(Pt)return It;Pt=1;var t=u(),r=Object.defineProperty;return It=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function tr(){if(Rt)return Xt.exports;Rt=1;var t=_t(),r=u(),n=$t(),e="__core-js_shared__",o=Xt.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xt.exports}function rr(){if(Nt)return kt;Nt=1;var t=tr();return kt=function(r,n){return t[r]||(t[r]=n||{})}}function nr(){if(Dt)return Ut;Dt=1;var t=vt(),r=Object;return Ut=function(n){return r(t(n))}}function er(){if(Mt)return Bt;Mt=1;var t=ft(),r=nr(),n=t({}.hasOwnProperty);return Bt=Object.hasOwn||function(t,e){return n(r(t),e)}}function or(){if(Wt)return Lt;Wt=1;var t=ft(),r=0,n=Math.random(),e=t(1.1.toString);return Lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function ir(){if(Kt)return Ft;Kt=1;var t=u(),r=rr(),n=er(),e=or(),o=wt(),i=St(),c=t.Symbol,a=r("wks"),f=i?c.for||c:c&&c.withoutSetter||e;return Ft=function(t){return n(a,t)||(a[t]=o&&n(c,t)?c[t]:f("Symbol."+t)),a[t]}}function ur(){if(Vt)return Gt;Vt=1;var t=b(),r=ht(),n=At(),e=Ot(),o=xt(),i=ir(),u=TypeError,c=i("toPrimitive");return Gt=function(i,a){if(!r(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function cr(){if(Ht)return Yt;Ht=1;var t=ur(),r=At();return Yt=function(n){var e=t(n,"string");return r(e)?e:e+""}}function ar(){if(qt)return Zt;qt=1;var t=u(),r=ht(),n=t.document,e=r(n)&&r(n.createElement);return Zt=function(t){return e?n.createElement(t):{}}}function fr(){if(Jt)return zt;Jt=1;var t=y(),r=g(),n=ar();return zt=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function sr(){if(Qt)return h;Qt=1;var t=y(),r=b(),n=function(){if(w)return ct;w=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return ct.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,ct}(),e=at(),o=pt(),i=cr(),u=er(),c=fr(),a=Object.getOwnPropertyDescriptor;return h.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},h}var lr,vr,pr,dr,hr,gr,yr,mr={};function br(){if(vr)return lr;vr=1;var t=y(),r=g();return lr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function wr(){if(dr)return pr;dr=1;var t=ht(),r=String,n=TypeError;return pr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Sr(){if(hr)return mr;hr=1;var t=y(),r=fr(),n=br(),e=wr(),o=cr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return mr.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},mr}function Ar(){if(yr)return gr;yr=1;var t=y(),r=Sr(),n=at();return gr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Er,jr,Or,xr,Cr,Tr,Ir,Pr,Rr,kr,Nr,Ur,Dr,Br,Mr,Lr={exports:{}};function Wr(){if(xr)return Or;xr=1;var t=ft(),r=dt(),n=tr(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Or=n.inspectSource}function Fr(){if(Pr)return Ir;Pr=1;var t=rr(),r=or(),n=t("keys");return Ir=function(t){return n[t]||(n[t]=r(t))}}function Kr(){return kr?Rr:(kr=1,Rr={})}function Gr(){if(Ur)return Nr;Ur=1;var t,r,n,e=function(){if(Tr)return Cr;Tr=1;var t=u(),r=dt(),n=t.WeakMap;return Cr=r(n)&&/native code/.test(String(n))}(),o=u(),i=ht(),c=Ar(),a=er(),f=tr(),s=Fr(),l=Kr(),v="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var h=f.state||(f.state=new d);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new p(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var g=s("state");l[g]=!0,t=function(t,r){if(a(t,g))throw new p(v);return r.facade=t,c(t,g,r),r},r=function(t){return a(t,g)?t[g]:{}},n=function(t){return a(t,g)}}return Nr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Vr(){if(Dr)return Lr.exports;Dr=1;var t=ft(),r=g(),n=dt(),e=er(),o=y(),i=function(){if(jr)return Er;jr=1;var t=y(),r=er(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return Er={EXISTS:o,PROPER:i,CONFIGURABLE:u}}().CONFIGURABLE,u=Wr(),c=Gr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=Lr.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+p(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=d(m,"string"==typeof r?r:"")),t};return Function.prototype.toString=b(function(){return n(this)&&f(this).source||u(this)},"toString"),Lr.exports}function Yr(){if(Mr)return Br;Mr=1;var t=dt(),r=Sr(),n=Vr(),e=$t();return Br=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Hr,Zr,qr,zr,Jr,Qr,Xr,_r,$r,tn,rn,nn,en,on,un,cn,an,fn={};function sn(){if(zr)return qr;zr=1;var t=function(){if(Zr)return Hr;Zr=1;var t=Math.ceil,r=Math.floor;return Hr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return qr=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function ln(){if(Qr)return Jr;Qr=1;var t=sn(),r=Math.max,n=Math.min;return Jr=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function vn(){if(_r)return Xr;_r=1;var t=sn(),r=Math.min;return Xr=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function pn(){if(tn)return $r;tn=1;var t=vn();return $r=function(r){return t(r.length)}}function dn(){if(on)return en;on=1;var t=ft(),r=er(),n=pt(),e=function(){if(nn)return rn;nn=1;var t=pt(),r=ln(),n=pn(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return rn={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Kr(),i=t([].push);return en=function(t,u){var c,a=n(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function hn(){return cn?un:(cn=1,un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var gn,yn,mn,bn,wn,Sn,An,En,jn,On,xn,Cn,Tn,In,Pn,Rn,kn,Nn,Un,Dn,Bn,Mn,Ln,Wn,Fn,Kn,Gn,Vn,Yn={};function Hn(){if(mn)return yn;mn=1;var t=gt(),r=ft(),n=function(){if(an)return fn;an=1;var t=dn(),r=hn().concat("length","prototype");return fn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},fn}(),e=(gn||(gn=1,Yn.f=Object.getOwnPropertySymbols),Yn),o=wr(),i=r([].concat);return yn=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function Zn(){if(wn)return bn;wn=1;var t=er(),r=Hn(),n=sr(),e=Sr();return bn=function(o,i,u){for(var c=r(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function qn(){if(An)return Sn;An=1;var t=g(),r=dt(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Sn=e}function zn(){if(jn)return En;jn=1;var t=u(),r=sr().f,n=Ar(),e=Yr(),o=$t(),i=Zn(),c=qn();return En=function(u,a){var f,s,l,v,p,d=u.target,h=u.global,g=u.stat;if(f=h?t:g?t[d]||o(d,{}):t[d]&&t[d].prototype)for(s in a){if(v=a[s],l=u.dontCallGetSet?(p=r(f,s))&&p.value:f[s],!c(h?s:d+(g?".":"#")+s,u.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(u.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,u)}}}function Jn(){if(xn)return On;xn=1;var t=st();return On=Array.isArray||function(r){return"Array"===t(r)}}function Qn(){if(Tn)return Cn;Tn=1;var t=TypeError;return Cn=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function Xn(){if(Pn)return In;Pn=1;var t=y(),r=Sr(),n=at();return In=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function _n(){if(kn)return Rn;kn=1;var t={};return t[ir()("toStringTag")]="z",Rn="[object z]"===String(t)}function $n(){if(Un)return Nn;Un=1;var t=_n(),r=dt(),n=st(),e=ir()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Nn=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function te(){if(Bn)return Dn;Bn=1;var t=ft(),r=g(),n=dt(),e=$n(),o=gt(),i=Wr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,Dn=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function re(){if(Ln)return Mn;Ln=1;var t=Jn(),r=te(),n=ht(),e=ir()("species"),o=Array;return Mn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function ne(){if(Fn)return Wn;Fn=1;var t=re();return Wn=function(r,n){return new(t(r))(0===n?0:n)}}function ee(){if(Gn)return Kn;Gn=1;var t=g(),r=ir(),n=bt(),e=r("species");return Kn=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(Vn)return i;Vn=1;var t=zn(),r=g(),n=Jn(),e=ht(),o=nr(),u=pn(),c=Qn(),a=Xn(),f=ne(),s=ee(),l=ir(),v=bt(),p=l("isConcatSpreadable"),d=v>=51||!r(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[p];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!s("concat")},{concat:function(t){var r,n,e,i,s,l=o(this),v=f(l,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(s=-1===r?l:arguments[r]))for(i=u(s),c(p+i),n=0;n<i;n++,p++)n in s&&a(v,p,s[n]);else c(p+1),a(v,p++,s);return v.length=p,v}})}();var oe,ie,ue,ce,ae,fe,se,le={};function ve(){if(ie)return oe;ie=1;var t=$n(),r=String;return oe=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(se)return le;se=1;var t=zn(),r=function(){if(ce)return ue;ce=1;var t=ft(),r=vt(),n=ve(),e=/"/g,o=t("".replace);return ue=function(t,i,u,c){var a=n(r(t)),f="<"+i;return""!==u&&(f+=" "+u+'="'+o(n(c),e,""")+'"'),f+">"+a+"</"+i+">"}}(),n=function(){if(fe)return ae;fe=1;var t=g();return ae=function(r){return t(function(){var t=""[r]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("link")},{link:function(t){return r(this,"a","href",t)}})}();var pe,de,he,ge={type:"link-card",elemToHtml:function(t,r){var n=t,e=n.title,o=void 0===e?"":e,i=n.link,u=void 0===i?"":i,c=n.iconImgSrc,a=void 0===c?"":c;return'<div data-w-e-type="link-card" data-w-e-is-void data-title="'.concat(o,'" data-link="').concat(u,'" data-iconImgSrc="').concat(a,'">\n <div class="info-container">\n <div class="title-container"><p>').concat(o,'</p></div>\n <div class="link-container"><span>').concat(u,'</span></div>\n </div>\n <div class="icon-container">\n <img src="').concat(a,'"/>\n </div>\n </div>')}},ye={};!function(){if(he)return ye;he=1;var t=_n(),r=Yr(),n=function(){if(de)return pe;de=1;var t=_n(),r=$n();return pe=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var me,be,we,Se,Ae,Ee,je,Oe,xe,Ce,Te,Ie,Pe,Re,ke,Ne,Ue,De,Be,Me,Le,We,Fe,Ke,Ge,Ve,Ye,He,Ze,qe,ze,Je,Qe,Xe,_e,$e,to,ro,no,eo,oo,io,uo,co,ao,fo,so,lo,vo,po,ho,go,yo,mo,bo,wo,So,Ao,Eo,jo,Oo={};function xo(){if(be)return me;be=1;var t=u(),r=mt(),n=st(),e=function(t){return r.slice(0,t.length)===t};return me=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Co(){if(Se)return we;Se=1;var t=xo();return we="NODE"===t}function To(){if(Ee)return Ae;Ee=1;var t=u();return Ae=t}function Io(){if(Ce)return xe;Ce=1;var t=ht();return xe=function(r){return t(r)||null===r}}function Po(){if(Ie)return Te;Ie=1;var t=Io(),r=String,n=TypeError;return Te=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Ro(){if(Re)return Pe;Re=1;var t=function(){if(Oe)return je;Oe=1;var t=ft(),r=jt();return je=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=ht(),n=vt(),e=Po();return Pe=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return n(t),e(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function ko(){if(Ne)return ke;Ne=1;var t=Sr().f,r=er(),n=ir()("toStringTag");return ke=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function No(){if(De)return Ue;De=1;var t=Vr(),r=Sr();return Ue=function(n,e,o){return o.get&&t(o.get,e,{getter:!0}),o.set&&t(o.set,e,{setter:!0}),r.f(n,e,o)}}function Uo(){if(Me)return Be;Me=1;var t=gt(),r=No(),n=ir(),e=y(),o=n("species");return Be=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function Do(){if(We)return Le;We=1;var t=yt(),r=TypeError;return Le=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Bo(){if(Ke)return Fe;Ke=1;var t=te(),r=Et(),n=TypeError;return Fe=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Mo(){if(Ve)return Ge;Ve=1;var t=wr(),r=Bo(),n=lt(),e=ir()("species");return Ge=function(o,i){var u,c=t(o).constructor;return void 0===c||n(u=t(c)[e])?i:r(u)}}function Lo(){if(He)return Ye;He=1;var t=m(),r=Function.prototype,n=r.apply,e=r.call;return Ye="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),Ye}function Wo(){if(qe)return Ze;qe=1;var t=st(),r=ft();return Ze=function(n){if("Function"===t(n))return r(n)}}function Fo(){if(Je)return ze;Je=1;var t=Wo(),r=jt(),n=m(),e=t(t.bind);return ze=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},ze}function Ko(){if(Xe)return Qe;Xe=1;var t=gt();return Qe=t("document","documentElement")}function Go(){if($e)return _e;$e=1;var t=ft();return _e=t([].slice)}function Vo(){if(ro)return to;ro=1;var t=TypeError;return to=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}function Yo(){if(eo)return no;eo=1;var t=mt();return no=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Ho(){if(io)return oo;io=1;var t,r,n,e,o=u(),i=Lo(),c=Fo(),a=dt(),f=er(),s=g(),l=Ko(),v=Go(),p=ar(),d=Vo(),h=Yo(),y=Co(),m=o.setImmediate,b=o.clearImmediate,w=o.process,S=o.Dispatch,A=o.Function,E=o.MessageChannel,j=o.String,O=0,x={},C="onreadystatechange";s(function(){t=o.location});var T=function(t){if(f(x,t)){var r=x[t];delete x[t],r()}},I=function(t){return function(){T(t)}},P=function(t){T(t.data)},R=function(r){o.postMessage(j(r),t.protocol+"//"+t.host)};return m&&b||(m=function(t){d(arguments.length,1);var n=a(t)?t:A(t),e=v(arguments,1);return x[++O]=function(){i(n,void 0,e)},r(O),O},b=function(t){delete x[t]},y?r=function(t){w.nextTick(I(t))}:S&&S.now?r=function(t){S.now(I(t))}:E&&!h?(e=(n=new E).port2,n.port1.onmessage=P,r=c(e.postMessage,e)):o.addEventListener&&a(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!s(R)?(r=R,o.addEventListener("message",P,!1)):r=C in p("script")?function(t){l.appendChild(p("script"))[C]=function(){l.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),oo={set:m,clear:b}}function Zo(){if(co)return uo;co=1;var t=u(),r=y(),n=Object.getOwnPropertyDescriptor;return uo=function(e){if(!r)return t[e];var o=n(t,e);return o&&o.value}}function qo(){if(fo)return ao;fo=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},ao=t}function zo(){if(go)return ho;go=1;var t,r,n,e,o,i=u(),c=Zo(),a=Fo(),f=Ho().set,s=qo(),l=Yo(),v=function(){if(lo)return so;lo=1;var t=mt();return so=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),p=function(){if(po)return vo;po=1;var t=mt();return vo=/web0s(?!.*chrome)/i.test(t)}(),d=Co(),h=i.MutationObserver||i.WebKitMutationObserver,g=i.document,y=i.process,m=i.Promise,b=c("queueMicrotask");if(!b){var w=new s,S=function(){var r,n;for(d&&(r=y.domain)&&r.exit();n=w.get();)try{n()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||d||p||!h||!g?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,o=a(e.then,e),t=function(){o(S)}):d?t=function(){y.nextTick(S)}:(f=a(f,i),t=function(){f(S)}):(r=!0,n=g.createTextNode(""),new h(S).observe(n,{characterData:!0}),t=function(){n.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return ho=b}function Jo(){return mo||(mo=1,yo=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),yo}function Qo(){return wo?bo:(wo=1,bo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Xo(){if(Ao)return So;Ao=1;var t=u();return So=t.Promise}function _o(){if(jo)return Eo;jo=1;var t=u(),r=Xo(),n=dt(),e=qn(),o=Wr(),i=ir(),c=xo(),a=_t(),f=bt(),s=r&&r.prototype,l=i("species"),v=!1,p=n(t.PromiseRejectionEvent),d=e("Promise",function(){var t=o(r),n=t!==String(r);if(!n&&66===f)return!0;if(a&&(!s.catch||!s.finally))return!0;if(!f||f<51||!/native code/.test(t)){var e=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((e.constructor={})[l]=i,!(v=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==c&&"DENO"!==c||p)});return Eo={CONSTRUCTOR:d,REJECTION_EVENT:p,SUBCLASSING:v}}var $o,ti,ri={};function ni(){if($o)return ri;$o=1;var t=jt(),r=TypeError,n=function(n){var e,o;this.promise=new n(function(t,n){if(void 0!==e||void 0!==o)throw new r("Bad Promise constructor");e=t,o=n}),this.resolve=t(e),this.reject=t(o)};return ri.f=function(t){return new n(t)},ri}var ei,oi,ii,ui,ci,ai,fi,si,li,vi,pi,di,hi,gi,yi,mi,bi,wi={};function Si(){return oi?ei:(oi=1,ei={})}function Ai(){if(ui)return ii;ui=1;var t=ir(),r=Si(),n=t("iterator"),e=Array.prototype;return ii=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function Ei(){if(ai)return ci;ai=1;var t=$n(),r=Ot(),n=lt(),e=Si(),o=ir()("iterator");return ci=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function ji(){if(si)return fi;si=1;var t=b(),r=jt(),n=wr(),e=Et(),o=Ei(),i=TypeError;return fi=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return n(t(a,u));throw new i(e(u)+" is not iterable")},fi}function Oi(){if(vi)return li;vi=1;var t=b(),r=wr(),n=Ot();return li=function(e,o,i){var u,c;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function xi(){if(di)return pi;di=1;var t=Fo(),r=b(),n=wr(),e=Et(),o=Ai(),i=pn(),u=yt(),c=ji(),a=Ei(),f=Oi(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return pi=function(p,d,h){var g,y,m,b,w,S,A,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),O=!(!h||!h.IS_RECORD),x=!(!h||!h.IS_ITERATOR),C=!(!h||!h.INTERRUPTED),T=t(d,E),I=function(t){return g&&f(g,"normal"),new l(!0,t)},P=function(t){return j?(n(t),C?T(t[0],t[1],I):T(t[0],t[1])):C?T(t,I):T(t)};if(O)g=p.iterator;else if(x)g=p;else{if(!(y=a(p)))throw new s(e(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((w=P(p[m]))&&u(v,w))return w;return new l(!1)}g=c(p,y)}for(S=O?p.next:g.next;!(A=r(S,g)).done;){try{w=P(A.value)}catch(t){f(g,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Ci(){if(gi)return hi;gi=1;var t=ir()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return hi=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function Ti(){if(mi)return yi;mi=1;var t=Xo(),r=Ci(),n=_o().CONSTRUCTOR;return yi=n||!r(function(r){t.all(r).then(void 0,function(){})})}var Ii,Pi={};var Ri,ki={};var Ni,Ui={};var Di,Bi,Mi,Li,Wi={};function Fi(){if(Bi)return Di;Bi=1;var t=wr(),r=ht(),n=ni();return Di=function(e,o){if(t(e),r(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Ki(t,r,n,e){return new(n||(n=Promise))(function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(u,c)}a((e=e.apply(t,r||[])).next())})}function Gi(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}Li||(Li=1,function(){if(ti)return Oo;ti=1;var t,r,n,e,o=zn(),i=_t(),c=Co(),a=u(),f=To(),s=b(),l=Yr(),v=Ro(),p=ko(),d=Uo(),h=jt(),g=dt(),y=ht(),m=Do(),w=Mo(),S=Ho().set,A=zo(),E=Jo(),j=Qo(),O=qo(),x=Gr(),C=Xo(),T=_o(),I=ni(),P="Promise",R=T.CONSTRUCTOR,k=T.REJECTION_EVENT,N=T.SUBCLASSING,U=x.getterFor(P),D=x.set,B=C&&C.prototype,M=C,L=B,W=a.TypeError,F=a.document,K=a.process,G=I.f,V=G,Y=!!(F&&F.createEvent&&a.dispatchEvent),H="unhandledrejection",Z=function(t){var r;return!(!y(t)||!g(r=t.then))&&r},q=function(t,r){var n,e,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,f=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&_(r),r.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(new W("Promise-chain cycle")):(e=Z(n))?s(e,n,a,f):a(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},z=function(t,r){t.notified||(t.notified=!0,A(function(){for(var n,e=t.reactions;n=e.get();)q(n,t);t.notified=!1,r&&!t.rejection&&Q(t)}))},J=function(t,r,n){var e,o;Y?((e=F.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),a.dispatchEvent(e)):e={promise:r,reason:n},!k&&(o=a["on"+t])?o(e):t===H&&E("Unhandled promise rejection",n)},Q=function(t){s(S,a,function(){var r,n=t.facade,e=t.value;if(X(t)&&(r=j(function(){c?K.emit("unhandledRejection",e,n):J(H,n,e)}),t.rejection=c||X(t)?2:1,r.error))throw r.value})},X=function(t){return 1!==t.rejection&&!t.parent},_=function(t){s(S,a,function(){var r=t.facade;c?K.emit("rejectionHandled",r):J("rejectionhandled",r,t.value)})},$=function(t,r,n){return function(e){t(r,e,n)}},tt=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,z(t,!0))},rt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new W("Promise can't be resolved itself");var e=Z(r);e?A(function(){var n={done:!1};try{s(e,r,$(rt,n,t),$(tt,n,t))}catch(r){tt(n,r,t)}}):(t.value=r,t.state=1,z(t,!1))}catch(r){tt({done:!1},r,t)}}};if(R&&(L=(M=function(r){m(this,L),h(r),s(t,this);var n=U(this);try{r($(rt,n),$(tt,n))}catch(t){tt(n,t)}}).prototype,(t=function(t){D(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,r){var n=U(this),e=G(w(this,M));return n.parent=!0,e.ok=!g(t)||t,e.fail=g(r)&&r,e.domain=c?K.domain:void 0,0===n.state?n.reactions.add(e):A(function(){q(e,n)}),e.promise}),r=function(){var r=new t,n=U(r);this.promise=r,this.resolve=$(rt,n),this.reject=$(tt,n)},I.f=G=function(t){return t===M||t===n?new r(t):V(t)},!i&&g(C)&&B!==Object.prototype)){e=B.then,N||l(B,"then",function(t,r){var n=this;return new M(function(t,r){s(e,n,t,r)}).then(t,r)},{unsafe:!0});try{delete B.constructor}catch(t){}v&&v(B,L)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:M}),n=f.Promise,p(M,P,!1,!0),d(P)}(),function(){if(bi)return wi;bi=1;var t=zn(),r=b(),n=jt(),e=ni(),o=Qo(),i=xi();t({target:"Promise",stat:!0,forced:Ti()},{all:function(t){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(t,function(t){var n=c++,i=!1;s++,r(e,u,t).then(function(t){i||(i=!0,o[n]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Ii)return Pi;Ii=1;var t=zn(),r=_t(),n=_o().CONSTRUCTOR,e=Xo(),o=gt(),i=dt(),u=Yr(),c=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Ri)return ki;Ri=1;var t=zn(),r=b(),n=jt(),e=ni(),o=Qo(),i=xi();t({target:"Promise",stat:!0,forced:Ti()},{race:function(t){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(t,function(t){r(e,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Ni)return Ui;Ni=1;var t=zn(),r=ni();t({target:"Promise",stat:!0,forced:_o().CONSTRUCTOR},{reject:function(t){var n=r.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(Mi)return Wi;Mi=1;var t=zn(),r=gt(),n=_t(),e=Xo(),o=_o().CONSTRUCTOR,i=Fi(),u=r("Promise"),c=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(c&&this===u?e:this,t)}})}()),"function"==typeof SuppressedError&&SuppressedError;var Vi,Yi,Hi,Zi,qi={};function zi(){if(Yi)return Vi;Yi=1;var t=wr();return Vi=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}var Ji,Qi,Xi,_i,$i,tu,ru,nu,eu,ou,iu,uu,cu={};function au(){if(Qi)return Ji;Qi=1;var t=dn(),r=hn();return Ji=Object.keys||function(n){return t(n,r)}}function fu(){if($i)return _i;$i=1;var t,r=wr(),n=function(){if(Xi)return cu;Xi=1;var t=y(),r=br(),n=Sr(),e=wr(),o=pt(),i=au();return cu.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)n.f(t,u=a[s++],c[u]);return t},cu}(),e=hn(),o=Kr(),i=Ko(),u=ar(),c=Fr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;d="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,_i=Object.create||function(t,e){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=d(),void 0===e?o:n.f(o,e)}}function su(){if(iu)return ou;iu=1;var t,r,n=b(),e=ft(),o=ve(),i=zi(),c=function(){if(Zi)return Hi;Zi=1;var t=g(),r=u().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),o=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Hi={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),a=rr(),f=fu(),s=Gr().get,l=function(){if(ru)return tu;ru=1;var t=g(),r=u().RegExp;return tu=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(eu)return nu;eu=1;var t=g(),r=u().RegExp;return nu=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=a("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,h=d,y=e("".charAt),m=e("".indexOf),w=e("".replace),S=e("".slice),A=(r=/b*/g,n(d,t=/a/,"a"),n(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),E=c.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];return(A||j||E||l||v)&&(h=function(t){var r,e,u,c,a,l,v,g=this,b=s(g),O=o(t),x=b.raw;if(x)return x.lastIndex=g.lastIndex,r=n(h,x,O),g.lastIndex=x.lastIndex,r;var C=b.groups,T=E&&g.sticky,I=n(i,g),P=g.source,R=0,k=O;if(T&&(I=w(I,"y",""),-1===m(I,"g")&&(I+="g"),k=S(O,g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==y(O,g.lastIndex-1))&&(P="(?: "+P+")",k=" "+k,R++),e=new RegExp("^(?:"+P+")",I)),j&&(e=new RegExp("^"+P+"$(?!\\s)",I)),A&&(u=g.lastIndex),c=n(d,T?e:g,k),T?c?(c.input=S(c.input,R),c[0]=S(c[0],R),c.index=g.lastIndex,g.lastIndex+=c[0].length):g.lastIndex=0:A&&c&&(g.lastIndex=g.global?c.index+c[0].length:u),j&&c&&c.length>1&&n(p,c[0],e,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(c[a]=void 0)}),c&&C)for(c.groups=l=f(null),a=0;a<C.length;a++)l[(v=C[a])[0]]=c[v[1]];return c}),ou=h}!function(){if(uu)return qi;uu=1;var t=zn(),r=su();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var lu=function(){function r(){this.title=t.t("linkCard.toCard"),this.iconSvg="",this.tag="button"}return r.prototype.getSelectedLinkElem=function(r){var n=t.DomEditor.getSelectedNodeByType(r,"link");return null==n?null:n},r.prototype.getValue=function(t){return""},r.prototype.isActive=function(t){return!1},r.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},r.prototype.exec=function(r,n){return Ki(this,void 0,void 0,function(){var n,e,o,i,u,c,a,f,s,l;return Gi(this,function(v){switch(v.label){case 0:if(this.isDisabled(r))return[2];if(null==(n=this.getSelectedLinkElem(r)))return[2];if("function"!=typeof(e=r.getMenuConfig("convertToLinkCard").getLinkCardInfo))return[2];o=n.url,i=t.SlateNode.string(n),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,e(i,o)];case 2:return u=v.sent(),c=u.title,a=u.iconImgSrc,f=t.DomEditor.findPath(r,n),t.SlateTransforms.removeNodes(r,{at:f}),t.SlateTransforms.splitNodes(r,{always:!0}),s={type:"link-card",link:o,title:c,iconImgSrc:a,children:[{text:""}]},t.SlateTransforms.insertNodes(r,s),[3,4];case 3:return l=v.sent(),console.error("Convert to link-cart error",l),[3,4];case 4:return[2]}})})},r}(),vu={key:"convertToLinkCard",factory:function(){return new lu},config:{getLinkCardInfo:function(t,r){return Ki(this,void 0,void 0,function(){return Gi(this,function(r){return[2,new Promise(function(r){setTimeout(function(){r({title:t,iconImgSrc:""})},100)})]})})}}};var pu,du,hu,gu,yu,mu,bu,wu={selector:'div[data-w-e-type="link-card"]',parseElemHtml:function(t,r,n){return{type:"link-card",link:t.getAttribute("data-link")||"",title:t.getAttribute("data-title")||"",iconImgSrc:t.getAttribute("data-iconImgSrc")||"",children:[{text:""}]}}},Su={};function Au(){if(gu)return hu;gu=1;var t=function(){if(du)return pu;du=1;var t=ht(),r=st(),n=ir()("match");return pu=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}(),r=TypeError;return hu=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if(bu)return Su;bu=1;var t,r=zn(),n=Wo(),e=sr().f,o=vn(),i=ve(),u=Au(),c=vt(),a=function(){if(mu)return yu;mu=1;var t=ir()("match");return yu=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),f=_t(),s=n("".slice),l=Math.min,v=a("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(t=e(String.prototype,"startsWith"),!t||t.writable))&&!v},{startsWith:function(t){var r=i(c(this));u(t);var n=o(l(arguments.length>1?arguments[1]:void 0,r.length)),e=i(t);return s(r,n,n+e.length)===e}})}();var Eu={editorPlugin:function(r){var n=r.isVoid,e=r.normalizeNode,o=r;return o.isVoid=function(r){return"link-card"===t.DomEditor.getNodeType(r)||n(r)},o.normalizeNode=function(r){var n=function(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(r,2),i=n[0],u=n[1];if("link-card"!==t.DomEditor.getNodeType(i))return e([i,u]);var c=(o.children||[])[u[0]+1]||{},a=t.DomEditor.getNodeType(c);if("paragraph"!==a&&"blockquote"!==a&&!a.startsWith("header")){var f=[u[0]+1];t.SlateTransforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{at:f})}},o},renderElems:[{type:"link-card",renderElem:function(n,e,o){var i=t.DomEditor.isNodeSelected(o,n),u=n,c=u.title,a=u.link,f=u.iconImgSrc,s=r.h("div",{props:{className:"w-e-textarea-link-card-text-container"}},[r.h("p",{props:{className:"w-e-link-card-title"}},c),r.h("span",{props:{className:"w-e-link-card-url",title:a}},a)]),l=r.h("div",{props:{className:"w-e-textarea-link-card-icon-container"}},[r.h("img",{props:{src:f||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABnhJREFUeF7tW11SIzcQVtuj52xOEDhBdk+wcILACQInWPwwcvG08ERZ8wCcIOwJwp4g5gRxThA4QeAVbCvVLo1L09PSSDMDrAumyi8eSdP9qf/VAvHGH3jj/It3AN4l4BkR0Fp/BoAdY8yWEML9uV+9FUKsfgBwa4yZKqVunpGsytK9qsD5+fmHp6en34UQe0KInY5MTIUQ11LKb6PR6L7jWt7pvQBQFAXu8hfL+HPQeg0Al3meIyi9Pp0AsIx/7WG3Y5maAsBpn0C0AsCK+h+JO35njLkCAARs/RhjTgHgQAjxSywKVjUO+1CNZAAmk8keACDzH2IJRibH4/EJjtdaG3eeUgoQ0MfHxyMKTsP698aYw/F4fB1LBzcuCYDJZHIOAEeeDz4IIX4i7x4AYM8VWQ6Aco5VKWSotg7z32qaMeZiPB6P2oIQBYAV+b+EEB+ZD6Fol7vnvkdAdpRSM3dOCAArIbgGGjsXhBkAjFCFPKoyk1LutlGJRgACzD9Y9E+01hdCCPQC7nOolEKCK08TABYEtAmoZhVbgWo0mUxOrBRSKWkFQhCAEPPl7p6dnW0Nh8N/CZ+XSilWVWIAsCDUQF0sFtvHx8e3WmtOSnBaMghBALTWf1OxB4B/sizbKcWtKIorYwwGP+VzJ6X86BPHWAAs+Kg+a+8AAN/yPEfpEAh8lmXXxphfCfgzpdSnWJvgBcAj1jdSyr2SOc/us6JfEhQLgE8VSinA9xYkNJqfYyWQAsMCYF3dn+5guvP4ju4+jsnznDOU66VSALAgYJ7ASkEJwnw+n1JJMMbsx7jIGgAWVdTptZ/nmLfj/iOGqvGjqQAwm3Evpdx2VQxpYUCojePUogaA1hp3HpMZ9/nEuDNqqe+UUpjxBZ9UADgpEELU1MwaRrRZ68e1GT6iKgDYQAT9vbvIKM9ztMiVR2uN49YZnxvthRBoA4B1fW4IjSnzLv1OURRHxphzQv9uKHeoAECZatrNDXnPglXSvgaA2/0NYbCRTADwSsEaAK01upPfGlfbzAHflVLUrq04WQHAWfTN5NNPtZTyZy44WwFAjUfIn3NgYUobC1gbI1iunTK3KIqZGxtgMsUZ8xXhWmvMvtbRVMiiU1sRE/y44KQwwXgeGhR5dZuJZG+UUrU6ZQlApUghhKj5/ZIYxtV49YuTio4AUDvlDbu5uICTVGCsfzCgocjG+v82YkwBpPFA07e11o0SA3TRpuiJUZfG8LcvFWDCYlasHWmtZKocYCgBjYMIAxV7EfKxfasAI61BAGI2F+iONjFEawRN4xlDViuKxnqQVABixiMAmPm5SYzXAFqP0ZqBl57PGMJbpdR2JVegVjl2NzZ1HPUEKAHUBW4qb1F0vwNAotZ3CaDBQigKfGkj1tWNMkawFuS1cYObFAfgOaZb3K3FDe+BUEy0FIoEY8vPPeUCjTvq0hoT5XLJUC1YcBdNTUj6jARTv02DPC5qTU6Htda0HL7Z6XDXgggeSKacxXWsB1TOKkN5SFJBhClyBJnqyETrXCLlu4z4+0tib74oatXg7ZbFbWUYe/0qx2JR2cUGDIo6GOGM4QbwFkNisGrU5XA0upTetSbIHI6yTHU+HA3Ygpjj8WAA1SUSZKpWz3M8jkRaj4Dl5EqbGm1De8UGiQcp5RZtkHh6eqJtfLVxnL5Et8hwHVhMg1RjUJTiy61EVmqWtGzv62SLzVFSm6SmUsr9H6xJCtNdeuTlbdOjUhA81KQHjHbybLFY7GO/nnWftE3uVkr5qac2OQx91xVr2iY3HA6R+UpTVupZZWOjJNeBJYTACwy72Df0io2SqPOVhm2umavJTzYea3s6sHDdewC4yPP89CVbZYui+Iq9yX0wj0w0AlB6Bo8k4Gu85zMaDAYnpFdvLSUpcYCt41V2F3dWCIENUNg/XOtEa7PzJU1RADg+nGuKLl8jw/QOAUrJfmy7fOAuArd2+d1ogxftBkN6Y4nELnDare2dBgAnWZZdomH0XZiYz+dfjDGrSxWRD3arH8R0g4bWS5KAciHrexGElKYqvBaHHqPCJIKDjHCi7SMcvUGWZUdt7gckucGmnbCnr8gQbVZumtr2/Q0C9uqXpij1Fgi0zCkSkQLCd+txfqxrc5QD6zIPjDHYk9dVKnC3r7Msu+pD1L3qlLINqWNRMpbL5c5gMNhyrs/S63F35bXZ5XJ5OxgMpn2KeBPN/wMl1UqMouKZkwAAAABJRU5ErkJggg=="}})]);return r.h("div",{props:{contentEditable:!1,className:"w-e-textarea-link-card-container"},dataset:{selected:i?"true":"",href:a},on:{mousedown:function(t){return t.preventDefault()},click:function(t){i||window.open(a,"_blank","noopener,noreferrer")}}},[s,l])}}],elemsToHtml:[ge],parseElemsHtml:[wu],menus:[vu]};return Eu});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|