1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a0f75dc-2a81-47c9-88df-3243001f3a06",e._sentryDebugIdIdentifier="sentry-dbid-0a0f75dc-2a81-47c9-88df-3243001f3a06")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:thetawave-web":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25645,64209],{4533:(e,t,r)=>{r.d(t,{JF:()=>g,LP:()=>a.LP,M:()=>m,P7:()=>i,QC:()=>s,R8:()=>u,fT:()=>p,gt:()=>l,tC:()=>d});var a=r(86750);let o={pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",txt:"text/plain",html:"text/html",htm:"text/html",md:"text/markdown",csv:"text/csv",mp3:"audio/mpeg",m4a:"audio/mp4",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",aac:"audio/aac",wma:"audio/x-ms-wma",webm:"video/webm",mp4:"video/mp4",mkv:"video/x-matroska",m4v:"video/x-m4v",wmv:"video/x-ms-wmv",mov:"video/quicktime",avi:"video/x-msvideo",flv:"video/x-flv",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",tex:"application/x-tex",pages:"application/x-iwork-pages-sffpages",key:"application/x-iwork-keynote-sffkey",numbers:"application/x-iwork-numbers-sffnumbers",ics:"text/calendar",json:"application/json",xml:"application/xml",zip:"application/zip"},n={};for(let[e,t]of Object.entries(o))n[t]||(n[t]=e);function i(e){var t;if(e.type)return e.type;let r=null==(t=e.name.split(".").pop())?void 0:t.toLowerCase();return r&&o[r]||"application/octet-stream"}function s(e){let t=e.name.lastIndexOf("."),r=t>0?e.name.slice(t+1).toLowerCase():"";if(o[r])return r;let a=n[i(e)];return a||(/^[a-z0-9]{1,8}$/.test(r)?r:"bin")}function l(e,t){let r=e.normalize("NFC");return/[ê°-í£]/.test(r)?"kor":/[ã-ãã¡-ã¶]/.test(r)?"jpn":/[ä¸-é¾¥]/.test(r)?"zh-tw"===t||"zh-hk"===t?"chi_tra":"chi_sim":void 0}let c={kor:/[ê°-í£]/,jpn:/[ã-ãã¡-ã¶]/,chi_sim:/[ä¸-é¾¥]/,chi_tra:/[ä¸-é¾¥]/};function d(e,t){if(!e||!t)return!1;let r=c[t];return!!r&&!r.test(e.normalize("NFC"))}function p(e,t){if(!e)return!1;let r=e.lastIndexOf(".");return!(r<0)&&e.slice(r+1).toLowerCase()===t.toLowerCase()}function u(e){var t,r;let o=e.size/1048576,n=(null==(t=e.name.split(".").pop())?void 0:t.toLowerCase())||"",s=i(e);return{fileName:e.name,fileSize:o,fileType:s,fileExtension:n,fileCategory:a.VO.PDF_TYPE.includes(s)?"pdf":a.VO.AUDIO_TYPE.includes(s)?"audio":a.VO.VIDEO_TYPE.includes(s)?"video":a.VO.PPT_TYPE.includes(s)?"presentation":a.VO.DOC_TYPE.includes(s)?"document":(null==(r=a.VO.TXT_TYPE)?void 0:r.includes(s))?"text":"other"}}async function f(e,t){try{let r=new Uint8Array(await e.slice(0,4).arrayBuffer());if(80===r[0]&&75===r[1])return{valid:!0};if(208===r[0]&&207===r[1]&&17===r[2]&&224===r[3])return{valid:!1,message:"pptx"===t?"oldPptDetected":"oldDocDetected",suggestedAction:"convertToNewFormat"};return{valid:!1,message:"pptx"===t?"invalidPptxFile":"invalidDocxFile"}}catch(e){return{valid:!1,message:"fileValidationError"}}}async function m(e){let t=e.name.toLowerCase(),r=a.VO.PPT_TYPE.includes(e.type)||t.endsWith(".pptx"),o=a.VO.DOC_TYPE.includes(e.type)||t.endsWith(".docx");return r?f(e,"pptx"):o?f(e,"docx"):{valid:!0}}function g(e,t,r){let a=r("invalidFileFormat"),o=new Set(["oldPptDetected","oldDocDetected","invalidPptxFile","invalidDocxFile","fileValidationError"]);return{title:a,description:t.message&&o.has(t.message)?r(t.message):r("invalidFileDescription",{fileName:e.name})}}},6685:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(96983),o=r(28107),n=r(45502);let i=window.location.origin,s=(0,o.XT)({links:[(0,o.fu)({url:"".concat(i,"/api"),transformer:n.Ay,headers:a.TR})]})},33668:(e,t,r)=>{r.d(t,{RS:()=>h,J5:()=>x,hX:()=>b});var a=r(86750),o=r(4533),n=r(64209),i=r(59882);class s{}let l={S:"ä¸ä¸ä¸ä¸ä¸ä¸ä¸ä¸ä¸¢ä¸¤ä¸¥ä¸§ä¸ªä¸¬ä¸°ä¸´ä¸ºä¸½ä¸¾ä¹ä¹ä¹ä¹ä¹ä¹ 乡书买乱äºäºäºäºäºäºäº§äº©äº²äºµäº¸äº¿ä»
ä»ä»ä»ä»ªä»¬ä»·ä¼ä¼ä¼ä¼ä¼ä¼ä¼ä¼ 伤伥伦伧伪伫ä½ä½ä½£ä½¥ä¾ 侣侥侦侧侨侩侪侬俣俦俨俩俪ä¿åºå¾å¬å»å¾å¿å¥å§å¨å©å¿å
å
å
å
°å
³å
´å
¹å
Ȍ
½åå
åååååå¢å¯å²å³åµå»åååååååå å¤å«åå¯å»å¼å¿ååååååå å«å¬åå½å¿ååååå¥å§ååå¡å¢å¨å±å²å³å¿ååååå¦å®åºå»ååååå¢å¤å§å«å´åºåå
ååååååå¢å£å¦å¨å©å®å¿åååååååå å¶å·å¹å½åååååå£å¨å¬å¯å´ååååååååååååååå¤å´å¸ååååååååååååååå å¡å¢å£å¤å¿å§å¬åå®å°å´å¸å·å½å¾å«åµå³åå¤å±åå¼å£å¯å¢åå±å´åµå½å¾åå£å¹åºåååååååååå åå
ååå¦å§å©å«åå¯å±å²å´ååååå¯å å å¡å¢å£®å£°å£³å£¶å£¸å¤å¤å¤å¤å¤´å¤¸å¤¹å¤ºå¥å¥å¥å¥å¥¥å¦å¦å¦å¦©å¦ªå¦«å§å§å¨å¨
å¨å¨å¨å¨±å¨²å¨´å©³å©´å©µå©¶åªªå«å«å«±å¬·åå¦åªå®å®å®å® 审宪宫宽宾å¯å¯¹å¯»å¯¼å¯¿å°å°å°å°§å°´å°¸å°½å±å±å±å±å±å±¡å±¦å±¿å²å²å²å²å²å²å²å²å²å²³å²½å²¿å³å³å³¡å³£å³¤å³¥å³¦å´å´å´å´åµåµåµåµåµ´å·
å·©å·¯å¸å¸
å¸å¸å¸å¸å¸å¸¦å¸§å¸®å¸±å¸»å¸¼å¹å¹å¹²å¹¶å¹¿åºåºåºåºåºåºåºåºåºåº¼å»ªå¼å¼å¼å¼ 弥弪弯弹强å½å½å½å½å½¦å½»å¾å¾å¾¡å¿å¿å¿§å¿¾ææææææ
æææ»æ¼æ¿ææ³æ¶æ¸æ¹æºæ»æ¼æ½æ¦æ«æ¬ææ¯ææ§æ¨æ©æ«æ¬ææ®æ¯ææ æ¤æ¦æ¿æ
æ
æ·æææææææææ¬æ·æææ¦æ§æ©æªæ«æ¬æ°ææææ æ¡æ¢æ¤æ¥æ
ææ¢æ£æ¥æ¦æ§æ¨æ©ææææææææ æ¡æ¢æ£æ¤æ¥æ¦æææ¡æ¢æ£æ®æ»æ³æ´æ·æ¸æºæ¼æ¸æ½æ¿ææææ
æºææ
æææææææµæ·æ¸æºæææææ°ææææ©ææ æ§æ¶æ·æ¸ææ¼æ½æ¾ææææææææ§ææ¯æ´æºææææ¡æ¥æ¨æ©æ°ææææ¢æ£æ¥æ§æ¨æªæ«æææ æ½æ
æ æ æ æ æ æ æ æ æ æ æ ·æ ¾æ¡æ¡ æ¡¡æ¡¢æ¡£æ¡¤æ¡¥æ¡¦æ¡§æ¡¨æ¡©æ¢¦æ¢¼æ¢¾æ£æ£æ¤æ¤æ¤ æ¤¤æ¤æ¥¼æ¦æ¦æ¦æ¦æ§æ§æ§æ§ æ¨ªæ¨¯æ¨±æ©¥æ©±æ©¹æ©¼æªæª©æ¬¢æ¬¤æ¬§æ¼æ®æ®æ®æ®æ®æ®æ®¡æ®´æ¯æ¯æ¯æ¯æ¯¡æ¯µæ°æ°æ°¢æ°©æ°²æ±æ±æ±¡æ±¤æ±¹æ²æ²æ²¡æ²£æ²¤æ²¥æ²¦æ²§æ²¨æ²©æ²ªæ²µæ³æ³ªæ³¶æ³·æ³¸æ³ºæ³»æ³¼æ³½æ³¾æ´æ´æ´¼æµæµ
æµæµæµæµæµæµæµæµæµæµæµæµæµæµæµæ¶æ¶æ¶æ¶æ¶æ¶æ¶ æ¶¡æ¶¢æ¶£æ¶¤æ¶¦æ¶§æ¶¨æ¶©æ·æ¸æ¸æ¸æ¸æ¸æ¸æ¸æ¸æ¸æ¸©æ¸¸æ¹¾æ¹¿æºæº
æºæºæ»æ»æ»æ»æ» æ»¡æ»¢æ»¤æ»¥æ»¦æ»¨æ»©æ»ªæ¼¤æ½æ½æ½æ½æ½æ½´æ¾æ¿æ¿ççç¯çµç¾ç¿çççççç¹ç¼ç½çççççç¦ç§ç¨ç©ç«ç¬ççççç
ç
³çç±ç·çç¦çµçºççç¶ç·ç¸ç¹ççççç¬çç®ç¯ç°ç±ç²çççç¡çªç«ç¬ç®çççççç®ç¯ç°ç±çºççççç°ç²çççç¼ç¶ç·çççç®ç¯çµç»ç
ç²ç´çççç ç¡ç¬ç®ç¯ç±ç´ççççç¨çªç«ç´ç
ççççªç«ç¾ç¿çç£ç«ç¯çç±ç²çççççççç¦ç¬çççççç©ç«ç¶ç¾ç¿ç ç ç ç ç ç ç ºç »ç ¾ç¡ç¡ç¡
ç¡ç¡ç¡ç¡ç¡ç¡®ç¡·ç¢ç¢ç¢ç¢±ç¢¹ç£ç¤¼ç¥ç¥¢ç¥¯ç¥·ç¥¸ç¦ç¦ç¦
离ç§ç§ç§ç§¯ç§°ç§½ç§¾ç¨ç¨ç¨£ç¨³ç©ç©·çªçªçªçªçªçª¥çª¦çªç«ç«ç¬ç¬ç¬ç¬ç¬ºç¬¼ç¬¾çççççç¹ç¾ç®ç®ç®¦ç®§ç®¨ç®©ç®ªç®«ç¯ç¯ç¯®ç¯±ç°ç±ç±´ç±»ç±¼ç²ç²ç²¤ç²ªç²®ç³ç³ç´§çµ·çºçº 纡红纣纤纥约级纨纩纪纫纬çºçº®çº¯çº°çº±çº²çº³çº´çºµçº¶çº·çº¸çº¹çººçº»çº¼çº½çº¾çº¿ç»ç»ç»ç»ç»ç»
ç»ç»ç»ç
1»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç»ç» 绡绢绣绤绥绦继绨绩绪绫绬ç»ç»®ç»¯ç»°ç»±ç»²ç»³ç»´ç»µç»¶ç»·ç»¸ç»¹ç»ºç»»ç»¼ç»½ç»¾ç»¿ç¼ç¼ç¼ç¼ç¼ç¼
ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ç¼ 缡缢缣缤缥缦缧缨缩缪缫缬ç¼ç¼®ç¼¯ç¼°ç¼±ç¼²ç¼³ç¼´ç¼µç½ç½ç½ç½ç½¢ç½´ç¾ç¾ç¾¡ç¿ç¿ç¿è¢è§è¸è»èèèèèè©èªèè è¤è·è¾è¿èèèèè§è¨èªè«è¶èèèèèèèèè±è¶è¸è
è
è
è
è
ȏ
¼è
½è
¾èèèè£è°è±è»è°è³è¹èºèèèèè¦èèèèèèèèèè¹èèèèèè§èèèèèèèèè è¡è£è¤è¥è¦è§è¨è©èªè«è¬èè®è¯è
èè±è²è³è´è¶è·è¸è¹èºè¼èèè¤è¥è¦è§è¨è±èèèèèèè è£è¥è¦è·è¹èºè¼è²è´è®èèèèèè«è¬è®è½è¾è¿èèèèèè¬èèèè®è°è±è²è³è´èèè¡èèèèè¼è¾èè¨èè¡
è¡è¡¥è¡¬è¡®è¢è¢
è¢è¢è¢è¢¯è£
è£è£è£¢è££è£¤è£¥è¤è¤´è¥è¥è§è§è§è§è§
è§è§è§è§è§è§è§è§è§è§è§è§è§è§¦è§¯è©èªèªè® 计订讣认讥讦讧讨让讪讫è®è®®è®¯è®°è®±è®²è®³è®´è®µè®¶è®·è®¸è®¹è®ºè®»è®¼è®½è®¾è®¿è¯è¯è¯è¯è¯è¯
è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯è¯ 诡询诣诤该详诧诨诩诪诫诬è¯è¯®è¯¯è¯°è¯±è¯²è¯³è¯´è¯µè¯¶è¯·è¯¸è¯¹è¯ºè¯»è¯¼è¯½è¯¾è¯¿è°è°è°è°è°è°
è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è°è° 谡谢谣谤谥谦谧谨谩谪谫谬è°è°®è°¯è°°è°±è°²è°³è°´è°µè°¶è°·è±®è´è´è´è´ 贡财责贤败账货质贩贪贫贬è´è´®è´¯è´°è´±è´²è´³è´´è´µè´¶è´·è´¸è´¹è´ºè´»è´¼è´½è´¾è´¿èµèµèµèµèµèµ
èµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµèµ 赡赢赣赪赵赶è¶è¶±è¶¸è·è·è·è·è·µè·¶è··è·¸è·¹è·»è¸è¸è¸ªè¸¬è¸¯è¹è¹è¹°è¹¿èºèºèº¯è½¦è½§è½¨è½©è½ªè½«è½¬è½è½®è½¯è½°è½±è½²è½³è½´è½µè½¶è½·è½¸è½¹è½ºè½»è½¼è½½è½¾è½¿è¾è¾è¾è¾è¾è¾
è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾è¾©è¾«è¾¹è¾½è¾¾è¿è¿è¿è¿è¿è¿è¿è¿è¿è¿è¿è¿©è¿³è¿¹ééééé¦é»éé¥ééé¬é®é¹éºé»ééééééé¦é§é¸é
é
¦é
±é
½é
¾é
¿ééé
é´é®é¾éééééééééééééééééééééééééé é¡é¢é£é¤é¥é¦é§é¨é©éªé«é¬éé®é¯é°é±é²é³é´éµé¶é·é¸é¹éºé»é¼é½é¾é¿éééééé
éééééééééééééééééééééé é¡é¢é£é¤é¥é¦é§é¨éªé«é¬éé®é¯é°é±é²é³é´éµé¶é·é¸é¹éºé»é¼é½é¾é¿éééééé
éééééééééééééééééééééééé é¡é¢é£é¤é¥é¦é¨é©é«é¬éé®é¯é°é±é²é³é´éµé¶é·é¸é¹éºé»é¼é½é¾é¿ééééééééééééééééééééééééééé é¡é¢é£é¤é¥é¦é§é¨é©éªé«é¬éé®é¯é°é±é²é³é´é¶é¿é¨é©éªé«é¬éé®é¯é°é±é²é³é´éµé¶é·é¸é¹éºé»é¼é½é¾é¿éééééé
éééééééééééééééééééééééé³é´éµé¶é
éééééé§é¨é©ééé¶é½é¾éé é³é¾éééééé¥ééé¯é´é¦é§é¨é©éªé«é¬éµé¡µé¡¶é¡·é¡¸é¡¹é¡ºé¡»é¡¼é¡½é¡¾é¡¿é¢é¢é¢é¢é¢é¢
é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢é¢ 颡颢颣颤颥颦颧é£é£é£é£é£é£é£é£é£é£é£é£é£é£é£¨é¤é¥¤é¥¥é¥¦é¥§é¥¨é¥©é¥ªé¥«é¥¬é¥é¥®é¥¯é¥°é¥±é¥²é¥³é¥´é¥µé¥¶é¥·é¥¸é¥¹é¥ºé¥»é¥¼é¥½é¥¾é¥¿é¦é¦é¦é¦é¦é¦
é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é¦é©¬é©é©®é©¯é©°é©±é©²é©³é©´é©µé©¶é©·é©¸é©¹é©ºé©»é©¼é©½é©¾é©¿éªéªéªéªéªéª
éªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéªéª 骡骢骣骤骥骦骧é«
é«é«é¬éé鱼鱽鱾鱿é²é²é²é²é²
é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é²é² 鲡鲢鲣鲤鲥鲦鲧鲨鲩鲪鲫鲬é²é²®é²¯é²°é²±é²²é²³é²´é²µé²¶é²·é²¸é²¹é²ºé²»é²¼é²½é²¾é²¿é³é³é³é³é³é³
é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³é³ 鳡鳢鳣é¸é¸ 鸡鸢鸣鸤鸥鸦鸧鸨鸩鸪鸫鸬é¸é¸®é¸¯é¸°é¸±é¸²é¸³é¸´é¸µé¸¶é¸·é¸¸é¸¹é¸ºé¸»é¸¼é¸½é¸¾é¸¿é¹é¹é¹é¹
é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹ 鹡鹢鹤鹥鹦鹧鹨鹩鹪鹫鹬é¹é¹¯é¹°é¹±é¹²é¹³é¹´éº¦éº¸é»é»é»¡é»©é»ªé»¾é¼é¼é¼é¼é¼¹é½
1é½é½é½¿é¾é¾é¾é¾é¾é¾
é¾é¾é¾é¾é¾é¾é¾é¾é¾å¿å¶å¨åªéç³»èæ¾æ²¡å°å°é¹é¢åéå«é²ä¹¾å°½èæ¼",T:"è¬èéå°æ¥å¢æ±çµ²ä¸å
©å´åªå丬è±è¨ç²éºèéº¼ç¾©çæ¨å¬ç¿éæ¸è²·äºçæ¼è§é²äºäºç¢ç親褻å²åå
å¾ä¾åååå¹è¡åªå¤¥æå´ååå³å·åå«ååä½é«é¤ååä¿ ä¾¶å¥åµå´ååååä¿åå¼åå·ååµå¾å¯åå¨åå»åå²åºå
å
å
黨èéèè²é¤ç¸å
å
§å²¡å寫è»è¾²å¢é¦®æ²æ±ºæ³åæ·¨æ·æ¶¼åæ¸æ¹å幾鳳鳧æå±æå¼é¿è»åååååµåªå¥ååååå´åå®åååå¸è¾¦åå±ååµååå¢å³åå©å»åå±åé«è¯åå®è³£ç§æ»·è¥è¡å»å·¹å» 廳æ·å²å£ååå»å»å´å»å»å»å»ç¸£åéééç¼è®æçèèåå°ç±²å¾ååååå¸è½åå³å¸ååå¦åå¡å¼ååè© åå¨åååå´é¹¹åé¿åå åµå¶å¦èå²åå¥å²ååå®å¢å©å£åå¿åååé½§åå½å¯å´åå³ååµå¯åå¶ååå¼åå¯åååªåååååèå£å ´éªå£å¡å
å£å£¢å£©å¡¢å¢³å¢å£å£ å£å£å¢¾å§å å¢å¡å¢¶å£å¡å å¡å£å ååµå¡¹å¢®å£ªçå£¯è²æ®¼å£ºå£¼èåå¾©å¤ é èªå¤¾å¥ªå¥©å¥å¥®ç奧å¦å©¦åª½å«µå«å¬å§å§å©å©å¬å¬åå¨åª§å«ºå«¿å¬°å¬å¬¸åª¼å¬¡å¬ªå¬å¬¤å«å¸å¿å¯§å¯¶å¯¦å¯µå¯©æ²å®®å¯¬è³å¯¢å°å°å°å£½å°ç¾å¡µå ¯å°·å±ç¡å±¤å±å±å±å±¬å±¢å±¨å¶¼æ²è±å¶å´å³´å¶´åµå³¶å¶ºå¶½å´¬å·å¶¨å¶§å³½å¶¢å¶ å´¢å·å¶å´å¶®å¶å¶¸å¶åµå¶åµ´å·é巰幣帥師å¹å¸³ç°¾å¹å¸¶å¹å¹«å¹¬å¹å¹åªè¥å¹¹ä¸¦å»£èæ
¶å»¬å»¡åº«æå»é¾å»¢å»å»©éç°æ£å¼µå½å¼³å½å½å¼·æ¸ç¶éå½ å½¥å¾¹å¾å¾ å¾¡æ¶æºææ¾æ·æ
æ
«æ®æ
ªæµæ´æç¸½æææææ¡æ
æ¨æ·æ»æ±æ²æ
æ¨æ¸æ
³æ«é©æ¼æ
æ²æææ
ææ
£ææ
æ¤æé¡æ¾ææ·æ£æ¶ææææ²æ§æ°æ©æ¶ææ²æ¦å·æ´æ«æææ¾æ«ææ¶æ³ææ¶è·å ±ææ¬æææææ°æ¥æææ¯æ£ææ¾æ»æ¾æææææ æ®ææææ¿ææææ»æææ²æ£æ»ææ¸æ¬æ³ææ±ææªææææºææ¯æ¤ææææ·æ¼ææ»æ¢æµææ¸é½æé¬¥æ¬æ·ç¡èææ ææææ¨é¡¯ææ¬æææææ«ææè¡æ¨¸æ©æ®ºéæ¬æ¢ä¾æ¥æ¦ªåæ¥µæ§æ¨
æ¨æ£æ«ªæ¢æ£æ§æ¥æ¢æ«æª¸æªæ¢æµæ¨æ£§æ«æ«³æ£æ«¨æ«æ¬æ¨¹æ£²æ¨£æ¬æ¡æ¤æ©æ¥¨æªæ¦¿æ©æ¨ºæªæ§³æ¨å¤¢æª®æ£¶æª¢æ«ºæ§¨æ«æ§§æ¬æ©¢æ¨æ¬æ«¬æ«æ«¸æªæª»æª³æ«§æ©«æª£æ«»æ««æ«¥æ«æ«æªæªæ¡æææ®²æ¿æ®¤æ®æ®æ®®æ®«æ®¯æ¯æ¯è½ç¢ææ°æ¯¿æ°æ°£æ°«æ°¬æ°³å¯æ¼¢æ±¡æ¹¯æ´¶æ²æºæ²çæ¼çæ·ªæ»æ¸¢æ½æ»¬æ²µæ¿æ·æ¾©ç§çæ¿¼çæ½æ¾¤æ¶æ½ççªªæµ¹æ·ºæ¼¿æ¾æ¹æº®æ¿æ¸¬æ¾®æ¿çæ»»æ¸¾æ»¸æ¿æ½¯æ¿å¡æ¶æ¿¤æ¾æ·¶æ¼£æ½¿æ¸¦æº³æ¸æ»æ½¤æ¾æ¼²æ¾æ¾±æ·µæ·¥æ¼¬çæ¼¸æ¾ æ¼ç滲溫éç£æº¼æ½°æ¿ºæ¼µæ¼æ½·æ»¾æ»¯ç©ç滿ç
æ¿¾æ¿«ç¤æ¿±ç澦漤ç çç²æ¿°æ½ç¦ç¾ç¨ççæ»
çéç½ç¦ç
¬ççç
çé»ç
ç¾ççç´çç
ç
©ççç´çç¼ç±ç
¥çç¾ç
ç
³çæçºççç½ç§ç¢ççç·çç¶ç½çç®ç°ç¨ç¹ç
çªççç»ç«çµç¼ç豬è²èç»çºç£çµççªçç°ç¾ç²ç½çççºçç«ç¿ç¡çç£çç¤ç¦çççççé»ç«æ¢ç²çç¤çç§ççç§ç¡çç°ç¾ç°çç¢ççççç¡çç®çç»çç±ç®çç©ç¬ç²ç¯ççºç¸çé¹½ç£èçç¤çç¥ççççç¼ççç¯ç£¯ç¤¬ç¤¦ç¢ç¢¼ç£ç¡¨ç¡¯ç¢¸ç¤ªç¤±ç¤«ç¤ç¡ç¡
碩硤磽ç£ç¤ç¢ºç¤ç¤ç£§ç££é¹¼ç¢¹ç£ç¦®ç¦ç¦°ç¦ç¦±ç¦ç¨ç¥¿ç¦ªé¢ç¦¿ç¨ç¨®ç©ç¨±ç©¢ç© ç©ç¨
ç©ç©©ç©¡çª®ç«ç«
窯ç«çª©çªºç«çª¶è±ç«¶ç¯¤ççç§ç®ç± 籩ç¯ç¯³ç¯©ç°¹ç®ç±ç±¤ç°¡ç±ç°ç¯ç±ç±®ç°ç°«ç°£ç°ç±ç±¬ç±ªç±ç³´é¡ç§ç³¶ç³²ç²µç³ç³§ç³é¤±ç·ç¸¶ç³¹ç³¾ç´ç´
ç´çºç´ç´ç´ç´çºç´ç´ç·¯ç´ç´ç´ç´ç´ç¶±ç´ç´ç¸±ç¶¸ç´ç´ç´ç´¡ç´µç´ç´ç´ç·ç´ºç´²ç´±ç·´çµç´³ç´°ç¹çµç¸çµç´¼çµç´¹ç¹¹ç¶ç´¿ç¶çµ¨çµçµç¹çµ°çµç¹ªçµ¦çµ¢çµ³çµ¡çµçµçµ±ç¶ç¶çµ¹ç¹¡ç¶ç¶çµç¹¼ç¶ç¸¾ç·ç¶¾ç·çºç¶ºç·ç¶½éç·ç¹©ç¶ç¶¿ç¶¬ç¹ç¶¢ç¶¯ç¶¹ç¶£ç¶ç¶»ç¶°ç¶ ç¶´ç·ç·ç·ç·ç·¬çºç·¹ç·²ç·ç¸ç¹¢ç·¦ç¶ç·ç·¶ç·ç·±ç¸ç·©ç· 縷編緡緣ç¸ç¸ç¸ç¸ç¸«ç¸ç¸çºç¸ç¸ç¸ç¹½ç¸¹ç¸µç¸²çºç¸®ç¹ç¹
çºç¹ç¹ç¹ç¹®ç¹¾ç¹°ç¹¯ç¹³çºç½ç¶²ç¾
ç½°ç½·ç¾ç¾ç¾¥ç¾¨ç¿¹ç¿½ç¿¬è®è¬è³æ¥è¶è¾è·è¹è¯èµè°è
è
¸èè·è
è
«è¹è
è½åæ§è
èèè èè¾é«èè
¦è¿è è
³è«è
¡èèéèé½¶è©é¦è騰èè¢è¼¿è¤è¦èè«è±è±è¹èç¯ç¾èèªèè¯è¦è¶è§èè¼è§è檾èèè¢è¦å¡ç
¢ç¹èè¦èè¢èè½èèèºè©æ¦®è·æ»ççèèèèèèè¤è¥èèèè®èèµèç²èç©é¶¯è´èè¿è¢çç¸èè©è¥èè¢è£èèèèºè·é£é©èèèºè¹èèèªèèèæ
®èè²è¯è£éè¦è èè»èè ¶è èè ±è £è¶è »èèºè¯èè è»è¸è è
èè¬è è»è è¿èè ¨ééè£è¥¯è¢è¥å«è¤è¥ªè¥²
1è¥è£è¥ è¤è¤³è¥è¤²è¥è¤¸è¥¤è¥è¥´è¦è§è¦è¦è¦è¦è¦è¦½è¦ºè¦¬è¦¡è¦¿è¦¥è¦¦è¦¯è¦²è¦·è§´è§¸è§¶è®è½è¬è¨è¨è¨è¨èªèè¨è¨è¨è®è¨è¨è¨è°è¨è¨è¨è¬è«±è¬³è©è¨è¨¥è¨±è¨è«è¨©è¨è«·è¨è¨ªè¨£èè©è¨¶è©è©èè©è©è¨´è¨ºè©è¬
è©è©è©è©è¯è©èªèªè©¦è©¿è©©è©°è©¼èª èª
詵話èªè©¬è©®è©è©¢è©£è«è©²è©³è©«è«¢è©¡è¸èª¡èª£èªèªèª¤èª¥èªèª¨èªèªªèª¦èªè«è«¸è«è«¾è®è«èª¹èª²è«è«èª°è«èª¿è«è«è«èª¶è«èª¼è¬è«¶è«è¬è««è«§è¬è¬è¬è«¤è«è«¼è®è«®è«³è«ºè«¦è¬è«è«è¬¨è®è¬è¬è¬ è¬è«¡è¬è¬è¬¹è¬¾è¬«è¾è¬¬èèèè®èèè®è´è«è®è°·è±¶è²è²è² è²è²¢è²¡è²¬è³¢æè³¬è²¨è³ªè²©è²ªè²§è²¶è³¼è²¯è²«è²³è³¤è³è²°è²¼è²´è²ºè²¸è²¿è²»è³è²½è³è´è³è³è²²è³è³è´è³è³
è´è³è³è³è³è³¦è³é½è´è³è³è´è³è³¡è³ è³§è³´è³µè´
賻賺賽賾è´è´è´è´è´è´è´èµ¬è¶è¶è¶¨è¶²èºèºè¹è·èºè¸èºè¹ºè¹èºèºè¸èºè¹¤èºèºèº¡è¹£èºèº¥èºªèº¦è»è»è»è»è»è»è»è½è»è¼ªè»è½è»²è»»è½¤è»¸è»¹è»¼è»¤è»«è½¢è»ºè¼è»¾è¼è¼è½è¼è¼è¼
è¼è¼è¼è¼è¼¦è¼©è¼è¼¥è¼è¼¬è¼è¼è¼³è¼»è¼¯è½è¼¸è½¡è½
è½è¼¾è½è½è½è¾è¾¯è¾®éé¼éé·éééééé²é éé£é²ééè·¡é©é¸éééééºéé§éºééµéé´é°é¬±ééé¶ééé
éé²éé±é¬é
éééè£é
éé¾é¨éééééééé·éºé§é¤éé©é£éé¹ééµéé£éé¦ééé¾ééé¼ééé°æ¬½éé¢é¤é§éé¥ééééºé¢é¦éé·é¢é³éé½é¸éé½é¬ééé¿é¾éµéé´é ééé°éééé¹é¸é¶é¬é éºéªéé£éééºé
éé±é¦é§ééééé©ééµéé¿éé»ééé«é¸é¥éééé¨éé£éééªéé¸é±ééé·éé°é¥é¤éé¯é¨é½é¼ééé
é¶é¦éé³é»ééé¦éééºé¯é¨é¡ééé©é«é®é¼éé馿´éééé éµé¸é³éé¥éééé¶éé¤é¬é¾ééªé é°éééé¤é¡éé®ééé·é«é³é¿é¦é¬éé°éé¢ééé°éé¡éééééééé·é¥ééé é¹é¹ééé³é¶é²é®é¿éé£éé²é·ééééééåééééééééæ¶é鬧é¨èé¥é©ééé¥é£é¡é«é¬®é±é¬éé¾é¹é¶é¬©é¿é½é»é¼é¡ééé éééééééé¤éé½é°é£ééé¸é´é³éééééªé¨é±é¸éé£éè®éé§é½é»´éééé¨éé½éé´éééééééé»é é é é é
é é é é é¡§é é é é é é 顱é é é ¸é ¡é °é ²é æ½ç²é ¦é ¤é »é ®é ¹é ·é ´ç©é¡é¡é¡é¡é¡é¡é¡é¡³é¡¢é¡é¡é¡¥çºé¡«é¡¬é¡°é¡´é¢¨é¢ºé¢é¢®é¢¯é¢¶é¢¸é¢¼é¢»é£é£é£é£é£é¥é¥é££é£¢é£¥é¤³é£©é¤¼é£ªé£«é£é£¯é£²é¤é£¾é£½é£¼é£¿é£´é¤é¥é¤é¤é¤é¤é¤é¤
é¤é¤é¤é¤é¤é¤é¤é¤é¤¡é¤¨é¤·é¥é¤¶é¤¿é¥é¥é¥é¤ºé¤¾é¥é¥é¥
é¥é¥é¥¢é¦¬é¦é¦±é¦´é¦³é©
馹é§é©¢é§é§é§é§é§é¨¶é§é§é§é§é©é§é©ç½µé§°é©é©é§±é§é§¢é©«é©ªé¨é©é¨é§¸é§¿é¨é¨é¨é¨
é¨é©é©é¨é¨é¨¤é¨·é¨é©é¨®é¨«é¨¸é©é¨¾é©é©é©é©¥é©¦é©¤é«é«é«é¬¢ééééé¢é·é¨é¯é´éºé®é®é®é±¸é®é®é®é®é®é±é®é®é®é®é®³é®ªé®é®¦é°é®é± é±é®«é®®é®ºé¯é±é¯é±ºé°±é°¹é¯é°£é°·é¯é¯é¯é®¶é¯½é¯é¯é¯ªé¯é¯«é¯¡é¯¤é¯§é¯é¯¢é®é¯é¯¨é°ºé¯´é¯é±é°é°é±¨é¯·é°®é°é°é±·é°é°é°é°é±é¯¿é° é°²é°é°¨é°¥é°©é°é°é°³é°¾é±é±é°»é°µé±
é°¼é±é±é±é±é±¯é±¤é±§é±£é³¥é³©éé³¶é³´é³²é·é´é¶¬é´é´é´£é´£é´é´é´é´é´é´¥é´¯é´°é´´é´¿éµéµéµéµ
éµéµéµéµéµéµéµéµéµéµéµéµéµéµéµéµéµéµéµéµ 鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬éµéµ®éµ¯éµ°éµ±éµ²éµ³éµ´éµµéµ¶éµ·éµ¸éµ¹éµºéµ»éµ¼éµ½éµ¾éµ¿é¶é¶é¶é¶é¶é¶
é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶é¶ 鶡鶢鶣鶤鶥鶦鶧鶩鶪鶫鶬é¶é¶®é¶¯é¶°é¶±é¶²é¶³é¶´é¶µé¶¶é¶·é¶¸é¶¹é¶ºé¶»é¶¼é¶½é¶¾é¶¿é·é·é·é·é·é·
é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é·é· 鷡鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬é·é·®é·¯é·°é·±é·²é·³é·´é·µé·¶é··é·¸é·¹é·ºé¸é¸é¸é¸é¸é¸
é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸é¸ 鸡鸢鸣鸤鸥鸦鸧鸨鸩鸪鸫鸬é¸é¸®é¸¯é¸°é¸±é¸²é¸³é¸´é¸µé¸¶é¸·é¸¸é¸¹é¸ºé¸»é¸¼é¸½é¸¾é¸¿é¹é¹é¹é¹
é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹é¹ 鹡鹢鹤鹥鹦鹧鹨鹩鹪鹫鹬é¹é¹¯é¹°é¹±é¹²é¹³é¹´éº¦éº¸é»é»é»¡é»©é»ªé»¾é¼é¼é¼é¼é¼¹é½é½é½é½¿é¾é¾é¾é¾é¾é¾
é¾é¾é¾é¾é¾é¾é¾é¾å¿å¶å¨åªéç³»èæ¾æ²¡å°å°é¹é¢åéå«é²ä¹¾å°½èæ¼"};function c(e){if(!e)return"";let t=l.T,r=l.S,a="";for(let o=0;o<e.length;o++){let n=e[o],i=t.indexOf(n);-1!==i?a+=r[i]:a+=n}return a}class d extends s{async transcribe(e){let{key:t}=e;console.log("转å½é³é¢æä»¶:",t);try{let e=await this.submitTranscribeTask(t);console.log("转å½ä»»å¡å·²æäº¤ï¼ä»»å¡ID:",e);let r=await this.pollTaskStatus(e);return console.log("转å½å®æ"),c(r)}catch(e){if(console.error("é³é¢è½¬å½é误:",e),i.Cp(e,{tags:{module:"transcription",operation:"process",component:"audio_strategy",file_type:"audio"},contexts:{transcription:{key:t}}}),e instanceof Error)throw Error("é³é¢è½¬å½å¤±è´¥: ".concat(e.message));throw Error("é³é¢è½¬å½å¤±è´¥")}}async submitTranscribeTask(e){try{return(await (0,n.invoke)("transcribe",{bucket:"zhibei-user-uploaded-file-prod",key:e})).task_id}catch(t){throw console.error("æäº¤è½¬ç ä»»å¡å¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"submit",component:"audio_strategy",file_type:"audio"},contexts:{transcription:{key:e}}}),Error("æäº¤è½¬ç ä»»å¡å¤±è´¥")}}async pollTaskStatus(e){for(let t=0;t<450;t++)try{let t=await (0,n.invoke)("taskStatus",{task_id:e});if(t.err)throw Error(t.err);
1if(t.transcript)return c(t.transcript);if("COMPLETED"===t.status&&(!t.transcript||""===t.transcript))throw Error("转å½å®æä½æªè·åå°ææ¬å
容");await new Promise(e=>setTimeout(e,2e3))}catch(t){throw console.error("è·åä»»å¡ç¶æå¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"poll",component:"audio_strategy",file_type:"audio"},contexts:{transcription:{taskId:e}}}),Error("è·åä»»å¡ç¶æå¤±è´¥")}throw Error("转ç è¶
æ¶")}}var p=r(6685),u=r(68380);r(66233);class f extends s{async transcribe(e){let{key:t,enableOcr:r,enableImageExtraction:a}=e;console.log("å¤çææ¡£æä»¶:",t);try{let e=await this.submitDocumentTask(t,r,a);return console.log("ææ¡£å¤çä»»å¡å·²æäº¤ï¼ä»»å¡ID:",e),(await this.pollTaskStatus(e)).content}catch(e){if(console.error("ææ¡£å¤çé误:",e),i.Cp(e,{tags:{module:"transcription",operation:"process",component:"doc_cloud_strategy",file_type:"application"},contexts:{transcription:{key:t}}}),e instanceof Error)throw Error("ææ¡£å¤ç失败: ".concat(e.message));throw Error("ææ¡£å¤ç失败")}}async getTranscriptData(e){let{key:t,enableOcr:r,enableImageExtraction:a}=e;console.log("è·åææ¡£ transcript æ°æ®:",t);try{let e=await this.submitDocumentTask(t,r,a);console.log("ææ¡£å¤çä»»å¡å·²æäº¤ï¼ä»»å¡ID:",e);let o=await this.pollTaskStatus(e);if(!o.transcript)throw Error("ææ¡£å¤ç宿使ªè·åå° transcript æ°æ®");return{content:o.content,transcript:o.transcript}}catch(e){if(console.error("è·å transcript æ°æ®é误:",e),i.Cp(e,{tags:{module:"transcription",operation:"get_transcript",component:"doc_cloud_strategy",file_type:"application"},contexts:{transcription:{key:t}}}),e instanceof Error)throw Error("è·å transcript æ°æ®å¤±è´¥: ".concat(e.message));throw Error("è·å transcript æ°æ®å¤±è´¥")}}async submitDocumentTask(e,t,r){try{let a={bucket:"zhibei-user-uploaded-file-prod",key:e};!1===t?a.enable_ocr="false":!0===t&&(a.enable_ocr="true"),!1===r?a.enable_image_extraction="false":a.enable_image_extraction="true";let o=await (0,n.invoke)("documentExtract",a);if(console.log("ææ¡£å¤çä»»å¡ç»æ:",o),o.requires_ocr&&(0,u.oR)({variant:"default",title:"Processing Document Images",description:"This document contains images that need to be converted to text. This process may take longer than usual. Please be patient while we process your document.",duration:7e3}),o.task_id)return o.task_id;throw Error("æäº¤ææ¡£å¤çä»»å¡å¤±è´¥: æªè·åå°ä»»å¡ID")}catch(t){throw console.error("æäº¤ææ¡£å¤çä»»å¡å¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"submit",component:"doc_cloud_strategy",file_type:"application"},contexts:{transcription:{key:e}}}),Error("æäº¤ææ¡£å¤çä»»å¡å¤±è´¥")}}async pollTaskStatus(e){let t=0;for(let r=0;r<300;r++)try{let r=Date.now()-t;if(t>0&&r<3e3){let e=3e3-r;await new Promise(t=>setTimeout(t,e))}t=Date.now();let a=await (0,n.invoke)("documentTaskStatus",{task_id:e});if(a.error){try{await p.Z.v2.analytics.trackEvent.mutate({userId:"system",eventName:"transcribe_failed",properties:{error_info:a.error}})}catch(e){console.error("Failed to track transcribe_failed event:",e)}throw Error(a.error)}if("COMPLETED"===a.status){if(!a.content||""===a.content)throw Error("ææ¡£å¤ç宿使ªè·åå°å
容");return a}}catch(t){throw console.error("è·åææ¡£å¤çä»»å¡ç¶æå¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"poll",component:"doc_cloud_strategy",file_type:"application"},contexts:{transcription:{taskId:e}}}),Error("è·åææ¡£å¤çä»»å¡ç¶æå¤±è´¥")}throw Error("ææ¡£å¤çè¶
æ¶")}}class m extends s{async processOcr(e){try{let t=await (0,n.invoke)("ocr",{bucket:"zhibei-user-uploaded-file-prod",key:e});return console.log("OCR result:",t),t.result}catch(t){throw console.error("OCR processing failed:",t),i.Cp(t,{tags:{module:"transcription",operation:"ocr",component:"img_strategy",file_type:"image"},contexts:{transcription:{key:e}}}),Error("OCR processing failed")}}async transcribe(e){let{key:t}=e;try{return await this.processOcr(t)}catch(e){throw console.error("Image processing failed:",e),e}}}class g extends s{async transcribe(e){let{file:t,key:r}=e;try{let e=await this.submitPPTXTask(r);console.log("PPTå¤çä»»å¡å·²æäº¤ï¼ä»»å¡ID:",e);let t=await this.pollTaskStatus(e);return console.log("PPTå¤ç宿"),t}catch(e){if(console.error("PPTå¤çé误:",e),i.Cp(e,{tags:{module:"transcription",operation:"process",component:"ppt_cloud_strategy",file_type:"application"},contexts:{transcription:{key:r}}}),e instanceof Error)throw Error("PPTå¤ç失败: ".concat(e.message));throw Error("PPTå¤ç失败")}}async submitPPTXTask(e){try{let t=await (0,n.invoke)("pptx2md",{bucket:"zhibei-user-uploaded-file-prod",key:e,enable_ocr:!1});if(console.log("PPTå¤çä»»å¡ç»æ:",t),t.task_id)return t.task_id;throw Error("æäº¤PPTå¤çä»»å¡å¤±è´¥: æªè·åå°ä»»å¡ID")}catch(t){throw console.error("æäº¤PPT转ç ä»»å¡å¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"submit",component:"ppt_cloud_strategy",file_type:"application"},contexts:{transcription:{key:e}}}),Error("æäº¤PPT转ç ä»»å¡å¤±è´¥: ".concat(t))}}async pollTaskStatus(e){let t=0;for(let r=0;r<60;r++)try{let a=Date.now()-t;if(t>0&&a<3e3){let e=3e3-a;await new Promise(t=>setTimeout(t,e))}t=Date.now();let o=await (0,n.invoke)("pptx2mdTaskStatus",{task_id:e});if("FAILED"===o.status)throw Error(o.error);if(o.markdown_content)return o.markdown_content;if("COMPLETED"===o.status&&(!o.content||""===o.content))throw Error("PPTå¤ç宿使ªè·åå°å
容");console.log("PPTå¤çè¿åº¦ (".concat(r+1,"/").concat(60,"):"),o.status||"å¤çä¸...")}catch(t){throw console.error("è·åPPTå¤çä»»å¡ç¶æå¤±è´¥:",t),i.Cp(t,{tags:{module:"transcription",operation:"poll",component:"ppt_cloud_strategy",file_type:"application"},contexts:{transcription:{taskId:e}}}),Error("è·åPPTå¤çä»»å¡ç¶æå¤±è´¥: ".concat(t))}throw Error("PPTå¤çè¶
æ¶")}}class y extends s{async transcribe(e){let{file:t,key:r}=e;try{return await t.text()}catch(e){if(console.error("Txt conversion error:",e),i.Cp(e,{tags:{module:"transcription",operation:"process",component:"txt_strategy",file_type:"text"},contexts:{transcription:{key:r}}}),e instanceof Error)throw Error("Txt conversion failed: ".concat(e.message));throw Error("Txt conversion error")}}}class w{static getStrategy(e){if(a.VO.AUDIO_TYPE.includes(e)||a.VO.VIDEO_TYPE.includes(e))return new d;if(a.VO.PDF_TYPE.includes(e)||a.VO.DOC_TYPE.includes(e))return new f;if(a.VO.TXT_TYPE.includes(e))return new y;if(a.VO.PPT_TYPE.includes(e))return new g;if(a.VO.IMG_TYPE.includes(e))return new m;throw Error("Unsupported file type")}static isLocalStrategy(e){return a.VO.IMG_TYPE.includes(e)}}let h=async e=>{let{file:t,key:r,language:a,enableOcr:n,enableImageExtraction:i}=e;try{let e=(0,o.P7)(t),s=w.getStrategy(e);if(s instanceof f)return await s.transcribe({key:r,enableOcr:n,enableImageExtraction:i});return await s.transcribe({file:t,key:r,language:a})}catch(e){throw console.error("Transcription failed:",e),e}},x=e=>w.isLocalStrategy(e),b=async e=>{let{file:t,key:r,enableDeepParsing:i=!1}=e,s="zhibei-user-uploaded-file-prod";if(!s)throw Error("Transcription bucket not configured");let l=(0,o.P7)(t);if(a.VO.PDF_TYPE.includes(l)||a.VO.DOC_TYPE.includes(l)){let e=(0,o.gt)(t.name),a={bucket:s,key:r,enable_image_extraction:!0,enable_source_tracing:i,enable_ocr:i,...e?{language:e}:{}},l=await (0,n.invoke)("documentExtract",a);if(!l.task_id)throw Error("Failed to get transcription task_id");return{taskId:l.task_id,statusEndpoint:"documentTaskStatus",pollingType:"document"}}if(a.VO.PPT_TYPE.includes(l)){let e=await (0,n.invoke)("pptx2md",{bucket:s,key:r,enable_ocr:!1});if(!e.task_id)throw Error("Failed to get transcription task_id");return{taskId:e.task_id,statusEndpoint:"pptx2mdTaskStatus",pollingType:"ppt"}}if(a.VO.AUDIO_TYPE.includes(l)||a.VO.VIDEO_TYPE.includes(l)){let e=await (0,n.invoke)("transcribe",{bucket:s,key:r});if(!e.task_id)throw Error("Failed to get transcription task_id");return{taskId:e.task_id,statusEndpoint:"taskStatus",pollingType:"audio"}}return null}},35395:(e,t,r)=>{r.d(t,{e:()=>o,h:()=>a});let a=async e=>Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",await e.arrayBuffer()))).map(e=>e.toString(16).padStart(2,"0")).join(""),o=async e=>{let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}},64209:(e,t,r)=>{r.d(t,{invoke:()=>n});var a=r(6685);async function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{await a.Z.v2.analytics.trackEvent.mutate({userId:e,eventName:t,properties:r}),console.log("[Mixpanel] Successfully tracked event: ".concat(t," for user: ").concat(e))}
1catch(e){console.error("[Mixpanel] Error tracking event via tRPC:",e)}}let n=async(e,t)=>{try{return await a.Z.v2.serverless.invoke.mutate({name:e,data:t})}catch(t){try{await o("function_caller","function_failed",{functionName:e,error_statusText:t instanceof Error?t.message:String(t)}),console.log("function_failed event tracked successfully")}catch(e){console.error("Failed to track function_failed event:",e)}throw Error("è°ç¨å½æ° ".concat(e," 失败: ").concat(t instanceof Error?t.message:String(t)))}}},69443:(e,t,r)=>{r.d(t,{Cf:()=>f,Es:()=>g,L3:()=>y,c7:()=>m,lG:()=>c,rr:()=>w,zM:()=>d});var a=r(27950),o=r(21003),n=r(94558),i=r(92838),s=r(16830),l=r(96090);let c=o.bL,d=o.l9,p=e=>{var t;let{container:r,...n}=e,{container:i}=(0,l.V)();return(0,a.jsx)(o.ZL,{container:null!=(t=null!=r?r:i)?t:void 0,...n})};p.displayName=o.ZL.displayName;let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.hJ,{ref:t,className:(0,i.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=closed]:animate-out data-[state=open]:animate-in dark:bg-black/60",r),...n})});u.displayName=o.hJ.displayName;let f=n.forwardRef((e,t)=>{let{className:r,children:n,hideClose:l=!1,...c}=e;return(0,a.jsxs)(p,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(o.UC,{ref:t,className:(0,i.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-xl duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg md:w-full",r),...c,children:[n,!l&&(0,a.jsxs)(o.bm,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(s.uv5,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=o.UC.displayName;let m=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let g=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};g.displayName="DialogFooter";let y=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.hE,{ref:t,className:(0,i.cn)("font-semibold text-xl leading-none tracking-tight",r),...n})});y.displayName=o.hE.displayName;let w=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.VY,{ref:t,className:(0,i.cn)("text-muted-foreground text-sm",r),...n})});w.displayName=o.VY.displayName},95999:(e,t,r)=>{r.d(t,{bq:()=>p,eb:()=>m,gC:()=>f,l6:()=>c,yv:()=>d});var a=r(27950),o=r(95957),n=r(94558),i=r(92838),s=r(16830),l=r(96090);let c=o.bL;o.YJ;let d=o.WT,p=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,a.jsxs)(o.l9,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50",r),...l,children:[n,(0,a.jsx)(o.In,{asChild:!0,children:(0,a.jsx)(s.yQN,{className:"size-4 opacity-50"})})]})});function u(e){let{children:t}=e,{container:r}=(0,l.V)();return(0,a.jsx)(o.ZL,{container:null!=r?r:void 0,children:t})}p.displayName=o.l9.displayName;let f=n.forwardRef((e,t)=>{let{className:r,children:n,position:s="popper",...l}=e;return(0,a.jsx)(u,{children:(0,a.jsx)(o.UC,{ref:t,className:(0,i.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in","popper"===s?"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1":"",r),position:s,...l,children:(0,a.jsx)(o.LM,{className:(0,i.cn)("p-1","popper"===s?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:n})})})});f.displayName=o.UC.displayName,n.forwardRef((e,t)=>
1{let{className:r,...n}=e;return(0,a.jsx)(o.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 font-semibold text-sm",r),...n})}).displayName=o.JU.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,a.jsxs)(o.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[state=checked]:bg-sidebar-primary data-[state=checked]:font-semibold data-[state=checked]:text-sidebar-primary-foreground",r),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(o.VF,{children:(0,a.jsx)(s.Jlk,{className:"size-4"})})}),(0,a.jsx)(o.p4,{children:n})]})});m.displayName=o.q7.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=o.wv.displayName},99984:(e,t,r)=>{r.d(t,{v:()=>i});var a=r(26267),o=r(68380),n=r(94558);let i=()=>{let[e,t]=(0,n.useState)(!1),[r,i]=(0,n.useState)(0),s=a.u.v2.uploads.generatePresignedUrls.useMutation(),l=a.u.v2.uploads.completeMultipartUpload.useMutation();return{uploadFile:async(e,r,a)=>{t(!0),i(0);let n=Math.ceil(e.size/5242880);if(n<=0)throw Error("File size is too small to be uploaded in chunks");let c="zhibei-user-uploaded-file-prod";if(!c)throw Error("Missing env variable NEXT_PUBLIC_TRANSCRIBE_FILES_BUCKET_NAME");try{let{uploadId:t,presignedUrls:o}=await s.mutateAsync({bucket:c,path:r,contentType:a||e.type,parts:n}),d=0,p=o.map(async(t,r)=>{let{partNumber:a,signedUrl:o}=t,s=5242880*r,l=Math.min(s+5242880,e.size),c=e.slice(s,l),p=await fetch(o,{method:"PUT",body:c});if(!p.ok)throw Error("Failed to upload part ".concat(a));return d++,i(d/n),{PartNumber:a,ETag:p.headers.get("etag")||""}}),u=await Promise.all(p);i(1);let f=await l.mutateAsync({bucket:c,path:r,uploadId:t,parts:u});if(!f.success)throw Error("Upload failed: ".concat(JSON.stringify(f)));return{key:f.key}}catch(t){throw console.error("File upload failed:",t),(0,o.oR)({variant:"error",title:"Failed to upload ".concat(e.name||r.split("/").pop())}),t}finally{t(!1)}},isUploading:e,progress:r}}}}]); 2//# sourceMappingURL=25645-eca7db8257b3e553.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.