@next-bricks/advanced 0.41.14 → 0.41.16

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.
Files changed (98) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/{1122.7589c998.js → 1122.83946732.js} +2 -2
  3. package/dist/chunks/{1122.7589c998.js.map → 1122.83946732.js.map} +1 -1
  4. package/dist/chunks/{114.9cac0ebe.js → 114.f8133173.js} +2 -2
  5. package/dist/chunks/{114.9cac0ebe.js.map → 114.f8133173.js.map} +1 -1
  6. package/dist/chunks/{1576.1a2a50df.js → 1576.f0fdd344.js} +3 -3
  7. package/dist/chunks/{1576.1a2a50df.js.map → 1576.f0fdd344.js.map} +1 -1
  8. package/dist/chunks/{4590.b006e665.js → 1651.995950c9.js} +3 -3
  9. package/dist/chunks/1651.995950c9.js.map +1 -0
  10. package/dist/chunks/{1940.4fc828af.js → 1940.51cab672.js} +2 -2
  11. package/dist/chunks/{1940.4fc828af.js.map → 1940.51cab672.js.map} +1 -1
  12. package/dist/chunks/2197.a2bdfc49.js +2 -0
  13. package/dist/chunks/{2197.0dad9427.js.map → 2197.a2bdfc49.js.map} +1 -1
  14. package/dist/chunks/2252.39e36de1.js +3 -0
  15. package/dist/chunks/{2252.19ff675d.js.map → 2252.39e36de1.js.map} +1 -1
  16. package/dist/chunks/{2277.f9e9adf0.js → 2277.04841590.js} +2 -2
  17. package/dist/chunks/{2277.f9e9adf0.js.map → 2277.04841590.js.map} +1 -1
  18. package/dist/chunks/3171.a0713c82.js +2 -0
  19. package/dist/chunks/{3171.3c5fbb7c.js.map → 3171.a0713c82.js.map} +1 -1
  20. package/dist/chunks/{3933.93a25986.js → 3933.6f31d144.js} +2 -2
  21. package/dist/chunks/{3933.93a25986.js.map → 3933.6f31d144.js.map} +1 -1
  22. package/dist/chunks/{4306.de3258d6.js → 4306.aa5bb920.js} +2 -2
  23. package/dist/chunks/{4306.de3258d6.js.map → 4306.aa5bb920.js.map} +1 -1
  24. package/dist/chunks/{4658.9f667bd4.js → 4658.6665a649.js} +2 -2
  25. package/dist/chunks/{4658.9f667bd4.js.map → 4658.6665a649.js.map} +1 -1
  26. package/dist/chunks/{478.71d1e246.js → 478.11360446.js} +2 -2
  27. package/dist/chunks/{478.71d1e246.js.map → 478.11360446.js.map} +1 -1
  28. package/dist/chunks/{4837.274a9c23.js → 4837.75e40589.js} +2 -2
  29. package/dist/chunks/{4837.274a9c23.js.map → 4837.75e40589.js.map} +1 -1
  30. package/dist/chunks/{5479.314b8848.js → 5479.6a3b5247.js} +2 -2
  31. package/dist/chunks/{5479.314b8848.js.map → 5479.6a3b5247.js.map} +1 -1
  32. package/dist/chunks/5552.b8201181.js +2 -0
  33. package/dist/chunks/{5552.e9d9c364.js.map → 5552.b8201181.js.map} +1 -1
  34. package/dist/chunks/{5582.ec3bbc12.js → 5582.7af5fe0e.js} +3 -3
  35. package/dist/chunks/{5582.ec3bbc12.js.map → 5582.7af5fe0e.js.map} +1 -1
  36. package/dist/chunks/{6314.b9d962a8.js → 6314.de17c1ed.js} +2 -2
  37. package/dist/chunks/{6314.b9d962a8.js.map → 6314.de17c1ed.js.map} +1 -1
  38. package/dist/chunks/{6519.7e899eef.js → 6519.7f3a6524.js} +2 -2
  39. package/dist/chunks/{6519.7e899eef.js.map → 6519.7f3a6524.js.map} +1 -1
  40. package/dist/chunks/{7218.535bdea2.js → 7218.4c1e8ce9.js} +2 -2
  41. package/dist/chunks/{7218.535bdea2.js.map → 7218.4c1e8ce9.js.map} +1 -1
  42. package/dist/chunks/{726.919fac3e.js → 726.fefd9acc.js} +2 -2
  43. package/dist/chunks/726.fefd9acc.js.map +1 -0
  44. package/dist/chunks/7434.92e29eef.js +2 -0
  45. package/dist/chunks/{7434.8fc102a2.js.map → 7434.92e29eef.js.map} +1 -1
  46. package/dist/chunks/{7733.e507de85.js → 7733.60cabb91.js} +2 -2
  47. package/dist/chunks/{7733.e507de85.js.map → 7733.60cabb91.js.map} +1 -1
  48. package/dist/chunks/{8097.35291a18.js → 8097.51f4faca.js} +2 -2
  49. package/dist/chunks/{8097.35291a18.js.map → 8097.51f4faca.js.map} +1 -1
  50. package/dist/chunks/{9559.3391afe5.js → 9559.569573af.js} +2 -2
  51. package/dist/chunks/{9559.3391afe5.js.map → 9559.569573af.js.map} +1 -1
  52. package/dist/chunks/{capture-snapshot.e3cf9ffc.js → capture-snapshot.2bf86c5c.js} +2 -2
  53. package/dist/chunks/{capture-snapshot.e3cf9ffc.js.map → capture-snapshot.2bf86c5c.js.map} +1 -1
  54. package/dist/chunks/{eo-cascader.338197ec.js → eo-cascader.1e4bee1d.js} +2 -2
  55. package/dist/chunks/{eo-cascader.338197ec.js.map → eo-cascader.1e4bee1d.js.map} +1 -1
  56. package/dist/chunks/{eo-next-table.75b1f037.js → eo-next-table.1a76de5e.js} +2 -2
  57. package/dist/chunks/{eo-next-table.75b1f037.js.map → eo-next-table.1a76de5e.js.map} +1 -1
  58. package/dist/chunks/{eo-table.3e79fb2f.js → eo-table.77a7981a.js} +2 -2
  59. package/dist/chunks/{eo-table.3e79fb2f.js.map → eo-table.77a7981a.js.map} +1 -1
  60. package/dist/chunks/{eo-text-tooltip.04136037.js → eo-text-tooltip.6c01f902.js} +2 -2
  61. package/dist/chunks/{eo-text-tooltip.04136037.js.map → eo-text-tooltip.6c01f902.js.map} +1 -1
  62. package/dist/chunks/{eo-tree-select.4b777546.js → eo-tree-select.c883a903.js} +2 -2
  63. package/dist/chunks/{eo-tree-select.4b777546.js.map → eo-tree-select.c883a903.js.map} +1 -1
  64. package/dist/chunks/{eo-tree.d39721d3.js → eo-tree.dc3108d3.js} +3 -3
  65. package/dist/chunks/{eo-tree.d39721d3.js.map → eo-tree.dc3108d3.js.map} +1 -1
  66. package/dist/chunks/eo-workbench-layout-v2.96513128.js +2 -0
  67. package/dist/chunks/{eo-workbench-layout-v2.cfb504eb.js.map → eo-workbench-layout-v2.96513128.js.map} +1 -1
  68. package/dist/chunks/eo-workbench-layout.9d0d454a.js +2 -0
  69. package/dist/chunks/{eo-workbench-layout.a0258ce6.js.map → eo-workbench-layout.9d0d454a.js.map} +1 -1
  70. package/dist/chunks/main.f39a9394.js +2 -0
  71. package/dist/chunks/main.f39a9394.js.map +1 -0
  72. package/dist/chunks/{pdf-viewer.3220a100.js → pdf-viewer.b0c36edb.js} +2 -2
  73. package/dist/chunks/{pdf-viewer.3220a100.js.map → pdf-viewer.b0c36edb.js.map} +1 -1
  74. package/dist/index.a0ddcc1d.js +2 -0
  75. package/dist/index.a0ddcc1d.js.map +1 -0
  76. package/package.json +6 -6
  77. package/dist/chunks/2197.0dad9427.js +0 -2
  78. package/dist/chunks/2252.19ff675d.js +0 -3
  79. package/dist/chunks/3171.3c5fbb7c.js +0 -2
  80. package/dist/chunks/4590.b006e665.js.map +0 -1
  81. package/dist/chunks/5053.739ba196.js +0 -2
  82. package/dist/chunks/5053.739ba196.js.map +0 -1
  83. package/dist/chunks/5552.e9d9c364.js +0 -2
  84. package/dist/chunks/726.919fac3e.js.map +0 -1
  85. package/dist/chunks/7434.8fc102a2.js +0 -2
  86. package/dist/chunks/790.18344482.js +0 -2
  87. package/dist/chunks/790.18344482.js.map +0 -1
  88. package/dist/chunks/eo-workbench-layout-v2.cfb504eb.js +0 -2
  89. package/dist/chunks/eo-workbench-layout.a0258ce6.js +0 -2
  90. package/dist/chunks/main.8781d497.js +0 -2
  91. package/dist/chunks/main.8781d497.js.map +0 -1
  92. package/dist/index.85fbc4e1.js +0 -2
  93. package/dist/index.85fbc4e1.js.map +0 -1
  94. /package/dist/chunks/{1576.1a2a50df.js.LICENSE.txt → 1576.f0fdd344.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{4590.b006e665.js.LICENSE.txt → 1651.995950c9.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{2252.19ff675d.js.LICENSE.txt → 2252.39e36de1.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{5582.ec3bbc12.js.LICENSE.txt → 5582.7af5fe0e.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-tree.d39721d3.js.LICENSE.txt → eo-tree.dc3108d3.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- (globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[2197],{4823:(e,t,i)=>{"use strict";var a=i(24586),s=i(74635),r=i(70918),n=i(26902),l=i(5536),o=i(86121),h=i(70829),d=i(62740),c=i(18769),p=i.n(c),u=i(72786),g=i(13049),m=i(2198),A=i(41030),w=i(51230),b=i(89575),y=i(30443),f=i(80050);const k={$eq:A.isEqual,$lt:A.lt,$lte:A.lte,$gt:A.gt,$gte:A.gte,$ne:(e,t)=>!(0,A.isEqual)(e,t),$isEqual:A.isEqual,$notEqual:(e,t)=>!(0,A.isEqual)(e,t),$in:A.includes,$nin:(e,t)=>!(0,A.includes)(e,t),$exists:(e,t)=>e?!(0,A.isUndefined)(t):(0,A.isUndefined)(t)};function x(e,t,i){const{dataIndex:a,mapping:s}=e,r=void 0!==a?(0,A.get)(t,a):i,n=s.find((e=>e.value===r));return n?{borderLeft:`4px solid ${n.leftBorderColor}`}:{}}const v=(e,t,i,a)=>{e&&(0,A.forEach)(e,(e=>{const s=(0,A.get)(e,i),r=(0,A.get)(e,t);a.push(r),null!=s&&s.length&&v(s,t,i,a)}))},C=(e,t,i)=>{e&&(0,A.forEach)(e,(e=>{const a=(0,A.get)(e,t);i.push(e),null!=a&&a.length&&C(a,t,i)}))};function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var i;return null!==(i=t[e])&&void 0!==i&&i.length?E(e,t[e]):(delete t[e],t)})),t}var S=i(53373),W=i.n(S),M=i(47522),z=i(80255),R=i(63737),_=i(50692),I=i(53435),N=i.n(I),B=i(30950),D=i(95694);const P="bricks/advanced/eo-table";var K=i(85502),T=i(18799),U=i(84352),L=i(26386);(0,K.initializeReactI18n)(P,{en:{},zh:{}});const F="DraggableBodyRow",O={lib:"antd",icon:"down",theme:"outlined"},H={lib:"antd",icon:"right",theme:"outlined"},q=(0,g.wrapBrick)("eo-icon"),$=e=>{let{index:t,moveRow:i,className:a,style:s,...r}=e;const n=p().useRef(null),[{isOver:l,dropClassName:o},h]=(0,M.H)({accept:F,collect:e=>{const{index:i}=e.getItem()||{};return i===t?{}:{isOver:e.isOver(),dropClassName:i<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{i(e.index,t)}}),[,d]=(0,z.i)({type:F,item:{type:F,index:t},collect:e=>({isDragging:e.isDragging()})});return h(d(n)),p().createElement("tr",(0,b.A)({ref:n,className:W()(a,{[o]:l}),style:{cursor:"move",...s}},r))};function j(e){const{t}=(0,K.useTranslation)(P),i="zh"===T.i18n.language.split("-")[0]?L.A:U.A;if(e.error)throw e.error;const{configProps:a={pagination:!0,sortBy:!1},columns:s,rowKey:r="key",expandIconAsCell:n,expandIconColumnIndex:l,childrenColumnName:o,scroll:h,optimizedColumns:d,onDelete:u,ellipsisInfo:g,showHeader:m}=e,w=(0,c.useMemo)((()=>{var t;return null===(t=e.dataSource)||void 0===t?void 0:t.map(((e,t)=>(0,A.isNil)(e[r])?{...e,[r]:t}:e))}),[e.dataSource,r]),[k,v]=(0,c.useState)(w),C=(0,c.useRef)(new Map),E=(0,c.useRef)(new Map),S=(0,c.useRef)(new Map),M=(0,c.useRef)(new Map);(0,c.useEffect)((()=>{M.current.clear(),v(w)}),[w]);const z=null!=a&&a.rowSelection?-1:0,I=(0,c.useMemo)((()=>{if(s){E.current.clear(),S.current.clear();const e=s.map(((e,t)=>{const{useBrick:i,valueSuffix:a,cellStatus:s,cellStyle:h={},headerBrick:d,colSpanKey:c,rowSpanKey:u,filterDropdownBrick:m,...w}=e;if(null!=d&&d.useBrick){const t=null==d?void 0:d.useBrick;let i=E.current.get(e);i||(i={title:w.title},E.current.set(e,i)),w.title=((e,t)=>function(){return p().createElement(B.ReactUseMultipleBricks,{useBrick:e,data:t})})(t,i)}if(null!=m&&m.useBrick&&(w.filterDropdown=p().createElement(B.ReactUseMultipleBricks,{useBrick:m.useBrick})),i){let e;i&&(e=S.current.get(i),e||(e=new Map,S.current.set(i,e))),w.render=((e,t)=>function(i,a,s){if(e){let r=null==t?void 0:t.get(a);return r||(r={cellData:i,rowData:a,columnIndex:s},null==t||t.set(a,r)),p().createElement(B.ReactUseMultipleBricks,{useBrick:e,data:r})}})(i,e),w.shouldCellUpdate=(e,t)=>!(0,A.isEqual)(e,t)}else a&&(w.render=e=>e+a);if(!n&&t===Number(l)+z){const e=w.render;w.render=function(t,i,a){return p().createElement(p().Fragment,null,!i[o]&&C.current.get(r?i[r]:i),e?e(t,i,a):t)}}if(s||c||u||h){const e=w.render;w.render=(t,i,a)=>({children:e?e(t,i,a):t,props:{colSpan:i[c],rowSpan:i[u],style:{...s?x(s,i,t):{},...h}}})}return"string"==typeof w.dataIndex&&(w.dataIndex=(0,A.toPath)(w.dataIndex)),"top"===w.verticalAlign&&(w.className?w.className+=" alignTop":w.className="alignTop"),"bottom"===w.verticalAlign&&(w.className?w.className+=" alignBottom":w.className="alignBottom"),g&&(w.className?w.className+=" ellipsisInfoCell":w.className="ellipsisInfoCell"),w}));return e}}),[s,o,n,l,z,r,u,g]),F={body:{row:$}},j=(t,i)=>{const a=k[t],s=N()(k,{$splice:[[t,1],[i,0,a]]});v(s),e.onDrag&&e.onDrag(s)},Q=(0,A.pickBy)({expandIconColumnIndex:l,expandIconAsCell:n,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,A.isNil)(e)));let Z=p().createElement(y.A,(0,b.A)({className:W()("brickTable",{expandIconCellHidden:!n,customDropTable:e.tableDraggable,tableThTransparent:e.thTransparent,zebraPatternTable:(null==k?void 0:k.length)>=2&&e.zebraPattern,xSmallSizeTable:e.xSmallSizeTable}),dataSource:k},e.tableDraggable?{components:F,onRow:(e,t)=>({index:t,moveRow:j})}:{},{columns:I,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,i)=>{var a;let s=M.current.get(t);return s||(s={rowData:t,rowIndex:i},M.current.set(t,s)),p().createElement(B.ReactUseMultipleBricks,{useBrick:null===(a=e.expandedRowBrick)||void 0===a?void 0:a.useBrick,data:s})}}:{},Q,{onExpand:(t,i)=>{e.onExpand&&e.onExpand(t,i)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:r,childrenColumnName:o,rowClassName:(t,i)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&i%2?"brickTableOddRow":"",expandIcon:t=>{var i;const{record:a,expandable:s,expanded:l,onExpand:o}=t;let h,d=(null===(i=e.expandIcon)||void 0===i?void 0:i.collapsedIcon)||O;var c;s?(l||(d=(null===(c=e.expandIcon)||void 0===c?void 0:c.expandedIcon)||H),h=p().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon",onClick:e=>{o(a,e)}},p().createElement(q,d))):h=p().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon"},p().createElement("span",{style:{visibility:"hidden"}},p().createElement(q,d)));return h?(n||C.current.set(r?a[r]:a,h),h):p().createElement(p().Fragment,null)},scroll:h,showHeader:m},a));e.tableDraggable&&(Z=p().createElement(R.Q,{backend:_.t2},Z));const V=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{locale:i},p().createElement(D.N7,{container:e.shadowRoot,cache:V},Z))}var Q;let Z,V,X,G,Y,J,ee,te,ie,ae,se,re,ne,le,oe,he,de,ce,pe,ue,ge,me,Ae,we,be,ye,fe,ke,xe,ve,Ce,Ee,Se,We,Me,ze,Re,_e,Ie,Ne,Be,De,Pe,Ke,Te,Ue,Le,Fe,Oe,He,qe,$e,je,Qe,Ze,Ve,Xe,Ge,Ye,Je,et,tt,it,at,st,rt,nt,lt,ot,ht,dt,ct,pt,ut,gt,mt,At,wt,bt,yt,ft,kt,xt,vt,Ct,Et,St,Wt,Mt,zt,Rt,_t,It,Nt,Bt,Dt,Pt,Kt,Tt,Ut,Lt,Ft,Ot,Ht,qt,$t,jt,Qt,Zt,Vt,Xt,Gt,Yt,Jt,ei,ti,ii,ai,si,ri,ni,li,oi,hi;i(76477);const{defineElement:di,property:ci,event:pi,method:ui}=(0,u.createDecorators)();let gi;var mi=new WeakMap,Ai=new WeakSet,wi=new WeakMap,bi=new WeakMap,yi=new WeakMap,fi=new WeakMap,ki=new WeakMap,xi=new WeakMap,vi=new WeakMap,Ci=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Wi=new WeakMap,Mi=new WeakMap,zi=new WeakMap,Ri=new WeakMap,_i=new WeakMap,Ii=new WeakMap,Ni=new WeakMap,Bi=new WeakMap,Di=new WeakMap,Pi=new WeakMap,Ki=new WeakMap,Ti=new WeakMap,Ui=new WeakMap,Li=new WeakMap,Fi=new WeakMap,Oi=new WeakMap,Hi=new WeakMap,qi=new WeakMap,$i=new WeakMap,ji=new WeakMap,Qi=new WeakMap,Zi=new WeakMap,Vi=new WeakMap,Xi=new WeakMap,Gi=new WeakMap,Yi=new WeakMap,Ji=new WeakMap,ea=new WeakMap,ta=new WeakMap,ia=new WeakMap,aa=new WeakMap,sa=new WeakMap,ra=new WeakMap,na=new WeakMap,la=new WeakMap,oa=new WeakMap,ha=new WeakMap,da=new WeakMap,ca=new WeakMap,pa=new WeakMap,ua=new WeakMap,ga=new WeakMap,ma=new WeakMap;class Aa extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Ai),(0,r.A)(this,mi,(Z(this),X(this))),(0,r.A)(this,wi,(J(this),ee(this))),(0,r.A)(this,bi,(ae(this),se(this))),(0,r.A)(this,yi,(le(this),oe(this))),(0,r.A)(this,fi,(ce(this),pe(this))),(0,r.A)(this,ki,(me(this),Ae(this))),(0,r.A)(this,xi,(ye(this),fe(this))),(0,r.A)(this,vi,(ve(this),Ce(this))),(0,r.A)(this,Ci,(We(this),Me(this,!0))),(0,r.A)(this,Ei,(ze(this),Re(this))),(0,r.A)(this,Si,(_e(this),Ie(this))),(0,r.A)(this,Wi,(Ne(this),Be(this))),(0,r.A)(this,Mi,(De(this),Pe(this,!1))),(0,r.A)(this,zi,(Ke(this),Te(this))),(0,r.A)(this,Ri,(Ue(this),Le(this))),(0,r.A)(this,_i,(Fe(this),Oe(this))),(0,r.A)(this,Ii,(He(this),qe(this))),(0,r.A)(this,Ni,($e(this),je(this))),(0,r.A)(this,Bi,(Qe(this),Ze(this))),(0,r.A)(this,Di,(Ve(this),Xe(this))),(0,r.A)(this,Pi,(Ge(this),Ye(this,!0))),(0,r.A)(this,Ki,(Je(this),et(this))),(0,r.A)(this,Ti,(tt(this),it(this))),(0,r.A)(this,Ui,(at(this),st(this))),(0,r.A)(this,Li,(rt(this),nt(this,!1))),(0,r.A)(this,Fi,(lt(this),ot(this))),(0,r.A)(this,Oi,(ht(this),dt(this))),(0,r.A)(this,Hi,(ct(this),pt(this))),(0,r.A)(this,qi,(ut(this),gt(this))),(0,r.A)(this,$i,(mt(this),At(this))),(0,a.A)(this,"_disabledChildrenKeys",(wt(this),[])),(0,r.A)(this,ji,bt(this,"children")),(0,r.A)(this,Qi,(yt(this),ft(this,!0))),(0,r.A)(this,Zi,(kt(this),xt(this))),(0,r.A)(this,Vi,(vt(this),Ct(this,""))),(0,r.A)(this,Xi,(Et(this),St(this))),(0,r.A)(this,Gi,(Wt(this),Mt(this))),(0,r.A)(this,Yi,(zt(this),Rt(this))),(0,r.A)(this,Ji,(_t(this),It(this))),(0,r.A)(this,ea,(Nt(this),Bt(this,{x:!0}))),(0,r.A)(this,ta,(Dt(this),Pt(this,"q"))),(0,r.A)(this,ia,(Kt(this),Tt(this))),(0,r.A)(this,aa,(Ut(this),Lt(this))),(0,r.A)(this,sa,(Ft(this),Ot(this))),(0,r.A)(this,ra,(Ht(this),qt(this,[]))),(0,r.A)(this,na,($t(this),jt(this))),(0,r.A)(this,la,(Qt(this),Zt(this))),(0,r.A)(this,oa,(Vt(this),Xt(this,!0))),(0,r.A)(this,ha,(Gt(this),Yt(this))),(0,r.A)(this,da,(Jt(this),ei(this))),(0,r.A)(this,ca,(ti(this),ii(this))),(0,r.A)(this,pa,(ai(this),si(this,!0))),(0,r.A)(this,ua,(ri(this),ni(this,!0))),(0,a.A)(this,"_originalDataSource",(li(this),[])),(0,a.A)(this,"_dataSource",[]),(0,a.A)(this,"_pureSource",void 0),(0,a.A)(this,"_columns",void 0),(0,a.A)(this,"_finalConfigProps",{}),(0,a.A)(this,"_error",void 0),(0,r.A)(this,ga,void 0),(0,a.A)(this,"_selectUpdateEventName",""),(0,a.A)(this,"_selectUpdateEventDetailKeys",[]),(0,a.A)(this,"_selectUpdateEventDetailField",""),(0,a.A)(this,"_selectUpdateEventDetailExtra",{}),(0,a.A)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,r.A)(this,ma,oi(this,[])),(0,a.A)(this,"_selected",(hi(this),!1)),(0,a.A)(this,"_selectedRow",void 0),(0,a.A)(this,"_selectedRows",[]),(0,a.A)(this,"_allChildren",[]),(0,a.A)(this,"_isInSelect",!1),(0,a.A)(this,"_getRowKey",(()=>{var e,t,i,a;return null!==(e=null!==(t=null!==(i=this.rowKey)&&void 0!==i?i:this._fields.rowKey)&&void 0!==t?t:null===(a=this.configProps)||void 0===a?void 0:a.rowKey)&&void 0!==e?e:"key"})),(0,a.A)(this,"_findParentByChildKeyValue",((e,t,i,a)=>{let s;return i.some((i=>{if(i[t]===e)s=a;else{const a=i[this.childrenColumnName];a&&(s=this._findParentByChildKeyValue(e,t,a,i))}return!!s})),s})),(0,a.A)(this,"_handleRowSelectChange",((e,t)=>{const i=this._getRowKey(),a=(0,A.keyBy)(t,i);if(this._selected){const t=[...e];if(this._allChildren.forEach((e=>{const s=e[i];t.push(s),a[s]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){const s=new Set(e),r=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource);if(r&&r[this.childrenColumnName].every((e=>s.has(e[i])))){const e=r[i];t.push(e),a[e]=r}}this.selectedRowKeys=(0,A.uniq)(t)}else{let t;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(t=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource)),this.selectedRowKeys=(0,A.pullAll)(e,(0,A.map)(this._allChildren.concat(t),i))}this._selectedRow=void 0;const s=(0,A.keyBy)(this.extraRows,i);this._selectedRows=this.selectedRowKeys.map((e=>a[e]||s[e]));let r=null;const n=(0,A.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,A.map)(this._selectedRows,(e=>(0,A.get)(e,this._selectUpdateEventDetailField)));r=(0,A.isEmpty)(this._selectUpdateEventDetailKeys)||(0,A.isEmpty)(n)?n:(0,A.set)({},this._selectUpdateEventDetailKeys,n),(0,A.isEmpty)(r)||(r=(0,A.merge)(r,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:r})):(0,l.A)(Ai,this,re).emit(r),(0,l.A)(Ai,this,he).emit(e)})),(0,a.A)(this,"_getSelectedRowsWithChildren",(e=>{const t=[];return!(0,A.isEmpty)(e[this.childrenColumnName])&&(0,A.isArray)(e[this.childrenColumnName])&&(0,A.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,a.A)(this,"_handleOnSelect",((e,t)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;const i=this._getRowKey(),a=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=a,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,A.uniq)([...this._disabledChildrenKeys,...(0,A.map)(a,i)]):(0,A.pullAll)(this._disabledChildrenKeys,[...(0,A.map)(a,i)])),this.storeCheckedByUrl&&i&&this._updateUrlChecked([e[i]],t)})),(0,a.A)(this,"_handleSelectAll",((e,t,i)=>{this._selected=e,this._isInSelect=!0;const a=this._getRowKey();if(this.selectAllChildren){const t=(0,A.map)(this._dataSource,a),s=i.filter((e=>t.includes(e[a]))),r=(0,A.flatten)((0,A.map)(s,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e[a]))))),n=(0,A.flatten)((0,A.map)(s,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=n,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,A.uniq)(this._disabledChildrenKeys.concat(r)):this._disabledChildrenKeys.filter((e=>!r.includes(e))))}this.storeCheckedByUrl&&a&&this._updateUrlChecked((0,A.map)(i,a),e)})),(0,a.A)(this,"_getCheckedFromUrl",(()=>{const e=(0,w.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,A.isEmpty)(t)?[]:t.split(",")})),(0,a.A)(this,"_updateUrlChecked",((e,t)=>{const i=(0,w.getHistory)();let a=this._getCheckedFromUrl();t?a=[...a,...e]:(0,A.pull)(a,...e),this.shouldUpdateUrlParams&&i.pushQuery({checked:a.join(",")},{notify:!1})})),(0,a.A)(this,"_handleOnChange",((e,t,i)=>{const a=(0,w.getHistory)(),s=new URLSearchParams(a.location.search);if(!(0,A.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,s.set("page","1"),s.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,l.A)(Ai,this,te).emit({[this._fields.pageSize]:e.pageSize,[this._fields.page]:1}),this.page=1,this.pageSize=e.pageSize;else if(e.current!==this.page){const t=e.current||1;s.set("page",t.toString()),(0,l.A)(Ai,this,G).emit({[this._fields.page]:t}),this.page=t}this.filters=t,(0,A.isEmpty)(t)||(0,A.forEach)(t,((e,t)=>{(0,A.isNil)(e)||0===e.length?s.delete(t):s.set(t,e)})),i.order&&(0,A.isNil)(i.order)&&(i.columnKey!==this.sort||this._fields[i.order]!==this.order)&&(i.columnKey&&i.order?(s.set("sort",i.columnKey),s.set("order",this._fields[i.order].toString()),this.sort=i.columnKey,this.order=this._fields[i.order]):(s.delete("sort"),s.delete("order"),this.sort=null,this.order=null),(0,l.A)(Ai,this,ue).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&a.push(`?${s}`,{notify:!1}),this.frontendSearch(e,t,i)):this.shouldUpdateUrlParams&&a.push(`?${s}`,{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,a.A)(this,"renderSelectInfo",(()=>p().createElement("span",{style:{marginLeft:20}},p().createElement("span",null,"已选择",this.selectedRowKeys.length,"项"),p().createElement("a",{role:"button",style:{marginLeft:"10px"},onClick:()=>{this.selectedRowKeys=[],this._selectedRows=[],this._disabledChildrenKeys=[],this._allChildren=[],this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:[]})):(0,l.A)(Ai,this,re).emit([])}},"清空")))),(0,a.A)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){const i=this._getRowKey(),a=[(0,A.get)(t,i)],s=(0,A.get)(t,this.childrenColumnName);if(!(0,A.isEmpty)(s)){const e=(0,A.map)((0,A.filter)(s,(e=>(0,A.isEmpty)((0,A.get)(e,this.childrenColumnName)))),i);a.push(...e)}this.expandedRowKeys=e?[...this.expandedRowKeys,...a]:(0,A.pull)(this.expandedRowKeys,...a),this._render()}(0,l.A)(Ai,this,we).emit({expanded:e,record:t})})),(0,a.A)(this,"_handleOnExpandedRowsChange",(e=>{(0,l.A)(Ai,this,ke).emit({expandedRows:e})})),(0,a.A)(this,"_handleOnDrag",(e=>{(0,l.A)(Ai,this,Ee).emit({data:e})})),(0,a.A)(this,"_getAllRows",(()=>{const e=[];return C(this._dataSource,this.childrenColumnName,e),e})),(0,a.A)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;const e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,A.map)(this._selectedRows,e),this.selectedRowKeys})),(0,a.A)(this,"_initConfigProps",(()=>{var e,t;const i={current:this.page,pageSize:this.pageSize,total:(0,h.A)(ga,this),showSizeChanger:!0,pageSizeOptions:["10","20","50"],showTotal:e=>{var t;return p().createElement(p().Fragment,null,p().createElement("span",{className:"totalText"},"共 ",p().createElement("strong",{className:"total"},e)," 条"),((null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)||this.rowSelection)&&this.showSelectInfo&&0!==this.selectedRowKeys.length&&this.renderSelectInfo())}},a=this._getRowKey();let s;this.rowDisabledConfig&&(s=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);const r={...a?{selectedRowKeys:this._isInSelect?this.selectedRowKeys:this.storeCheckedByUrl?this._getCheckedFromUrl():this.defaultSelectAll?this._handleDefaultSelectAll():this.selectedRowKeys,onSelect:this._handleOnSelect,onSelectAll:this._handleSelectAll,onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}:{onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0},getCheckboxProps:e=>!(0,A.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,A.get)(e,a))?{disabled:!0}:s?{disabled:s.some((t=>{const{field:i,value:a,operator:s}=t,r=k[s];return null==r?void 0:r(a,(0,A.get)(e,i))}))}:{}};this.configProps?(this._finalConfigProps=(0,A.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination={...i,...this.pagination,...this.configProps.pagination},void 0!==this.configProps.pagination&&null!==this.configProps.pagination||!1!==this.pagination||(this._finalConfigProps.pagination=!1)),this.configProps.size||(this._finalConfigProps.size="x-small"==this.size?"":this.size)):(this._finalConfigProps={},this._finalConfigProps.pagination=!1!==this.pagination&&i,this._finalConfigProps.size="x-small"==this.size?"":this.size);const n=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;var l,o;n?this._finalConfigProps.rowSelection=!0===n?{...r,type:null!==(l=this.type)&&void 0!==l?l:"checkbox"}:{...r,type:null!==(o=this.type)&&void 0!==o?o:"checkbox",...n,...r.selectedRowKeys?{selectedRowKeys:r.selectedRowKeys}:{}}:this.type?this._finalConfigProps.rowSelection={...r,type:this.type}:this._finalConfigProps.rowSelection=!1,this._columns&&(this._columns=this._columns.map((e=>{if((0,A.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,A.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,i;const a=(0,w.getHistory)(),s=null!==(t=new URLSearchParams(a.location.search).get(e.key))&&void 0!==t?t:null===(i=(0,A.get)(this.filters,e.key))||void 0===i?void 0:i.join(",");(0,A.isNil)(s)||(0,A.isEmpty)(s)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=s.split(",").map((t=>{var i,a;return null!==(i=null===(a=(0,A.find)(e.filters,(e=>String(e.value)===t)))||void 0===a?void 0:a.value)&&void 0!==i?i:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,i,a,s,r,n;(this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,A.cloneDeep)(this._fields.dataSource?(0,A.get)(e,this._fields.dataSource):e),this._pureSource=(0,A.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren)&&E((null===(n=this.configProps)||void 0===n||null===(n=n.expandable)||void 0===n?void 0:n.childrenColumnName)||"children",this._dataSource);(0,o.A)(ga,this,(0,A.get)(e,this._fields.total)),this.page=null!==(t=null!==(i=(0,A.get)(e,"page"))&&void 0!==i?i:this.page)&&void 0!==t?t:1,this.pageSize=null!==(a=null!==(s=null!==(r=(0,A.get)(e,"page_size"))&&void 0!==r?r:(0,A.get)(e,"pageSize"))&&void 0!==s?s:this.pageSize)&&void 0!==a?a:10,this._render()}get showCard(){return(0,h.A)(Ci,this)}set showCard(e){(0,o.A)(Ci,this,e)}get rowSelection(){return(0,h.A)(Ei,this)}set rowSelection(e){(0,o.A)(Ei,this,e)}get rowKey(){return(0,h.A)(Si,this)}set rowKey(e){(0,o.A)(Si,this,e)}get hiddenColumns(){return(0,h.A)(Wi,this)}set hiddenColumns(e){(0,o.A)(Wi,this,e)}get showSelectInfo(){return(0,h.A)(Mi,this)}set showSelectInfo(e){(0,o.A)(Mi,this,e)}get filters(){return(0,h.A)(zi,this)}set filters(e){(0,o.A)(zi,this,e)}get configProps(){return(0,h.A)(Ri,this)}set configProps(e){(0,o.A)(Ri,this,e)}get sort(){return(0,h.A)(_i,this)}set sort(e){(0,o.A)(_i,this,e)}get order(){return(0,h.A)(Ii,this)}set order(e){(0,o.A)(Ii,this,e)}get rowDisabledConfig(){return(0,h.A)(Ni,this)}set rowDisabledConfig(e){(0,o.A)(Ni,this,e)}get expandedRowBrick(){return(0,h.A)(Bi,this)}set expandedRowBrick(e){(0,o.A)(Bi,this,e)}get expandIcon(){return(0,h.A)(Di,this)}set expandIcon(e){(0,o.A)(Di,this,e)}get expandIconAsCell(){return(0,h.A)(Pi,this)}set expandIconAsCell(e){(0,o.A)(Pi,this,e)}get expandIconColumnIndex(){return(0,h.A)(Ki,this)}set expandIconColumnIndex(e){(0,o.A)(Ki,this,e)}get expandRowByClick(){return(0,h.A)(Ti,this)}set expandRowByClick(e){(0,o.A)(Ti,this,e)}get optimizedColumns(){return(0,h.A)(Ui,this)}set optimizedColumns(e){(0,o.A)(Ui,this,e)}get stripEmptyExpandableChildren(){return(0,h.A)(Li,this)}set stripEmptyExpandableChildren(e){(0,o.A)(Li,this,e)}get defaultExpandAllRows(){return(0,h.A)(Fi,this)}set defaultExpandAllRows(e){(0,o.A)(Fi,this,e)}get ellipsisInfo(){return(0,h.A)(Oi,this)}set ellipsisInfo(e){(0,o.A)(Oi,this,e)}get expandedRowKeys(){return(0,h.A)(Hi,this)}set expandedRowKeys(e){(0,o.A)(Hi,this,e)}get selectAllChildren(){return(0,h.A)(qi,this)}set selectAllChildren(e){(0,o.A)(qi,this,e)}get defaultSelectAll(){return(0,h.A)($i,this)}set defaultSelectAll(e){(0,o.A)($i,this,e)}get childrenColumnName(){return(0,h.A)(ji,this)}set childrenColumnName(e){(0,o.A)(ji,this,e)}get sortable(){return(0,h.A)(Qi,this)}set sortable(e){(0,o.A)(Qi,this,e)}set fields(e){this._fields={...this._fields,...e},this._render()}get frontSearch(){return(0,h.A)(Zi,this)}set frontSearch(e){(0,o.A)(Zi,this,e)}get frontSearchQuery(){return(0,h.A)(Vi,this)}set frontSearchQuery(e){(0,o.A)(Vi,this,e)}get exactSearch(){return(0,h.A)(Xi,this)}set exactSearch(e){(0,o.A)(Xi,this,e)}get frontSearchFilterKeys(){return(0,h.A)(Gi,this)}set frontSearchFilterKeys(e){(0,o.A)(Gi,this,e)}get page(){return(0,h.A)(Yi,this)}set page(e){(0,o.A)(Yi,this,e)}get pageSize(){return(0,h.A)(Ji,this)}set pageSize(e){(0,o.A)(Ji,this,e)}get scrollConfigs(){return(0,h.A)(ea,this)}set scrollConfigs(e){(0,o.A)(ea,this,e)}get qField(){return(0,h.A)(ta,this)}set qField(e){(0,o.A)(ta,this,e)}get tableDraggable(){return(0,h.A)(ia,this)}set tableDraggable(e){(0,o.A)(ia,this,e)}get zebraPattern(){return(0,h.A)(aa,this)}set zebraPattern(e){(0,o.A)(aa,this,e)}get storeCheckedByUrl(){return(0,h.A)(sa,this)}set storeCheckedByUrl(e){(0,o.A)(sa,this,e)}get extraRows(){return(0,h.A)(ra,this)}set extraRows(e){(0,o.A)(ra,this,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,h.A)(na,this)}set autoSelectParentWhenAllChildrenSelected(e){(0,o.A)(na,this,e)}get thTransparent(){return(0,h.A)(la,this)}set thTransparent(e){(0,o.A)(la,this,e)}get showHeader(){return(0,h.A)(oa,this)}set showHeader(e){(0,o.A)(oa,this,e)}get pagination(){return(0,h.A)(ha,this)}set pagination(e){(0,o.A)(ha,this,e)}get size(){return(0,h.A)(da,this)}set size(e){(0,o.A)(da,this,e)}get type(){return(0,h.A)(ca,this)}set type(e){(0,o.A)(ca,this,e)}get shouldUpdateUrlParams(){return(0,h.A)(pa,this)}set shouldUpdateUrlParams(e){(0,o.A)(pa,this,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,h.A)(ua,this)}set shouldRenderWhenUrlParamsUpdate(e){(0,o.A)(ua,this,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,h.A)(ma,this)}set selectedRowKeys(e){(0,o.A)(ma,this,e)}filterSourceData(e){const t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){const e=(0,w.getHistory)(),i=new URLSearchParams(e.location.search);i.set("page","1"),t?(i.set(this.qField,t),e.push(`?${i}`,{notify:!this.frontSearch})):(i.delete(this.qField),e.push(`?${i}`,{notify:!this.frontSearch})),this.page=1}this.frontSearchQuery=t}handleFrontendDataChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.shouldUpdateUrlParams){const e=(0,w.getHistory)(),t=new URLSearchParams(e.location.search);this.frontSearchQuery=t.get(this.qField)}let i=[];i=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);const a=(0,A.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return i=this.handleFrontendSorter(i,{columnKey:this.sort,order:a}),i=this.handleFrontendFilters(i),(0,o.A)(ga,this,i.length),i}handleFrontendFilterSource(e,t,i,a){if(!t)return e;const s=[];return a||(a=this.frontSearchFilterKeys||i.map((e=>e.dataIndex))),e.forEach((e=>{var r;const n=e[this.childrenColumnName];if(n){const r=this.handleFrontendFilterSource(n,t,i,a);if(r.length>0)return void s.push({...e,[this.childrenColumnName]:r})}(null===(r=a)||void 0===r?void 0:r.some((i=>{const a=(0,A.get)(e,i);return!(0,A.isNil)(a)&&(this.exactSearch?a===t:JSON.stringify(a).toLowerCase().includes(t))})))&&s.push(e)})),s}handleFrontendSorter(e,t){const i=e||[],{columnKey:a,order:s}=t;if(!a||!s)return e;let r=1;return"descend"===s?r=-1:"ascend"===s&&(r=1),void 0!==r&&(i.sort(((e,t)=>{const i=(0,A.get)(e,a),s=(0,A.get)(t,a);if((0,A.isNil)(i)){if(!(0,A.isNil)(s))return 1}else if((0,A.isNil)(s))return-1;return i==s?0:i>s?r:-r})),i.forEach((e=>{const i=e[this.childrenColumnName];i&&this.handleFrontendSorter(i,t)}))),i}handleFrontendFilters(e){let t=e||[];const i=(0,A.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,A.isNil)(e.value)&&0!==e.value.length));return t=t.filter((e=>(0,A.every)(i,(t=>{var i,a;return null===(i=null===(a=t.value)||void 0===a?void 0:a.includes((0,A.get)(e,t.key)))||void 0===i||i})))),t}frontendSearch(e,t,i){this.sort=(0,A.isNil)(i.order)?null:i.columnKey,this.order=(0,A.isNil)(i.order)?null:this._fields[i.order]}expandAll(){const e=[],t=this._getRowKey();this._dataSource&&v(this._dataSource,t,this.childrenColumnName,e),this.expandedRowKeys=e}getModifyColumns(){let e=this._columns;return this._columns&&this.hiddenColumns&&(e=this._columns.filter((e=>{var t,i;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(i=e.dataIndex)&&void 0!==i?i:e.key))}))),!1===this.sortable&&(e=(0,A.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),p().createElement(j,{shadowRoot:this.shadowRoot,dataSource:this._dataSource||[],columns:this.getModifyColumns(),configProps:this._finalConfigProps,error:this._error,onChange:this._handleOnChange,showCard:this.showCard,showHeader:this.showHeader,expandedRowBrick:this.expandedRowBrick,expandIconAsCell:this.expandIconAsCell,expandIconColumnIndex:this.expandIconColumnIndex,expandRowByClick:this.expandRowByClick,defaultExpandAllRows:this.defaultExpandAllRows,onExpand:this._handleOnExpand,onExpandedRowsChange:this._handleOnExpandedRowsChange,expandedRowKeys:this.expandedRowKeys,rowKey:this._getRowKey(),childrenColumnName:this.childrenColumnName,tableDraggable:this.tableDraggable||this.draggable,onDrag:this._handleOnDrag,zebraPattern:this.zebraPattern,expandIcon:this.expandIcon,scroll:this.scrollConfigs,optimizedColumns:this.optimizedColumns,ellipsisInfo:this.ellipsisInfo,thTransparent:this.thTransparent,xSmallSizeTable:"x-small"==this.size})}_test_only_getOriginalDataSource(){return this._originalDataSource}updateData(e){this._dataSource=e.detail,this._error=null,this._render()}updateError(e){this._error=e.detail,this._render()}set selectUpdateEventName(e){this._selectUpdateEventName=e}set selectUpdateEventDetailKeys(e){this._selectUpdateEventDetailKeys=e}set selectUpdateEventDetailField(e){this._selectUpdateEventDetailField=e}set selectUpdateEventDetailExtra(e){this._selectUpdateEventDetailExtra=e}}Q=Aa,({e:[X,G,Y,J,ee,te,ie,ae,se,re,ne,le,oe,he,de,ce,pe,ue,ge,me,Ae,we,be,ye,fe,ke,xe,ve,Ce,Ee,Se,We,Me,ze,Re,_e,Ie,Ne,Be,De,Pe,Ke,Te,Ue,Le,Fe,Oe,He,qe,$e,je,Qe,Ze,Ve,Xe,Ge,Ye,Je,et,tt,it,at,st,rt,nt,lt,ot,ht,dt,ct,pt,ut,gt,mt,At,wt,bt,yt,ft,kt,xt,vt,Ct,Et,St,Wt,Mt,zt,Rt,_t,It,Nt,Bt,Dt,Pt,Kt,Tt,Ut,Lt,Ft,Ot,Ht,qt,$t,jt,Qt,Zt,Vt,Xt,Gt,Yt,Jt,ei,ti,ii,ai,si,ri,ni,li,oi,hi,Z],c:[gi,V]}=(0,d.A)(Q,[di("eo-table",{styleTexts:[m.A],alias:["advanced.general-table"]})],[[pi({type:"page.update"}),1,"pageUpdate",e=>(0,h.A)(mi,e),(e,t)=>(0,o.A)(mi,e,t)],[pi({type:"filter.update"}),1,"filterUpdate",e=>(0,h.A)(wi,e),(e,t)=>(0,o.A)(wi,e,t)],[pi({type:"select.update"}),1,"selectUpdate",e=>(0,h.A)(bi,e),(e,t)=>(0,o.A)(bi,e,t)],[pi({type:"select.row.keys.update"}),1,"selectRowKeysUpdate",e=>(0,h.A)(yi,e),(e,t)=>(0,o.A)(yi,e,t)],[pi({type:"sort.update",cancelable:!0}),1,"sortUpdate",e=>(0,h.A)(fi,e),(e,t)=>(0,o.A)(fi,e,t)],[pi({type:"row.expand"}),1,"rowExpand",e=>(0,h.A)(ki,e),(e,t)=>(0,o.A)(ki,e,t)],[pi({type:"expand.rows.change"}),1,"expandRowsChange",e=>(0,h.A)(xi,e),(e,t)=>(0,o.A)(xi,e,t)],[pi({type:"row.drag"}),1,"rowDrag",e=>(0,h.A)(vi,e),(e,t)=>(0,o.A)(vi,e,t)],[ci({type:Boolean}),1,"showCard"],[ci({attribute:!1}),1,"rowSelection"],[ci(),1,"rowKey"],[ci({attribute:!1}),1,"hiddenColumns"],[ci({type:Boolean}),1,"showSelectInfo"],[ci({attribute:!1}),1,"filters"],[ci({attribute:!1}),1,"configProps"],[ci(),1,"sort"],[ci({attribute:!1}),1,"order"],[ci({attribute:!1}),1,"rowDisabledConfig"],[ci({attribute:!1}),1,"expandedRowBrick"],[ci({attribute:!1}),1,"expandIcon"],[ci({attribute:!1}),1,"expandIconAsCell"],[ci({type:Number}),1,"expandIconColumnIndex"],[ci({type:Boolean}),1,"expandRowByClick"],[ci({attribute:!1}),1,"optimizedColumns"],[ci({attribute:!1}),1,"stripEmptyExpandableChildren"],[ci({type:Boolean}),1,"defaultExpandAllRows"],[ci({type:Boolean}),1,"ellipsisInfo"],[ci({attribute:!1}),1,"expandedRowKeys"],[ci({type:Boolean}),1,"selectAllChildren"],[ci({type:Boolean}),1,"defaultSelectAll"],[ci({attribute:!1}),1,"childrenColumnName"],[ci({attribute:!1}),1,"sortable"],[ci({type:Boolean}),1,"frontSearch"],[ci(),1,"frontSearchQuery"],[ci({type:Boolean}),1,"exactSearch"],[ci({attribute:!1}),1,"frontSearchFilterKeys"],[ci({type:Number}),1,"page"],[ci({type:Number}),1,"pageSize"],[ci({attribute:!1}),1,"scrollConfigs"],[ci(),1,"qField"],[ci({type:Boolean}),1,"tableDraggable"],[ci({type:Boolean}),1,"zebraPattern"],[ci({type:Boolean}),1,"storeCheckedByUrl"],[ci({attribute:!1}),1,"extraRows"],[ci({type:Boolean}),1,"autoSelectParentWhenAllChildrenSelected"],[ci({type:Boolean}),1,"thTransparent"],[ci({type:Boolean}),1,"showHeader"],[ci({attribute:!1}),1,"pagination"],[ci(),1,"size"],[ci({attribute:!1}),1,"type"],[ci({type:Boolean}),1,"shouldUpdateUrlParams"],[ci({type:Boolean}),1,"shouldRenderWhenUrlParamsUpdate"],[ci({attribute:!1}),1,"selectedRowKeys"],[ui(),2,"filterSourceData"],[ui(),2,"expandAll"]],0,(e=>ga.has((0,n.A)(e))),g.ReactNextElement)),V();var wa,ba=i(16768),ya=i(97039),fa=i(99492);let ka,xa,va,Ca,Ea,Sa,Wa,Ma,za;const{method:Ra,property:_a}=(0,u.createDecorators)();var Ia=new WeakMap,Na=new WeakSet,Ba=new WeakMap,Da=new WeakMap,Pa=new WeakMap,Ka=new WeakMap,Ta=new WeakMap,Ua=new WeakMap;class La extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Na),(0,r.A)(this,Ia,(ka(this),!1)),(0,r.A)(this,Ba,"normal"),(0,r.A)(this,Da,!1),(0,r.A)(this,Pa,xa(this)),(0,r.A)(this,Ka,(va(this),Ca(this))),(0,r.A)(this,Ta,(Ea(this),Sa(this))),(0,r.A)(this,Ua,(Wa(this),Ma(this))),za(this)}get isFormItemElement(){return!0}set validateState(e){(0,fa.A)(Na,qa,this,e),this._render()}get validateState(){return(0,l.A)(Na,this,Ha)}set notRender(e){this.hidden=e,(0,fa.A)(Na,Oa,this,e),this._render()}get notRender(){return(0,l.A)(Na,this,Fa)}get $bindFormItem(){return(0,l.A)(Na,this,$a)}set $bindFormItem(e){(0,fa.A)(Na,ja,this,e),this._render()}get helpBrick(){return(0,h.A)(Pa,this)}set helpBrick(e){(0,o.A)(Pa,this,e)}get labelBrick(){return(0,h.A)(Ka,this)}set labelBrick(e){(0,o.A)(Ka,this,e)}get labelCol(){return(0,h.A)(Ta,this)}set labelCol(e){(0,o.A)(Ta,this,e)}get wrapperCol(){return(0,h.A)(Ua,this)}set wrapperCol(e){(0,o.A)(Ua,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function Fa(e){return(0,h.A)(Ia,e)}function Oa(e,t){(0,o.A)(Ia,e,t)}function Ha(e){return(0,h.A)(Ba,e)}function qa(e,t){(0,o.A)(Ba,e,t)}function $a(e){return(0,h.A)(Da,e)}function ja(e,t){(0,o.A)(Da,e,t)}wa=La,[xa,va,Ca,Ea,Sa,Wa,Ma,za,ka]=(0,d.A)(wa,[],[[_a({attribute:!1}),1,"helpBrick"],[_a({attribute:!1}),1,"labelBrick"],[_a({attribute:!1}),1,"labelCol"],[_a({attribute:!1}),1,"wrapperCol"],[Ra(),2,"setNotRender"],[Ra(),2,"getFormElement"]],0,void 0,g.ReactNextElement).e;var Qa,Za=i(71058);let Va,Xa,Ga,Ya,Ja,es,ts,is,as,ss,rs,ns,ls,os,hs,ds,cs,ps,us,gs,ms,As,ws,bs,ys,fs,ks,xs,vs,Cs,Es,Ss,Ws,Ms,zs,Rs,_s,Is,Ns,Bs,Ds;const{defineElement:Ps,property:Ks,event:Ts}=(0,u.createDecorators)(),Us=(0,g.wrapBrick)("eo-icon"),Ls=(0,g.wrapBrick)("eo-form-item");let Fs;var Os=new WeakMap,Hs=new WeakMap,qs=new WeakMap,$s=new WeakMap,js=new WeakMap,Qs=new WeakMap,Zs=new WeakMap,Vs=new WeakMap,Xs=new WeakMap,Gs=new WeakMap,Ys=new WeakMap,Js=new WeakMap,er=new WeakMap,tr=new WeakMap,ir=new WeakMap,ar=new WeakMap,sr=new WeakMap,rr=new WeakMap,nr=new WeakMap,lr=new WeakSet;function or(e){const{shadowRoot:t,options:i,fieldNames:a,value:s,placeholder:r,disabled:n,multiple:l,allowClear:o,showSearch:h,expandTrigger:d,size:u,limit:g,popupPlacement:m,cascaderStyle:A,suffixIcon:w,maxTagCount:b,onChange:y}=e,k=(0,B.useCurrentTheme)(),x=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===k?ba.A.darkAlgorithm:ba.A.defaultAlgorithm}},p().createElement(D.N7,{container:t,cache:x},p().createElement(ya.A,{getPopupContainer:e=>e.parentElement,allowClear:o,disabled:n,multiple:l,expandTrigger:d,fieldNames:a,placeholder:r,size:u,showSearch:h&&{limit:g,filter:(e,t)=>{const i=(null==a?void 0:a.label)||"label",s=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase()));for(let e=0;e<s.length;e++)if(!t.some((t=>t[i].toLowerCase().includes(s[e]))))return!1;return!0}},placement:m,style:A,suffixIcon:w&&p().createElement(Us,w),maxTagCount:b,value:s,options:i,onChange:(e,t)=>null==y?void 0:y(e,t)})))}Qa=class extends La{constructor(){super(...arguments),(0,s.A)(this,lr),(0,r.A)(this,Os,Xa(this)),(0,r.A)(this,Hs,(Ga(this),Ya(this))),(0,r.A)(this,qs,(Ja(this),es(this))),(0,r.A)(this,$s,(ts(this),is(this))),(0,r.A)(this,js,(as(this),ss(this,{label:"label",value:"value",children:"children"}))),(0,r.A)(this,Qs,(rs(this),ns(this))),(0,r.A)(this,Zs,(ls(this),os(this))),(0,r.A)(this,Vs,(hs(this),ds(this))),(0,r.A)(this,Xs,(cs(this),ps(this))),(0,r.A)(this,Gs,(us(this),gs(this,!0))),(0,r.A)(this,Ys,(ms(this),As(this,!0))),(0,r.A)(this,Js,(ws(this),bs(this))),(0,r.A)(this,er,(ys(this),fs(this,"click"))),(0,r.A)(this,tr,(ks(this),xs(this,"bottomLeft"))),(0,r.A)(this,ir,(vs(this),Cs(this))),(0,r.A)(this,ar,(Es(this),Ss(this,50))),(0,r.A)(this,sr,(Ws(this),Ms(this))),(0,r.A)(this,rr,(zs(this),Rs(this))),(0,r.A)(this,nr,(_s(this),Is(this))),(0,a.A)(this,"handleOnChange",(Ds(this),(e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,l.A)(lr,this,Ns).emit({value:e,selectedOptions:t})}))}))}get name(){return(0,h.A)(Os,this)}set name(e){(0,o.A)(Os,this,e)}get label(){return(0,h.A)(Hs,this)}set label(e){(0,o.A)(Hs,this,e)}get required(){return(0,h.A)(qs,this)}set required(e){(0,o.A)(qs,this,e)}get options(){return(0,h.A)($s,this)}set options(e){(0,o.A)($s,this,e)}get fieldNames(){return(0,h.A)(js,this)}set fieldNames(e){(0,o.A)(js,this,e)}get value(){return(0,h.A)(Qs,this)}set value(e){(0,o.A)(Qs,this,e)}get placeholder(){return(0,h.A)(Zs,this)}set placeholder(e){(0,o.A)(Zs,this,e)}get multiple(){return(0,h.A)(Vs,this)}set multiple(e){(0,o.A)(Vs,this,e)}get disabled(){return(0,h.A)(Xs,this)}set disabled(e){(0,o.A)(Xs,this,e)}get allowClear(){return(0,h.A)(Gs,this)}set allowClear(e){(0,o.A)(Gs,this,e)}get showSearch(){return(0,h.A)(Ys,this)}set showSearch(e){(0,o.A)(Ys,this,e)}get suffixIcon(){return(0,h.A)(Js,this)}set suffixIcon(e){(0,o.A)(Js,this,e)}get expandTrigger(){return(0,h.A)(er,this)}set expandTrigger(e){(0,o.A)(er,this,e)}get popupPlacement(){return(0,h.A)(tr,this)}set popupPlacement(e){(0,o.A)(tr,this,e)}get size(){return(0,h.A)(ir,this)}set size(e){(0,o.A)(ir,this,e)}get limit(){return(0,h.A)(ar,this)}set limit(e){(0,o.A)(ar,this,e)}get maxTagCount(){return(0,h.A)(sr,this)}set maxTagCount(e){(0,o.A)(sr,this,e)}get cascaderStyle(){return(0,h.A)(rr,this)}set cascaderStyle(e){(0,o.A)(rr,this,e)}render(){return p().createElement(Ls,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(or,{shadowRoot:this.shadowRoot,options:this.options,fieldNames:this.fieldNames,value:this.value,multiple:this.multiple,placeholder:this.placeholder,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,expandTrigger:this.expandTrigger,suffixIcon:this.suffixIcon,size:this.size,limit:this.limit,popupPlacement:this.popupPlacement,maxTagCount:this.maxTagCount,cascaderStyle:this.cascaderStyle,onChange:this.handleOnChange}))}},({e:[Xa,Ga,Ya,Ja,es,ts,is,as,ss,rs,ns,ls,os,hs,ds,cs,ps,us,gs,ms,As,ws,bs,ys,fs,ks,xs,vs,Cs,Es,Ss,Ws,Ms,zs,Rs,_s,Is,Ns,Bs,Ds],c:[Fs,Va]}=(0,d.A)(Qa,[Ps("eo-cascader",{alias:["advanced.general-cascader"],styleTexts:[Za.A]})],[[Ks(),1,"name"],[Ks(),1,"label"],[Ks({type:Boolean}),1,"required"],[Ks({attribute:!1}),1,"options"],[Ks({attribute:!1}),1,"fieldNames"],[Ks({attribute:!1}),1,"value"],[Ks(),1,"placeholder"],[Ks({type:Boolean}),1,"multiple"],[Ks({type:Boolean}),1,"disabled"],[Ks({type:Boolean}),1,"allowClear"],[Ks({type:Boolean}),1,"showSearch"],[Ks({attribute:!1}),1,"suffixIcon"],[Ks(),1,"expandTrigger"],[Ks(),1,"popupPlacement"],[Ks(),1,"size"],[Ks({type:Number}),1,"limit"],[Ks({attribute:!1}),1,"maxTagCount"],[Ks({attribute:!1}),1,"cascaderStyle"],[Ts({type:"cascader.change"}),1,"changeEvent",e=>(0,h.A)(nr,e),(e,t)=>(0,o.A)(nr,e,t)]],0,(e=>lr.has((0,n.A)(e))),La)),Va();var hr,dr=i(81634),cr=i(49385);let pr,ur,gr,mr,Ar,wr,br,yr,fr,kr,xr,vr,Cr,Er,Sr,Wr,Mr,zr,Rr,_r,Ir,Nr,Br,Dr,Pr,Kr,Tr,Ur,Lr,Fr,Or,Hr,qr,$r,jr,Qr,Zr,Vr,Xr,Gr,Yr,Jr,en,tn,an,sn,rn,nn,ln,on,hn,dn,cn,pn,un,gn,mn,An,wn,bn,yn,fn,kn,xn,vn,Cn,En,Sn,Wn,Mn,zn,Rn;i(34612);const{defineElement:_n,property:In,method:Nn,event:Bn}=(0,u.createDecorators)();let Dn;var Pn=new WeakMap,Kn=new WeakMap,Tn=new WeakMap,Un=new WeakMap,Ln=new WeakMap,Fn=new WeakMap,On=new WeakMap,Hn=new WeakMap,qn=new WeakMap,$n=new WeakMap,jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,Xn=new WeakMap,Gn=new WeakMap,Yn=new WeakMap,Jn=new WeakMap,el=new WeakMap,tl=new WeakMap,il=new WeakMap,al=new WeakMap,sl=new WeakMap,rl=new WeakMap,nl=new WeakSet,ll=new WeakMap,ol=new WeakMap,hl=new WeakMap,dl=new WeakMap,cl=new WeakMap,pl=new WeakMap,ul=new WeakMap,gl=new WeakMap,ml=new WeakMap,Al=new WeakMap,wl=new WeakMap,bl=new WeakMap,yl=new WeakMap;class fl extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,nl),(0,r.A)(this,Pn,(pr(this),(0,c.createRef)())),(0,r.A)(this,Kn,gr(this,"key")),(0,r.A)(this,Tn,(mr(this),Ar(this))),(0,r.A)(this,Un,(wr(this),br(this))),(0,r.A)(this,Ln,(yr(this),fr(this))),(0,r.A)(this,Fn,(kr(this),xr(this))),(0,r.A)(this,On,(vr(this),Cr(this))),(0,r.A)(this,Hn,(Er(this),Sr(this))),(0,r.A)(this,qn,(Wr(this),Mr(this))),(0,r.A)(this,$n,(zr(this),Rr(this))),(0,r.A)(this,jn,(_r(this),Ir(this))),(0,r.A)(this,Qn,(Nr(this),Br(this))),(0,r.A)(this,Zn,(Dr(this),Pr(this))),(0,r.A)(this,Vn,(Kr(this),Tr(this))),(0,r.A)(this,Xn,(Ur(this),Lr(this))),(0,r.A)(this,Gn,(Fr(this),Or(this,"children"))),(0,r.A)(this,Yn,(Hr(this),qr(this))),(0,r.A)(this,Jn,($r(this),jr(this))),(0,r.A)(this,el,(Qr(this),Zr(this,"large"))),(0,r.A)(this,tl,(Vr(this),Xr(this,!0))),(0,r.A)(this,il,void Gr(this)),(0,r.A)(this,al,Yr(this,{x:!0})),(0,r.A)(this,sl,(Jr(this),en(this))),(0,r.A)(this,rl,(tn(this),an(this))),(0,r.A)(this,ll,(nn(this),e=>{(0,l.A)(nl,this,sn).emit(e)})),(0,r.A)(this,ol,ln(this)),(0,r.A)(this,hl,(dn(this),e=>{(0,l.A)(nl,this,on).emit(e)})),(0,r.A)(this,dl,cn(this)),(0,r.A)(this,cl,(gn(this),e=>{(0,l.A)(nl,this,pn).emit(e)})),(0,r.A)(this,pl,mn(this)),(0,r.A)(this,ul,(bn(this),e=>{(0,l.A)(nl,this,An).emit(e)})),(0,r.A)(this,gl,yn(this)),(0,r.A)(this,ml,(xn(this),e=>{(0,l.A)(nl,this,fn).emit(e)})),(0,r.A)(this,Al,vn(this)),(0,r.A)(this,wl,(Sn(this),e=>{(0,l.A)(nl,this,Cn).emit(e)})),(0,r.A)(this,bl,Wn(this)),(0,r.A)(this,yl,(Rn(this),e=>{(0,l.A)(nl,this,Mn).emit(e)}))}get rowKey(){return(0,h.A)(Kn,this)}set rowKey(e){(0,o.A)(Kn,this,e)}get columns(){return(0,h.A)(Tn,this)}set columns(e){(0,o.A)(Tn,this,e)}get cell(){return(0,h.A)(Un,this)}set cell(e){(0,o.A)(Un,this,e)}get dataSource(){return(0,h.A)(Ln,this)}set dataSource(e){(0,o.A)(Ln,this,e)}get frontSearch(){return(0,h.A)(Fn,this)}set frontSearch(e){(0,o.A)(Fn,this,e)}get pagination(){return(0,h.A)(On,this)}set pagination(e){(0,o.A)(On,this,e)}get loading(){return(0,h.A)(Hn,this)}set loading(e){(0,o.A)(Hn,this,e)}get multiSort(){return(0,h.A)(qn,this)}set multiSort(e){(0,o.A)(qn,this,e)}get sort(){return(0,h.A)($n,this)}set sort(e){(0,o.A)($n,this,e)}get rowSelection(){return(0,h.A)(jn,this)}set rowSelection(e){(0,o.A)(jn,this,e)}get selectedRowKeys(){return(0,h.A)(Qn,this)}set selectedRowKeys(e){(0,o.A)(Qn,this,e)}get hiddenColumns(){return(0,h.A)(Zn,this)}set hiddenColumns(e){(0,o.A)(Zn,this,e)}get expandable(){return(0,h.A)(Vn,this)}set expandable(e){(0,o.A)(Vn,this,e)}get expandedRowKeys(){return(0,h.A)(Xn,this)}set expandedRowKeys(e){(0,o.A)(Xn,this,e)}get childrenColumnName(){return(0,h.A)(Gn,this)}set childrenColumnName(e){(0,o.A)(Gn,this,e)}get rowDraggable(){return(0,h.A)(Yn,this)}set rowDraggable(e){(0,o.A)(Yn,this,e)}get searchFields(){return(0,h.A)(Jn,this)}set searchFields(e){(0,o.A)(Jn,this,e)}get size(){return(0,h.A)(el,this)}set size(e){(0,o.A)(el,this,e)}get showHeader(){return(0,h.A)(tl,this)}set showHeader(e){(0,o.A)(tl,this,e)}get bordered(){return(0,h.A)(il,this)}set bordered(e){(0,o.A)(il,this,e)}get scrollConfig(){return(0,h.A)(al,this)}set scrollConfig(e){(0,o.A)(al,this,e)}get optimizedColumns(){return(0,h.A)(sl,this)}set optimizedColumns(e){(0,o.A)(sl,this,e)}search(e){var t;null===(t=(0,h.A)(Pn,this).current)||void 0===t||t.search(e)}render(){return p().createElement(cr.F,{ref:(0,h.A)(Pn,this),shadowRoot:this.shadowRoot,rowKey:this.rowKey,columns:this.columns,cell:this.cell,dataSource:this.dataSource,frontSearch:this.frontSearch,pagination:this.pagination,loading:this.loading,multiSort:this.multiSort,sort:this.sort,rowSelection:this.rowSelection,selectedRowKeys:this.selectedRowKeys,hiddenColumns:this.hiddenColumns,expandable:this.expandable,expandedRowKeys:this.expandedRowKeys,childrenColumnName:this.childrenColumnName,rowDraggable:this.rowDraggable,searchFields:this.searchFields,size:this.size,showHeader:this.showHeader,bordered:this.bordered,scrollConfig:this.scrollConfig,optimizedColumns:this.optimizedColumns,onPageChange:(0,h.A)(ll,this),onPageSizeChange:(0,h.A)(hl,this),onSort:(0,h.A)(cl,this),onRowSelect:(0,h.A)(ul,this),onRowExpand:(0,h.A)(ml,this),onExpandedRowsChange:(0,h.A)(wl,this),onRowDrag:(0,h.A)(yl,this)})}}hr=fl,({e:[gr,mr,Ar,wr,br,yr,fr,kr,xr,vr,Cr,Er,Sr,Wr,Mr,zr,Rr,_r,Ir,Nr,Br,Dr,Pr,Kr,Tr,Ur,Lr,Fr,Or,Hr,qr,$r,jr,Qr,Zr,Vr,Xr,Gr,Yr,Jr,en,tn,an,sn,rn,nn,ln,on,hn,dn,cn,pn,un,gn,mn,An,wn,bn,yn,fn,kn,xn,vn,Cn,En,Sn,Wn,Mn,zn,Rn,pr],c:[Dn,ur]}=(0,d.A)(hr,[_n("eo-next-table",{styleTexts:[dr.A]})],[[In(),1,"rowKey"],[In({attribute:!1}),1,"columns"],[In({attribute:!1}),1,"cell"],[In({attribute:!1}),1,"dataSource"],[In({type:Boolean}),1,"frontSearch"],[In({attribute:!1}),1,"pagination"],[In({type:Boolean}),1,"loading"],[In({type:Boolean}),1,"multiSort"],[In({attribute:!1}),1,"sort"],[In({attribute:!1}),1,"rowSelection"],[In({attribute:!1}),1,"selectedRowKeys"],[In({attribute:!1}),1,"hiddenColumns"],[In({attribute:!1}),1,"expandable"],[In({attribute:!1}),1,"expandedRowKeys"],[In(),1,"childrenColumnName"],[In({type:Boolean}),1,"rowDraggable"],[In({attribute:!1}),1,"searchFields"],[In(),1,"size"],[In({type:Boolean}),1,"showHeader"],[In({attribute:!1}),1,"scrollConfig"],[In({attribute:!1}),1,"optimizedColumns"],[Nn(),2,"search"],[Bn({type:"page.change"}),1,"pageChangeEvent",e=>(0,h.A)(rl,e),(e,t)=>(0,o.A)(rl,e,t)],[Bn({type:"page.size.change"}),1,"pageSizeChangeEvent",e=>(0,h.A)(ol,e),(e,t)=>(0,o.A)(ol,e,t)],[Bn({type:"sort.change"}),1,"sortChangeEvent",e=>(0,h.A)(dl,e),(e,t)=>(0,o.A)(dl,e,t)],[Bn({type:"row.select"}),1,"rowSelectEvent",e=>(0,h.A)(pl,e),(e,t)=>(0,o.A)(pl,e,t)],[Bn({type:"row.expand"}),1,"rowExpandEvent",e=>(0,h.A)(gl,e),(e,t)=>(0,o.A)(gl,e,t)],[Bn({type:"expanded.rows.change"}),1,"expandedRowsChangeEvent",e=>(0,h.A)(Al,e),(e,t)=>(0,o.A)(Al,e,t)],[Bn({type:"row.drag"}),1,"rowDragEvent",e=>(0,h.A)(bl,e),(e,t)=>(0,o.A)(bl,e,t)]],0,(e=>yl.has((0,n.A)(e))),g.ReactNextElement)),ur();var kl,xl=i(52681),vl=i(6055),Cl=i(45833),El=i(91116);let Sl,Wl,Ml,zl,Rl,_l,Il,Nl,Bl,Dl,Pl,Kl,Tl,Ul,Ll,Fl,Ol,Hl,ql,$l,jl,Ql,Zl,Vl,Xl,Gl;const{defineElement:Yl,property:Jl,event:eo,method:to}=(0,u.createDecorators)(),io=(0,g.wrapBrick)("eo-button"),ao=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),so=(0,g.wrapBrick)("eo-icon"),ro=(0,g.wrapBrick)("eo-checkbox",{onChange:"change"}),no=(0,xl.unwrapProvider)("basic.show-dialog"),lo=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:oo}=vl.auth.getAuth(),ho=(0,c.forwardRef)((function(e,t){let{cardTitle:i="卡片列表",layouts:a,componentList:s=[],isEdit:r,onChange:n,onSave:l,onCancel:o,onActionClick:h}=e;const d=(0,c.useMemo)((()=>(0,Cl.WidthProvider)(Cl.Responsive)),[]),u=(0,c.useRef)(null),g=(0,c.useRef)(null),m=(0,c.useRef)(null!=a?a:[]),[A,w]=(0,c.useState)(m.current),[b,y]=(0,c.useState)(3),[f,k]=(0,c.useState)(),x=(0,c.useCallback)((e=>{m.current=e,w(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:x})));const v=(0,c.useCallback)((e=>{x(e),null==n||n(e)}),[n,x]),C=(0,c.useCallback)((e=>{if(!r)return;let t=!0;for(let a=0;a<e.length;a++){const{x:s,w:r,y:n,h:l,i:o,minH:h}=e[a];if(r>1&&s>0){t=!1;break}if(1===r&&s<2){const t=e.find((e=>e.i!==o&&1===e.w&&e.y===n&&s<2));var i;t&&(e[a].minH=null!==(i=e[a].minH)&&void 0!==i?i:l,e[a].h=Math.max(t.h,l))}else e[a].h=null!=h?h:l,e[a].minH=void 0}v(t?e:m.current.map((e=>{const{w:t,i}=e,a=`${lo(i)}:${Math.random()}`;let s=e.x;return t>1&&s>0&&(s=0),{...e,x:s,i:a}})))}),[v,r]),E=(0,c.useCallback)((e=>{const t=e.detail.map((e=>e.value)),i=A.map((e=>lo(e.i))),a=e.detail.filter((e=>!i.includes(e.key))).map((e=>({...e.position,x:e.w>1?0:2*A.length%b,y:1/0})));v(A.filter((e=>t.includes(lo(e.i)))).concat(a))}),[A,v,b]),S=()=>{v([])},W=(0,c.useCallback)((()=>{null==l||l(A.map((e=>({...e,i:lo(e.i)}))))}),[A,l]),M=(0,c.useCallback)(((e,t)=>{var i;e.stopPropagation(),v(null!==(i=A.filter((e=>lo(e.i)!==t.key)))&&void 0!==i?i:[])}),[v,A]),z=e=>{e.preventDefault()},R=(0,c.useMemo)((()=>A.map((e=>{var t;const i=s.find((t=>t.key===lo(e.i)));return i?p().createElement("div",{key:e.i,"data-grid":{...null!==(t=i.position)&&void 0!==t?t:{},...e},style:i.style,className:"drag-box"},r&&p().createElement("div",{className:"edit-mask",onMouseDown:z}),p().createElement(B.ReactUseBrick,{useBrick:i.useBrick}),r&&p().createElement(so,{icon:"delete",lib:"antd",className:"delete-icon",onClick:e=>M(e,i)})):null})).filter(Boolean)),[s,M,A,r]),_=(0,c.useMemo)((()=>s.map((e=>({...e,label:e.title,value:e.key})))),[s]),I=(0,c.useMemo)((()=>A.map((e=>lo(e.i)))),[A]),N=(0,c.useCallback)((()=>{if(g&&r){var e,t;const{top:i}=null!==(e=null===(t=g.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==i&&k({height:document.body.clientHeight-i,overflow:"scroll"})}}),[r]);return(0,c.useEffect)((()=>{if(r)return N(),x(a||[]),window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}}),[r,N,a,x]),p().createElement("div",{className:"grid-layout-wrapper",ref:u},r&&p().createElement("div",{className:"component-wrapper"},p().createElement("div",{className:"component-title"},i),p().createElement("div",{className:"component-list"},p().createElement(ro,{options:_,value:I,onChange:E}),p().createElement("slot",{name:"toolbar"}))),p().createElement("div",{className:"layout-wrapper",ref:g,style:f},r&&p().createElement("div",{className:"actions-wrapper"},p().createElement(io,{type:"primary",onClick:W},"保存"),p().createElement(io,{onClick:()=>{null==o||o()}},"取消"),p().createElement(ao,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...oo?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?no({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(S):null==h||h(e,(null!=A?A:[]).map((e=>({...e,i:lo(e.i)}))))})(e.detail)},"data-testid":"edit-layout-actions"})),p().createElement(d,{className:"layout",draggableCancel:".delete-icon,.edit-actions,.ignore-item",breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:r?3:1},isResizable:!1,isDraggable:r,onDrag:(e,t,i)=>{var a;const s=null===(a=u.current)||void 0===a?void 0:a.querySelector(".react-grid-placeholder");s&&(i.w>1&&i.x>0?!s.classList.contains("forbidden")&&s.classList.add("forbidden"):s.classList.contains("forbidden")&&s.classList.remove("forbidden"))},onLayoutChange:C,onBreakpointChange:(e,t)=>{y(t)}},R)))}));let co;var po=new WeakMap,uo=new WeakMap,go=new WeakMap,mo=new WeakMap,Ao=new WeakMap,wo=new WeakMap,bo=new WeakSet,yo=new WeakMap,fo=new WeakMap,ko=new WeakMap,xo=new WeakMap,vo=new WeakMap,Co=new WeakMap,Eo=new WeakMap;class So extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,bo),(0,r.A)(this,po,(Sl(this),(0,c.createRef)())),(0,r.A)(this,uo,Ml(this)),(0,r.A)(this,go,(zl(this),Rl(this))),(0,r.A)(this,mo,(_l(this),Il(this))),(0,r.A)(this,Ao,(Nl(this),Bl(this))),(0,r.A)(this,wo,(Dl(this),Pl(this))),(0,r.A)(this,yo,(Ul(this),e=>{(0,l.A)(bo,this,Kl).emit(e)})),(0,r.A)(this,fo,Ll(this)),(0,r.A)(this,ko,(Hl(this),e=>{(0,l.A)(bo,this,Fl).emit(e)})),(0,r.A)(this,xo,ql(this)),(0,r.A)(this,vo,(Ql(this),()=>{(0,l.A)(bo,this,$l).emit()})),(0,r.A)(this,Co,Zl(this)),(0,r.A)(this,Eo,(Gl(this),(e,t)=>{(0,l.A)(bo,this,Vl).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(uo,this)}set cardTitle(e){(0,o.A)(uo,this,e)}get isEdit(){return(0,h.A)(go,this)}set isEdit(e){(0,o.A)(go,this,e)}get layouts(){return(0,h.A)(mo,this)}set layouts(e){(0,o.A)(mo,this,e)}get componentList(){return(0,h.A)(Ao,this)}set componentList(e){(0,o.A)(Ao,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(po,this).current)||void 0===t||t.setLayouts(e)}render(){return p().createElement(ho,{cardTitle:this.cardTitle,layouts:this.layouts,componentList:this.componentList,isEdit:this.isEdit,onChange:(0,h.A)(yo,this),onSave:(0,h.A)(ko,this),onCancel:(0,h.A)(vo,this),onActionClick:(0,h.A)(Eo,this),ref:(0,h.A)(po,this)})}}kl=So,({e:[Ml,zl,Rl,_l,Il,Nl,Bl,Dl,Pl,Kl,Tl,Ul,Ll,Fl,Ol,Hl,ql,$l,jl,Ql,Zl,Vl,Xl,Gl,Sl],c:[co,Wl]}=(0,d.A)(kl,[Yl("eo-workbench-layout",{styleTexts:[El.A]})],[[Jl(),1,"cardTitle"],[Jl({type:Boolean}),1,"isEdit"],[Jl({attribute:!1}),1,"layouts"],[Jl({attribute:!1}),1,"componentList"],[eo({type:"change"}),1,"changeEvent",e=>(0,h.A)(wo,e),(e,t)=>(0,o.A)(wo,e,t)],[eo({type:"save"}),1,"saveEvent",e=>(0,h.A)(fo,e),(e,t)=>(0,o.A)(fo,e,t)],[eo({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(xo,e),(e,t)=>(0,o.A)(xo,e,t)],[eo({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)(Co,e),(e,t)=>(0,o.A)(Co,e,t)],[to(),2,"setLayouts"]],0,(e=>Eo.has((0,n.A)(e))),g.ReactNextElement)),Wl();var Wo=i(72591),Mo=i.n(Wo),zo=i(1740),Ro=i.n(zo),_o=i(88128),Io=i.n(_o),No=i(30855),Bo=i.n(No),Do=i(93051),Po=i.n(Do),Ko=i(73656),To=i.n(Ko),Uo=i(89739),Lo={};Lo.styleTagTransform=To(),Lo.setAttributes=Bo(),Lo.insert=Io().bind(null,"head"),Lo.domAPI=Ro(),Lo.insertStyleElement=Po(),Mo()(Uo.A,Lo);const Fo=Uo.A&&Uo.A.locals?Uo.A.locals:void 0;var Oo,Ho=i(85689),qo={};let $o,jo,Qo,Zo,Vo,Xo,Go,Yo,Jo,eh,th,ih,ah,sh,rh,nh,lh,oh,hh,dh,ch,ph,uh,gh,mh,Ah,wh,bh;qo.styleTagTransform=To(),qo.setAttributes=Bo(),qo.insert=Io().bind(null,"head"),qo.domAPI=Ro(),qo.insertStyleElement=Po(),Mo()(Ho.A,qo),Ho.A&&Ho.A.locals&&Ho.A.locals;const{defineElement:yh,property:fh,event:kh,method:xh}=(0,u.createDecorators)(),vh=(0,g.wrapBrick)("eo-button"),Ch=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),Eh=(0,g.wrapBrick)("eo-icon"),Sh=(0,g.wrapBrick)("eo-checkbox",{onChange:"change"}),Wh=(0,xl.unwrapProvider)("basic.show-dialog"),Mh=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:zh}=vl.auth.getAuth(),Rh=(0,c.forwardRef)((function(e,t){let{cardTitle:i="卡片列表",layouts:a,toolbarBricks:s,componentList:r=[],isEdit:n,onChange:l,onSave:o,onCancel:h,onActionClick:d}=e;const u=(0,c.useMemo)((()=>(0,Cl.WidthProvider)(Cl.Responsive)),[]),g=(0,c.useRef)(null),m=(0,c.useRef)(null),A=(0,c.useRef)(null!=a?a:[]),[w,b]=(0,c.useState)(A.current),[y,f]=(0,c.useState)(3),[k,x]=(0,c.useState)(),v=(0,c.useCallback)((e=>{A.current=e,b(e)}),[]);(0,c.useImperativeHandle)(t,(()=>({setLayouts:v})));const C=(0,c.useCallback)((e=>{v(e),null==l||l(e)}),[l,v]),E=(0,c.useCallback)((e=>{if(!n)return;let t=!0;for(let a=0;a<e.length;a++){const{x:s,w:r,y:n,h:l,i:o,minH:h}=e[a];if(r>1&&s>0){t=!1;break}if(1===r&&s<2){const t=e.find((e=>e.i!==o&&1===e.w&&e.y===n&&s<2));var i;t&&(e[a].minH=null!==(i=e[a].minH)&&void 0!==i?i:l,e[a].h=Math.max(t.h,l))}else e[a].h=null!=h?h:l,e[a].minH=void 0}C(t?e:A.current.map((e=>{const{w:t,i}=e,a=`${Mh(i)}:${Math.random()}`;let s=e.x;return t>1&&s>0&&(s=0),{...e,x:s,i:a}})))}),[C,n]),S=(0,c.useCallback)((e=>{const t=e.detail.map((e=>e.value)),i=w.map((e=>Mh(e.i))),a=e.detail.filter((e=>!i.includes(e.key))).map((e=>({...e.position,x:e.w>1?0:2*w.length%y,y:1/0})));C(w.filter((e=>t.includes(Mh(e.i)))).concat(a))}),[w,C,y]),W=()=>{C([])},M=(0,c.useCallback)((()=>{null==o||o(w.map((e=>({...e,i:Mh(e.i)}))))}),[w,o]),z=(0,c.useCallback)(((e,t)=>{var i;e.stopPropagation(),C(null!==(i=w.filter((e=>Mh(e.i)!==t.key)))&&void 0!==i?i:[])}),[C,w]),R=e=>{e.preventDefault()},_=(0,c.useMemo)((()=>w.map((e=>{var t;const i=r.find((t=>t.key===Mh(e.i)));return i?p().createElement("div",{key:e.i,"data-grid":{...null!==(t=i.position)&&void 0!==t?t:{},...e},style:i.style,className:"drag-box"},n&&p().createElement("div",{className:Fo.editMask,onMouseDown:R}),p().createElement(B.ReactUseBrick,{useBrick:i.useBrick}),n&&p().createElement(Eh,{icon:"delete",lib:"antd",className:Fo.deleteIcon,onClick:e=>z(e,i)})):null})).filter(Boolean)),[r,z,w,n]),I=(0,c.useMemo)((()=>r.map((e=>({...e,label:e.title,value:e.key})))),[r]),N=(0,c.useMemo)((()=>w.map((e=>Mh(e.i)))),[w]),D=(0,c.useCallback)((()=>{if(m&&n){var e,t;const{top:i}=null!==(e=null===(t=m.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==i&&x({height:document.body.clientHeight-i,overflow:"scroll"})}}),[n]);return(0,c.useEffect)((()=>{if(n)return D(),v(a||[]),window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D)}}),[n,D,a,v]),p().createElement("div",{className:Fo.gridLayoutWrapper,ref:g},n&&p().createElement("div",{className:Fo.componentWrapper},p().createElement("div",{className:Fo.componentTitle},i),p().createElement("div",{className:Fo.componentList},p().createElement(Sh,{options:I,value:N,onChange:S}),(null==s?void 0:s.useBrick)&&p().createElement(B.ReactUseMultipleBricks,{useBrick:s.useBrick}))),p().createElement("div",{className:Fo.layoutWrapper,ref:m,style:k},n&&p().createElement("div",{className:Fo.actionsWrapper},p().createElement(vh,{type:"primary",onClick:M},"保存"),p().createElement(vh,{onClick:()=>{null==h||h()}},"取消"),p().createElement(Ch,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...zh?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?Wh({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(W):null==d||d(e,(null!=w?w:[]).map((e=>({...e,i:Mh(e.i)}))))})(e.detail)},"data-testid":"edit-layout-actions"})),p().createElement(u,{className:Fo.layout,draggableCancel:`.${Fo.deleteIcon},.edit-actions,.ignore-item`,breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:n?3:1},isResizable:!1,isDraggable:n,onDrag:(e,t,i)=>{var a;const s=null===(a=g.current)||void 0===a?void 0:a.querySelector(".react-grid-placeholder");s&&(i.w>1&&i.x>0?!s.classList.contains("forbidden")&&s.classList.add("forbidden"):s.classList.contains("forbidden")&&s.classList.remove("forbidden"))},onLayoutChange:E,onBreakpointChange:(e,t)=>{f(t)}},_)))}));let _h;var Ih=new WeakMap,Nh=new WeakMap,Bh=new WeakMap,Dh=new WeakMap,Ph=new WeakMap,Kh=new WeakMap,Th=new WeakMap,Uh=new WeakSet,Lh=new WeakMap,Fh=new WeakMap,Oh=new WeakMap,Hh=new WeakMap,qh=new WeakMap,$h=new WeakMap,jh=new WeakMap;class Qh extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Uh),(0,r.A)(this,Ih,($o(this),(0,c.createRef)())),(0,r.A)(this,Nh,Qo(this)),(0,r.A)(this,Bh,(Zo(this),Vo(this))),(0,r.A)(this,Dh,(Xo(this),Go(this))),(0,r.A)(this,Ph,(Yo(this),Jo(this))),(0,r.A)(this,Kh,(eh(this),th(this))),(0,r.A)(this,Th,(ih(this),ah(this))),(0,r.A)(this,Lh,(nh(this),e=>{(0,l.A)(Uh,this,sh).emit(e)})),(0,r.A)(this,Fh,lh(this)),(0,r.A)(this,Oh,(dh(this),e=>{(0,l.A)(Uh,this,oh).emit(e)})),(0,r.A)(this,Hh,ch(this)),(0,r.A)(this,qh,(gh(this),()=>{(0,l.A)(Uh,this,ph).emit()})),(0,r.A)(this,$h,mh(this)),(0,r.A)(this,jh,(bh(this),(e,t)=>{(0,l.A)(Uh,this,Ah).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,h.A)(Nh,this)}set cardTitle(e){(0,o.A)(Nh,this,e)}get isEdit(){return(0,h.A)(Bh,this)}set isEdit(e){(0,o.A)(Bh,this,e)}get layouts(){return(0,h.A)(Dh,this)}set layouts(e){(0,o.A)(Dh,this,e)}get toolbarBricks(){return(0,h.A)(Ph,this)}set toolbarBricks(e){(0,o.A)(Ph,this,e)}get componentList(){return(0,h.A)(Kh,this)}set componentList(e){(0,o.A)(Kh,this,e)}setLayouts(e){var t;null===(t=(0,h.A)(Ih,this).current)||void 0===t||t.setLayouts(e)}connectedCallback(){this.style.display||(this.style.display="block"),super.connectedCallback()}render(){return p().createElement(Rh,{cardTitle:this.cardTitle,layouts:this.layouts,toolbarBricks:this.toolbarBricks,componentList:this.componentList,isEdit:this.isEdit,onChange:(0,h.A)(Lh,this),onSave:(0,h.A)(Oh,this),onCancel:(0,h.A)(qh,this),onActionClick:(0,h.A)(jh,this),ref:(0,h.A)(Ih,this)})}}Oo=Qh,({e:[Qo,Zo,Vo,Xo,Go,Yo,Jo,eh,th,ih,ah,sh,rh,nh,lh,oh,hh,dh,ch,ph,uh,gh,mh,Ah,wh,bh,$o],c:[_h,jo]}=(0,d.A)(Oo,[yh("eo-workbench-layout-v2",{shadowOptions:!1})],[[fh(),1,"cardTitle"],[fh({type:Boolean}),1,"isEdit"],[fh({attribute:!1}),1,"layouts"],[fh({attribute:!1}),1,"toolbarBricks"],[fh({attribute:!1}),1,"componentList"],[kh({type:"change"}),1,"changeEvent",e=>(0,h.A)(Th,e),(e,t)=>(0,o.A)(Th,e,t)],[kh({type:"save"}),1,"saveEvent",e=>(0,h.A)(Fh,e),(e,t)=>(0,o.A)(Fh,e,t)],[kh({type:"cancel"}),1,"cancelEvent",e=>(0,h.A)(Hh,e),(e,t)=>(0,o.A)(Hh,e,t)],[kh({type:"action.click"}),1,"actionClickEvent",e=>(0,h.A)($h,e),(e,t)=>(0,o.A)($h,e,t)],[xh(),2,"setLayouts"]],0,(e=>jh.has((0,n.A)(e))),g.ReactNextElement)),jo();var Zh=i(59171),Vh=i(28317),Xh=i.n(Vh);function Gh(e,t){const i=e?document.querySelector(`${e}`):document.body;if(!i)throw new Error(`target not found: ${e}`);return new Promise((function(e,a){Xh()(i,{backgroundColor:t||null,useCORS:!0,allowTaint:!0,scale:window.devicePixelRatio<3?window.devicePixelRatio:2}).then((function(t){e(t)})).catch(a)}))}customElements.define("advanced.capture-snapshot",(0,xl.createProviderClass)((async function(e){const{name:t,fileType:a,bucketName:s,selector:r,backgroundColor:n}=e;switch(a){case"image":{const e=await Gh(r,n);if(s){const i=await function(e){return new Promise((function(t,i){e.toBlob((function(e){e?t(e):i()}))}))}(e),a=new File([i],`${t}.png`,{type:i.type}),r=await function(e,t){const i=new FormData;i.append("file",e,e.name);const a=`${(0,w.getBasePath)()}api/gateway/object_store.object_store.PutObject/api/v1/objectStore/bucket/${t}/object`;return Zh.http.request(a,{method:"PUT",body:i})}(a,s);return function(e,t){return`${(0,w.getBasePath)()}api/gateway/logic.object_store_service/api/v1/objectStore/bucket/${e}/object/${t}`}(s,r.data.objectName)}await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image";return new Promise(((i,a)=>{try{const a=e.toDataURL("image/png"),s=new Image;s.onload=function(){const e=document.createElement("canvas");e.width=s.width,e.height=s.height;const i=e.getContext("2d");null==i||i.drawImage(s,0,0,s.width,s.height);const a=e.toDataURL("image/png"),r=document.createElement("a");r.href=a,r.download=t;const n=new MouseEvent("click");r.dispatchEvent(n)},s.src=a,i("succeed")}catch(e){a("failed")}}))}(e,t)}break;case"pdf":{const{jsPDF:e}=await i.e(1576).then(i.bind(i,31576)),a=await Gh(r,n),s=a.toDataURL("image/jpeg",1),l=new e(a.width>a.height?"landscape":"portrait","pt",[a.width,a.height]);l.addImage(s,"JPEG",0,0,a.width,a.height),await l.save(`${t}.pdf`,{returnPromise:!0});break}}})));var Yh,Jh=i(54299),ed=i(56664),td=i(39138);let id,ad,sd,rd,nd,ld,od,hd,dd,cd,pd,ud,gd,md,Ad,wd,bd,yd,fd,kd,xd,vd,Cd,Ed,Sd,Wd,Md,zd,Rd,_d,Id,Nd,Bd,Dd,Pd,Kd,Td,Ud,Ld;const{defineElement:Fd,property:Od,event:Hd}=(0,u.createDecorators)();let qd;var $d=new WeakMap,jd=new WeakMap,Qd=new WeakMap,Zd=new WeakMap,Vd=new WeakMap,Xd=new WeakMap,Gd=new WeakMap,Yd=new WeakMap,Jd=new WeakMap,ec=new WeakMap,tc=new WeakMap,ic=new WeakMap,ac=new WeakSet,sc=new WeakMap,rc=new WeakMap,nc=new WeakMap,lc=new WeakMap,oc=new WeakMap,hc=new WeakMap;class dc extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,ac),(0,r.A)(this,$d,ad(this)),(0,r.A)(this,jd,(sd(this),rd(this))),(0,r.A)(this,Qd,(nd(this),ld(this))),(0,r.A)(this,Zd,(od(this),hd(this))),(0,r.A)(this,Vd,(dd(this),cd(this))),(0,r.A)(this,Xd,(pd(this),ud(this))),(0,r.A)(this,Gd,(gd(this),md(this))),(0,r.A)(this,Yd,(Ad(this),wd(this))),(0,r.A)(this,Jd,(bd(this),yd(this))),(0,r.A)(this,ec,(fd(this),kd(this))),(0,r.A)(this,tc,(xd(this),vd(this))),(0,r.A)(this,ic,(Cd(this),Ed(this))),(0,r.A)(this,sc,(Md(this),zd(this))),(0,r.A)(this,rc,(Id(this),(e,t)=>{(0,l.A)(ac,this,Sd).emit(e),(0,l.A)(ac,this,Rd).emit({checkedKeys:e,halfCheckedKeys:t.halfCheckedKeys})})),(0,r.A)(this,nc,Nd(this)),(0,r.A)(this,lc,(Pd(this),e=>{(0,l.A)(ac,this,Bd).emit(e)})),(0,r.A)(this,oc,Kd(this)),(0,r.A)(this,hc,(Ld(this),e=>{let{dragNode:t,node:i,dropPosition:a}=e;(0,l.A)(ac,this,Td).emit({dragNode:t,dropNode:i,dropPosition:a})}))}get dataSource(){return(0,h.A)($d,this)}set dataSource(e){(0,o.A)($d,this,e)}get checkable(){return(0,h.A)(jd,this)}set checkable(e){(0,o.A)(jd,this,e)}get selectable(){return(0,h.A)(Qd,this)}set selectable(e){(0,o.A)(Qd,this,e)}get defaultExpandAll(){return(0,h.A)(Zd,this)}set defaultExpandAll(e){(0,o.A)(Zd,this,e)}get showLine(){return(0,h.A)(Vd,this)}set showLine(e){(0,o.A)(Vd,this,e)}get expandedKeys(){return(0,h.A)(Xd,this)}set expandedKeys(e){(0,o.A)(Xd,this,e)}get checkedKeys(){return(0,h.A)(Gd,this)}set checkedKeys(e){(0,o.A)(Gd,this,e)}get nodeDraggable(){return(0,h.A)(Yd,this)}set nodeDraggable(e){(0,o.A)(Yd,this,e)}get switcherIcon(){return(0,h.A)(Jd,this)}set switcherIcon(e){(0,o.A)(Jd,this,e)}get allowDrop(){return(0,h.A)(ec,this)}set allowDrop(e){(0,o.A)(ec,this,e)}get titleSuffixBrick(){return(0,h.A)(tc,this)}set titleSuffixBrick(e){(0,o.A)(tc,this,e)}render(){return p().createElement(cc,{dataSource:this.dataSource,shadowRoot:this.shadowRoot,checkable:this.checkable,selectable:this.selectable,defaultExpandAll:this.defaultExpandAll,showLine:this.showLine,nodeDraggable:this.nodeDraggable,switcherIcon:this.switcherIcon,expandedKeys:this.expandedKeys,checkedKeys:this.checkedKeys,titleSuffixBrick:this.titleSuffixBrick,onCheck:(0,h.A)(rc,this),onExpand:(0,h.A)(lc,this),allowDrop:this.allowDrop,onDrop:(0,h.A)(hc,this)})}}function cc(e){let{dataSource:t,shadowRoot:i,checkable:a,selectable:s,defaultExpandAll:r,showLine:n,expandedKeys:l,checkedKeys:o,nodeDraggable:h,switcherIcon:d,titleSuffixBrick:u,onCheck:g,onExpand:m,onDrop:A,allowDrop:w}=e;const y=(0,B.useCurrentTheme)(),k=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===y?ba.A.darkAlgorithm:ba.A.defaultAlgorithm}},p().createElement(D.N7,{container:i,autoClear:!0,cache:k,hashPriority:"high"},p().createElement(Jh.A,(0,b.A)({switcherIcon:!1!==d&&("chevron"===d?p().createElement(ed.A,null):void 0)},null!=u&&u.useBrick?{titleRender:e=>p().createElement(p().Fragment,null,e.title,p().createElement("span",{onClick:e=>e.stopPropagation()},p().createElement(B.ReactUseMultipleBricks,{useBrick:u.useBrick,data:e})))}:null,{treeData:t,checkable:a,selectable:s,defaultExpandAll:r,showLine:n,draggable:h},l?{expandedKeys:l}:null,o?{checkedKeys:o}:null,{onCheck:g,onExpand:m,allowDrop:w,onDrop:A}))))}Yh=dc,({e:[ad,sd,rd,nd,ld,od,hd,dd,cd,pd,ud,gd,md,Ad,wd,bd,yd,fd,kd,xd,vd,Cd,Ed,Sd,Wd,Md,zd,Rd,_d,Id,Nd,Bd,Dd,Pd,Kd,Td,Ud,Ld],c:[qd,id]}=(0,d.A)(Yh,[Fd("eo-tree",{styleTexts:[td.A]})],[[Od({attribute:!1}),1,"dataSource"],[Od({type:Boolean}),1,"checkable"],[Od({type:Boolean}),1,"selectable"],[Od({type:Boolean}),1,"defaultExpandAll"],[Od({type:Boolean}),1,"showLine"],[Od({attribute:!1}),1,"expandedKeys"],[Od({attribute:!1}),1,"checkedKeys"],[Od({attribute:!1}),1,"nodeDraggable"],[Od({attribute:!1}),1,"switcherIcon"],[Od({attribute:!1}),1,"allowDrop"],[Od({attribute:!1}),1,"titleSuffixBrick"],[Hd({type:"check"}),1,"checkEvent",e=>(0,h.A)(ic,e),(e,t)=>(0,o.A)(ic,e,t)],[Hd({type:"check.detail"}),1,"checkDetailEvent",e=>(0,h.A)(sc,e),(e,t)=>(0,o.A)(sc,e,t)],[Hd({type:"expand"}),1,"expandEvent",e=>(0,h.A)(nc,e),(e,t)=>(0,o.A)(nc,e,t)],[Hd({type:"node.drop"}),1,"dropEvent",e=>(0,h.A)(oc,e),(e,t)=>(0,o.A)(oc,e,t)]],0,(e=>hc.has((0,n.A)(e))),g.ReactNextElement)),id();var pc,uc=i(18623),gc=i(34695);let mc,Ac,wc,bc,yc,fc,kc,xc,vc,Cc,Ec,Sc,Wc,Mc,zc,Rc,_c,Ic,Nc,Bc,Dc,Pc,Kc,Tc,Uc,Lc,Fc,Oc,Hc,qc,$c,jc,Qc,Zc,Vc,Xc,Gc,Yc,Jc,ep,tp,ip,ap,sp,rp,np,lp,op,hp,dp,cp,pp,up,gp,mp,Ap,wp,bp,yp;const{defineElement:fp,property:kp,event:xp}=(0,u.createDecorators)(),vp=(0,g.wrapBrick)("eo-icon"),Cp=(0,g.wrapBrick)("eo-form-item");let Ep;var Sp=new WeakMap,Wp=new WeakMap,Mp=new WeakMap,zp=new WeakMap,Rp=new WeakMap,_p=new WeakMap,Ip=new WeakMap,Np=new WeakMap,Bp=new WeakMap,Dp=new WeakMap,Pp=new WeakMap,Kp=new WeakMap,Tp=new WeakMap,Up=new WeakMap,Lp=new WeakMap,Fp=new WeakMap,Op=new WeakMap,Hp=new WeakMap,qp=new WeakMap,$p=new WeakMap,jp=new WeakMap,Qp=new WeakMap,Zp=new WeakSet,Vp=new WeakMap,Xp=new WeakMap,Gp=new WeakMap,Yp=new WeakMap,Jp=new WeakMap,eu=new WeakMap;function tu(e){const{shadowRoot:t,checkable:i,loading:a,treeData:s,treeExpandedKeys:r,treeDefaultExpandAll:n,fieldNames:l,value:o,placeholder:h,disabled:d,multiple:u,allowClear:g,popupPlacement:m,dropdownStyle:A,suffixIcon:w,size:b,maxTagCount:y,onChange:k,onSearch:x,onSelect:v,onTreeExpand:C}=e,E=(0,B.useCurrentTheme)(),S=(0,c.useMemo)((()=>(0,D.VC)()),[]);return p().createElement(f.Ay,{theme:{algorithm:"dark-v2"===E?ba.A.darkAlgorithm:ba.A.defaultAlgorithm}},p().createElement(D.N7,{container:t,cache:S},p().createElement(uc.A,{getPopupContainer:e=>e.parentElement,allowClear:g,loading:a,disabled:d,multiple:u,fieldNames:l,placeholder:h,placement:m,dropdownStyle:A,suffixIcon:w&&p().createElement(vp,w),maxTagCount:y,value:o,size:b,treeData:s,treeCheckable:i,treeExpandedKeys:r,treeDefaultExpandAll:n,onChange:k,onSelect:v,onSearch:x,onTreeExpand:C,virtual:!1})))}pc=class extends La{constructor(){super(...arguments),(0,s.A)(this,Zp),(0,r.A)(this,Sp,Ac(this)),(0,r.A)(this,Wp,(wc(this),bc(this))),(0,r.A)(this,Mp,(yc(this),fc(this))),(0,r.A)(this,zp,(kc(this),xc(this))),(0,r.A)(this,Rp,(vc(this),Cc(this))),(0,r.A)(this,_p,(Ec(this),Sc(this))),(0,r.A)(this,Ip,(Wc(this),Mc(this))),(0,r.A)(this,Np,(zc(this),Rc(this))),(0,r.A)(this,Bp,(_c(this),Ic(this))),(0,r.A)(this,Dp,(Nc(this),Bc(this))),(0,r.A)(this,Pp,(Dc(this),Pc(this))),(0,r.A)(this,Kp,(Kc(this),Tc(this))),(0,r.A)(this,Tp,(Uc(this),Lc(this,!0))),(0,r.A)(this,Up,(Fc(this),Oc(this,!1))),(0,r.A)(this,Lp,(Hc(this),qc(this))),(0,r.A)(this,Fp,($c(this),jc(this,!0))),(0,r.A)(this,Op,(Qc(this),Zc(this))),(0,r.A)(this,Hp,(Vc(this),Xc(this,"bottomLeft"))),(0,r.A)(this,qp,(Gc(this),Yc(this))),(0,r.A)(this,$p,(Jc(this),ep(this))),(0,r.A)(this,jp,(tp(this),ip(this))),(0,r.A)(this,Qp,(ap(this),sp(this))),(0,a.A)(this,"handleOnChange",(lp(this),e=>{this.value=e,(0,l.A)(Zp,this,rp).emit({value:e})})),(0,r.A)(this,Vp,op(this)),(0,r.A)(this,Xp,(cp(this),e=>{(0,l.A)(Zp,this,hp).emit(e)})),(0,r.A)(this,Gp,pp(this)),(0,r.A)(this,Yp,(mp(this),e=>{(0,l.A)(Zp,this,up).emit({value:e})})),(0,r.A)(this,Jp,Ap(this)),(0,r.A)(this,eu,(yp(this),e=>{(0,l.A)(Zp,this,wp).emit({keys:e})}))}get name(){return(0,h.A)(Sp,this)}set name(e){(0,o.A)(Sp,this,e)}get label(){return(0,h.A)(Wp,this)}set label(e){(0,o.A)(Wp,this,e)}get required(){return(0,h.A)(Mp,this)}set required(e){(0,o.A)(Mp,this,e)}get treeData(){return(0,h.A)(zp,this)}set treeData(e){(0,o.A)(zp,this,e)}get treeDefaultExpandAll(){return(0,h.A)(Rp,this)}set treeDefaultExpandAll(e){(0,o.A)(Rp,this,e)}get treeExpandedKeys(){return(0,h.A)(_p,this)}set treeExpandedKeys(e){(0,o.A)(_p,this,e)}get fieldNames(){return(0,h.A)(Ip,this)}set fieldNames(e){(0,o.A)(Ip,this,e)}get value(){return(0,h.A)(Np,this)}set value(e){(0,o.A)(Np,this,e)}get placeholder(){return(0,h.A)(Bp,this)}set placeholder(e){(0,o.A)(Bp,this,e)}get multiple(){return(0,h.A)(Dp,this)}set multiple(e){(0,o.A)(Dp,this,e)}get disabled(){return(0,h.A)(Pp,this)}set disabled(e){(0,o.A)(Pp,this,e)}get checkable(){return(0,h.A)(Kp,this)}set checkable(e){(0,o.A)(Kp,this,e)}get allowClear(){return(0,h.A)(Tp,this)}set allowClear(e){(0,o.A)(Tp,this,e)}get loading(){return(0,h.A)(Up,this)}set loading(e){(0,o.A)(Up,this,e)}get filterTreeNode(){return(0,h.A)(Lp,this)}set filterTreeNode(e){(0,o.A)(Lp,this,e)}get showSearch(){return(0,h.A)(Fp,this)}set showSearch(e){(0,o.A)(Fp,this,e)}get suffixIcon(){return(0,h.A)(Op,this)}set suffixIcon(e){(0,o.A)(Op,this,e)}get popupPlacement(){return(0,h.A)(Hp,this)}set popupPlacement(e){(0,o.A)(Hp,this,e)}get size(){return(0,h.A)(qp,this)}set size(e){(0,o.A)(qp,this,e)}get maxTagCount(){return(0,h.A)($p,this)}set maxTagCount(e){(0,o.A)($p,this,e)}get dropdownStyle(){return(0,h.A)(jp,this)}set dropdownStyle(e){(0,o.A)(jp,this,e)}render(){return p().createElement(Cp,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},p().createElement(tu,{shadowRoot:this.shadowRoot,checkable:this.checkable,treeData:this.treeData,treeDefaultExpandAll:this.treeDefaultExpandAll,fieldNames:this.fieldNames,filterTreeNode:this.filterTreeNode,value:this.value,multiple:this.multiple,placeholder:this.placeholder,loading:this.loading,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,suffixIcon:this.suffixIcon,size:this.size,popupPlacement:this.popupPlacement,treeExpandedKeys:this.treeExpandedKeys,maxTagCount:this.maxTagCount,dropdownStyle:this.dropdownStyle,onChange:this.handleOnChange,onSearch:(0,h.A)(Xp,this),onSelect:(0,h.A)(Yp,this),onTreeExpand:(0,h.A)(eu,this)}))}},({e:[Ac,wc,bc,yc,fc,kc,xc,vc,Cc,Ec,Sc,Wc,Mc,zc,Rc,_c,Ic,Nc,Bc,Dc,Pc,Kc,Tc,Uc,Lc,Fc,Oc,Hc,qc,$c,jc,Qc,Zc,Vc,Xc,Gc,Yc,Jc,ep,tp,ip,ap,sp,rp,np,lp,op,hp,dp,cp,pp,up,gp,mp,Ap,wp,bp,yp],c:[Ep,mc]}=(0,d.A)(pc,[fp("eo-tree-select",{styleTexts:[gc.A]})],[[kp(),1,"name"],[kp(),1,"label"],[kp({type:Boolean}),1,"required"],[kp({attribute:!1}),1,"treeData"],[kp({type:Boolean}),1,"treeDefaultExpandAll"],[kp({attribute:!1}),1,"treeExpandedKeys"],[kp({attribute:!1}),1,"fieldNames"],[kp({attribute:!1}),1,"value"],[kp(),1,"placeholder"],[kp({type:Boolean}),1,"multiple"],[kp({type:Boolean}),1,"disabled"],[kp({type:Boolean}),1,"checkable"],[kp({type:Boolean}),1,"allowClear"],[kp({type:Boolean}),1,"loading"],[kp({attribute:!1}),1,"filterTreeNode"],[kp({type:Boolean}),1,"showSearch"],[kp({attribute:!1}),1,"suffixIcon"],[kp(),1,"popupPlacement"],[kp(),1,"size"],[kp({attribute:!1}),1,"maxTagCount"],[kp({attribute:!1}),1,"dropdownStyle"],[xp({type:"change"}),1,"changeEvent",e=>(0,h.A)(Qp,e),(e,t)=>(0,o.A)(Qp,e,t)],[xp({type:"search"}),1,"searchEvent",e=>(0,h.A)(Vp,e),(e,t)=>(0,o.A)(Vp,e,t)],[xp({type:"select"}),1,"selectEvent",e=>(0,h.A)(Gp,e),(e,t)=>(0,o.A)(Gp,e,t)],[xp({type:"expand"}),1,"expandEvent",e=>(0,h.A)(Jp,e),(e,t)=>(0,o.A)(Jp,e,t)]],0,(e=>eu.has((0,n.A)(e))),La)),mc();var iu,au=i(25629),su=i(15092);let ru,nu,lu,ou,hu;const{defineElement:du,property:cu}=(0,u.createDecorators)();let pu;var uu=new WeakMap,gu=new WeakMap;class mu extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,uu,nu(this)),(0,r.A)(this,gu,(lu(this),ou(this,1))),hu(this)}get label(){return(0,h.A)(uu,this)}set label(e){(0,o.A)(uu,this,e)}get lineClamp(){return(0,h.A)(gu,this)}set lineClamp(e){(0,o.A)(gu,this,e)}render(){return p().createElement(Au,{label:this.label,lineClamp:this.lineClamp})}}function Au(e){const{lineClamp:t,label:i}=e,a=(0,c.useRef)(null),[s,r]=(0,c.useState)(!1),n=(0,c.useCallback)((()=>{const e=a.current;if(!e)return!1;const{offsetWidth:t,offsetHeight:i,scrollWidth:s,scrollHeight:r}=e;return t<s||i<r}),[t,i]),l=(0,c.useMemo)((()=>(0,D.VC)()),[]);return(0,c.useEffect)((()=>{r(n())}),[n]),p().createElement(f.Ay,{prefixCls:"antdV5"},p().createElement(D.N7,{cache:l,hashPriority:"high",transformers:[D.NZ]},p().createElement(su.A,{title:s?i:null},p().createElement("div",{ref:a,className:"ellipsisWrap",style:{"--line-clamp":t}},i))))}iu=mu,({e:[nu,lu,ou,hu],c:[pu,ru]}=(0,d.A)(iu,[du("eo-text-tooltip",{styleTexts:[au.A]})],[[cu({type:String}),1,"label"],[cu({type:Number}),1,"lineClamp"]],0,void 0,g.ReactNextElement)),ru();var wu,bu=i(27367),yu=i(4098);let fu,ku,xu,vu,Cu,Eu,Su,Wu,Mu;i(10659),i(15058);const{defineElement:zu,property:Ru}=(0,u.createDecorators)();let _u;var Iu=new WeakMap,Nu=new WeakMap,Bu=new WeakMap,Du=new WeakMap;class Pu extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Iu,ku(this)),(0,r.A)(this,Nu,(xu(this),vu(this))),(0,r.A)(this,Bu,(Cu(this),Eu(this))),(0,r.A)(this,Du,(Su(this),Wu(this))),Mu(this)}get url(){return(0,h.A)(Iu,this)}set url(e){(0,o.A)(Iu,this,e)}get page(){return(0,h.A)(Nu,this)}set page(e){(0,o.A)(Nu,this,e)}get search(){return(0,h.A)(Bu,this)}set search(e){(0,o.A)(Bu,this,e)}get viewerStyle(){return(0,h.A)(Du,this)}set viewerStyle(e){(0,o.A)(Du,this,e)}render(){return p().createElement(Ku,{url:this.url,page:this.page?this.page-1:0,search:this.search,viewerStyle:this.viewerStyle})}}function Ku(e){let{url:t,search:a,page:s,viewerStyle:r}=e;const[n,l]=(0,c.useState)(!1),o=(0,yu.defaultLayoutPlugin)();return(0,c.useEffect)((()=>{n&&a&&o.toolbarPluginInstance.searchPluginInstance.highlight({keyword:a})}),[n,a]),p().createElement(bu.Worker,{workerUrl:`${i.p}pdf.worker.min.js`},p().createElement("div",{style:r},p().createElement(bu.Viewer,{fileUrl:t,initialPage:s,plugins:[o],onDocumentLoad:()=>l(!0)})))}wu=Pu,({e:[ku,xu,vu,Cu,Eu,Su,Wu,Mu],c:[_u,fu]}=(0,d.A)(wu,[zu("advanced.pdf-viewer",{shadowOptions:!1})],[[Ru(),1,"url"],[Ru({type:Number}),1,"page"],[Ru(),1,"search"],[Ru({attribute:!1}),1,"viewerStyle"]],0,void 0,g.ReactNextElement)),fu()},85689:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),l=i(87796),o=i(37564),h=n()(s());h.i(l.A),h.i(o.A),h.push([e.id,".react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=h},87796:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,'.react-grid-layout{position:relative;transition:height 200ms ease}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:0.2;transition-duration:100ms;z-index:2;-webkit-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item > .react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item > .react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,0.4);border-bottom:2px solid rgba(0,0,0,0.4)}.react-resizable-hide > .react-resizable-handle{display:none}.react-grid-item > .react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}',""]);const l=n},37564:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),l=i(20062),o=i.n(l),h=new URL(i(59224),i.b),d=n()(s()),c=o()(h);d.push([e.id,`.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(${c});background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,\n.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,\n.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}`,""]);const p=d},71058:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".ant-select-single .ant-select-selector{border-radius:var(--medius-border-radius)}.ant-select-dropdown{border-radius:var(--medius-border-radius)}.ant-cascader-dropdown .ant-cascader-menu-item{border-radius:var(--small-border-radius)}",""]);const l=n.toString()},2198:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".brickTableOddRow{background-color:var(--color-fill-bg-base-4)}.ant-table-small .ant-table-body{margin:0}.ant-table-small .ant-table-thead{background:var(--antd-table-header-bg)}.ant-table-small .ant-table-row{line-height:26px}.ant-table-tbody > tr.invalidRow > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.invalidRow:hover > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.disabledRow > td{background-color:var(--theme-gray-border-color)}.ant-table-tbody > .ant-table-row-selected td{background:var(--antd-table-cell-fixed-body-bg)!important}td.alignTop{vertical-align:top}td.alignBottom{vertical-align:bottom}.expandIconCellHidden .ant-table-row-expand-icon-cell,\n.expandIconCellHidden .ant-table-expand-icon-col{width:1px;min-width:auto}.expandIconCellHidden .ant-table-row-expand-icon-cell > *,\n.expandIconCellHidden .ant-table-expand-icon-col > *{display:none}.expandIconSpan{cursor:pointer;margin-right:9px;color:var(--antd-table-row-expand-icon-color);font-size:11px}.expandIconSpan .anticon{background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.tableThTransparent thead.ant-table-thead > tr > th{background:var(--antd-table-header-bg)}.zebraPatternTable .ant-table-tbody tr td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.totalText{color:var(--antd-pagination-total-text)}.total{font-weight:normal;color:var(--antd-pagination-total-strong-text)}.ant-table-wrapper .ant-table-thead > tr > th{padding:11px 16px;font-size:12px;line-height:20px;border-bottom:0;font-weight:500;color:var(--antd-table-header-color)}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin:24px 0}.xSmallSizeTable .ant-table{line-height:1}.xSmallSizeTable .ant-table .ant-table-selection-col{width:32px}.xSmallSizeTable .ant-table-thead tr th,\n.xSmallSizeTable .ant-table-tbody tr td{padding:0px 2px}.xSmallSizeTable .ant-table-thead tr th:first-child,\n.xSmallSizeTable .ant-table-tbody tr td:first-child{padding:0}",""]);const l=n.toString()},25629:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:inline;width:-moz-fit-content;width:fit-content;max-width:100%}:host([hidden]){display:none}.ellipsisWrap{display:-webkit-box;word-break:break-all;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp);white-space:normal;overflow:hidden}",""]);const l=n.toString()},34695:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:block}:host([hidden]){display:none}.ant-tree-select{width:100%;min-height:28px;height:max-content}.ant-select-lg{height:38px}.ant-select-sm{height:20px}.ant-select-multiple .ant-select-selector{border-radius:var(--small-border-radius)}.ant-select-multiple .ant-select-selector:after{line-height:22px}",""]);const l=n.toString()},39138:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,":host{display:block}:host([hidden]){display:none}:host .ant-tree{background-color:transparent}",""]);const l=n.toString()},91116:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),l=i(34566),o=i(16322),h=n()(s());h.i(l.A),h.i(o.A),h.push([e.id,":host{display:block}:host([hidden]){display:none}.grid-layout-wrapper{display:flex;height:100%;position:relative}.grid-layout-wrapper .component-wrapper{width:150px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:sticky;top:0}.grid-layout-wrapper .component-wrapper .component-title{font-size:16px;padding:6px 0;font-weight:500}.grid-layout-wrapper .component-wrapper .component-list{margin-top:6px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.grid-layout-wrapper .layout-wrapper{flex:1}.grid-layout-wrapper .layout-wrapper .layout{max-width:1300px;margin:0 auto}.grid-layout-wrapper .layout-wrapper .actions-wrapper{position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}.grid-layout-wrapper .layout-wrapper .edit-mask{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.grid-layout-wrapper .layout-wrapper .delete-icon{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.grid-layout-wrapper .layout-wrapper .delete-icon:hover{color:var(--color-error)}.grid-layout-wrapper .layout-wrapper .delete-icon:active{color:var(--color-error-active)}.react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=h.toString()},34566:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,'.react-grid-layout{position:relative;transition:height 200ms ease}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:0.2;transition-duration:100ms;z-index:2;-webkit-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item > .react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item > .react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,0.4);border-bottom:2px solid rgba(0,0,0,0.4)}.react-resizable-hide > .react-resizable-handle{display:none}.react-grid-item > .react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}',""]);const l=n.toString()},16322:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r),l=i(20062),o=i.n(l),h=new URL(i(59224),i.b),d=n()(s()),c=o()(h);d.push([e.id,`.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(${c});background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,\n.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,\n.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}`,""]);const p=d.toString()},89739:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),r=i(40935),n=i.n(r)()(s());n.push([e.id,".gridLayoutWrapper--DIttynOM{display:flex;height:100%;position:relative}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP{width:170px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:sticky;top:0}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentTitle--nKf9GEoj{font-size:16px;padding:6px 0;font-weight:500}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB{margin-top:6px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR{flex:1}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj{max-width:1300px;margin:0 auto}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .editMask--ql2wriZf{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .deleteIcon--IjEzXZqc{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .deleteIcon--IjEzXZqc:hover{color:var(--color-error)}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .deleteIcon--IjEzXZqc:active{color:var(--color-error-active)}",""]),n.locals={gridLayoutWrapper:"gridLayoutWrapper--DIttynOM",componentWrapper:"componentWrapper--P8xsKOQP",componentTitle:"componentTitle--nKf9GEoj",componentList:"componentList--s3XnAYsB",layoutWrapper:"layoutWrapper--pk1t3UAR",layout:"layout--kz28taJj",actionsWrapper:"actionsWrapper--vQro2Dyn",editMask:"editMask--ql2wriZf",deleteIcon:"deleteIcon--IjEzXZqc"};const l=n},59224:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},28383:()=>{},82590:()=>{},85515:()=>{},82474:()=>{},39630:()=>{},71040:()=>{}}]);
2
- //# sourceMappingURL=2197.0dad9427.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 2252.19ff675d.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[2252],{86330:(e,t,n)=>{function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}n.d(t,{A:()=>o})},24586:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(11369);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},69740:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(24586);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},62252:(e,t,n)=>{n.r(t),n.d(t,{analytics:()=>u,auth:()=>vt,checkInstalledApps:()=>o,checkPermissions:()=>mt,flowApi:()=>i,menu:()=>s,messageDispatcher:()=>gt});var r={};n.r(r),n.d(r,{authenticate:()=>v,getAuth:()=>A,isBlockedHref:()=>I,isBlockedPath:()=>b,isBlockedUrl:()=>S,isLoggedIn:()=>y,logout:()=>w});var o={};n.r(o),n.d(o,{getCheckedApp:()=>ae,preCheckInstalledApps:()=>ie,waitForCheckingApps:()=>se});var i={};n.r(i),n.d(i,{FLOW_API_PROVIDER:()=>ue,clearCollectWidgetContract:()=>be,clearDebugContract:()=>Ie,collectContract:()=>we,collectDebugContract:()=>Se,collectWidgetContract:()=>ye,getArgsOfFlowApi:()=>ke,isFlowApiProvider:()=>Pe,registerFlowApiProvider:()=>de});var s={};n.r(s),n.d(s,{fetchMenuById:()=>Ke,getMenuById:()=>Ye});var a={};n.r(a),n.d(a,{onRequest:()=>lt,onResponse:()=>pt,onResponseError:()=>dt});var c={};n.r(c),n.d(c,{create:()=>ht});var u={};n.r(u),n.d(u,{http:()=>a,initialize:()=>ct,pageView:()=>c});var l=n(49845),p=n(86330),d=n(59171),f=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app.permission.ValidatePermissions/api/micro_app/v1/permission/validate",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}(),h=n(51230),m=n(25366);const g={};function v(e){Object.assign(g,{org:e.org,username:e.username,userInstanceId:e.userInstanceId,loginFrom:e.loginFrom,accessRule:e.accessRule,isAdmin:e.isAdmin,csrfToken:e.csrfToken,license:e.license,accessToken:e.accessToken,userShowValue:e.userShowValue})}function A(){return{...g}}function w(){for(const e of Object.keys(g))g[e]=void 0;O.clear(),P.length=0,k.clear()}function y(){return void 0!==g.username}function b(e){var t;return!(null===(t=g.license)||void 0===t||null===(t=t.blackList)||void 0===t||!t.some((t=>(0,h.matchPath)(e,{path:t}))))}function S(e){const t=("string"==typeof e?(0,m.createLocation)(e):e).pathname;return"string"==typeof t&&b(t)}function I(e){const t=(0,h.getBasePath)(),n=new URL(e,`${location.origin}${t}`);return!(n.origin!==location.origin||!n.pathname.startsWith(t))&&b(n.pathname.substring(t.length-1))}const O=new Map,P=[],k=new Map;function E(e){if(y()&&!A().isAdmin)return M((0,l.scanPermissionActionsInAny)(e))}async function M(e){const t=e.filter((e=>!P.includes(e)));if(0===t.length)return;const n=[],r=[];for(const e of t){const t=O.get(e);t?n.push(t):r.push(e)}if(r.length>0){const e=(async()=>{try{const e=await f({actions:r},{noAbortOnRouteChange:!0});for(const t of e.actions)k.set(t.action,t.authorizationStatus),"undefined"===t.authorizationStatus&&console.error(`Undefined permission action: "${t.action}"`)}catch(e){console.error("Pre-check permissions failed",e)}finally{P.push(...r)}})();for(const t of r)O.set(t,e);n.push(e)}await Promise.all(n)}var C=n(74635),_=n(70918),T=n(5536),j=n(12559),N=n(86121),$=n(70829),D=n(41030);const R=1e3,W=5;var L=new WeakMap,B=new WeakMap,x=new WeakMap,U=new WeakMap,F=new WeakMap,q=new WeakMap,z=new WeakMap,H=new WeakSet;class G{constructor(e){(0,C.A)(this,H),(0,_.A)(this,L,void 0),(0,_.A)(this,B,void 0),(0,_.A)(this,x,[]),(0,_.A)(this,U,new Set),(0,_.A)(this,F,new Set),(0,_.A)(this,q,0),(0,_.A)(this,z,!1),(0,N.A)(L,this,e)}send(e){(0,$.A)(B,this)||(0,N.A)(B,this,(0,j.A)(H,this,J).call(this));const t=JSON.stringify(e);(0,$.A)(B,this).readyState===WebSocket.OPEN?(0,$.A)(B,this).send(t):(0,$.A)(x,this).push(t)}onMessage(e){return(0,$.A)(U,this).add(e),()=>{(0,$.A)(U,this).delete(e)}}onClose(e){return(0,$.A)(F,this).add(e),()=>{(0,$.A)(F,this).delete(e)}}reset(){(0,$.A)(x,this).length=0,(0,$.A)(U,this).clear(),(0,$.A)(F,this).clear()}close(){var e;(0,N.A)(z,this,!0),(null===(e=(0,$.A)(B,this))||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&(0,$.A)(B,this).close()}}function J(){console.log("WebSocket connecting ...");const e=new WebSocket((0,$.A)(L,this));let t;return e.addEventListener("open",(n=>{console.log("WebSocket open:",n),t=setTimeout((()=>{t=void 0,(0,N.A)(q,this,0)}),1e3);for(const t of(0,$.A)(x,this))e.send(t);(0,$.A)(x,this).length=0})),e.addEventListener("close",(e=>{(0,$.A)(z,this)||(void 0!==t&&clearTimeout(t),console.log("WebSocket close:",e),1e3!==e.code&&(0,j.A)(H,this,V).call(this))})),e.addEventListener("error",(e=>{console.error("WebSocket error:",e)})),e.addEventListener("message",(e=>{const t=JSON.parse(e.data);for(const e of(0,$.A)(U,this))e(t)})),e}function V(){if((0,$.A)(q,this)>=W){console.error("WebSocket connect retry limit exceeded");for(const e of(0,$.A)(F,this))e();return}const e=Math.pow(2,(0,$.A)(q,this))*R;console.log("WebSocket will reconnect after %d seconds",e/1e3),setTimeout((()=>{var e;(0,N.A)(q,this,(e=(0,$.A)(q,this),++e)),(0,N.A)(B,this,(0,j.A)(H,this,J).call(this))}),e)}var Y=new WeakMap,K=new WeakMap,Q=new WeakMap,X=new WeakSet;function Z(e){if(!(0,$.A)(Y,e)){const t=`${"https:"===location.protocol?"wss:":"ws:"}//${window.location.host}${(0,h.getBasePath)()}api/websocket_service/v1/ws`;(0,N.A)(Y,e,new G(t))}return(0,$.A)(Y,e)}function ee(e,t,n,r){const o=(0,$.A)(K,this)[e].get(r);if(o)return o;const i={event:"sub"===e?"TOPIC.SUB":"TOPIC.UNSUB",payload:n},s=new Promise(((t,r)=>{const o=te(n),s=(0,T.A)(X,this,Z).onMessage((n=>{const i=n.event===("sub"===e?"TOPIC.SUB_SUCCESS":"TOPIC.UNSUB_SUCCESS"),c=n.event===("sub"===e?"TOPIC.SUB_FAILED":"TOPIC.UNSUB_FAILED");(i||c)&&o===te(n.payload)&&((i?t:r)(n),s(),a())})),a=(0,T.A)(X,this,Z).onClose((()=>{r({retryCount:W}),s(),a()}));(0,T.A)(X,this,Z).send(i)}));return"sub"===e&&(0,$.A)(Q,this).set(t,r),(0,$.A)(K,this)[e].set(r,s),s}function te(e){const{system:t,topic:n}=e;return JSON.stringify({system:t,topic:n})}var ne=function(){var e=(0,p.A)((function*(e,t){return(yield d.http.post("api/gateway/micro_app_standalone.runtime.SearchMicroAppStandalone/api/v1/micro_app_standalone/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}();const re=new Map,oe=new Map;function ie(e,t){if(window.STANDALONE_MICRO_APPS&&!window.NO_AUTH_GUARD){const n=function(e){var t;const n={usedArgs:new Set},{customTemplates:r,menus:o}=null!==(t=e.meta)&&void 0!==t?t:{};return(0,l.traverseStoryboardExpressions)([e.routes,r,o],((e,t)=>{(0,l.collectInstalledAppsHasUsage)(n,e,t)}),"INSTALLED_APPS"),[...n.usedArgs]}(e),r=[];for(const e of n)re.has(e)||t(e)||r.push(e);if(0===r.length)return;const o=ne({query:{appId:{$in:r}},fields:["appId","currentVersion","installStatus"]}).catch((e=>{console.error("Get off site standalone micro-apps failed",e)}));for(const e of r)re.set(e,o.then((t=>{var n;const r=null==t||null===(n=t.list)||void 0===n?void 0:n.find((t=>t.appId===e)),o=r?{...r,id:e}:void 0;return oe.set(e,o),o})))}}async function se(e){await Promise.all(e.map((e=>re.get(e))))}function ae(e){if(window.STANDALONE_MICRO_APPS)return oe.get(e)}var ce=n(56511);const ue="core.provider-flow-api";function le(e,t){return e.some((e=>e.source===t))}async function pe(e){let{url:t,originalUri:n,method:r="GET",responseWrapper:o=!0,ext_fields:i=[],request:s,isFileType:a,stream:c}=e;const u=["get","delete","head"].includes(r.toLowerCase()),l=a?{responseType:"blob"}:{};let p;for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];if(u){var g,v,A,w;let e,o;var y,b;if(n&&"object"===(null==s?void 0:s.type)&&(null!==(g=null===(v=n.match(/:([^/]+)/g))||void 0===v?void 0:v.length)&&void 0!==g?g:0)===(null!==(A=null===(w=s.fields)||void 0===w?void 0:w.length)&&void 0!==A?A:0)?[o]=h:[e,o]=h,c)return await(0,ce.createSSEStream)(d.http.getUrlWithParams(t,e),{...l,...o,method:r,headers:Object.fromEntries([...new Headers(null!==(y=null===(b=o)||void 0===b?void 0:b.headers)&&void 0!==y?y:{}).entries()])});p=await d.http.simpleRequest(r,t,{params:e,...l,...o})}else{const e=function(e){if("object"!==(null==e?void 0:e.type))return!1;const t=e=>!(0,D.isEmpty)(e)&&e.some((e=>["file","file[]"].includes(e.type)||t(e.fields)));return t(e.fields)}(s),n=function(e){const t=le(e,"query"),n=le(e,"body");for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(t){if(n){const[e,t,n]=o;return{data:e,options:{params:t,...n}}}const[e,t]=o;return{data:{},options:{params:e,...t}}}const[s,a]=o;return{data:s,options:a}}(i,...h),o=e?function(e){if(e instanceof FormData)return e;const t=new FormData;for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.append(n,e)})):!(0,D.isObject)(r)||r instanceof Blob||r instanceof Date?t.append(n,r):Object.entries(r).forEach((e=>{let[r,o]=e;t.append(`${n}[${r}]`,o)}));return t}(n.data):n.data;if(c){var S;const{body:e,headers:i}=d.http.getBodyAndHeaders(o,null===(S=n.options)||void 0===S?void 0:S.headers);return await(0,ce.createSSEStream)(t,{...l,...n.options,method:r,headers:Object.fromEntries([...new Headers(null!=i?i:{}).entries()]),body:e})}p=await d.http.requestWithBody(r,t,o,{...l,...n.options})}return!a&&o?p.data:p}function de(){customElements.define(ue,(0,ce.createProviderClass)(pe))}var fe=n(8679);const he=async(e,t)=>(await d.http.post("api/contract/single_search",e,t)).data,me=new Map,ge=new Map,ve=new Map,Ae=(e,t)=>{null==e||e.forEach((e=>{t.set(`${e.namespaceId}.${e.name}`,e)}))};function we(e){Ae(e,me)}function ye(e){Ae(e,ge)}function be(){ge.clear()}function Se(e){Ae(e,ve)}function Ie(){ve.clear()}const Oe=new Map;function Pe(e){return e.includes("@")}async function ke(e,t,n,r){if(!e.includes(":"))throw new Error(`You're using legacy Custom API "${e}" which is dropped in v3, please use Flow API instead`);const o=await async function(e){const[t,n]=e.split("@"),[r,o]=n.split(":"),i=function(e){return me.get(e)||ge.get(e)||ve.get(e)}(`${t}.${r}`);if(i)return{name:i.name,namespace:i.namespaceId,serviceName:i.serviceName,version:i.version,contract:{endpoint:i.endpoint,response:i.response,request:i.request}};let s=Oe.get(e);return s||(s=async function(e,t,n){var r;const{contractData:o}=await he({contractName:`${e}.${t}`,version:n});return o?{name:o.name,namespace:null===(r=o.namespace)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.name,serviceName:o.serviceName,version:o.version,contract:{endpoint:o.endpoint,response:o.response,request:o.request}}:null}(t,r,o),Oe.set(e,s)),s}(e);if(!o)throw new Ee(`Flow API not found: "${e}"`);const i=function(e,t){var n,r;const o="string"==typeof t.contract?fe.safeLoad(t.contract,{schema:fe.JSON_SCHEMA,json:!0}):t.contract,{uri:i,method:s="GET",ext_fields:a}=null!==(n=null==o?void 0:o.endpoint)&&void 0!==n?n:{},c=!(null==o||!o.response)&&!1!==o.response.wrapper;if(!i)throw new Error(`Missing endpoint.uri in contract of provider "${e}"`);return{uri:i,method:"list"===s.toLowerCase()?"get":s,ext_fields:a,name:t.name,namespace:t.namespace,serviceName:t.serviceName,version:t.version,isFileType:"file"===(null==o||null===(r=o.response)||void 0===r?void 0:r.type),responseWrapper:c,request:null==o?void 0:o.request}}(e,o);return function(e,t,n,r){let{uri:o,method:i,ext_fields:s,name:a,namespace:c,serviceName:u,responseWrapper:l,version:p,isFileType:d,request:f}=e;const h="saveAs"===n;let m;h&&(m=t.shift());const{url:g,args:v}=function(e,t,n,r,o,i){const s=i?"logic.api.gateway"===o||null!=o&&o.startsWith("logic.api.gateway.")?"":o?`api/gateway/${o}`:`api/gateway/${r}.${n}@${i}`:`api/gateway/api_service.${r}.${n}`,a=t.slice(),c=e.replace(/:([^/]+)/g,(()=>a.shift()));return{url:s?s+c:c.replace(/^\//,""),args:a}}(o,t,a,c,u,p);return[...h?[m]:[],{url:g,originalUri:o,method:i,ext_fields:s,responseWrapper:l,request:f,isFileType:d,stream:r},...v]}(i,t,n,r)}class Ee extends Error{constructor(e){super(e),this.name="FlowApiNotFoundError",Error.captureStackTrace&&Error.captureStackTrace(this,Ee)}}var Me=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}(),Ce=n(69740),_e=function(){var e=(0,p.A)((function*(e,t,n){return(yield d.http.get("api/gateway/micro_app.installed_micro_app.GetMenusInfo/api/v1/micro-app/menus/".concat(e),(0,Ce.A)((0,Ce.A)({},n),{},{params:t}))).data}));return function(t,n,r){return e.apply(this,arguments)}}(),Te=n(18799);const je=Symbol("appId"),Ne=Symbol("menuI18nNamespace"),$e=Symbol("overrideApp");async function De(e,t,n){const r=e.find((e=>"inject"!==e.type));if(!r)return;const o=[],i=new Map,s=new WeakMap;for(const t of e)if(t.i18n){const e=`menu/${t.menuId}~${t.app[0].appId}+${t.instanceId}`;Object.entries(t.i18n).forEach((t=>{let[n,r]=t;Te.i18n.addResourceBundle(n,e,r)})),s.set(t,e)}await Promise.all(e.map((e=>async function(e,t,n,r){if(e.dynamicItems&&e.itemsResolve){const i=e.app[0].appId,s={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,E(e.itemsResolve)]};var o;i!==t.app.id&&(s.overrideApp=window.STANDALONE_MICRO_APPS?e.overrideApp:null===(o=r.getStoryboardByAppId(i))||void 0===o?void 0:o.app,s.appendI18nNamespace=n.get(e));const a=await r.resolveData({transform:"items",...e.itemsResolve},s);e.items=a.items}}(e,t,s,n))));for(const t of e){var a;if(null!==(a=t.items)&&void 0!==a&&a.length)if("inject"===t.type&&t.injectMenuGroupId){let e=i.get(t.injectMenuGroupId);e||(e=[],i.set(t.injectMenuGroupId,e)),e.push(t)}else o.push(t)}return{...r,items:o.flatMap((e=>Re(e.items,e,i,s))),[Ne]:s.get(r),[$e]:r.overrideApp}}function Re(e,t,n,r){return null==e?void 0:e.map((e=>{var o;const i=e.groupId&&n.get(e.groupId);return i&&n.delete(e.groupId),{...e,children:(null!==(o=Re(e.children,t,n,r))&&void 0!==o?o:[]).concat(i?i.flatMap((e=>Re(e.items,e,n,r))):[]),[je]:t.app[0].appId,[Ne]:r.get(t),[$e]:t.overrideApp}}))}function We(e){e.items=Le(e.items)}function Le(e){return function(e){return(0,D.sortBy)(e,(e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}))}(e).map((e=>({...e,children:Le(e.children)})))}var Be=n(78286),xe=n(15585);function Ue(e,t,n,r){if("titleDataSource"in e&&(0,ce.isObject)(e.titleDataSource)&&Object.entries(e.titleDataSource).every((e=>{let[,t]=e;return null===t||""===t}))&&delete e.titleDataSource,"if"in e&&null===e.if&&delete e.if,"to"in e&&e.to&&!(0,xe.isEvaluable)(e.to)){const t=Be.pipes.yaml(e.to);(0,ce.isObject)(t)&&["pathname","search","hash"].some((e=>(0,ce.hasOwnProperty)(t,e)))&&(e.to=t)}let o=n;if(t!==n.app.id){var i;const s=window.STANDALONE_MICRO_APPS?e[$e]:null===(i=r.getStoryboardByAppId(t))||void 0===i?void 0:i.app;o={...n,overrideApp:s,appendI18nNamespace:e[Ne]}}return r.asyncComputeRealValue(e,o,{ignoreSymbols:!0})}function Fe(e,t,n){return Promise.all(e.map((async e=>{let{children:r,...o}=e;const[i,s]=await Promise.all([Ue(o,o[je],t,n),r&&await Fe(r,t,n)]);return{...i,children:s}})))}var qe=function(){var e=(0,p.A)((function*(e,t,n,r){return(yield d.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(e,"/instance/").concat(t),(0,Ce.A)((0,Ce.A)({},r),{},{params:n}))).data}));return function(t,n,r,o){return e.apply(this,arguments)}}();const ze=new Map;async function He(e){if(e.title||(0,D.isEmpty)(e.titleDataSource))return e.title;const t=JSON.stringify(e.titleDataSource),n=ze.get(t);if(void 0!==n)return n;const{objectId:r,instanceId:o,attributeId:i}=e.titleDataSource,s=null!=i?i:"name",a=await qe(r,o,{fields:s});let c;if("#showKey"===i&&Array.isArray(a[s])){const[e,...t]=a[s];c=t.length>0?`${e}(${t.join(",")})`:String(e)}else c=String(a[s]);return ze.set(t,c),c}const Ge=new Map,Je=new Map;function Ve(e){return null==e?void 0:e.filter(h.checkIfOfComputed).map((e=>{const t=Ve(e.children);return"group"===e.type?{type:"group",title:e.text,childLayout:e.childLayout,items:t,groupId:e.groupId,groupFrom:e.groupFrom}:null!=t&&t.length?{type:"subMenu",childLayout:e.childLayout,title:e.text,icon:e.icon,items:t,defaultExpanded:e.defaultExpanded}:function(e){return e.href?I(e.href):!!e.to&&S(e.to)}(e)?null:(0,D.omit)(e,["type","items","children"])})).filter(Boolean)}function Ye(e){return Je.get(e)}function Ke(e,t,n){let r=Ge.get(e);return r||(r=async function(e,t,n){const r=window.STANDALONE_MICRO_APPS?function(e,t,n){var r,o,i,s;const a=n.getStoryboardByAppId(t);return(null!==(r=null!==(o=null===(i=a.meta)||void 0===i?void 0:i.injectMenus)&&void 0!==o?o:null===(s=a.meta)||void 0===s?void 0:s.menus)&&void 0!==r?r:[]).filter((t=>t.menuId===e)).map((e=>{var n;return{...e,...null!==(n=e.app)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.appId?{}:{app:[{appId:t}]}}}))}(e,t.app.id,n):t.flags["three-level-menu-layout"]?(await _e(e,{menuObjectId:"EASYOPS_STORYBOARD_MENU"})).menus:(await Me("EASYOPS_STORYBOARD_MENU",{page:1,page_size:200,fields:{menuId:!0,title:!0,icon:!0,link:!0,titleDataSource:!0,defaultCollapsed:!0,defaultCollapsedBreakpoint:!0,type:!0,injectMenuGroupId:!0,dynamicItems:!0,itemsResolve:!0,items:!0,i18n:!0,"items.children":!0,"app.appId":!0},query:{menuId:{$eq:e},app:{$size:{$gt:0}}}})).list,o=await De(r,t,n);if(!o)throw new Error(`Menu not found: ${e}`);We(o);const{items:i,app:s,...a}=o,c={...t,pendingPermissionsPreCheck:[...t.pendingPermissionsPreCheck,E([i,a])]};delete c.tplStateStoreId,delete c.forEachItem,delete c.forEachIndex,delete c.forEachSize;const u=s[0].appId,[l,p]=await Promise.all([Ue(a,u,c,n),Fe(i,c,n)]),d={title:await He(l),...(0,D.pick)(l,["icon","link","defaultCollapsed","defaultCollapsedBreakpoint"]),menuItems:Ve(p)};Je.set(e,d)}(e,t,n)),r}const Qe=[];let Xe=null;const Ze={maxWaitingTime:5e3,maxLoggedEvents:10};function et(){clearTimeout(Xe),Qe.length>Ze.maxLoggedEvents?tt():Xe=setTimeout(tt,Ze.maxWaitingTime)}function tt(){if(0===Qe.length)return;const e={model:"easyops.FRONTEND_STAT",columns:["_ver","st","et","lt","size","time","traceId","code","duration","page","uid","username","api","type","msg","status","pageId","route","apiCount","maxApiTimeCost","apiSizeCost","pageTitle"],data:Qe.splice(0,Ze.maxLoggedEvents)};var t;!function(e,t){const n=new Blob([JSON.stringify(t)],{type:"application/json"});window.navigator.sendBeacon(e,n)}(Ze.api,e),Qe.length&&(t=tt,(window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17)))(t))}function nt(){window.addEventListener("beforeunload",tt,!1)}let rt,ot=!1,it=null,st=!0;const at=[];function ct(e){ot||(ot=!0,rt||(rt=function(e,t){return Object.assign(Ze,{...t,api:e}),{sendOnExit:nt,emit:et}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),rt.sendOnExit()))}const ut=Symbol("HttpAnalytics");function lt(e){const t=Math.round(performance.now()),n=Date.now();return e[ut]={st:n,time:Math.round(n/1e3),perfStartTime:t},e}function pt(e,t){return ft(!1,e,t)}function dt(e,t){return ft(!0,e,t)}function ft(e,t,n){const r=Math.round(performance.now()),o=Date.now(),{[ut]:i,url:s}=n;if(i&&!(e&&t instanceof d.HttpAbortError)){var a,c,u;delete n[ut];const{st:p,time:f,perfStartTime:h}=i,{userInstanceId:m,username:g}=A();let v,w,y,b,S,I,O;if(e){const e=t instanceof d.HttpResponseError;(e||t instanceof d.HttpParseError)&&(({status:S,headers:I}=t.response),e&&(O=t.responseJson))}else({status:S,data:O,headers:I}=t);(0,ce.isObject)(O)&&({code:v,message:w}=O),I instanceof Headers&&(y=I.get("x-b3-traceid"),b=I.get("content-length")),l={st:p,_ver:p,uid:m,username:g,time:f,et:o,page:location.href,duration:r-h,api:s,type:"api",code:null!==(a=v)&&void 0!==a?a:-1,msg:null!==(c=w)&&void 0!==c?c:"",status:S,traceId:null!==(u=y)&&void 0!==u?u:"",size:b?Number(b):-1},it?Qe.push({...l,type:"apiRequest",...it}):at.push(l)}var l;return e?Promise.reject(t):t}function ht(){const e=Math.round(performance.now()),t=Date.now();return at.length=0,it=null,function(n){let{status:r,path:o,pageTitle:i}=n;if("ok"!==r)return Qe.push(...at),void(at.length=0);const s=Math.round(performance.now())-e,a=Date.now(),{username:c}=A();(function(e){const t=function(){const e=URL.createObjectURL(new Blob([]));let t=e.substring(e.lastIndexOf("/")+1);return URL.revokeObjectURL(e),st&&(t="88-"+t,st=!1),t}(),{lt:n,route:r}=e;it={lt:n,route:r,pageId:t},Qe.push({...e,pageId:t,apiCount:at.length,maxApiTimeCost:Math.max(0,...at.map((e=>e.duration))),size:at.map((e=>e.size)).filter((e=>e>0)).reduce(((e,t)=>e+t),0)});for(const e of at)Qe.push({...e,...it});at.length=0,rt.emit()})({type:"page",page:location.href,_ver:t,time:Math.round(t/1e3),st:t,et:a,lt:s,pageTitle:i,username:c,route:o}),window.dispatchEvent(new CustomEvent("route.render",{detail:{renderTime:s}}))}}const mt=Object.freeze({checkPermissions:function(){if(!y())return!1;if(A().isAdmin)return!0;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t)switch(k.get(e)){case"unauthorized":case"undefined":return!1;case void 0:return console.error(`Un-checked permission action: "${e}", please make sure the permission to check is defined in permissionsPreCheck.`),!1}return!0},preCheckPermissions:function(e){if(y()&&!A().isAdmin)return M((0,l.scanPermissionActionsInStoryboard)(e))},preCheckPermissionsForBrickOrRoute:async function(e,t){if(y()&&!A().isAdmin&&Array.isArray(e.permissionsPreCheck))return M(await t(e.permissionsPreCheck))}}),gt=new class{constructor(){(0,C.A)(this,X),(0,_.A)(this,Y,void 0),(0,_.A)(this,K,{sub:new Map,unsub:new Map}),(0,_.A)(this,Q,new Map)}subscribe(e,t){const n=JSON.stringify(t);return(0,j.A)(X,this,ee).call(this,"sub",e,t,n)}unsubscribe(e){const t=(0,$.A)(Q,this).get(e);if(!t){const t=`The message channel to unsubscribe "${e}" is not found`;return console.error(t),Promise.reject(new Error(t))}const n=JSON.parse(t),r=(0,j.A)(X,this,ee).call(this,"unsub",e,n,t);return(0,$.A)(K,this).sub.delete(t),r.then((()=>{(0,$.A)(Q,this).delete(e)})),r}onMessage(e,t){let n=(0,$.A)(Q,this).get(e),r=!1;return(0,T.A)(X,this,Z).onMessage((o=>{n||(n=(0,$.A)(Q,this).get(e)),n?"MESSAGE.PUSH"===o.event&&function(e,t){const n=JSON.parse(e);return n.system===t.system&&(n.topic===t.topic||"string"==typeof n.topic&&n.topic.includes("*")&&new RegExp(`^${n.topic.replace(/([^*]*)\*([^*]*)/g,((e,t,n)=>`${(0,D.escapeRegExp)(t)}[^/]*${(0,D.escapeRegExp)(n)}`))}$`).test(t.topic))}(n,o.payload)&&t(o.payload.message):r||(console.error(`Message channel: "${e}" not found`),r=!0)}))}onClose(e){return(0,T.A)(X,this,Z).onClose(e)}reset(){var e;(0,$.A)(K,this).sub.clear(),(0,$.A)(K,this).unsub.clear(),(0,$.A)(Q,this).clear(),null===(e=(0,$.A)(Y,this))||void 0===e||e.reset()}},vt=function(){const e=(0,h.getV2RuntimeFromDll)();if(e)return Object.freeze((0,D.pick)(e,["authenticate","getAuth","isLoggedIn","logout","isBlockedPath","isBlockedUrl","isBlockedHref"]))}()||r}}]);
3
- //# sourceMappingURL=2252.19ff675d.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[3171,5552,790],{75552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>d,i18nText:()=>l,initializeI18n:()=>c});var i=t(2350),s=t(18799),r=t(27072);let a=!1;const o=new Set;function c(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var u=t(56511);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,u.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,u.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const d=i.default}}]);
2
- //# sourceMappingURL=3171.3c5fbb7c.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/4590.b006e665.js","mappings":";gIAGiEA,EAAOC,QAG/D,WAAe,aAEtB,SAASC,EAAQC,GAGf,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAO,mBAAqBC,QAAUD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAC1H,EAAGD,EAAQC,EACb,CAEA,SAASK,EAAgBC,EAAGC,GAM1B,OALAF,EAAkBG,OAAOC,gBAAkB,SAAyBH,EAAGC,GAErE,OADAD,EAAEI,UAAYH,EACPD,CACT,EAEOD,EAAgBC,EAAGC,EAC5B,CAeA,SAASI,EAAWC,EAAQC,EAAMC,GAchC,OAZEH,EAfJ,WACE,GAAuB,oBAAZI,UAA4BA,QA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AU2M,YAAc,WACtBnG,GAAS,KACTxB,IAAa,CACf,EAaAhF,EAAU4M,iBAAmB,SAAUC,EAAK9B,EAAM1M,GAE3CmI,IACHI,GAAa,CAAC,GAGhB,IAAIgE,EAAQpN,GAAkBqP,GAC1BhC,EAASrN,GAAkBuN,GAC/B,OAAOJ,GAAkBC,EAAOC,EAAQxM,EAC1C,EAUA2B,EAAU8M,QAAU,SAAUpD,EAAYqD,GACZ,mBAAjBA,IAIX9J,GAAMyG,GAAczG,GAAMyG,IAAe,GACzC1N,EAAUiH,GAAMyG,GAAaqD,GAC/B,EAWA/M,EAAUgN,WAAa,SAAUtD,GAC/B,GAAIzG,GAAMyG,GACR,OAAO5N,EAASmH,GAAMyG,GAE1B,EASA1J,EAAUiN,YAAc,SAAUvD,GAC5BzG,GAAMyG,KACRzG,GAAMyG,GAAc,GAExB,EAQA1J,EAAUkN,eAAiB,WACzBjK,GAAQ,CAAC,CACX,EAEOjD,CACT,CAEaF,EAId,CA3qDiFqN","sources":["webpack:///../../node_modules/jspdf/node_modules/dompurify/dist/purify.js"],"sourcesContent":["/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n function _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n }\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n }\n\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n }\n\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return _construct(Func, _toConsumableArray(args));\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringToString = unapply(String.prototype.toString);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n var regExpTest = unapply(RegExp.prototype.test);\n var typeErrorCreate = unconstruct(TypeError);\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n /* Add properties to a lookup table */\n\n function addToSet(set, array, transformCaseFunc) {\n var _transformCaseFunc;\n\n transformCaseFunc = (_transformCaseFunc = transformCaseFunc) !== null && _transformCaseFunc !== void 0 ? _transformCaseFunc : stringToLowerCase;\n\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n\n while (l--) {\n var element = array[l];\n\n if (typeof element === 'string') {\n var lcElement = transformCaseFunc(element);\n\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n /* Shallow clone an object */\n\n function clone(object) {\n var newObject = create(null);\n var property;\n\n for (property in object) {\n if (apply(hasOwnProperty, object, [property]) === true) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG\n\n var svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n var mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']); // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n var text = freeze(['#text']);\n\n var html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n var svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n var mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n var MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n\n var ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n var TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n var DOCTYPE_NAME = seal(/^html$/i);\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n\n\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if (_typeof(trustedTypes) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n } // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n\n\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html) {\n return html;\n },\n createScriptURL: function createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n\n\n DOMPurify.version = '2.4.7';\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n HTMLFormElement = window.HTMLFormElement,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n var ElementPrototype = Element.prototype;\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n\n var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n var documentMode = {};\n\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined && documentMode !== 9;\n var MUSTACHE_EXPR$1 = MUSTACHE_EXPR,\n ERB_EXPR$1 = ERB_EXPR,\n TMPLIT_EXPR$1 = TMPLIT_EXPR,\n DATA_ATTR$1 = DATA_ATTR,\n ARIA_ATTR$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray(html$1), _toConsumableArray(svg$1), _toConsumableArray(svgFilters), _toConsumableArray(mathMl$1), _toConsumableArray(text)));\n /* Allowed attribute names */\n\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray(html), _toConsumableArray(svg), _toConsumableArray(mathMl), _toConsumableArray(xml)));\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n\n var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n\n var FORBID_TAGS = null;\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n\n var FORBID_ATTR = null;\n /* Decide if ARIA attributes are okay */\n\n var ALLOW_ARIA_ATTR = true;\n /* Decide if custom data attributes are okay */\n\n var ALLOW_DATA_ATTR = true;\n /* Decide if unknown protocols are okay */\n\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n\n var ALLOW_SELF_CLOSE_IN_ATTR = true;\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n\n var SAFE_FOR_TEMPLATES = false;\n /* Decide if document with <html>... should be returned */\n\n var WHOLE_DOCUMENT = false;\n /* Track whether config is already set on this instance of DOMPurify. */\n\n var SET_CONFIG = false;\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n\n var FORCE_BODY = false;\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n\n var RETURN_DOM = false;\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n\n var RETURN_DOM_FRAGMENT = false;\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n\n var RETURN_TRUSTED_TYPE = false;\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n\n var SANITIZE_DOM = true;\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n\n var SANITIZE_NAMED_PROPS = false;\n var SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n /* Keep element content when removing element? */\n\n var KEEP_CONTENT = true;\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n\n var IN_PLACE = false;\n /* Allow usage of profiles like html, svg and mathMl */\n\n var USE_PROFILES = {};\n /* Tags to ignore content of when KEEP_CONTENT is true */\n\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n /* Tags that are safe for data: URIs */\n\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n /* Attributes safe for values like \"javascript:\" */\n\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n /* Allowed XHTML+XML namespaces */\n\n var ALLOWED_NAMESPACES = null;\n var DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n /* Parsing of strict XHTML documents */\n\n var PARSER_MEDIA_TYPE;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc;\n /* Keep a reference to config to pass to hooks */\n\n var CONFIG = null;\n /* Ideally, do not touch anything below this line */\n\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n var isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n\n\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n /* Shield configuration object from tampering */\n\n\n if (!cfg || _typeof(cfg) !== 'object') {\n cfg = {};\n }\n /* Shield configuration object from prototype pollution */\n\n\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n /* Set configuration parameters */\n\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n /* Parse profile info */\n\n\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, _toConsumableArray(text));\n ALLOWED_ATTR = [];\n\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n /* Merge configuration parameters */\n\n\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n /* Add #text in case KEEP_CONTENT is set to true */\n\n\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n\n\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n\n\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n } // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n\n\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n\n var COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n\n var ALL_SVG_TAGS = addToSet({}, svg$1);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n var ALL_MATHML_TAGS = addToSet({}, mathMl$1);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n } // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n\n\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n } // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n\n\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n } // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n\n\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n } // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n\n\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n } // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n\n\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n } // For XHTML and XML documents that support custom namespaces\n\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n } // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n\n\n return false;\n };\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n\n\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n\n\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name); // We void attribute values for unremovable \"is\"\" attributes\n\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n\n\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc;\n var leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n /* Use createHTMLDocument in case DOMParser is not available */\n\n\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {// Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n /* Work on whole document or just its body */\n\n\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n\n\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n\n\n var _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n\n\n var _isNode = function _isNode(object) {\n return _typeof(Node) === 'object' ? object instanceof Node : object && _typeof(object) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n\n\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n\n\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeElements', currentNode, null);\n /* Check if element is clobbered or can clobber */\n\n\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check if tagname contains Unicode */\n\n\n if (regExpTest(/[\\u0080-\\uFFFF]/, currentNode.nodeName)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Now let's check the element's type and name */\n\n\n var tagName = transformCaseFunc(currentNode.nodeName);\n /* Execute a hook if present */\n\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n /* Detect mXSS attempts abusing namespace confusion */\n\n\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Mitigate a problem with templates inside select */\n\n\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Remove element if anything forbids its presence */\n\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;\n }\n /* Keep content except for bad-listed elements */\n\n\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check whether element has a valid namespace */\n\n\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Make sure that older browsers don't get fallback-tag mXSS */\n\n\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Sanitize element content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$1, ' ');\n content = stringReplace(content, ERB_EXPR$1, ' ');\n content = stringReplace(content, TMPLIT_EXPR$1, ' ');\n\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n\n\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n\n\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if (value) {\n return false;\n } else ;\n\n return true;\n };\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n\n\n var _basicCustomElementTest = function _basicCustomElementTest(tagName) {\n return tagName.indexOf('-') > 0;\n };\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n\n\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr;\n var value;\n var lcName;\n var l;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n /* Go backwards over all attributes; safely remove bad ones */\n\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n /* Execute a hook if present */\n\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n /* Remove attribute */\n\n\n _removeAttribute(name, currentNode);\n /* Did the hooks approve of the attribute? */\n\n\n if (!hookEvent.keepAttr) {\n continue;\n }\n /* Work around a security issue in jQuery 3.0 */\n\n\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n\n continue;\n }\n /* Sanitize attribute content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$1, ' ');\n value = stringReplace(value, ERB_EXPR$1, ' ');\n value = stringReplace(value, TMPLIT_EXPR$1, ' ');\n }\n /* Is `value` valid for this attribute? */\n\n\n var lcTag = transformCaseFunc(currentNode.nodeName);\n\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n\n\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value\n\n\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n /* Handle attributes that require Trusted Types */\n\n\n if (trustedTypesPolicy && _typeof(trustedTypes) === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n /* Handle invalid data-* attribute set by try-catching it */\n\n\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n\n\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode;\n\n var shadowIterator = _createIterator(fragment);\n /* Execute a hook if present */\n\n\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n /* Deep shadow DOM detected */\n\n\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(shadowNode);\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n\n\n DOMPurify.sanitize = function (dirty) {\n var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var body;\n var importedNode;\n var currentNode;\n var oldNode;\n var returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n\n IS_EMPTY_INPUT = !dirty;\n\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n /* Stringify, in case dirty is an object */\n\n\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n /* Check we can run. Otherwise fall back or ignore */\n\n\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n /* Assign config vars */\n\n\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n /* Clean up removed elements */\n\n\n DOMPurify.removed = [];\n /* Check if dirty is correctly typed for IN_PLACE */\n\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n var tagName = transformCaseFunc(dirty.nodeName);\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n /* Initialize the document to work on */\n\n\n body = _initDocument(dirty);\n /* Check we have a DOM node from the data */\n\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n /* Remove first element node (ours) if FORCE_BODY is set */\n\n\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n /* Get node iterator */\n\n\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n /* Now start iterating over the created document */\n\n\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n /* Shadow DOM detected, sanitize it */\n\n\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n /* If we sanitized `dirty` in-place, return it. */\n\n if (IN_PLACE) {\n return dirty;\n }\n /* Return sanitized string or DOM */\n\n\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n /* Serialize doctype if allowed */\n\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n /* Sanitize final string template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n\n\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n\n SET_CONFIG = true;\n };\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n\n\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n\n\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n\n\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n\n\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n\n\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n\n\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n"],"names":["module","exports","_typeof","obj","Symbol","iterator","constructor","prototype","_setPrototypeOf","o","p","Object","setPrototypeOf","__proto__","_construct","Parent","args","Class","Reflect","construct","sham","Proxy","Boolean","valueOf","call","e","_isNativeReflectConstruct","a","push","apply","instance","Function","bind","arguments","_toConsumableArray","arr","Array","isArray","_arrayLikeToArray","_arrayWithoutHoles","iter","from","_iterableToArray","minLen","n","toString","slice","name","test","_unsupportedIterableToArray","TypeError","_nonIterableSpread","len","length","i","arr2","hasOwnProperty","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","freeze","seal","create","_ref","fun","thisValue","x","Func","func","arrayForEach","unapply","forEach","arrayPop","pop","arrayPush","stringToLowerCase","String","toLowerCase","stringToString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","typeErrorCreate","_len2","_key2","thisArg","_len","_key","addToSet","set","array","transformCaseFunc","_transformCaseFunc","l","element","lcElement","clone","object","property","newObject","lookupGetter","prop","desc","get","value","console","warn","html$1","svg$1","svgFilters","svgDisallowed","mathMl$1","mathMlDisallowed","text","html","svg","mathMl","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","createDOMPurify","undefined","DOMPurify","root","version","removed","document","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","_window$NamedNodeMap","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","trustedTypes","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","_createTrustedTypesPolicy","emptyHTML","_document","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","documentMode","hooks","createHTMLDocument","PARSER_MEDIA_TYPE","MUSTACHE_EXPR$1","ERB_EXPR$1","TMPLIT_EXPR$1","DATA_ATTR$1","ARIA_ATTR$1","IS_SCRIPT_OR_DATA$1","ATTR_WHITESPACE$1","IS_ALLOWED_URI$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","concat","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","SUPPORTED_PARSER_MEDIA_TYPES","CONFIG","formElement","isRegexOrFunction","testValue","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_forceRemove","node","parentNode","removeChild","outerHTML","remove","_removeAttribute","attribute","getAttributeNode","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isNode","nodeName","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","elm","textContent","attributes","namespaceURI","hasChildNodes","tagName","allowedTags","firstElementChild","_basicCustomElementTest","parent","parentTagName","_checkValidNamespace","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","_attr","forceKeepAttr","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","oldNode","returnNode","toStaticHTML","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks","factory"],"sourceRoot":""}