From c888eeef1b93687b9ee31eb5d71e1dbd55594f91 Mon Sep 17 00:00:00 2001 From: nuintun Date: Fri, 1 Dec 2023 10:50:25 +0800 Subject: [PATCH] feat: Update examples --- packages/examples/static/index.html | 2 +- .../public/js/{11d1fb32b69c5e54.js => 071debf0e827e226.js} | 2 +- .../public/js/{4f087f6c43eb056b.js => 1389ad027a07af81.js} | 2 +- packages/examples/static/public/js/4b6e653bb4b201d4.js | 1 + packages/examples/static/public/js/5b97ddf07c35c9c5.js | 1 - packages/examples/static/public/js/b4d330c55177e580.js | 1 + packages/examples/static/public/js/ee04f0d2603ead15.js | 1 - 7 files changed, 5 insertions(+), 5 deletions(-) rename packages/examples/static/public/js/{11d1fb32b69c5e54.js => 071debf0e827e226.js} (94%) rename packages/examples/static/public/js/{4f087f6c43eb056b.js => 1389ad027a07af81.js} (98%) create mode 100644 packages/examples/static/public/js/4b6e653bb4b201d4.js delete mode 100644 packages/examples/static/public/js/5b97ddf07c35c9c5.js create mode 100644 packages/examples/static/public/js/b4d330c55177e580.js delete mode 100644 packages/examples/static/public/js/ee04f0d2603ead15.js diff --git a/packages/examples/static/index.html b/packages/examples/static/index.html index 96c74cf7..791650d5 100644 --- a/packages/examples/static/index.html +++ b/packages/examples/static/index.html @@ -1 +1 @@ -二维码
\ No newline at end of file +二维码
\ No newline at end of file diff --git a/packages/examples/static/public/js/11d1fb32b69c5e54.js b/packages/examples/static/public/js/071debf0e827e226.js similarity index 94% rename from packages/examples/static/public/js/11d1fb32b69c5e54.js rename to packages/examples/static/public/js/071debf0e827e226.js index ee218683..192317a7 100644 --- a/packages/examples/static/public/js/11d1fb32b69c5e54.js +++ b/packages/examples/static/public/js/071debf0e827e226.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,f={},c={};function a(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return f[e](n,n.exports,a),n.exports}a.m=f,e=[],a.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(a.O).every(function(e){return a.O[e](n[c])})?n.splice(c--,1):(f=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(a.O).every(function(e){return a.O[e](n[c])})?n.splice(c--,1):(f=!1,oe,[e]),n}},9018:function(e,n,l){l.d(n,{Z:function(){return t}});var r=l(2363),s=l(5354);function t(e,n=128){let l=(0,r.useRef)(),t=(0,s.Z)(n),[a,i]=(0,r.useState)(e),u=(0,r.useCallback)((e,n=t.current)=>{clearTimeout(l.current),n<=0?i(e):l.current=setTimeout(()=>{i(e)},n)},[]);return(0,r.useEffect)(()=>()=>{clearTimeout(l.current)},[]),[a,u]}},541:function(e,n,l){l.r(n),l.d(n,{default:function(){return k}});var r=l(9980),s={result:"ee1aa457",preview:"d52c0583"},t=l(2363),a=l(677),i=l(9018),u=l(5867),c=l(9900),d=l(3738),o=l(9156),x=l(7366),h=l(5475),m=l(3226),j=l(880),f=l(927),v=l(2493),Z=l(9110);let{Option:p}=u.default,{TextArea:b}=c.default,{Item:g,useForm:w,useWatch:A}=d.default;function I(e){return"string"==typeof e?e:e.toHexString()}let y=(0,t.memo)(function({value:e}){if(e)switch(e.type){case"ok":return(0,r.jsx)(o.Z,{src:e.payload,alt:"preview",className:s.preview});case"error":return(0,r.jsx)(x.Z,{type:"error",message:e.message,showIcon:!0});default:return(0,r.jsx)(x.Z,{type:"error",message:"发生未知错误",showIcon:!0})}return null});var k=(0,t.memo)(function(){let e=(0,t.useRef)(!1),n=(0,t.useRef)(),[c]=w(),o=A(["fnc1"],c),x=A("content",c),[k,M]=(0,i.Z)(!1),[S,T]=(0,t.useState)(),C=(0,t.useMemo)(()=>({level:"M",fnc1:"None",mode:"Auto",moduleSize:4,quietZone:16,aimIndicator:0,version:"Auto",charset:"UTF_8",background:"#ffffff",foreground:"#000000",content:"https://github.com/nuintun/qrcode"}),[]),L=(0,t.useMemo)(()=>{let e=[(0,r.jsx)(p,{value:"Auto",children:"Auto"},"Auto")];for(let n=1;n<=40;n++)e.push((0,r.jsx)(p,{value:n,children:n},n));return e},[]),N=(0,t.useCallback)(l=>{let r=n.current;if(r&&!e.current){M(!0),e.current=!0;let n={...l,background:I(l.background),foreground:I(l.foreground)};r.postMessage(n)}},[]);return(0,t.useEffect)(()=>{let r=new Worker(new URL(l.p+l.u(287),l.b));return r.addEventListener("message",({data:n})=>{T(n),M(!1),e.current=!1}),n.current=r,()=>{r.terminate()}},[]),(0,r.jsxs)("div",{className:"ui-page",children:[(0,r.jsx)(d.default,{form:c,layout:"vertical",onFinish:N,initialValues:C,children:(0,r.jsxs)(h.Z,{gutter:24,children:[(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(g,{name:"content",children:(0,r.jsx)(b,{rows:8,allowClear:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"fnc1",label:"支持 FNC1",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"None",children:"否"}),(0,r.jsx)(p,{value:"AIM",children:"AIM"}),(0,r.jsx)(p,{value:"GS1",children:"GS1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"aimIndicator",label:"AIM 标识",children:(0,r.jsx)(j.Z,{disabled:"AIM"!==o,min:0,max:255,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"version",label:"版本大小",children:(0,r.jsx)(u.default,{children:L})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"level",label:"纠错等级",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"L",children:"Level L (7%)"}),(0,r.jsx)(p,{value:"M",children:"Level M (15%)"}),(0,r.jsx)(p,{value:"Q",children:"Level Q (25%)"}),(0,r.jsx)(p,{value:"H",children:"Level H (30%)"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"mode",label:"编码模式",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"Auto",selected:!0,children:"Auto"}),(0,r.jsx)(p,{value:"Alphanumeric",children:"Alphanumeric"}),(0,r.jsx)(p,{value:"Byte",children:"Byte"}),(0,r.jsx)(p,{value:"Hanzi",children:"Hanzi"}),(0,r.jsx)(p,{value:"Kanji",children:"Kanji"}),(0,r.jsx)(p,{value:"Numeric",children:"Numeric"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"charset",label:"字符编码",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"ASCII",children:"ASCII"}),(0,r.jsx)(p,{value:"UTF_8",children:"UTF-8"}),(0,r.jsx)(p,{value:"ISO_8859_1",children:"ISO-8859-1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"moduleSize",label:"模块大小",children:(0,r.jsx)(j.Z,{min:1,max:50,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"quietZone",label:"静区大小",tooltip:"推荐 4 倍模块大小",children:(0,r.jsx)(j.Z,{min:0,max:200,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"foreground",label:"前景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"background",label:"背景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(v.ZP,{type:"primary",htmlType:"submit",loading:k,disabled:!x,icon:(0,r.jsx)(a.Z,{component:Z.Z}),children:"编码"})})]})}),(0,r.jsx)("div",{className:s.result,children:(0,r.jsx)(y,{value:S})})]})})}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[541],{5354:function(e,n,l){l.d(n,{Z:function(){return s}});var r=l(2363);function s(e){let n=(0,r.useRef)(e);return n.current=(0,r.useMemo)(()=>e,[e]),n}},9018:function(e,n,l){l.d(n,{Z:function(){return t}});var r=l(2363),s=l(5354);function t(e,n=128){let l=(0,r.useRef)(),t=(0,s.Z)(n),[a,i]=(0,r.useState)(e),u=(0,r.useCallback)((e,n=t.current)=>{clearTimeout(l.current),n<=0?i(e):l.current=setTimeout(()=>{i(e)},n)},[]);return(0,r.useEffect)(()=>()=>{clearTimeout(l.current)},[]),[a,u]}},541:function(e,n,l){l.r(n),l.d(n,{default:function(){return k}});var r=l(9980),s={result:"ee1aa457",preview:"d52c0583"},t=l(2363),a=l(677),i=l(9018),u=l(5867),c=l(9900),d=l(3738),o=l(9156),x=l(7366),h=l(5475),m=l(3226),j=l(880),f=l(927),v=l(2493),Z=l(6894);let{Option:p}=u.default,{TextArea:b}=c.default,{Item:g,useForm:w,useWatch:A}=d.default;function I(e){return"string"==typeof e?e:e.toHexString()}let y=(0,t.memo)(function({value:e}){if(e)switch(e.type){case"ok":return(0,r.jsx)(o.Z,{src:e.payload,alt:"preview",className:s.preview});case"error":return(0,r.jsx)(x.Z,{type:"error",message:e.message,showIcon:!0});default:return(0,r.jsx)(x.Z,{type:"error",message:"发生未知错误",showIcon:!0})}return null});var k=(0,t.memo)(function(){let e=(0,t.useRef)(!1),n=(0,t.useRef)(),[c]=w(),o=A(["fnc1"],c),x=A("content",c),[k,M]=(0,i.Z)(!1),[S,T]=(0,t.useState)(),C=(0,t.useMemo)(()=>({level:"M",fnc1:"None",mode:"Auto",moduleSize:4,quietZone:16,aimIndicator:0,version:"Auto",charset:"UTF_8",background:"#ffffff",foreground:"#000000",content:"https://github.com/nuintun/qrcode"}),[]),L=(0,t.useMemo)(()=>{let e=[(0,r.jsx)(p,{value:"Auto",children:"Auto"},"Auto")];for(let n=1;n<=40;n++)e.push((0,r.jsx)(p,{value:n,children:n},n));return e},[]),N=(0,t.useCallback)(l=>{let r=n.current;if(r&&!e.current){M(!0),e.current=!0;let n={...l,background:I(l.background),foreground:I(l.foreground)};r.postMessage(n)}},[]);return(0,t.useEffect)(()=>{let r=new Worker(new URL(l.p+l.u(287),l.b));return r.addEventListener("message",({data:n})=>{T(n),M(!1),e.current=!1}),n.current=r,()=>{r.terminate()}},[]),(0,r.jsxs)("div",{className:"ui-page",children:[(0,r.jsx)(d.default,{form:c,layout:"vertical",onFinish:N,initialValues:C,children:(0,r.jsxs)(h.Z,{gutter:24,children:[(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(g,{name:"content",children:(0,r.jsx)(b,{rows:8,allowClear:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"fnc1",label:"支持 FNC1",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"None",children:"否"}),(0,r.jsx)(p,{value:"AIM",children:"AIM"}),(0,r.jsx)(p,{value:"GS1",children:"GS1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"aimIndicator",label:"AIM 标识",children:(0,r.jsx)(j.Z,{disabled:"AIM"!==o,min:0,max:255,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"version",label:"版本大小",children:(0,r.jsx)(u.default,{children:L})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"level",label:"纠错等级",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"L",children:"Level L (7%)"}),(0,r.jsx)(p,{value:"M",children:"Level M (15%)"}),(0,r.jsx)(p,{value:"Q",children:"Level Q (25%)"}),(0,r.jsx)(p,{value:"H",children:"Level H (30%)"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"mode",label:"编码模式",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"Auto",selected:!0,children:"Auto"}),(0,r.jsx)(p,{value:"Alphanumeric",children:"Alphanumeric"}),(0,r.jsx)(p,{value:"Byte",children:"Byte"}),(0,r.jsx)(p,{value:"Hanzi",children:"Hanzi"}),(0,r.jsx)(p,{value:"Kanji",children:"Kanji"}),(0,r.jsx)(p,{value:"Numeric",children:"Numeric"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"charset",label:"字符编码",children:(0,r.jsxs)(u.default,{children:[(0,r.jsx)(p,{value:"ASCII",children:"ASCII"}),(0,r.jsx)(p,{value:"UTF_8",children:"UTF-8"}),(0,r.jsx)(p,{value:"ISO_8859_1",children:"ISO-8859-1"})]})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"moduleSize",label:"模块大小",children:(0,r.jsx)(j.Z,{min:1,max:50,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"quietZone",label:"静区大小",tooltip:"推荐 4 倍模块大小",children:(0,r.jsx)(j.Z,{min:0,max:200,style:{width:"100%"}})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"foreground",label:"前景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{md:6,sm:12,xs:24,children:(0,r.jsx)(g,{name:"background",label:"背景颜色",children:(0,r.jsx)(f.Z,{showText:!0,disabledAlpha:!0})})}),(0,r.jsx)(m.Z,{span:24,children:(0,r.jsx)(v.ZP,{type:"primary",htmlType:"submit",loading:k,disabled:!x,icon:(0,r.jsx)(a.Z,{component:Z.Z}),children:"编码"})})]})}),(0,r.jsx)("div",{className:s.result,children:(0,r.jsx)(y,{value:S})})]})})}}]); \ No newline at end of file diff --git a/packages/examples/static/public/js/4b6e653bb4b201d4.js b/packages/examples/static/public/js/4b6e653bb4b201d4.js new file mode 100644 index 00000000..ecf87ea1 --- /dev/null +++ b/packages/examples/static/public/js/4b6e653bb4b201d4.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[544],{9522:function(e,t,n){"use strict";var r=n(8456),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,l,o,c,s,u,d,p=!1;t||(t={}),l=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(r){l&&console.error("unable to copy using execCommand: ",r),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(r){l&&console.error("unable to copy using clipboardData: ",r),l&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",o=n.replace(/#{\s*key\s*}/g,a),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return p}},5354:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2363);function i(e){let t=(0,r.useRef)(e);return t.current=(0,r.useMemo)(()=>e,[e]),t}},9018:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2363),i=n(5354);function a(e,t=128){let n=(0,r.useRef)(),a=(0,i.Z)(t),[l,o]=(0,r.useState)(e),c=(0,r.useCallback)((e,t=a.current)=>{clearTimeout(n.current),t<=0?o(e):n.current=setTimeout(()=>{o(e)},t)},[]);return(0,r.useEffect)(()=>()=>{clearTimeout(n.current)},[]),[l,c]}},4673:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eU}});var r=n(9980),i={preview:"f9962498",actions:"a741f479",result:"ebf18c46",contents:"aaf4de2d",extra:"ed042f55",locate:"decf7166",locatedToolbar:"ee2649fa"},a=n(2363),l=n(9145),o=n(8157),c=n(9307),s=n(8693),u=n(6538),d=n(7132),p=n(3962),m=n(1485),h=n(2564),f=n(9562),g=n(134);let y=(e,t)=>new g.C(e).setAlpha(t).toRgbString(),w=(e,t)=>new g.C(e).lighten(t).toHexString(),v=e=>{let t=(0,h.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},b=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:y(r,.85),colorTextSecondary:y(r,.65),colorTextTertiary:y(r,.45),colorTextQuaternary:y(r,.25),colorFill:y(r,.18),colorFillSecondary:y(r,.12),colorFillTertiary:y(r,.08),colorFillQuaternary:y(r,.04),colorBgElevated:w(n,12),colorBgContainer:w(n,8),colorBgLayout:w(n,0),colorBgSpotlight:w(n,26),colorBgBlur:y(r,.04),colorBorder:w(n,26),colorBorderSecondary:w(n,19)}};var x={defaultConfig:d.u_,defaultSeed:d.u_.token,useToken:function(){let[e,t,n]=(0,u.Z)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(c.M).map(t=>{let n=(0,h.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign({},null!=t?t:(0,o.Z)(e)),n),(0,f.Z)(e,{generateColorPalettes:v,generateNeutralColorPalettes:b}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,o.Z)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,m.Z)(r)),{controlHeight:i}),(0,p.Z)(Object.assign(Object.assign({},n),{controlHeight:i})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,l.jG)(e.algorithm):(0,l.jG)(o.Z),n=Object.assign(Object.assign({},c.Z),null==e?void 0:e.token);return(0,l.t2)(n,{override:null==e?void 0:e.token},t,s.Z)}},k=n(9522),$=n.n(k),S=n(3060),j=n(6822),C=n(8678),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},E=n(3298),Z=a.forwardRef(function(e,t){return a.createElement(E.Z,(0,C.Z)({},e,{ref:t,icon:I}))});let{useToken:R}=x;var O=(0,a.memo)(function({text:e,debug:t,format:n,message:i}){let{token:l}=R(),[o,c]=(0,a.useState)(0),s=(0,a.useCallback)(()=>{$()(e,{debug:t,format:n,message:i})?c(1):c(2),setTimeout(()=>{c(0)},3e3)},[e,t,n,i]);switch(o){case 1:return(0,r.jsx)(S.Z,{style:{color:l.colorSuccessActive},title:"复制成功"});case 2:return(0,r.jsx)(j.Z,{style:{color:l.colorErrorActive},title:"复制失败"});default:return(0,r.jsx)(Z,{title:"复制",onClick:s})}}),T=n(9018),A=n(2052);let P=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top.window.document._=0}catch(e){return!1}return"showOpenFilePicker"in self})(),M=P?Promise.resolve().then(function(){return N}):Promise.resolve().then(function(){return B});async function L(...e){return(await M).default(...e)}P?Promise.resolve().then(function(){return z}):Promise.resolve().then(function(){return V}),P?Promise.resolve().then(function(){return U}):Promise.resolve().then(function(){return X});let D=async e=>{let t=await e.getFile();return t.handle=e,t};var N={__proto__:null,default:async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach((e,n)=>{t[n]={description:e.description||"Files",accept:{}},e.mimeTypes?e.mimeTypes.map(r=>{t[n].accept[r]=e.extensions||[]}):t[n].accept["*/*"]=e.extensions||[]});let n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(n.map(D));return e[0].multiple?r:r[0]}};function _(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(_=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new _(e)}let H=async(e,t,n=e.name,r)=>{let i=[],a=[];var l,o=!1,c=!1;try{for(var s,u=function(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new _(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(e.values());o=!(s=await u.next()).done;o=!1){let l=s.value,o=`${n}/${l.name}`;"file"===l.kind?a.push(l.getFile().then(t=>(t.directoryHandle=e,t.handle=l,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o})))):"directory"!==l.kind||!t||r&&r(l)||i.push(H(l,t,o,r))}}catch(e){c=!0,l=e}finally{try{o&&null!=u.return&&await u.return()}finally{if(c)throw l}}return[...(await Promise.all(i)).flat(),...await Promise.all(a)]};var z={__proto__:null,default:async(e={})=>{e.recursive=e.recursive||!1,e.mode=e.mode||"read";let t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn,mode:e.mode});return(await (await t.values()).next()).done?[t]:H(t,e.recursive,void 0,e.skipDirectory)}},U={__proto__:null,default:async(e,t=[{}],n=null,r=!1,i=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let a=[],l=null;if(e instanceof Blob&&e.type?l=e.type:e.headers&&e.headers.get("content-type")&&(l=e.headers.get("content-type")),t.forEach((e,t)=>{a[t]={description:e.description||"Files",accept:{}},e.mimeTypes?(0===t&&l&&e.mimeTypes.push(l),e.mimeTypes.map(n=>{a[t].accept[n]=e.extensions||[]})):l?a[t].accept[l]=e.extensions||[]:a[t].accept["*/*"]=e.extensions||[]}),n)try{await n.getFile()}catch(e){if(n=null,r)throw e}let o=n||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:a,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!n&&i&&i(o);let c=await o.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(c),o}return"body"in e?await e.body.pipeTo(c):(await c.write(await e),await c.close()),o}},B={__proto__:null,default:async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,n)=>{let r=document.createElement("input");r.type="file";let i=[...e.map(e=>e.mimeTypes||[]),...e.map(e=>e.extensions||[])].join();r.multiple=e[0].multiple||!1,r.accept=i||"",r.style.display="none",document.body.append(r);let a=e=>{"function"==typeof l&&l(),t(e)},l=e[0].legacySetup&&e[0].legacySetup(a,()=>l(n),r),o=()=>{window.removeEventListener("focus",o),r.remove()};r.addEventListener("click",()=>{window.addEventListener("focus",o)}),r.addEventListener("change",()=>{window.removeEventListener("focus",o),r.remove(),a(r.multiple?Array.from(r.files):r.files[0])}),"showPicker"in HTMLInputElement.prototype?r.showPicker():r.click()}))},V={__proto__:null,default:async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,n)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let i=e=>{"function"==typeof a&&a(),t(e)},a=e[0].legacySetup&&e[0].legacySetup(i,()=>a(n),r);r.addEventListener("change",()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(t=>t.webkitRelativePath.split("/").every(t=>!e[0].skipDirectory({name:t,kind:"directory"})))):t=t.filter(e=>2===e.webkitRelativePath.split("/").length),i(t)}),"showPicker"in HTMLInputElement.prototype?r.showPicker():r.click()}))},X={__proto__:null,default:async(e,t={})=>{Array.isArray(t)&&(t=t[0]);let n=document.createElement("a"),r=e;"body"in e&&(r=await async function(e,t){let n=e.getReader(),r=new ReadableStream({start:e=>(async function t(){return n.read().then(({done:n,value:r})=>{if(!n)return e.enqueue(r),t();e.close()})})()}),i=new Response(r),a=await i.blob();return n.releaseLock(),new Blob([a],{type:t})}(e.body,e.headers.get("content-type"))),n.download=t.fileName||"Untitled",n.href=URL.createObjectURL(await r);let i=()=>{"function"==typeof a&&a()},a=t.legacySetup&&t.legacySetup(i,()=>a(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),i()}),n.click(),null}},F=n(5354);function W(e){return"function"==typeof e}function G(e){let{valuePropName:t="value"}=e;return t}let{useApp:K}=A.default;var Q=(0,a.memo)(function(e){let{message:t}=K(),n=(0,a.useRef)(),[i,l]=function(e,t={}){let n=function(){let e=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,a.useCallback)(()=>e.current,[])}(),r=(0,F.Z)(e),i=(0,F.Z)(t),[l=t.defaultValue,o]=(0,a.useState)(()=>G(t) in e?e[G(t)]:e[function(e){let{defaultValuePropName:t="defaultValue"}=e;return t}(t)]),c=(0,F.Z)(l),s=(0,a.useCallback)((e,...t)=>{if(n()){let{current:n}=c,a=W(e)?e(n):e;if(a!==n){let{current:e}=r,{trigger:n="onChange"}=e,{current:l}=i;G(l) in e||o(a),W(e[n])&&e[n](a,...t)}}},[]);return(0,a.useEffect)(()=>{if(G(t) in e){let n=e[G(t)];n!==l&&o(n)}}),[l,s]}(e),{children:o,disabled:c,preview:s,accept:u="image/*"}=e,d=(0,a.useCallback)(()=>{c||L({mimeTypes:[u]}).then(e=>{/^image\/.+$/i.test(e.type)?l(()=>(n.current&&URL.revokeObjectURL(n.current),n.current=URL.createObjectURL(e),n.current)):t.error("请选择图片格式文件")},()=>{})},[u,c]);return(0,r.jsxs)("div",{className:"a6678820",children:[(0,r.jsx)("div",{onClick:d,children:o}),s&&s(i)]})}),q=n(677),J=n(9519),Y=n(3738),ee=n(9156),et=n(2493),en=n(7750),er=n(7366),ei=n(5475),ea=n(3226),el=n(8920),eo=n.n(el),ec=n(7323),es=n(2456),eu=n(8638),ed=n(2197),ep=n(7652),em=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],eh=a.forwardRef(function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,l=e.className,o=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,m=e.onClick,h=e.onChange,f=e.onKeyDown,g=(0,eu.Z)(e,em),y=(0,ed.Z)(!1,{value:o,defaultValue:c}),w=(0,es.Z)(y,2),v=w[0],b=w[1];function x(e,t){var n=v;return s||(b(n=e),null==h||h(n,t)),n}var k=eo()(i,l,(n={},(0,ec.Z)(n,"".concat(i,"-checked"),v),(0,ec.Z)(n,"".concat(i,"-disabled"),s),n));return a.createElement("button",(0,C.Z)({},g,{type:"button",role:"switch","aria-checked":v,disabled:s,className:k,ref:t,onKeyDown:function(e){e.which===ep.Z.LEFT?x(!1,e):e.which===ep.Z.RIGHT&&x(!0,e),null==f||f(e)},onClick:function(e){var t=x(!v,e);null==m||m(t,e)}}),u,a.createElement("span",{className:"".concat(i,"-inner")},a.createElement("span",{className:"".concat(i,"-inner-checked")},d),a.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))});eh.displayName="Switch";var ef=n(1921),eg=n(3287),ey=n(5870),ew=n(6515),ev=n(4356),eb=n(5895),ex=n(7456);let ek=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:l,handleSizeSM:o}=e,c=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${o+2*r}px - ${2*l}px)`,marginInlineEnd:`calc(100% - ${o+2*r}px + ${2*l}px)`},[`${c}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:o,height:o},[`${t}-loading-icon`]:{top:(o-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${o+2*r}px + ${2*l}px)`,marginInlineEnd:`calc(-100% + ${o+2*r}px - ${2*l}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${o+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},e$=e=>{let{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},eS=e=>{let{componentCls:t,motion:n,trackPadding:r,handleBg:i,handleShadow:a,handleSize:l}=e,o=`${t}-handle`;return{[t]:{[o]:{position:"absolute",top:r,insetInlineStart:r,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:l/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${o}`]:{insetInlineStart:`calc(100% - ${l+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${o}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${o}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},ej=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:l}=e,o=`${t}-inner`;return{[t]:{[o]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${o}-checked, ${o}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*a}px)`},[`${o}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${o}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*a}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:-(2*r)}},[`&${t}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:-(2*r),marginInlineEnd:2*r}}}}}},eC=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ev.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,ev.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var eI=(0,eb.Z)("Switch",e=>{let t=(0,ex.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[eC(t),ej(t),eS(t),e$(t),ek(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,l=r/2,o=a-4,c=l-4;return{trackHeight:a,trackHeightSM:l,trackMinWidth:2*o+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:i,handleSize:o,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new g.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:o/2,innerMaxMargin:o+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let eZ=a.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:l,className:o,rootClassName:c,style:s}=e,u=eE(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:d,direction:p,switch:m}=a.useContext(eg.E_),h=a.useContext(ey.Z),f=(null!=i?i:h)||l,g=d("switch",n),y=a.createElement("div",{className:`${g}-handle`},l&&a.createElement(J.Z,{className:`${g}-loading-icon`})),[w,v]=eI(g),b=(0,ew.Z)(r),x=eo()(null==m?void 0:m.className,{[`${g}-small`]:"small"===b,[`${g}-loading`]:l,[`${g}-rtl`]:"rtl"===p},o,c,v),k=Object.assign(Object.assign({},null==m?void 0:m.style),s);return w(a.createElement(ef.Z,{component:"Switch"},a.createElement(eh,Object.assign({},u,{prefixCls:g,className:x,style:k,disabled:f,ref:t,loadingIcon:y}))))});eZ.__ANT_SWITCH=!0;var eR=n.p+"images/3db910008d877cd2.jpg",eO=n(1047),eT=n(8152);let eA=(0,a.memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:[(0,r.jsx)("path",{d:"M341.331 512c0 94.26 76.416 170.669 170.669 170.669 94.26 0 170.669-76.416 170.669-170.669 0-94.26-76.416-170.669-170.669-170.669-94.26 0-170.669 76.416-170.669 170.669"}),(0,r.jsx)("path",{d:"M972.8 460.8h-54.784C894.509 275.443 748.556 129.491 563.2 105.984V51.2a51.2 51.2 0 1 0-102.4 0v54.784C275.443 129.491 129.491 275.444 105.984 460.8H51.2a51.2 51.2 0 1 0 0 102.4h54.784c23.507 185.357 169.46 331.309 354.816 354.816V972.8a51.2 51.2 0 1 0 102.4 0v-54.784c185.357-23.507 331.309-169.46 354.816-354.816H972.8a51.2 51.2 0 1 0 0-102.4M512 819.2c-169.664 0-307.2-137.536-307.2-307.2S342.336 204.8 512 204.8 819.2 342.336 819.2 512 681.664 819.2 512 819.2"})]})),eP=(0,a.memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,r.jsx)("path",{d:"M909 897H115a50 50 0 0 1-50-50V177a50 50 0 0 1 50-50h370a50 50 0 0 1 50 50v62a10 10 0 0 0 10 10h241a50 50 0 0 1 50 50v58h73a50 50 0 0 1 50 50v440a50 50 0 0 1-50 50M505 309a30 30 0 0 1-30-30v-72a20 20 0 0 0-20-20H145a20 20 0 0 0-20 20v610c0 11.046 9.377 20 20.422 20H209a20 20 0 0 0 20-20V407a50 50 0 0 1 50-50h497v-28a20 20 0 0 0-20-20H535m364 128a20 20 0 0 0-20-20H309a20 20 0 0 0-20 20v400h590a20 20 0 0 0 20-20zM650.659 615.8l-26.618-26.53V737a30 30 0 0 1-30 30h-.113a30 30 0 0 1-30-30V589.275L537.309 615.8a30.006 30.006 0 0 1-42.509-42.36l77.928-77.669a30.127 30.127 0 0 1 42.506 0l77.929 77.669a30.007 30.007 0 0 1-42.504 42.36"})})),{useApp:eM}=A.default,{Item:eL,useForm:eD,useWatch:eN}=Y.default,e_=(0,a.memo)(function({uid:e,name:t,items:l,image:o,trigger:c,currentRef:s}){let u=(0,a.useRef)(!1),d=(0,a.useRef)(),{message:p}=eM(),m=(0,a.useRef)(),[h,f]=(0,a.useState)(),[g,y]=(0,a.useState)(!1),[w,v]=(0,T.Z)(!1),b=(0,a.useMemo)(()=>({src:h,visible:g,onVisibleChange(e){y(e)},toolbarRender(e){return(0,r.jsxs)("div",{className:i.locatedToolbar,children:[(0,r.jsx)("p",{children:t}),e]})}}),[h,t,g]),x=(0,a.useCallback)(()=>{if(s.current=e,m.current!==e){let t=d.current;if(t&&!u.current){v(!0),u.current=!0,m.current=e;let n=function(e){let t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),t.transferToImageBitmap()}(o),r={image:n,items:l.map(e=>({finder:e.finder,timing:e.timing,corners:e.corners,alignment:e.alignment}))};t.postMessage(r,[n])}}else y(e=>!e)},[e,o,l]);return(0,a.useEffect)(()=>{let t=new Worker(new URL(n.p+n.u(91),n.b));return t.addEventListener("message",({data:t})=>{switch(v(!1),u.current=!1,t.type){case"ok":f(t.payload);let{current:n}=s;n===e&&y(e=>!e);break;case"error":p.error(t.message);break;default:p.error("发生未知错误")}}),d.current=t,()=>{t.terminate()}},[e]),(0,r.jsxs)("div",{className:i.locate,children:[c(w,x),(0,r.jsx)(ee.Z,{hidden:!0,src:eO,preview:b})]})}),eH=(0,a.memo)(function({state:e,currentRef:t}){if(e&&"ok"===e.type){let{payload:n}=e,{uid:i,image:a,items:l}=n;return(0,r.jsx)(e_,{uid:i,name:"概览",image:a,items:l,currentRef:t,trigger:(e,t)=>(0,r.jsx)(et.ZP,{loading:e,onClick:t,icon:(0,r.jsx)(q.Z,{component:eA}),children:"概览"})},i)}return null}),ez=(0,a.memo)(function({state:e,currentRef:t}){let n=(0,a.useMemo)(()=>{if(e&&"ok"===e.type){let{uid:n,image:a,items:l}=e.payload;return l.map((e,l)=>{let{content:o}=e,c=`${n}-${l}`,s=`解码结果【${l+1}】`;return{key:c,label:s,children:(0,r.jsx)("pre",{children:o}),extra:(0,r.jsxs)("div",{onClick:e=>{e.stopPropagation()},className:i.extra,children:[(0,r.jsx)(O,{text:o}),(0,r.jsx)(e_,{uid:c,name:s,image:a,items:[e],currentRef:t,trigger:(e,t)=>e?(0,r.jsx)(J.Z,{}):(0,r.jsx)(q.Z,{title:"查看位置",component:eA,onClick:t})},c)]})}})}},[e]);if(e)switch(e.type){case"ok":return(0,r.jsx)(en.Z,{size:"small",items:n,className:i.contents,defaultActiveKey:`${e.payload.uid}-0`},e.payload.uid);case"error":return(0,r.jsx)(er.Z,{type:"error",message:e.message,showIcon:!0});default:return(0,r.jsx)(er.Z,{type:"error",message:"发生未知错误",showIcon:!0})}return null});var eU=(0,a.memo)(function(){let e=(0,a.useRef)(!1),t=(0,a.useRef)(),[l]=eD(),o=eN(["image"],l),c=(0,a.useRef)(),[s,u]=(0,T.Z)(!1),[d,p]=(0,a.useState)(),m=(0,a.useMemo)(()=>({image:eR,strict:!1,invert:!1}),[]),h=(0,a.useCallback)(n=>{let r=t.current;if(r&&!e.current){u(!0),e.current=!0;let{image:t}=n,i=new self.Image;i.crossOrigin="anonymous",i.addEventListener("error",()=>{u(!1)}),i.addEventListener("load",()=>{createImageBitmap(i).then(e=>{let i={...n,image:e,uid:t};r.postMessage(i,[e])})}),i.src=t}},[]),f=(0,a.useCallback)(e=>e?(0,r.jsx)(ee.Z,{src:e,alt:"preview",className:i.preview}):null,[]);return(0,a.useEffect)(()=>{let r=new Worker(new URL(n.p+n.u(168),n.b));return r.addEventListener("message",({data:t})=>{p(t),u(!1),e.current=!1}),t.current=r,()=>{r.terminate()}},[]),(0,r.jsxs)("div",{className:"ui-page",children:[(0,r.jsx)(Y.default,{form:l,onFinish:h,layout:"vertical",initialValues:m,children:(0,r.jsxs)(ei.Z,{gutter:24,children:[(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"image",children:(0,r.jsx)(Q,{preview:f,children:(0,r.jsx)(et.ZP,{icon:(0,r.jsx)(q.Z,{component:eP}),children:"选择图片"})})})}),(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"strict",label:"严格模式",valuePropName:"checked",tooltip:"可增加扫描速度,但会降低识别率",children:(0,r.jsx)(eZ,{checkedChildren:"开",unCheckedChildren:"关"})})}),(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"invert",label:"图片反色",valuePropName:"checked",children:(0,r.jsx)(eZ,{checkedChildren:"开",unCheckedChildren:"关"})})}),(0,r.jsxs)(ea.Z,{span:24,className:i.actions,children:[(0,r.jsx)(et.ZP,{type:"primary",htmlType:"submit",loading:s,disabled:!o,icon:(0,r.jsx)(q.Z,{component:eT.Z}),children:"解码"}),(0,r.jsx)(eH,{state:d,currentRef:c})]})]})}),(0,r.jsx)("div",{className:i.result,children:(0,r.jsx)(ez,{state:d,currentRef:c})})]})})},8456:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;re,[e]),t}},9018:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2363),i=n(5354);function a(e,t=128){let n=(0,r.useRef)(),a=(0,i.Z)(t),[l,o]=(0,r.useState)(e),c=(0,r.useCallback)((e,t=a.current)=>{clearTimeout(n.current),t<=0?o(e):n.current=setTimeout(()=>{o(e)},t)},[]);return(0,r.useEffect)(()=>()=>{clearTimeout(n.current)},[]),[l,c]}},21:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eU}});var r=n(9980),i={preview:"f9962498",actions:"a741f479",result:"ebf18c46",contents:"aaf4de2d",extra:"ed042f55",locate:"decf7166",locatedToolbar:"ee2649fa"},a=n(2363),l=n(9145),o=n(8157),c=n(9307),s=n(8693),u=n(6538),d=n(7132),p=n(3962),m=n(1485),h=n(2564),f=n(9562),g=n(134);let y=(e,t)=>new g.C(e).setAlpha(t).toRgbString(),w=(e,t)=>new g.C(e).lighten(t).toHexString(),v=e=>{let t=(0,h.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},b=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:y(r,.85),colorTextSecondary:y(r,.65),colorTextTertiary:y(r,.45),colorTextQuaternary:y(r,.25),colorFill:y(r,.18),colorFillSecondary:y(r,.12),colorFillTertiary:y(r,.08),colorFillQuaternary:y(r,.04),colorBgElevated:w(n,12),colorBgContainer:w(n,8),colorBgLayout:w(n,0),colorBgSpotlight:w(n,26),colorBgBlur:y(r,.04),colorBorder:w(n,26),colorBorderSecondary:w(n,19)}};var x={defaultConfig:d.u_,defaultSeed:d.u_.token,useToken:function(){let[e,t,n]=(0,u.Z)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(c.M).map(t=>{let n=(0,h.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign({},null!=t?t:(0,o.Z)(e)),n),(0,f.Z)(e,{generateColorPalettes:v,generateNeutralColorPalettes:b}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,o.Z)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,m.Z)(r)),{controlHeight:i}),(0,p.Z)(Object.assign(Object.assign({},n),{controlHeight:i})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,l.jG)(e.algorithm):(0,l.jG)(o.Z),n=Object.assign(Object.assign({},c.Z),null==e?void 0:e.token);return(0,l.t2)(n,{override:null==e?void 0:e.token},t,s.Z)}},k=n(9522),$=n.n(k),S=n(3060),j=n(6822),C=n(8678),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},E=n(3298),Z=a.forwardRef(function(e,t){return a.createElement(E.Z,(0,C.Z)({},e,{ref:t,icon:I}))});let{useToken:R}=x;var O=(0,a.memo)(function({text:e,debug:t,format:n,message:i}){let{token:l}=R(),[o,c]=(0,a.useState)(0),s=(0,a.useCallback)(()=>{$()(e,{debug:t,format:n,message:i})?c(1):c(2),setTimeout(()=>{c(0)},3e3)},[e,t,n,i]);switch(o){case 1:return(0,r.jsx)(S.Z,{style:{color:l.colorSuccessActive},title:"复制成功"});case 2:return(0,r.jsx)(j.Z,{style:{color:l.colorErrorActive},title:"复制失败"});default:return(0,r.jsx)(Z,{title:"复制",onClick:s})}}),T=n(9018),A=n(2052);let P=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top.window.document._=0}catch(e){return!1}return"showOpenFilePicker"in self})(),M=P?Promise.resolve().then(function(){return N}):Promise.resolve().then(function(){return B});async function L(...e){return(await M).default(...e)}P?Promise.resolve().then(function(){return H}):Promise.resolve().then(function(){return V}),P?Promise.resolve().then(function(){return U}):Promise.resolve().then(function(){return X});let D=async e=>{let t=await e.getFile();return t.handle=e,t};var N={__proto__:null,default:async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach((e,n)=>{t[n]={description:e.description||"Files",accept:{}},e.mimeTypes?e.mimeTypes.map(r=>{t[n].accept[r]=e.extensions||[]}):t[n].accept["*/*"]=e.extensions||[]});let n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(n.map(D));return e[0].multiple?r:r[0]}};function _(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(_=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new _(e)}let z=async(e,t,n=e.name,r)=>{let i=[],a=[];var l,o=!1,c=!1;try{for(var s,u=function(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new _(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(e.values());o=!(s=await u.next()).done;o=!1){let l=s.value,o=`${n}/${l.name}`;"file"===l.kind?a.push(l.getFile().then(t=>(t.directoryHandle=e,t.handle=l,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o})))):"directory"!==l.kind||!t||r&&r(l)||i.push(z(l,t,o,r))}}catch(e){c=!0,l=e}finally{try{o&&null!=u.return&&await u.return()}finally{if(c)throw l}}return[...(await Promise.all(i)).flat(),...await Promise.all(a)]};var H={__proto__:null,default:async(e={})=>{e.recursive=e.recursive||!1,e.mode=e.mode||"read";let t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn,mode:e.mode});return(await (await t.values()).next()).done?[t]:z(t,e.recursive,void 0,e.skipDirectory)}},U={__proto__:null,default:async(e,t=[{}],n=null,r=!1,i=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let a=[],l=null;if(e instanceof Blob&&e.type?l=e.type:e.headers&&e.headers.get("content-type")&&(l=e.headers.get("content-type")),t.forEach((e,t)=>{a[t]={description:e.description||"Files",accept:{}},e.mimeTypes?(0===t&&l&&e.mimeTypes.push(l),e.mimeTypes.map(n=>{a[t].accept[n]=e.extensions||[]})):l?a[t].accept[l]=e.extensions||[]:a[t].accept["*/*"]=e.extensions||[]}),n)try{await n.getFile()}catch(e){if(n=null,r)throw e}let o=n||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:a,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!n&&i&&i(o);let c=await o.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(c),o}return"body"in e?await e.body.pipeTo(c):(await c.write(await e),await c.close()),o}},B={__proto__:null,default:async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,n)=>{let r=document.createElement("input");r.type="file";let i=[...e.map(e=>e.mimeTypes||[]),...e.map(e=>e.extensions||[])].join();r.multiple=e[0].multiple||!1,r.accept=i||"",r.style.display="none",document.body.append(r);let a=e=>{"function"==typeof l&&l(),t(e)},l=e[0].legacySetup&&e[0].legacySetup(a,()=>l(n),r),o=()=>{window.removeEventListener("focus",o),r.remove()};r.addEventListener("click",()=>{window.addEventListener("focus",o)}),r.addEventListener("change",()=>{window.removeEventListener("focus",o),r.remove(),a(r.multiple?Array.from(r.files):r.files[0])}),"showPicker"in HTMLInputElement.prototype?r.showPicker():r.click()}))},V={__proto__:null,default:async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,n)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let i=e=>{"function"==typeof a&&a(),t(e)},a=e[0].legacySetup&&e[0].legacySetup(i,()=>a(n),r);r.addEventListener("change",()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(t=>t.webkitRelativePath.split("/").every(t=>!e[0].skipDirectory({name:t,kind:"directory"})))):t=t.filter(e=>2===e.webkitRelativePath.split("/").length),i(t)}),"showPicker"in HTMLInputElement.prototype?r.showPicker():r.click()}))},X={__proto__:null,default:async(e,t={})=>{Array.isArray(t)&&(t=t[0]);let n=document.createElement("a"),r=e;"body"in e&&(r=await async function(e,t){let n=e.getReader(),r=new ReadableStream({start:e=>(async function t(){return n.read().then(({done:n,value:r})=>{if(!n)return e.enqueue(r),t();e.close()})})()}),i=new Response(r),a=await i.blob();return n.releaseLock(),new Blob([a],{type:t})}(e.body,e.headers.get("content-type"))),n.download=t.fileName||"Untitled",n.href=URL.createObjectURL(await r);let i=()=>{"function"==typeof a&&a()},a=t.legacySetup&&t.legacySetup(i,()=>a(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),i()}),n.click(),null}},F=n(5354);function W(e){return"function"==typeof e}function G(e){let{valuePropName:t="value"}=e;return t}let{useApp:K}=A.default;var Q=(0,a.memo)(function(e){let{message:t}=K(),n=(0,a.useRef)(),[i,l]=function(e,t={}){let n=function(){let e=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,a.useCallback)(()=>e.current,[])}(),r=(0,F.Z)(e),i=(0,F.Z)(t),[l=t.defaultValue,o]=(0,a.useState)(()=>G(t) in e?e[G(t)]:e[function(e){let{defaultValuePropName:t="defaultValue"}=e;return t}(t)]),c=(0,F.Z)(l),s=(0,a.useCallback)((e,...t)=>{if(n()){let{current:n}=c,a=W(e)?e(n):e;if(a!==n){let{current:e}=r,{trigger:n="onChange"}=e,{current:l}=i;G(l) in e||o(a),W(e[n])&&e[n](a,...t)}}},[]);return(0,a.useEffect)(()=>{if(G(t) in e){let n=e[G(t)];n!==l&&o(n)}}),[l,s]}(e),{children:o,disabled:c,preview:s,accept:u="image/*"}=e,d=(0,a.useCallback)(()=>{c||L({mimeTypes:[u]}).then(e=>{/^image\/.+$/i.test(e.type)?l(()=>(n.current&&URL.revokeObjectURL(n.current),n.current=URL.createObjectURL(e),n.current)):t.error("请选择图片格式文件")},()=>{})},[u,c]);return(0,r.jsxs)("div",{className:"a6678820",children:[(0,r.jsx)("div",{onClick:d,children:o}),s&&s(i)]})}),q=n(677),J=n(9519),Y=n(3738),ee=n(9156),et=n(2493),en=n(7750),er=n(7366),ei=n(5475),ea=n(3226),el=n(8920),eo=n.n(el),ec=n(7323),es=n(2456),eu=n(8638),ed=n(2197),ep=n(7652),em=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],eh=a.forwardRef(function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,l=e.className,o=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,m=e.onClick,h=e.onChange,f=e.onKeyDown,g=(0,eu.Z)(e,em),y=(0,ed.Z)(!1,{value:o,defaultValue:c}),w=(0,es.Z)(y,2),v=w[0],b=w[1];function x(e,t){var n=v;return s||(b(n=e),null==h||h(n,t)),n}var k=eo()(i,l,(n={},(0,ec.Z)(n,"".concat(i,"-checked"),v),(0,ec.Z)(n,"".concat(i,"-disabled"),s),n));return a.createElement("button",(0,C.Z)({},g,{type:"button",role:"switch","aria-checked":v,disabled:s,className:k,ref:t,onKeyDown:function(e){e.which===ep.Z.LEFT?x(!1,e):e.which===ep.Z.RIGHT&&x(!0,e),null==f||f(e)},onClick:function(e){var t=x(!v,e);null==m||m(t,e)}}),u,a.createElement("span",{className:"".concat(i,"-inner")},a.createElement("span",{className:"".concat(i,"-inner-checked")},d),a.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))});eh.displayName="Switch";var ef=n(1921),eg=n(3287),ey=n(5870),ew=n(6515),ev=n(4356),eb=n(5895),ex=n(7456);let ek=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:l,handleSizeSM:o}=e,c=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${o+2*r}px - ${2*l}px)`,marginInlineEnd:`calc(100% - ${o+2*r}px + ${2*l}px)`},[`${c}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:o,height:o},[`${t}-loading-icon`]:{top:(o-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${o+2*r}px + ${2*l}px)`,marginInlineEnd:`calc(-100% + ${o+2*r}px - ${2*l}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${o+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},e$=e=>{let{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},eS=e=>{let{componentCls:t,motion:n,trackPadding:r,handleBg:i,handleShadow:a,handleSize:l}=e,o=`${t}-handle`;return{[t]:{[o]:{position:"absolute",top:r,insetInlineStart:r,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:l/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${o}`]:{insetInlineStart:`calc(100% - ${l+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${o}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${o}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},ej=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:l}=e,o=`${t}-inner`;return{[t]:{[o]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${o}-checked, ${o}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*a}px)`},[`${o}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${o}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*a}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:-(2*r)}},[`&${t}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:-(2*r),marginInlineEnd:2*r}}}}}},eC=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ev.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,ev.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var eI=(0,eb.Z)("Switch",e=>{let t=(0,ex.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[eC(t),ej(t),eS(t),e$(t),ek(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,l=r/2,o=a-4,c=l-4;return{trackHeight:a,trackHeightSM:l,trackMinWidth:2*o+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:i,handleSize:o,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new g.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:o/2,innerMaxMargin:o+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let eZ=a.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:l,className:o,rootClassName:c,style:s}=e,u=eE(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:d,direction:p,switch:m}=a.useContext(eg.E_),h=a.useContext(ey.Z),f=(null!=i?i:h)||l,g=d("switch",n),y=a.createElement("div",{className:`${g}-handle`},l&&a.createElement(J.Z,{className:`${g}-loading-icon`})),[w,v]=eI(g),b=(0,ew.Z)(r),x=eo()(null==m?void 0:m.className,{[`${g}-small`]:"small"===b,[`${g}-loading`]:l,[`${g}-rtl`]:"rtl"===p},o,c,v),k=Object.assign(Object.assign({},null==m?void 0:m.style),s);return w(a.createElement(ef.Z,{component:"Switch"},a.createElement(eh,Object.assign({},u,{prefixCls:g,className:x,style:k,disabled:f,ref:t,loadingIcon:y}))))});eZ.__ANT_SWITCH=!0;var eR=n.p+"images/3db910008d877cd2.jpg",eO=n(1047),eT=n(6159);let eA=(0,a.memo)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:[(0,r.jsx)("path",{d:"M341.331 512c0 94.26 76.416 170.669 170.669 170.669 94.26 0 170.669-76.416 170.669-170.669 0-94.26-76.416-170.669-170.669-170.669-94.26 0-170.669 76.416-170.669 170.669z"}),(0,r.jsx)("path",{d:"M972.8 460.8h-54.784C894.509 275.443 748.556 129.491 563.2 105.984V51.2a51.2 51.2 0 1 0-102.4 0v54.784C275.443 129.491 129.491 275.444 105.984 460.8H51.2a51.2 51.2 0 1 0 0 102.4h54.784c23.507 185.357 169.46 331.309 354.816 354.816V972.8a51.2 51.2 0 1 0 102.4 0v-54.784c185.357-23.507 331.309-169.46 354.816-354.816H972.8a51.2 51.2 0 1 0 0-102.4zM512 819.2c-169.664 0-307.2-137.536-307.2-307.2S342.336 204.8 512 204.8 819.2 342.336 819.2 512 681.664 819.2 512 819.2"})]})),eP=(0,a.memo)(e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,r.jsx)("path",{d:"M909 897H115a50 50 0 0 1-50-50V177a50 50 0 0 1 50-50h370a50 50 0 0 1 50 50v62a10 10 0 0 0 10 10h241a50 50 0 0 1 50 50v58h73a50 50 0 0 1 50 50v440a50 50 0 0 1-50 50M505 309a30 30 0 0 1-30-30v-72a20 20 0 0 0-20-20H145a20 20 0 0 0-20 20v610c0 11.046 9.377 20 20.422 20H209a20 20 0 0 0 20-20V407a50 50 0 0 1 50-50h497v-28a20 20 0 0 0-20-20H535m364 128a20 20 0 0 0-20-20H309a20 20 0 0 0-20 20v400h590a20 20 0 0 0 20-20zM650.659 615.8l-26.618-26.53V737a30 30 0 0 1-30 30h-.113a30 30 0 0 1-30-30V589.275L537.309 615.8a30.006 30.006 0 0 1-42.509-42.36l77.928-77.669a30.127 30.127 0 0 1 42.506 0l77.929 77.669a30.007 30.007 0 0 1-42.504 42.36z"})})),{useApp:eM}=A.default,{Item:eL,useForm:eD,useWatch:eN}=Y.default,e_=(0,a.memo)(function({uid:e,name:t,items:l,image:o,trigger:c,currentRef:s}){let u=(0,a.useRef)(!1),d=(0,a.useRef)(),{message:p}=eM(),m=(0,a.useRef)(),[h,f]=(0,a.useState)(),[g,y]=(0,a.useState)(!1),[w,v]=(0,T.Z)(!1),b=(0,a.useMemo)(()=>({src:h,visible:g,onVisibleChange(e){y(e)},toolbarRender(e){return(0,r.jsxs)("div",{className:i.locatedToolbar,children:[(0,r.jsx)("p",{children:t}),e]})}}),[h,t,g]),x=(0,a.useCallback)(()=>{if(s.current=e,m.current!==e){let t=d.current;if(t&&!u.current){v(!0),u.current=!0,m.current=e;let n=function(e){let t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),t.transferToImageBitmap()}(o),r={image:n,items:l.map(e=>({finder:e.finder,timing:e.timing,corners:e.corners,alignment:e.alignment}))};t.postMessage(r,[n])}}else y(e=>!e)},[e,o,l]);return(0,a.useEffect)(()=>{let t=new Worker(new URL(n.p+n.u(91),n.b));return t.addEventListener("message",({data:t})=>{switch(v(!1),u.current=!1,t.type){case"ok":f(t.payload);let{current:n}=s;n===e&&y(e=>!e);break;case"error":p.error(t.message);break;default:p.error("发生未知错误")}}),d.current=t,()=>{t.terminate()}},[e]),(0,r.jsxs)("div",{className:i.locate,children:[c(w,x),(0,r.jsx)(ee.Z,{hidden:!0,src:eO,preview:b})]})}),ez=(0,a.memo)(function({state:e,currentRef:t}){if(e&&"ok"===e.type){let{payload:n}=e,{uid:i,image:a,items:l}=n;return(0,r.jsx)(e_,{uid:i,name:"概览",image:a,items:l,currentRef:t,trigger:(e,t)=>(0,r.jsx)(et.ZP,{loading:e,onClick:t,icon:(0,r.jsx)(q.Z,{component:eA}),children:"概览"})},i)}return null}),eH=(0,a.memo)(function({state:e,currentRef:t}){let n=(0,a.useMemo)(()=>{if(e&&"ok"===e.type){let{uid:n,image:a,items:l}=e.payload;return l.map((e,l)=>{let{content:o}=e,c=`${n}-${l}`,s=`解码结果【${l+1}】`;return{key:c,label:s,children:(0,r.jsx)("pre",{children:o}),extra:(0,r.jsxs)("div",{onClick:e=>{e.stopPropagation()},className:i.extra,children:[(0,r.jsx)(O,{text:o}),(0,r.jsx)(e_,{uid:c,name:s,image:a,items:[e],currentRef:t,trigger:(e,t)=>e?(0,r.jsx)(J.Z,{}):(0,r.jsx)(q.Z,{title:"查看位置",component:eA,onClick:t})},c)]})}})}},[e]);if(e)switch(e.type){case"ok":return(0,r.jsx)(en.Z,{size:"small",items:n,className:i.contents,defaultActiveKey:`${e.payload.uid}-0`},e.payload.uid);case"error":return(0,r.jsx)(er.Z,{type:"error",message:e.message,showIcon:!0});default:return(0,r.jsx)(er.Z,{type:"error",message:"发生未知错误",showIcon:!0})}return null});var eU=(0,a.memo)(function(){let e=(0,a.useRef)(!1),t=(0,a.useRef)(),[l]=eD(),o=eN(["image"],l),c=(0,a.useRef)(),[s,u]=(0,T.Z)(!1),[d,p]=(0,a.useState)(),m=(0,a.useMemo)(()=>({image:eR,strict:!1,invert:!1}),[]),h=(0,a.useCallback)(n=>{let r=t.current;if(r&&!e.current){u(!0),e.current=!0;let{image:t}=n,i=new self.Image;i.crossOrigin="anonymous",i.addEventListener("error",()=>{u(!1)}),i.addEventListener("load",()=>{createImageBitmap(i).then(e=>{let i={...n,image:e,uid:t};r.postMessage(i,[e])})}),i.src=t}},[]),f=(0,a.useCallback)(e=>e?(0,r.jsx)(ee.Z,{src:e,alt:"preview",className:i.preview}):null,[]);return(0,a.useEffect)(()=>{let r=new Worker(new URL(n.p+n.u(168),n.b));return r.addEventListener("message",({data:t})=>{p(t),u(!1),e.current=!1}),t.current=r,()=>{r.terminate()}},[]),(0,r.jsxs)("div",{className:"ui-page",children:[(0,r.jsx)(Y.default,{form:l,onFinish:h,layout:"vertical",initialValues:m,children:(0,r.jsxs)(ei.Z,{gutter:24,children:[(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"image",children:(0,r.jsx)(Q,{preview:f,children:(0,r.jsx)(et.ZP,{icon:(0,r.jsx)(q.Z,{component:eP}),children:"选择图片"})})})}),(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"strict",label:"严格模式",valuePropName:"checked",tooltip:"可增加扫描速度,但会降低识别率",children:(0,r.jsx)(eZ,{checkedChildren:"开",unCheckedChildren:"关"})})}),(0,r.jsx)(ea.Z,{span:24,children:(0,r.jsx)(eL,{name:"invert",label:"图片反色",valuePropName:"checked",children:(0,r.jsx)(eZ,{checkedChildren:"开",unCheckedChildren:"关"})})}),(0,r.jsxs)(ea.Z,{span:24,className:i.actions,children:[(0,r.jsx)(et.ZP,{type:"primary",htmlType:"submit",loading:s,disabled:!o,icon:(0,r.jsx)(q.Z,{component:eT.Z}),children:"解码"}),(0,r.jsx)(ez,{state:d,currentRef:c})]})]})}),(0,r.jsx)("div",{className:i.result,children:(0,r.jsx)(eH,{state:d,currentRef:c})})]})})},8456:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M512 12.64c-282.752 0-512 229.216-512 512 0 226.208 146.72 418.144 350.144 485.824 25.6 4.736 35.008-11.104 35.008-24.64 0-12.192-.48-52.544-.704-95.328-142.464 30.976-172.512-60.416-172.512-60.416-23.296-59.168-56.832-74.912-56.832-74.912-46.464-31.776 3.52-31.136 3.52-31.136 51.392 3.616 78.464 52.768 78.464 52.768 45.664 78.272 119.776 55.648 148.992 42.56 4.576-33.088 17.856-55.68 32.512-68.48-113.728-12.928-233.28-56.864-233.28-253.024 0-55.904 20-101.568 52.768-137.44-5.312-12.896-22.848-64.96 4.96-135.488 0 0 43.008-13.76 140.832 52.48 40.832-11.36 84.64-17.024 128.16-17.248 43.488.192 87.328 5.888 128.256 17.248 97.728-66.24 140.64-52.48 140.64-52.48 27.872 70.528 10.336 122.592 5.024 135.488 32.832 35.84 52.704 81.536 52.704 137.44 0 196.64-119.776 239.936-233.792 252.64 18.368 15.904 34.72 47.04 34.72 94.816 0 68.512-.608 123.648-.608 140.512 0 13.632 9.216 29.6 35.168 24.576C877.472 942.624 1024 750.784 1024 524.64c0-282.784-229.248-512-512-512"})})),w=(0,a.lazy)(()=>Promise.all([t.e(728),t.e(927),t.e(541)]).then(t.bind(t,541))),k=(0,a.lazy)(()=>Promise.all([t.e(728),t.e(544)]).then(t.bind(t,4673))),Z=(0,a.memo)(function(){let e=(0,a.useMemo)(()=>"#/decode"===location.hash?"decode":(location.hash="#/encode","encode"),[]),s=(0,a.useCallback)(e=>{location.hash=`#/${e}`},[]),t=(0,a.useMemo)(()=>({maxCount:3}),[]),o=(0,a.useMemo)(()=>({margin:0}),[]),r=(0,a.useMemo)(()=>[{key:"encode",label:(0,n.jsxs)("div",{className:l.tabBarItem,children:[(0,n.jsx)(c.Z,{className:l.icon,component:g.Z}),(0,n.jsx)("span",{children:"二维码编码"})]}),children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(w,{})})},{key:"decode",label:(0,n.jsxs)("div",{className:l.tabBarItem,children:[(0,n.jsx)(c.Z,{className:l.icon,component:p.Z}),(0,n.jsx)("span",{children:"二维码解码"})]}),children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(k,{})})}],[]),h=(0,a.useMemo)(()=>({left:(0,n.jsx)("img",{title:"QRCode",className:l.logo,src:v,alt:"logo"}),right:(0,n.jsx)("a",{title:"GitHub",className:l.source,href:"https://github.com/nuintun/qrcode",target:"_blank",children:(0,n.jsx)(c.Z,{className:l.github,component:f})})}),[]);return(0,n.jsx)(x.default,{className:"ui-app",message:t,children:(0,n.jsx)(i.SV,{FallbackComponent:m,children:(0,n.jsx)(j.Z,{centered:!0,items:r,onChange:s,className:l.tabs,tabBarStyle:o,defaultActiveKey:e,tabBarExtraContent:h})})})});var y=(0,a.memo)(function(){return(0,n.jsx)(b.ZP,{locale:o.Z,theme:{token:{borderRadius:4}},children:(0,n.jsx)(Z,{})})}),z=t(417);let C=document.getElementById("app");(0,z.s)(C).render((0,n.jsx)(y,{}))},8152:function(e,s,t){var n=t(9980);let l=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M896.256 383.488H832V191.744H640.32V128h224.256c15.552 0 28.48 11.2 31.168 25.984l.512 5.696zm-768.192.256h64.32V192H384v-63.744H159.744a31.68 31.68 0 0 0-31.168 25.984l-.512 5.696zM896.256 640H832v191.744l-191.68-.064v63.808h224.256a31.68 31.68 0 0 0 31.168-25.984l.512-5.76zm-768.192.256h64.32v191.68H384v63.808H159.744a31.68 31.68 0 0 1-31.168-25.984l-.512-5.76zm639.68-159.808v64H256.256v-64z"})}));s.Z=l},6894:function(e,s,t){var n=t(9980);let l=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"m140.8 517.2 169.4-164.1.1-15.5v-70.4l-258.1 250 258.1 249.9v-70.4l-.1-15.5zm724.3-4.8-169.4-164-.1-15.5v-70.4l258.1 249.9-258.1 250v-70.5l.1-15.5zM462.2 855h-77.6l159.1-695.4h77.6z"})}));s.Z=l},1047:function(e,s,t){e.exports=t.p+"images/158cf240fe1fc517.ico"}},function(e){e.O(0,[772],function(){return e(e.s=8664)}),e.O()}]); \ No newline at end of file diff --git a/packages/examples/static/public/js/ee04f0d2603ead15.js b/packages/examples/static/public/js/ee04f0d2603ead15.js deleted file mode 100644 index 285c2269..00000000 --- a/packages/examples/static/public/js/ee04f0d2603ead15.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[179],{8166:function(e,s,t){var n=t(9980),l={tabs:"bb1713e8",logo:"b2162135",source:"cc8c9b9c",github:"d0601377",tabBarItem:"c7590423",icon:"c999c7bf"},a=t(2363),c=t(677),o=t(8402),i=t(5581),r=t(7838),h=t(2493),m=(0,a.memo)(function({error:e,resetErrorBoundary:s}){return(0,n.jsx)(r.ZP,{status:"error",title:"页面错误",extra:(0,n.jsx)(h.ZP,{type:"primary",onClick:s,children:"重试页面"}),subTitle:"抱歉,发生错误,无法渲染页面,请联系系统管理员或者重试页面!"})}),d=t(7689),u=(0,a.memo)(function(){return(0,n.jsx)(d.Z,{delay:120,children:(0,n.jsx)("div",{style:{height:360}})})}),x=t(2052),j=t(1648),b=t(1365),v=t(1047),g=t(9110),p=t(6159);let f=(0,a.memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M512 12.64c-282.752 0-512 229.216-512 512 0 226.208 146.72 418.144 350.144 485.824 25.6 4.736 35.008-11.104 35.008-24.64 0-12.192-.48-52.544-.704-95.328-142.464 30.976-172.512-60.416-172.512-60.416-23.296-59.168-56.832-74.912-56.832-74.912-46.464-31.776 3.52-31.136 3.52-31.136 51.392 3.616 78.464 52.768 78.464 52.768 45.664 78.272 119.776 55.648 148.992 42.56 4.576-33.088 17.856-55.68 32.512-68.48-113.728-12.928-233.28-56.864-233.28-253.024 0-55.904 20-101.568 52.768-137.44-5.312-12.896-22.848-64.96 4.96-135.488 0 0 43.008-13.76 140.832 52.48 40.832-11.36 84.64-17.024 128.16-17.248 43.488.192 87.328 5.888 128.256 17.248 97.728-66.24 140.64-52.48 140.64-52.48 27.872 70.528 10.336 122.592 5.024 135.488 32.832 35.84 52.704 81.536 52.704 137.44 0 196.64-119.776 239.936-233.792 252.64 18.368 15.904 34.72 47.04 34.72 94.816 0 68.512-.608 123.648-.608 140.512 0 13.632 9.216 29.6 35.168 24.576C877.472 942.624 1024 750.784 1024 524.64c0-282.784-229.248-512-512-512z"})})),w=(0,a.lazy)(()=>Promise.all([t.e(728),t.e(927),t.e(541)]).then(t.bind(t,541))),k=(0,a.lazy)(()=>Promise.all([t.e(728),t.e(566)]).then(t.bind(t,21))),Z=(0,a.memo)(function(){let e=(0,a.useMemo)(()=>"#/decode"===location.hash?"decode":(location.hash="#/encode","encode"),[]),s=(0,a.useCallback)(e=>{location.hash=`#/${e}`},[]),t=(0,a.useMemo)(()=>({maxCount:3}),[]),o=(0,a.useMemo)(()=>({margin:0}),[]),r=(0,a.useMemo)(()=>[{key:"encode",label:(0,n.jsxs)("div",{className:l.tabBarItem,children:[(0,n.jsx)(c.Z,{className:l.icon,component:g.Z}),(0,n.jsx)("span",{children:"二维码编码"})]}),children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(w,{})})},{key:"decode",label:(0,n.jsxs)("div",{className:l.tabBarItem,children:[(0,n.jsx)(c.Z,{className:l.icon,component:p.Z}),(0,n.jsx)("span",{children:"二维码解码"})]}),children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(u,{}),children:(0,n.jsx)(k,{})})}],[]),h=(0,a.useMemo)(()=>({left:(0,n.jsx)("img",{title:"QRCode",className:l.logo,src:v,alt:"logo"}),right:(0,n.jsx)("a",{title:"GitHub",className:l.source,href:"https://github.com/nuintun/qrcode",target:"_blank",children:(0,n.jsx)(c.Z,{className:l.github,component:f})})}),[]);return(0,n.jsx)(x.default,{className:"ui-app",message:t,children:(0,n.jsx)(i.SV,{FallbackComponent:m,children:(0,n.jsx)(j.Z,{centered:!0,items:r,onChange:s,className:l.tabs,tabBarStyle:o,defaultActiveKey:e,tabBarExtraContent:h})})})});var y=(0,a.memo)(function(){return(0,n.jsx)(b.ZP,{locale:o.Z,theme:{token:{borderRadius:4}},children:(0,n.jsx)(Z,{})})}),z=t(417);let C=document.getElementById("app");(0,z.s)(C).render((0,n.jsx)(y,{}))},6159:function(e,s,t){var n=t(9980);let l=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M896.256 383.488H832V191.744H640.32V128h224.256c15.552 0 28.48 11.2 31.168 25.984l.512 5.696v223.808zm-768.192.256h64.32V192H384v-63.744H159.744a31.68 31.68 0 0 0-31.168 25.984l-.512 5.696zM896.256 640H832v191.744l-191.68-.064v63.808h224.256a31.68 31.68 0 0 0 31.168-25.984l.512-5.76V640zm-768.192.256h64.32v191.68H384v63.808H159.744a31.68 31.68 0 0 1-31.168-25.984l-.512-5.76V640.256zm639.68-159.808v64H256.256v-64h511.488"})}));s.Z=l},9110:function(e,s,t){var n=t(9980);let l=(0,t(2363).memo)(e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"m140.8 517.2 169.4-164.1.1-15.5v-70.4l-258.1 250 258.1 249.9v-70.4l-.1-15.5zm724.3-4.8-169.4-164-.1-15.5v-70.4l258.1 249.9-258.1 250v-70.5l.1-15.5zM462.2 855h-77.6l159.1-695.4h77.6z"})}));s.Z=l},1047:function(e,s,t){e.exports=t.p+"images/158cf240fe1fc517.ico"}},function(e){e.O(0,[772],function(){return e(e.s=8166)}),e.O()}]); \ No newline at end of file