1 line
434 KiB
JavaScript
1 line
434 KiB
JavaScript
|
"use strict";(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[8116],{88116:(t,n,e)=>{e.r(n),e.d(n,{Word:()=>aa,default:()=>ra});var s=e(14320);function a(t){return t.getAttribute("w:val")||t.getAttribute("w14:val")||t.getAttribute("val")||""}function r(t){return parseInt(a(t),10)}function l(t,n){if(void 0===n&&(n=!1),"boolean"==typeof t)return t;if("string"==typeof t){switch(t){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1}if("number"==typeof t)return 0!==t}return n}function o(t,n){return void 0===n&&(n=!0),l(a(t),n)}function x(t,n,e){return void 0===e&&(e=!0),l(t.getAttribute(n),e)}function y(t,n,e){void 0===e&&(e=0);var s=t.getAttribute(n);return s?parseInt(s,10):e}function p(t,n){var e=t.getAttribute(n);return e?e.endsWith("%")?parseInt(e,10)/100:parseInt(e,10)/1e5:1}function f(t,n){for(var e=n.replace(/{|}|-/g,""),s=new Array(16),a=0;a<16;a++)s[16-a-1]=parseInt(e.substr(2*a,2),16);for(a=0;a<32;a++)t[a]=t[a]^s[a%16];return t}var c=function(){function t(){}return t.fromXML=function(n,e){var r,l,o=new t;o.name=e.getAttribute("w:name")||"";try{for(var x=(0,s.XA)(e.children),y=x.next();!y.done;y=x.next()){var p=y.value,f=p.tagName;switch(f){case"w:family":o.family=a(p);break;case"w:altName":o.altName=a(p);break;case"w:panose1":case"w:charset":case"w:sig":case"w:pitch":break;case"w:embedRegular":case"w:embedBold":case"w:embedItalic":case"w:embedBoldItalic":case"w:embedSystemFonts":case"w:embedTrueTypeFonts":var c=p.getAttribute("r:id")||"",i=p.getAttribute("w:fontKey")||"",d=n.loadFont(c,i);d&&(o.url=d);break;default:console.warn("parse Font: Unknown key",f,p)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(l=x.return)&&l.call(x)}finally{if(r)throw r.error}}return o},t}(),i=function(){function t(){this.fonts=[]}return t.fromXML=function(n,e){var a,r,l=Array.from(e.getElementsByTagName("w:font")),o=new t;try{for(var x=(0,s.XA)(l),y=x.next();!y.done;y=x.next()){var p=y.value,f=c.fromXML(n,p);o.fonts.push(f)}}catch(t){a={error:t}}finally{try{y&&!y.done&&(r=x.return)&&r.call(x)}finally{if(a)throw a.error}}return o},t}();function d(t,n){return{id:t.getAttribute("Id")||"",type:t.getAttribute("Type")||"",target:t.getAttribute("Target")||"",targetMode:t.getAttribute("TargetMode")||"",part:n}}function h(t,n){var e,a,r={},l=t.getElementsByTagName("Relationship");try{for(var o=(0,s.XA)(l),x=o.next();!x.done;x=o.next()){var y=d(x.value,n);r[y.id]=y}}catch(t){e={error:t}}finally{try{x&&!x.done&&(a=o.return)&&a.call(o)}finally{if(e)throw e.error}}return r}var m={Dxa:{mul:.066665,unit:"px"},Emu:{mul:1.3333/12700,unit:"px"},FontSize:{mul:.66665,unit:"px"},Border:{mul:.1666625,unit:"px"},Point:{mul:1.3333,unit:"px"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function w(t,n){return void 0===n&&(n=m.Dxa),null==t||/.+(p[xt]|[%])$/.test(t)?t:"".concat((parseInt(t)*n.mul).toFixed(2)).concat(n.unit)}function g(t){return t?parseInt(t)/6e4:0}function u(t,n,e){void 0===e&&(e=m.Dxa);var s=t.getAttribute(n);return s?w(String(s),e):""}function T(t,n){var e,a;try{for(var r=(0,s.XA)(t.children),l=r.next();!l.done;l=r.next()){var o=l.value;switch(o.tagName){case"w:left":case"w:start":n["padding-left"]=u(o,"w:w");break;case"w:right":case"w:end":n["padding-right"]=u(o,"w:w");break;case"w:top":n["padding-top"]=u(o,"w:w");break;case"w:bottom":n["padding-bottom"]=u(o,"w:w")}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(a=r.return)&&a.call(r)}finally{if(e)throw e.error}}}var v={aliceBlue:"#f0f8ff",antiqueWhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedAlmond:"#ffebcd",blue:"#0000ff",blueViolet:"#8a2be2",brown:"#a52a2a",burlyWood:"#deb887",cadetBlue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerBlue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00FFFF",darkBlue:"#00008B",dkBlue:"#00008B",darkCyan:"#008B8B",dkCyan:"#008B8B",darkGoldenrod:"#b8860b",dkGoldenrod:"#b8860b",darkGray:"#A9A9A9",dkGray:"#A9A9A9",darkGreen:"#006400",dkGreen:"#006400",
|