{"id":1175,"date":"2026-12-03T11:51:26","date_gmt":"2026-12-03T11:51:26","guid":{"rendered":"https:\/\/pc-international.com\/company-introduction\/"},"modified":"2026-12-04T05:16:11","modified_gmt":"2026-12-04T05:16:11","slug":"company-introduction","status":"publish","type":"page","link":"https:\/\/pc-international.com\/fr\/company-introduction\/","title":{"rendered":"Pr\u00e9sentation"},"content":{"rendered":"\n\t\t<div id=\"fws_6b144e036c4d8\"  data-column-margin=\"default\" data-midnight=\"dark\"  class=\"wpb_row vc_row-fluid vc_row\"  style=\"padding-top: 50px; padding-bottom: 30px; \"><div class=\"row-bg-wrap\" data-bg-animation=\"none\" data-bg-animation-delay=\"\" data-bg-overlay=\"false\"><div class=\"inner-wrap row-bg-layer\" ><div class=\"row-bg viewport-desktop\"  style=\"\"><\/div><\/div><\/div><div class=\"row_col_wrap_12 col span_12 dark left\">\n\t<div  class=\"vc_col-sm-8 wpb_column column_container vc_column_container col no-extra-padding\"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t\n<div class=\"wpb_text_column wpb_content_element \" >\n\t<p style=\"font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #bd5d3d; margin: 0; padding-bottom: 16px;\">Company Introduction 2026<\/p>\n<h1 style=\"font-size: 44px; line-height: 1.15; font-weight: 500; margin: 0; color: #10103a;\">Pyramid Consulting International at a glance<\/h1>\n<\/div>\n\n\n\n\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n\n\t<div  class=\"vc_col-sm-4 wpb_column column_container vc_column_container col no-extra-padding force-desktop-text-align-right \"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t<div class=\"divider-wrap\" data-alignment=\"default\"><div style=\"height: 30px;\" class=\"divider\"><\/div><\/div><a class=\"nectar-button large regular accent-color  regular-button\"  role=\"button\" style=\"\" target=\"_blank\" href=\"\/wp-content\/uploads\/2026\/12\/PCI-Company-Introduction-2026-v4.pdf\" data-color-override=\"false\" data-hover-color-override=\"false\" data-hover-text-color-override=\"#fff\"><span>Download PDF<\/span><\/a>\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n<\/div><\/div>\n\t\t<div id=\"fws_6b144e036c97f\"  data-column-margin=\"default\" data-midnight=\"dark\"  class=\"wpb_row vc_row-fluid vc_row\"  style=\"padding-top: 0px; padding-bottom: 50px; \"><div class=\"row-bg-wrap\" data-bg-animation=\"none\" data-bg-animation-delay=\"\" data-bg-overlay=\"false\"><div class=\"inner-wrap row-bg-layer\" ><div class=\"row-bg viewport-desktop\"  style=\"\"><\/div><\/div><\/div><div class=\"row_col_wrap_12 col span_12 dark left\">\n\t<div  class=\"vc_col-sm-12 wpb_column column_container vc_column_container col no-extra-padding\"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t\n\t<div class=\"wpb_raw_code wpb_raw_html wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<style>body.page-id-1175 .container-wrap{min-height:0!important}<\/style><div id=\"pci-flip\" style=\"position:relative;width:100%;height:clamp(360px,40vw,700px);border-radius:15px;overflow:hidden;background:#e8eaec;\"><\/div><script>window.FLIP_CONFIG={\"num\":17,\"cover\":false,\"aspect\":1.77778,\"title\":\"PCI Company Introduction 2026\",\"theme\":\"light\",\"rootId\":\"pci-flip\",\"srcs\":[\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-01.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-02.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-03.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-04.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-05.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-06.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-07.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-08.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-09.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-10.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-11.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-12.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-13.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-14.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-15.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-16.jpg\",\"\/wp-content\/uploads\/2026\/12\/pci-introduction-2026-v2-page-17.jpg\"],\"standalone\":false};<\/script><script>window.__FB_PAGEFLIP = function(){\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=t||self).St={})}(this,(function(t){\"use strict\";class e{constructor(t,e){this.state={angle:0,area:[],position:{x:0,y:0},hardAngle:0,hardDrawingAngle:0},this.createdDensity=e,this.nowDrawingDensity=this.createdDensity,this.render=t}setDensity(t){this.createdDensity=t,this.nowDrawingDensity=t}setDrawingDensity(t){this.nowDrawingDensity=t}setPosition(t){this.state.position=t}setAngle(t){this.state.angle=t}setArea(t){this.state.area=t}setHardDrawingAngle(t){this.state.hardDrawingAngle=t}setHardAngle(t){this.state.hardAngle=t,this.state.hardDrawingAngle=t}setOrientation(t){this.orientation=t}getDrawingDensity(){return this.nowDrawingDensity}getDensity(){return this.createdDensity}getHardAngle(){return this.state.hardAngle}}class i extends e{constructor(t,e,i){super(t,i),this.image=null,this.isLoad=!1,this.loadingAngle=0,this.image=new Image,this.image.src=e}draw(t){const e=this.render.getContext(),i=this.render.convertToGlobal(this.state.position),s=this.render.getRect().pageWidth,n=this.render.getRect().height;e.save(),e.translate(i.x,i.y),e.beginPath();for(let t of this.state.area)null!==t&&(t=this.render.convertToGlobal(t),e.lineTo(t.x-i.x,t.y-i.y));e.rotate(this.state.angle),e.clip(),this.isLoad?e.drawImage(this.image,0,0,s,n):this.drawLoader(e,{x:0,y:0},s,n),e.restore()}simpleDraw(t){const e=this.render.getRect(),i=this.render.getContext(),s=e.pageWidth,n=e.height,h=1===t?e.left+e.pageWidth:e.left,r=e.top;this.isLoad?i.drawImage(this.image,h,r,s,n):this.drawLoader(i,{x:h,y:r},s,n)}drawLoader(t,e,i,s){t.beginPath(),t.strokeStyle=\"rgb(200, 200, 200)\",t.fillStyle=\"rgb(255, 255, 255)\",t.lineWidth=1,t.rect(e.x+1,e.y+1,i-1,s-1),t.stroke(),t.fill();const n={x:e.x+i\/2,y:e.y+s\/2};t.beginPath(),t.lineWidth=10,t.arc(n.x,n.y,20,this.loadingAngle,3*Math.PI\/2+this.loadingAngle),t.stroke(),t.closePath(),this.loadingAngle+=.07,this.loadingAngle>=2*Math.PI&&(this.loadingAngle=0)}load(){this.isLoad||(this.image.onload=()=>{this.isLoad=!0})}newTemporaryCopy(){return this}getTemporaryCopy(){return this}hideTemporaryCopy(){}}class s{constructor(t,e){this.pages=[],this.currentPageIndex=0,this.currentSpreadIndex=0,this.landscapeSpread=[],this.portraitSpread=[],this.render=e,this.app=t,this.currentPageIndex=0,this.isShowCover=this.app.getSettings().showCover}destroy(){this.pages=[]}createSpread(){this.landscapeSpread=[],this.portraitSpread=[];for(let t=0;t<this.pages.length;t++)this.portraitSpread.push([t]);let t=0;this.isShowCover&&(this.pages[0].setDensity(\"hard\"),this.landscapeSpread.push([t]),t++);for(let e=t;e<this.pages.length;e+=2)e<this.pages.length-1?this.landscapeSpread.push([e,e+1]):(this.landscapeSpread.push([e]),this.pages[e].setDensity(\"hard\"))}getSpread(){return\"landscape\"===this.render.getOrientation()?this.landscapeSpread:this.portraitSpread}getSpreadIndexByPage(t){const e=this.getSpread();for(let i=0;i<e.length;i++)if(t===e[i][0]||t===e[i][1])return i;return null}getPageCount(){return this.pages.length}getPages(){return this.pages}getPage(t){if(t>=0&&t<this.pages.length)return this.pages[t];throw new Error(\"Invalid page number\")}nextBy(t){const e=this.pages.indexOf(t);return e<this.pages.length-1?this.pages[e+1]:null}prevBy(t){const e=this.pages.indexOf(t);return e>0?this.pages[e-1]:null}getFlippingPage(t){const e=this.currentSpreadIndex;if(\"portrait\"===this.render.getOrientation())return 0===t?this.pages[e].newTemporaryCopy():this.pages[e-1];{const i=0===t?this.getSpread()[e+1]:this.getSpread()[e-1];return 1===i.length||0===t?this.pages[i[0]]:this.pages[i[1]]}}getBottomPage(t){const e=this.currentSpreadIndex;if(\"portrait\"===this.render.getOrientation())return 0===t?this.pages[e+1]:this.pages[e-1];{const i=0===t?this.getSpread()[e+1]:this.getSpread()[e-1];return 1===i.length?this.pages[i[0]]:0===t?this.pages[i[1]]:this.pages[i[0]]}}showNext(){this.currentSpreadIndex<this.getSpread().length&&(this.currentSpreadIndex++,this.showSpread())}showPrev(){this.currentSpreadIndex>0&&(this.currentSpreadIndex--,this.showSpread())}getCurrentPageIndex(){return this.currentPageIndex}show(t=null){if(null===t&&(t=this.currentPageIndex),t<0||t>=this.pages.length)return;const e=this.getSpreadIndexByPage(t);null!==e&&(this.currentSpreadIndex=e,this.showSpread())}getCurrentSpreadIndex(){return this.currentSpreadIndex}setCurrentSpreadIndex(t){if(!(t>=0&&t<this.getSpread().length))throw new Error(\"Invalid page\");this.currentSpreadIndex=t}showSpread(){const t=this.getSpread()[this.currentSpreadIndex];2===t.length?(this.render.setLeftPage(this.pages[t[0]]),this.render.setRightPage(this.pages[t[1]])):\"landscape\"===this.render.getOrientation()&&t[0]===this.pages.length-1?(this.render.setLeftPage(this.pages[t[0]]),this.render.setRightPage(null)):(this.render.setLeftPage(null),this.render.setRightPage(this.pages[t[0]])),this.currentPageIndex=t[0],this.app.updatePageIndex(this.currentPageIndex)}}class n extends s{constructor(t,e,i){super(t,e),this.imagesHref=i}load(){for(const t of this.imagesHref){const e=new i(this.render,t,\"soft\");e.load(),this.pages.push(e)}this.createSpread()}}class h{static GetDistanceBetweenTwoPoint(t,e){return null===t||null===e?1\/0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}static GetSegmentLength(t){return h.GetDistanceBetweenTwoPoint(t[0],t[1])}static GetAngleBetweenTwoLine(t,e){const i=t[0].y-t[1].y,s=e[0].y-e[1].y,n=t[1].x-t[0].x,h=e[1].x-e[0].x;return Math.acos((i*s+n*h)\/(Math.sqrt(i*i+n*n)*Math.sqrt(s*s+h*h)))}static PointInRect(t,e){return null===e?null:e.x>=t.left&&e.x<=t.width+t.left&&e.y>=t.top&&e.y<=t.top+t.height?e:null}static GetRotatedPoint(t,e,i){return{x:t.x*Math.cos(i)+t.y*Math.sin(i)+e.x,y:t.y*Math.cos(i)-t.x*Math.sin(i)+e.y}}static LimitPointToCircle(t,e,i){if(h.GetDistanceBetweenTwoPoint(t,i)<=e)return i;const s=t.x,n=t.y,r=i.x,o=i.y;let a=Math.sqrt(Math.pow(e,2)*Math.pow(s-r,2)\/(Math.pow(s-r,2)+Math.pow(n-o,2)))+s;i.x<0&&(a*=-1);let g=(a-s)*(n-o)\/(s-r)+n;return s-r+n===0&&(g=e),{x:a,y:g}}static GetIntersectBetweenTwoSegment(t,e,i){return h.PointInRect(t,h.GetIntersectBeetwenTwoLine(e,i))}static GetIntersectBeetwenTwoLine(t,e){const i=t[0].y-t[1].y,s=e[0].y-e[1].y,n=t[1].x-t[0].x,h=e[1].x-e[0].x,r=t[0].x*t[1].y-t[1].x*t[0].y,o=e[0].x*e[1].y-e[1].x*e[0].y,a=i*o-s*r,g=n*o-h*r,l=-(r*h-o*n)\/(i*h-s*n),d=-(i*o-s*r)\/(i*h-s*n);if(isFinite(l)&&isFinite(d))return{x:l,y:d};if(Math.abs(a-g)<.1)throw new Error(\"Segment included\");return null}static GetCordsFromTwoPoint(t,e){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y),n=Math.max(i,s),h=[t];function r(t,e,i,s,n){return e>t?t+n*(i\/s):e<t?t-n*(i\/s):t}for(let o=1;o<=n;o+=1)h.push({x:r(t.x,e.x,i,n,o),y:r(t.y,e.y,s,n,o)});return h}}class r extends e{constructor(t,e,i){super(t,i),this.copiedElement=null,this.temporaryCopy=null,this.isLoad=!1,this.element=e,this.element.classList.add(\"stf__item\"),this.element.classList.add(\"--\"+i)}newTemporaryCopy(){return\"hard\"===this.nowDrawingDensity?this:(null===this.temporaryCopy&&(this.copiedElement=this.element.cloneNode(!0),this.element.parentElement.appendChild(this.copiedElement),this.temporaryCopy=new r(this.render,this.copiedElement,this.nowDrawingDensity)),this.getTemporaryCopy())}getTemporaryCopy(){return this.temporaryCopy}hideTemporaryCopy(){null!==this.temporaryCopy&&(this.copiedElement.remove(),this.copiedElement=null,this.temporaryCopy=null)}draw(t){const e=t||this.nowDrawingDensity,i=this.render.convertToGlobal(this.state.position),s=this.render.getRect().pageWidth,n=this.render.getRect().height;this.element.classList.remove(\"--simple\");const h=`\\n            display: block;\\n            z-index: ${this.element.style.zIndex};\\n            left: 0;\\n            top: 0;\\n            width: ${s}px;\\n            height: ${n}px;\\n        `;\"hard\"===e?this.drawHard(h):this.drawSoft(i,h)}drawHard(t=\"\"){const e=this.render.getRect().left+this.render.getRect().width\/2,i=this.state.hardDrawingAngle,s=t+\"\\n                backface-visibility: hidden;\\n                -webkit-backface-visibility: hidden;\\n                clip-path: none;\\n                -webkit-clip-path: none;\\n            \"+(0===this.orientation?`transform-origin: ${this.render.getRect().pageWidth}px 0; \\n                   transform: translate3d(0, 0, 0) rotateY(${i}deg);`:`transform-origin: 0 0; \\n                   transform: translate3d(${e}px, 0, 0) rotateY(${i}deg);`);this.element.style.cssText=s}drawSoft(t,e=\"\"){let i=\"polygon( \";for(const t of this.state.area)if(null!==t){let e=1===this.render.getDirection()?{x:-t.x+this.state.position.x,y:t.y-this.state.position.y}:{x:t.x-this.state.position.x,y:t.y-this.state.position.y};e=h.GetRotatedPoint(e,{x:0,y:0},this.state.angle),i+=e.x+\"px \"+e.y+\"px, \"}i=i.slice(0,-2),i+=\")\";const s=e+`transform-origin: 0 0; clip-path: ${i}; -webkit-clip-path: ${i};`+(this.render.isSafari()&&0===this.state.angle?`transform: translate(${t.x}px, ${t.y}px);`:`transform: translate3d(${t.x}px, ${t.y}px, 0) rotate(${this.state.angle}rad);`);this.element.style.cssText=s}simpleDraw(t){const e=this.render.getRect(),i=e.pageWidth,s=e.height,n=1===t?e.left+e.pageWidth:e.left,h=e.top;this.element.classList.add(\"--simple\"),this.element.style.cssText=`\\n            position: absolute; \\n            display: block; \\n            height: ${s}px; \\n            left: ${n}px; \\n            top: ${h}px; \\n            width: ${i}px; \\n            z-index: ${this.render.getSettings().startZIndex+1};`}getElement(){return this.element}load(){this.isLoad=!0}setOrientation(t){super.setOrientation(t),this.element.classList.remove(\"--left\",\"--right\"),this.element.classList.add(1===t?\"--right\":\"--left\")}setDrawingDensity(t){this.element.classList.remove(\"--soft\",\"--hard\"),this.element.classList.add(\"--\"+t),super.setDrawingDensity(t)}}class o extends s{constructor(t,e,i,s){super(t,e),this.element=i,this.pagesElement=s}load(){for(const t of this.pagesElement){const e=new r(this.render,t,\"hard\"===t.dataset.density?\"hard\":\"soft\");e.load(),this.pages.push(e)}this.createSpread()}}class a{constructor(t,e,i,s){this.direction=t,this.corner=e,this.topIntersectPoint=null,this.sideIntersectPoint=null,this.bottomIntersectPoint=null,this.pageWidth=parseInt(i,10),this.pageHeight=parseInt(s,10)}calc(t){try{return this.position=this.calcAngleAndPosition(t),this.calculateIntersectPoint(this.position),!0}catch(t){return!1}}getFlippingClipArea(){const t=[];let e=!1;return t.push(this.rect.topLeft),t.push(this.topIntersectPoint),null===this.sideIntersectPoint?e=!0:(t.push(this.sideIntersectPoint),null===this.bottomIntersectPoint&&(e=!1)),t.push(this.bottomIntersectPoint),(e||\"bottom\"===this.corner)&&t.push(this.rect.bottomLeft),t}getBottomClipArea(){const t=[];return t.push(this.topIntersectPoint),\"top\"===this.corner?t.push({x:this.pageWidth,y:0}):(null!==this.topIntersectPoint&&t.push({x:this.pageWidth,y:0}),t.push({x:this.pageWidth,y:this.pageHeight})),null!==this.sideIntersectPoint?h.GetDistanceBetweenTwoPoint(this.sideIntersectPoint,this.topIntersectPoint)>=10&&t.push(this.sideIntersectPoint):\"top\"===this.corner&&t.push({x:this.pageWidth,y:this.pageHeight}),t.push(this.bottomIntersectPoint),t.push(this.topIntersectPoint),t}getAngle(){return 0===this.direction?-this.angle:this.angle}getRect(){return this.rect}getPosition(){return this.position}getActiveCorner(){return 0===this.direction?this.rect.topLeft:this.rect.topRight}getDirection(){return this.direction}getFlippingProgress(){return Math.abs((this.position.x-this.pageWidth)\/(2*this.pageWidth)*100)}getCorner(){return this.corner}getBottomPagePosition(){return 1===this.direction?{x:this.pageWidth,y:0}:{x:0,y:0}}getShadowStartPoint(){return\"top\"===this.corner?this.topIntersectPoint:null!==this.sideIntersectPoint?this.sideIntersectPoint:this.topIntersectPoint}getShadowAngle(){const t=h.GetAngleBetweenTwoLine(this.getSegmentToShadowLine(),[{x:0,y:0},{x:this.pageWidth,y:0}]);return 0===this.direction?t:Math.PI-t}calcAngleAndPosition(t){let e=t;if(this.updateAngleAndGeometry(e),e=\"top\"===this.corner?this.checkPositionAtCenterLine(e,{x:0,y:0},{x:0,y:this.pageHeight}):this.checkPositionAtCenterLine(e,{x:0,y:this.pageHeight},{x:0,y:0}),Math.abs(e.x-this.pageWidth)<1&&Math.abs(e.y)<1)throw new Error(\"Point is too small\");return e}updateAngleAndGeometry(t){this.angle=this.calculateAngle(t),this.rect=this.getPageRect(t)}calculateAngle(t){const e=this.pageWidth-t.x+1,i=\"bottom\"===this.corner?this.pageHeight-t.y:t.y;let s=2*Math.acos(e\/Math.sqrt(i*i+e*e));i<0&&(s=-s);const n=Math.PI-s;if(!isFinite(s)||n>=0&&n<.003)throw new Error(\"The G point is too small\");return\"bottom\"===this.corner&&(s=-s),s}getPageRect(t){return\"top\"===this.corner?this.getRectFromBasePoint([{x:0,y:0},{x:this.pageWidth,y:0},{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}],t):this.getRectFromBasePoint([{x:0,y:-this.pageHeight},{x:this.pageWidth,y:-this.pageHeight},{x:0,y:0},{x:this.pageWidth,y:0}],t)}getRectFromBasePoint(t,e){return{topLeft:this.getRotatedPoint(t[0],e),topRight:this.getRotatedPoint(t[1],e),bottomLeft:this.getRotatedPoint(t[2],e),bottomRight:this.getRotatedPoint(t[3],e)}}getRotatedPoint(t,e){return{x:t.x*Math.cos(this.angle)+t.y*Math.sin(this.angle)+e.x,y:t.y*Math.cos(this.angle)-t.x*Math.sin(this.angle)+e.y}}calculateIntersectPoint(t){const e={left:-1,top:-1,width:this.pageWidth+2,height:this.pageHeight+2};\"top\"===this.corner?(this.topIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[t,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]),this.sideIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[t,this.rect.bottomLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}]),this.bottomIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[this.rect.bottomLeft,this.rect.bottomRight],[{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}])):(this.topIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[this.rect.topLeft,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]),this.sideIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[t,this.rect.topLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}]),this.bottomIntersectPoint=h.GetIntersectBetweenTwoSegment(e,[this.rect.bottomLeft,this.rect.bottomRight],[{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}]))}checkPositionAtCenterLine(t,e,i){let s=t;const n=h.LimitPointToCircle(e,this.pageWidth,s);s!==n&&(s=n,this.updateAngleAndGeometry(s));const r=Math.sqrt(Math.pow(this.pageWidth,2)+Math.pow(this.pageHeight,2));let o=this.rect.bottomRight,a=this.rect.topLeft;if(\"bottom\"===this.corner&&(o=this.rect.topRight,a=this.rect.bottomLeft),o.x<=0){const t=h.LimitPointToCircle(i,r,a);t!==s&&(s=t,this.updateAngleAndGeometry(s))}return s}getSegmentToShadowLine(){const t=this.getShadowStartPoint();return[t,t!==this.sideIntersectPoint&&null!==this.sideIntersectPoint?this.sideIntersectPoint:this.bottomIntersectPoint]}}class g{constructor(t,e){this.flippingPage=null,this.bottomPage=null,this.calc=null,this.state=\"read\",this.render=t,this.app=e}fold(t){this.setState(\"user_fold\"),null===this.calc&&this.start(t),this.do(this.render.convertToPage(t))}flip(t){if(this.app.getSettings().disableFlipByClick&&!this.isPointOnCorners(t))return;if(null!==this.calc&&this.render.finishAnimation(),!this.start(t))return;const e=this.getBoundsRect();this.setState(\"flipping\");const i=e.height\/10,s=\"bottom\"===this.calc.getCorner()?e.height-i:i,n=\"bottom\"===this.calc.getCorner()?e.height:0;this.calc.calc({x:e.pageWidth-i,y:s}),this.animateFlippingTo({x:e.pageWidth-i,y:s},{x:-e.pageWidth,y:n},!0)}start(t){this.reset();const e=this.render.convertToBook(t),i=this.getBoundsRect(),s=this.getDirectionByPoint(e),n=e.y>=i.height\/2?\"bottom\":\"top\";if(!this.checkDirection(s))return!1;try{if(this.flippingPage=this.app.getPageCollection().getFlippingPage(s),this.bottomPage=this.app.getPageCollection().getBottomPage(s),\"landscape\"===this.render.getOrientation())if(1===s){const t=this.app.getPageCollection().nextBy(this.flippingPage);null!==t&&this.flippingPage.getDensity()!==t.getDensity()&&(this.flippingPage.setDrawingDensity(\"hard\"),t.setDrawingDensity(\"hard\"))}else{const t=this.app.getPageCollection().prevBy(this.flippingPage);null!==t&&this.flippingPage.getDensity()!==t.getDensity()&&(this.flippingPage.setDrawingDensity(\"hard\"),t.setDrawingDensity(\"hard\"))}return this.render.setDirection(s),this.calc=new a(s,n,i.pageWidth.toString(10),i.height.toString(10)),!0}catch(t){return!1}}do(t){if(null!==this.calc&&this.calc.calc(t)){const t=this.calc.getFlippingProgress();this.bottomPage.setArea(this.calc.getBottomClipArea()),this.bottomPage.setPosition(this.calc.getBottomPagePosition()),this.bottomPage.setAngle(0),this.bottomPage.setHardAngle(0),this.flippingPage.setArea(this.calc.getFlippingClipArea()),this.flippingPage.setPosition(this.calc.getActiveCorner()),this.flippingPage.setAngle(this.calc.getAngle()),0===this.calc.getDirection()?this.flippingPage.setHardAngle(90*(200-2*t)\/100):this.flippingPage.setHardAngle(-90*(200-2*t)\/100),this.render.setPageRect(this.calc.getRect()),this.render.setBottomPage(this.bottomPage),this.render.setFlippingPage(this.flippingPage),this.render.setShadowData(this.calc.getShadowStartPoint(),this.calc.getShadowAngle(),t,this.calc.getDirection())}}flipToPage(t,e){const i=this.app.getPageCollection().getCurrentSpreadIndex(),s=this.app.getPageCollection().getSpreadIndexByPage(t);try{s>i&&(this.app.getPageCollection().setCurrentSpreadIndex(s-1),this.flipNext(e)),s<i&&(this.app.getPageCollection().setCurrentSpreadIndex(s+1),this.flipPrev(e))}catch(t){}}flipNext(t){this.flip({x:this.render.getRect().left+2*this.render.getRect().pageWidth-10,y:\"top\"===t?1:this.render.getRect().height-2})}flipPrev(t){this.flip({x:10,y:\"top\"===t?1:this.render.getRect().height-2})}stopMove(){if(null===this.calc)return;const t=this.calc.getPosition(),e=this.getBoundsRect(),i=\"bottom\"===this.calc.getCorner()?e.height:0;t.x<=0?this.animateFlippingTo(t,{x:-e.pageWidth,y:i},!0):this.animateFlippingTo(t,{x:e.pageWidth,y:i},!1)}showCorner(t){if(!this.checkState(\"read\",\"fold_corner\"))return;const e=this.getBoundsRect(),i=e.pageWidth;if(this.isPointOnCorners(t))if(null===this.calc){if(!this.start(t))return;this.setState(\"fold_corner\"),this.calc.calc({x:i-1,y:1});const s=50,n=\"bottom\"===this.calc.getCorner()?e.height-1:1,h=\"bottom\"===this.calc.getCorner()?e.height-s:s;this.animateFlippingTo({x:i-1,y:n},{x:i-s,y:h},!1,!1)}else this.do(this.render.convertToPage(t));else this.setState(\"read\"),this.render.finishAnimation(),this.stopMove()}animateFlippingTo(t,e,i,s=!0){const n=h.GetCordsFromTwoPoint(t,e),r=[];for(const t of n)r.push(()=>this.do(t));const o=this.getAnimationDuration(n.length);this.render.startAnimation(r,o,()=>{this.calc&&(i&&(1===this.calc.getDirection()?this.app.turnToPrevPage():this.app.turnToNextPage()),s&&(this.render.setBottomPage(null),this.render.setFlippingPage(null),this.render.clearShadow(),this.setState(\"read\"),this.reset()))})}getCalculation(){return this.calc}getState(){return this.state}setState(t){this.state!==t&&(this.app.updateState(t),this.state=t)}getDirectionByPoint(t){const e=this.getBoundsRect();if(\"portrait\"===this.render.getOrientation()){if(t.x-e.pageWidth<=e.width\/5)return 1}else if(t.x<e.width\/2)return 1;return 0}getAnimationDuration(t){const e=this.app.getSettings().flippingTime;return t>=1e3?e:t\/1e3*e}checkDirection(t){return 0===t?this.app.getCurrentPageIndex()<this.app.getPageCount()-1:this.app.getCurrentPageIndex()>=1}reset(){this.calc=null,this.flippingPage=null,this.bottomPage=null}getBoundsRect(){return this.render.getRect()}checkState(...t){for(const e of t)if(this.state===e)return!0;return!1}isPointOnCorners(t){const e=this.getBoundsRect(),i=e.pageWidth,s=Math.sqrt(Math.pow(i,2)+Math.pow(e.height,2))\/5,n=this.render.convertToBook(t);return n.x>0&&n.y>0&&n.x<e.width&&n.y<e.height&&(n.x<s||n.x>e.width-s)&&(n.y<s||n.y>e.height-s)}}class l{constructor(t,e){this.leftPage=null,this.rightPage=null,this.flippingPage=null,this.bottomPage=null,this.direction=null,this.orientation=null,this.shadow=null,this.animation=null,this.pageRect=null,this.boundsRect=null,this.timer=0,this.safari=!1,this.setting=e,this.app=t;const i=new RegExp(\"Version\\\\\/[\\\\d\\\\.]+.*Safari\/\");this.safari=null!==i.exec(window.navigator.userAgent)}render(t){if(null!==this.animation){const e=Math.round((t-this.animation.startedAt)\/this.animation.durationFrame);e<this.animation.frames.length?this.animation.frames[e]():(this.animation.onAnimateEnd(),this.animation=null)}this.timer=t,this.drawFrame()}start(){this.update();const t=e=>{this.render(e),requestAnimationFrame(t)};requestAnimationFrame(t)}startAnimation(t,e,i){this.finishAnimation(),this.animation={frames:t,duration:e,durationFrame:e\/t.length,onAnimateEnd:i,startedAt:this.timer}}finishAnimation(){null!==this.animation&&(this.animation.frames[this.animation.frames.length-1](),null!==this.animation.onAnimateEnd&&this.animation.onAnimateEnd()),this.animation=null}update(){this.boundsRect=null;const t=this.calculateBoundsRect();this.orientation!==t&&(this.orientation=t,this.app.updateOrientation(t))}calculateBoundsRect(){let t=\"landscape\";const e=this.getBlockWidth(),i=e\/2,s=this.getBlockHeight()\/2,n=this.setting.width\/this.setting.height;let h=this.setting.width,r=this.setting.height,o=i-h;return\"stretch\"===this.setting.size?(e<2*this.setting.minWidth&&this.app.getSettings().usePortrait&&(t=\"portrait\"),h=\"portrait\"===t?this.getBlockWidth():this.getBlockWidth()\/2,h>this.setting.maxWidth&&(h=this.setting.maxWidth),r=h\/n,r>this.getBlockHeight()&&(r=this.getBlockHeight(),h=r*n),o=\"portrait\"===t?i-h\/2-h:i-h):e<2*h&&this.app.getSettings().usePortrait&&(t=\"portrait\",o=i-h\/2-h),this.boundsRect={left:o,top:s-r\/2,width:2*h,height:r,pageWidth:h},t}setShadowData(t,e,i,s){if(!this.app.getSettings().drawShadow)return;const n=100*this.getSettings().maxShadowOpacity;this.shadow={pos:t,angle:e,width:3*this.getRect().pageWidth\/4*i\/100,opacity:(100-i)*n\/100\/100,direction:s,progress:2*i}}clearShadow(){this.shadow=null}getBlockWidth(){return this.app.getUI().getDistElement().offsetWidth}getBlockHeight(){return this.app.getUI().getDistElement().offsetHeight}getDirection(){return this.direction}getRect(){return null===this.boundsRect&&this.calculateBoundsRect(),this.boundsRect}getSettings(){return this.app.getSettings()}getOrientation(){return this.orientation}setPageRect(t){this.pageRect=t}setDirection(t){this.direction=t}setRightPage(t){null!==t&&t.setOrientation(1),this.rightPage=t}setLeftPage(t){null!==t&&t.setOrientation(0),this.leftPage=t}setBottomPage(t){null!==t&&t.setOrientation(1===this.direction?0:1),this.bottomPage=t}setFlippingPage(t){null!==t&&t.setOrientation(0===this.direction&&\"portrait\"!==this.orientation?0:1),this.flippingPage=t}convertToBook(t){const e=this.getRect();return{x:t.x-e.left,y:t.y-e.top}}isSafari(){return this.safari}convertToPage(t,e){e||(e=this.direction);const i=this.getRect();return{x:0===e?t.x-i.left-i.width\/2:i.width\/2-t.x+i.left,y:t.y-i.top}}convertToGlobal(t,e){if(e||(e=this.direction),null==t)return null;const i=this.getRect();return{x:0===e?t.x+i.left+i.width\/2:i.width\/2-t.x+i.left,y:t.y+i.top}}convertRectToGlobal(t,e){return e||(e=this.direction),{topLeft:this.convertToGlobal(t.topLeft,e),topRight:this.convertToGlobal(t.topRight,e),bottomLeft:this.convertToGlobal(t.bottomLeft,e),bottomRight:this.convertToGlobal(t.bottomRight,e)}}}class d extends l{constructor(t,e,i){super(t,e),this.canvas=i,this.ctx=i.getContext(\"2d\")}getContext(){return this.ctx}reload(){}drawFrame(){this.clear(),\"portrait\"!==this.orientation&&null!=this.leftPage&&this.leftPage.simpleDraw(0),null!=this.rightPage&&this.rightPage.simpleDraw(1),null!=this.bottomPage&&this.bottomPage.draw(),this.drawBookShadow(),null!=this.flippingPage&&this.flippingPage.draw(),null!=this.shadow&&(this.drawOuterShadow(),this.drawInnerShadow());const t=this.getRect();\"portrait\"===this.orientation&&(this.ctx.beginPath(),this.ctx.rect(t.left+t.pageWidth,t.top,t.width,t.height),this.ctx.clip())}drawBookShadow(){const t=this.getRect();this.ctx.save(),this.ctx.beginPath();const e=t.width\/20;this.ctx.rect(t.left,t.top,t.width,t.height);const i={x:t.left+t.width\/2-e\/2,y:0};this.ctx.translate(i.x,i.y);const s=this.ctx.createLinearGradient(0,0,e,0);s.addColorStop(0,\"rgba(0, 0, 0, 0)\"),s.addColorStop(.4,\"rgba(0, 0, 0, 0.2)\"),s.addColorStop(.49,\"rgba(0, 0, 0, 0.1)\"),s.addColorStop(.5,\"rgba(0, 0, 0, 0.5)\"),s.addColorStop(.51,\"rgba(0, 0, 0, 0.4)\"),s.addColorStop(1,\"rgba(0, 0, 0, 0)\"),this.ctx.clip(),this.ctx.fillStyle=s,this.ctx.fillRect(0,0,e,2*t.height),this.ctx.restore()}drawOuterShadow(){const t=this.getRect();this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(t.left,t.top,t.width,t.height);const e=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y});this.ctx.translate(e.x,e.y),this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI\/2);const i=this.ctx.createLinearGradient(0,0,this.shadow.width,0);0===this.shadow.direction?(this.ctx.translate(0,-100),i.addColorStop(0,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\"),i.addColorStop(1,\"rgba(0, 0, 0, 0)\")):(this.ctx.translate(-this.shadow.width,-100),i.addColorStop(0,\"rgba(0, 0, 0, 0)\"),i.addColorStop(1,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\")),this.ctx.clip(),this.ctx.fillStyle=i,this.ctx.fillRect(0,0,this.shadow.width,2*t.height),this.ctx.restore()}drawInnerShadow(){const t=this.getRect();this.ctx.save(),this.ctx.beginPath();const e=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y}),i=this.convertRectToGlobal(this.pageRect);this.ctx.moveTo(i.topLeft.x,i.topLeft.y),this.ctx.lineTo(i.topRight.x,i.topRight.y),this.ctx.lineTo(i.bottomRight.x,i.bottomRight.y),this.ctx.lineTo(i.bottomLeft.x,i.bottomLeft.y),this.ctx.translate(e.x,e.y),this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI\/2);const s=3*this.shadow.width\/4,n=this.ctx.createLinearGradient(0,0,s,0);0===this.shadow.direction?(this.ctx.translate(-s,-100),n.addColorStop(1,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\"),n.addColorStop(.9,\"rgba(0, 0, 0, 0.05)\"),n.addColorStop(.7,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\"),n.addColorStop(0,\"rgba(0, 0, 0, 0)\")):(this.ctx.translate(0,-100),n.addColorStop(0,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\"),n.addColorStop(.1,\"rgba(0, 0, 0, 0.05)\"),n.addColorStop(.3,\"rgba(0, 0, 0, \"+this.shadow.opacity+\")\"),n.addColorStop(1,\"rgba(0, 0, 0, 0)\")),this.ctx.clip(),this.ctx.fillStyle=n,this.ctx.fillRect(0,0,s,2*t.height),this.ctx.restore()}clear(){this.ctx.fillStyle=\"white\",this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height)}}class p{constructor(t,e,i){this.touchPoint=null,this.swipeTimeout=250,this.onResize=()=>{this.update()},this.onMouseDown=t=>{if(this.checkTarget(t.target)){const e=this.getMousePos(t.clientX,t.clientY);this.app.startUserTouch(e),t.preventDefault()}},this.onTouchStart=t=>{if(this.checkTarget(t.target)&&t.changedTouches.length>0){const e=t.changedTouches[0],i=this.getMousePos(e.clientX,e.clientY);this.touchPoint={point:i,time:Date.now()},setTimeout(()=>{null!==this.touchPoint&&this.app.startUserTouch(i)},this.swipeTimeout),this.app.getSettings().mobileScrollSupport||t.preventDefault()}},this.onMouseUp=t=>{const e=this.getMousePos(t.clientX,t.clientY);this.app.userStop(e)},this.onMouseMove=t=>{const e=this.getMousePos(t.clientX,t.clientY);this.app.userMove(e,!1)},this.onTouchMove=t=>{if(t.changedTouches.length>0){const e=t.changedTouches[0],i=this.getMousePos(e.clientX,e.clientY);this.app.getSettings().mobileScrollSupport?(null!==this.touchPoint&&(Math.abs(this.touchPoint.point.x-i.x)>10||\"read\"!==this.app.getState())&&t.cancelable&&this.app.userMove(i,!0),\"read\"!==this.app.getState()&&t.preventDefault()):this.app.userMove(i,!0)}},this.onTouchEnd=t=>{if(t.changedTouches.length>0){const e=t.changedTouches[0],i=this.getMousePos(e.clientX,e.clientY);let s=!1;if(null!==this.touchPoint){const t=i.x-this.touchPoint.point.x,e=Math.abs(i.y-this.touchPoint.point.y);Math.abs(t)>this.swipeDistance&&e<2*this.swipeDistance&&Date.now()-this.touchPoint.time<this.swipeTimeout&&(t>0?this.app.flipPrev(this.touchPoint.point.y<this.app.getRender().getRect().height\/2?\"top\":\"bottom\"):this.app.flipNext(this.touchPoint.point.y<this.app.getRender().getRect().height\/2?\"top\":\"bottom\"),s=!0),this.touchPoint=null}this.app.userStop(i,s)}},this.parentElement=t,t.classList.add(\"stf__parent\"),t.insertAdjacentHTML(\"afterbegin\",'<div class=\"stf__wrapper\"><\/div>'),this.wrapper=t.querySelector(\".stf__wrapper\"),this.app=e;const s=this.app.getSettings().usePortrait?1:2;t.style.minWidth=i.minWidth*s+\"px\",t.style.minHeight=i.minHeight+\"px\",\"fixed\"===i.size&&(t.style.minWidth=i.width*s+\"px\",t.style.minHeight=i.height+\"px\"),i.autoSize&&(t.style.width=\"100%\",t.style.maxWidth=2*i.maxWidth+\"px\"),t.style.display=\"block\",window.addEventListener(\"resize\",this.onResize,!1),this.swipeDistance=i.swipeDistance}destroy(){this.app.getSettings().useMouseEvents&&this.removeHandlers(),this.distElement.remove(),this.wrapper.remove()}getDistElement(){return this.distElement}getWrapper(){return this.wrapper}setOrientationStyle(t){this.wrapper.classList.remove(\"--portrait\",\"--landscape\"),\"portrait\"===t?(this.app.getSettings().autoSize&&(this.wrapper.style.paddingBottom=this.app.getSettings().height\/this.app.getSettings().width*100+\"%\"),this.wrapper.classList.add(\"--portrait\")):(this.app.getSettings().autoSize&&(this.wrapper.style.paddingBottom=this.app.getSettings().height\/(2*this.app.getSettings().width)*100+\"%\"),this.wrapper.classList.add(\"--landscape\")),this.update()}removeHandlers(){window.removeEventListener(\"resize\",this.onResize),this.distElement.removeEventListener(\"mousedown\",this.onMouseDown),this.distElement.removeEventListener(\"touchstart\",this.onTouchStart),window.removeEventListener(\"mousemove\",this.onMouseMove),window.removeEventListener(\"touchmove\",this.onTouchMove),window.removeEventListener(\"mouseup\",this.onMouseUp),window.removeEventListener(\"touchend\",this.onTouchEnd)}setHandlers(){window.addEventListener(\"resize\",this.onResize,!1),this.app.getSettings().useMouseEvents&&(this.distElement.addEventListener(\"mousedown\",this.onMouseDown),this.distElement.addEventListener(\"touchstart\",this.onTouchStart),window.addEventListener(\"mousemove\",this.onMouseMove),window.addEventListener(\"touchmove\",this.onTouchMove,{passive:!this.app.getSettings().mobileScrollSupport}),window.addEventListener(\"mouseup\",this.onMouseUp),window.addEventListener(\"touchend\",this.onTouchEnd))}getMousePos(t,e){const i=this.distElement.getBoundingClientRect();return{x:t-i.left,y:e-i.top}}checkTarget(t){return!this.app.getSettings().clickEventForward||![\"a\",\"button\"].includes(t.tagName.toLowerCase())}}class c extends p{constructor(t,e,i,s){super(t,e,i),this.wrapper.insertAdjacentHTML(\"afterbegin\",'<div class=\"stf__block\"><\/div>'),this.distElement=t.querySelector(\".stf__block\"),this.items=s;for(const t of s)this.distElement.appendChild(t);this.setHandlers()}clear(){for(const t of this.items)this.parentElement.appendChild(t)}updateItems(t){this.removeHandlers(),this.distElement.innerHTML=\"\";for(const e of t)this.distElement.appendChild(e);this.items=t,this.setHandlers()}update(){this.app.getRender().update()}}class u extends p{constructor(t,e,i){super(t,e,i),this.wrapper.innerHTML='<canvas class=\"stf__canvas\"><\/canvas>',this.canvas=t.querySelectorAll(\"canvas\")[0],this.distElement=this.canvas,this.resizeCanvas(),this.setHandlers()}resizeCanvas(){const t=getComputedStyle(this.canvas),e=parseInt(t.getPropertyValue(\"width\"),10),i=parseInt(t.getPropertyValue(\"height\"),10);this.canvas.width=e,this.canvas.height=i}getCanvas(){return this.canvas}update(){this.resizeCanvas(),this.app.getRender().update()}}class w extends l{constructor(t,e,i){super(t,e),this.outerShadow=null,this.innerShadow=null,this.hardShadow=null,this.hardInnerShadow=null,this.element=i,this.createShadows()}createShadows(){this.element.insertAdjacentHTML(\"beforeend\",'<div class=\"stf__outerShadow\"><\/div>\\n             <div class=\"stf__innerShadow\"><\/div>\\n             <div class=\"stf__hardShadow\"><\/div>\\n             <div class=\"stf__hardInnerShadow\"><\/div>'),this.outerShadow=this.element.querySelector(\".stf__outerShadow\"),this.innerShadow=this.element.querySelector(\".stf__innerShadow\"),this.hardShadow=this.element.querySelector(\".stf__hardShadow\"),this.hardInnerShadow=this.element.querySelector(\".stf__hardInnerShadow\")}clearShadow(){super.clearShadow(),this.outerShadow.style.cssText=\"display: none\",this.innerShadow.style.cssText=\"display: none\",this.hardShadow.style.cssText=\"display: none\",this.hardInnerShadow.style.cssText=\"display: none\"}reload(){this.element.querySelector(\".stf__outerShadow\")||this.createShadows()}drawHardInnerShadow(){const t=this.getRect(),e=this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress;let i=(100-e)*(2.5*t.pageWidth)\/100+20;i>t.pageWidth&&(i=t.pageWidth);let s=`\\n            display: block;\\n            z-index: ${(this.getSettings().startZIndex+5).toString(10)};\\n            width: ${i}px;\\n            height: ${t.height}px;\\n            background: linear-gradient(to right,\\n                rgba(0, 0, 0, ${this.shadow.opacity*e\/100}) 5%,\\n                rgba(0, 0, 0, 0) 100%);\\n            left: ${t.left+t.width\/2}px;\\n            transform-origin: 0 0;\\n        `;s+=0===this.getDirection()&&this.shadow.progress>100||1===this.getDirection()&&this.shadow.progress<=100?\"transform: translate3d(0, 0, 0);\":\"transform: translate3d(0, 0, 0) rotateY(180deg);\",this.hardInnerShadow.style.cssText=s}drawHardOuterShadow(){const t=this.getRect();let e=(100-(this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress))*(2.5*t.pageWidth)\/100+20;e>t.pageWidth&&(e=t.pageWidth);let i=`\\n            display: block;\\n            z-index: ${(this.getSettings().startZIndex+4).toString(10)};\\n            width: ${e}px;\\n            height: ${t.height}px;\\n            background: linear-gradient(to left, rgba(0, 0, 0, ${this.shadow.opacity}) 5%, rgba(0, 0, 0, 0) 100%);\\n            left: ${t.left+t.width\/2}px;\\n            transform-origin: 0 0;\\n        `;i+=0===this.getDirection()&&this.shadow.progress>100||1===this.getDirection()&&this.shadow.progress<=100?\"transform: translate3d(0, 0, 0) rotateY(180deg);\":\"transform: translate3d(0, 0, 0);\",this.hardShadow.style.cssText=i}drawInnerShadow(){const t=this.getRect(),e=3*this.shadow.width\/4,i=0===this.getDirection()?e:0,s=0===this.getDirection()?\"to left\":\"to right\",n=this.convertToGlobal(this.shadow.pos),r=this.shadow.angle+3*Math.PI\/2,o=[this.pageRect.topLeft,this.pageRect.topRight,this.pageRect.bottomRight,this.pageRect.bottomLeft];let a=\"polygon( \";for(const t of o){let e=1===this.getDirection()?{x:-t.x+this.shadow.pos.x,y:t.y-this.shadow.pos.y}:{x:t.x-this.shadow.pos.x,y:t.y-this.shadow.pos.y};e=h.GetRotatedPoint(e,{x:i,y:100},r),a+=e.x+\"px \"+e.y+\"px, \"}a=a.slice(0,-2),a+=\")\";const g=`\\n            display: block;\\n            z-index: ${(this.getSettings().startZIndex+10).toString(10)};\\n            width: ${e}px;\\n            height: ${2*t.height}px;\\n            background: linear-gradient(${s},\\n                rgba(0, 0, 0, ${this.shadow.opacity}) 5%,\\n                rgba(0, 0, 0, 0.05) 15%,\\n                rgba(0, 0, 0, ${this.shadow.opacity}) 35%,\\n                rgba(0, 0, 0, 0) 100%);\\n            transform-origin: ${i}px 100px;\\n            transform: translate3d(${n.x-i}px, ${n.y-100}px, 0) rotate(${r}rad);\\n            clip-path: ${a};\\n            -webkit-clip-path: ${a};\\n        `;this.innerShadow.style.cssText=g}drawOuterShadow(){const t=this.getRect(),e=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y}),i=this.shadow.angle+3*Math.PI\/2,s=1===this.getDirection()?this.shadow.width:0,n=0===this.getDirection()?\"to right\":\"to left\",r=[{x:0,y:0},{x:t.pageWidth,y:0},{x:t.pageWidth,y:t.height},{x:0,y:t.height}];let o=\"polygon( \";for(const t of r)if(null!==t){let e=1===this.getDirection()?{x:-t.x+this.shadow.pos.x,y:t.y-this.shadow.pos.y}:{x:t.x-this.shadow.pos.x,y:t.y-this.shadow.pos.y};e=h.GetRotatedPoint(e,{x:s,y:100},i),o+=e.x+\"px \"+e.y+\"px, \"}o=o.slice(0,-2),o+=\")\";const a=`\\n            display: block;\\n            z-index: ${(this.getSettings().startZIndex+10).toString(10)};\\n            width: ${this.shadow.width}px;\\n            height: ${2*t.height}px;\\n            background: linear-gradient(${n}, rgba(0, 0, 0, ${this.shadow.opacity}), rgba(0, 0, 0, 0));\\n            transform-origin: ${s}px 100px;\\n            transform: translate3d(${e.x-s}px, ${e.y-100}px, 0) rotate(${i}rad);\\n            clip-path: ${o};\\n            -webkit-clip-path: ${o};\\n        `;this.outerShadow.style.cssText=a}drawLeftPage(){\"portrait\"!==this.orientation&&null!==this.leftPage&&(1===this.direction&&null!==this.flippingPage&&\"hard\"===this.flippingPage.getDrawingDensity()?(this.leftPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.leftPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle()),this.leftPage.draw(this.flippingPage.getDrawingDensity())):this.leftPage.simpleDraw(0))}drawRightPage(){null!==this.rightPage&&(0===this.direction&&null!==this.flippingPage&&\"hard\"===this.flippingPage.getDrawingDensity()?(this.rightPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.rightPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle()),this.rightPage.draw(this.flippingPage.getDrawingDensity())):this.rightPage.simpleDraw(1))}drawBottomPage(){if(null===this.bottomPage)return;const t=null!=this.flippingPage?this.flippingPage.getDrawingDensity():null;\"portrait\"===this.orientation&&1===this.direction||(this.bottomPage.getElement().style.zIndex=(this.getSettings().startZIndex+3).toString(10),this.bottomPage.draw(t))}drawFrame(){this.clear(),this.drawLeftPage(),this.drawRightPage(),this.drawBottomPage(),null!=this.flippingPage&&(this.flippingPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.flippingPage.draw()),null!=this.shadow&&null!==this.flippingPage&&(\"soft\"===this.flippingPage.getDrawingDensity()?(this.drawOuterShadow(),this.drawInnerShadow()):(this.drawHardOuterShadow(),this.drawHardInnerShadow()))}clear(){for(const t of this.app.getPageCollection().getPages())t!==this.leftPage&&t!==this.rightPage&&t!==this.flippingPage&&t!==this.bottomPage&&(t.getElement().style.cssText=\"display: none\"),t.getTemporaryCopy()!==this.flippingPage&&t.hideTemporaryCopy()}update(){super.update(),null!==this.rightPage&&this.rightPage.setOrientation(1),null!==this.leftPage&&this.leftPage.setOrientation(0)}}class x{constructor(){this._default={startPage:0,size:\"fixed\",width:0,height:0,minWidth:0,maxWidth:0,minHeight:0,maxHeight:0,drawShadow:!0,flippingTime:1e3,usePortrait:!0,startZIndex:0,autoSize:!0,maxShadowOpacity:1,showCover:!1,mobileScrollSupport:!0,swipeDistance:30,clickEventForward:!0,useMouseEvents:!0,showPageCorners:!0,disableFlipByClick:!1}}getSettings(t){const e=this._default;if(Object.assign(e,t),\"stretch\"!==e.size&&\"fixed\"!==e.size)throw new Error('Invalid size type. Available only \"fixed\" and \"stretch\" value');if(e.width<=0||e.height<=0)throw new Error(\"Invalid width or height\");if(e.flippingTime<=0)throw new Error(\"Invalid flipping time\");return\"stretch\"===e.size?(e.minWidth<=0&&(e.minWidth=100),e.maxWidth<e.minWidth&&(e.maxWidth=2e3),e.minHeight<=0&&(e.minHeight=100),e.maxHeight<e.minHeight&&(e.maxHeight=2e3)):(e.minWidth=e.width,e.maxWidth=e.width,e.minHeight=e.height,e.maxHeight=e.height),e}}!function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&\"undefined\"!=typeof document){var s=document.head||document.getElementsByTagName(\"head\")[0],n=document.createElement(\"style\");n.type=\"text\/css\",\"top\"===i&&s.firstChild?s.insertBefore(n,s.firstChild):s.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}(\".stf__parent {\\n  position: relative;\\n  display: block;\\n  box-sizing: border-box;\\n  transform: translateZ(0);\\n\\n  -ms-touch-action: pan-y;\\n  touch-action: pan-y;\\n}\\n\\n.sft__wrapper {\\n  position: relative;\\n  width: 100%;\\n  box-sizing: border-box;\\n}\\n\\n.stf__parent canvas {\\n  position: absolute;\\n  width: 100%;\\n  height: 100%;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.stf__block {\\n  position: absolute;\\n  width: 100%;\\n  height: 100%;\\n  box-sizing: border-box;\\n  perspective: 2000px;\\n}\\n\\n.stf__item {\\n  display: none;\\n  position: absolute;\\n  transform-style: preserve-3d;\\n}\\n\\n.stf__outerShadow {\\n  position: absolute;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.stf__innerShadow {\\n  position: absolute;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.stf__hardShadow {\\n  position: absolute;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.stf__hardInnerShadow {\\n  position: absolute;\\n  left: 0;\\n  top: 0;\\n}\");t.PageFlip=class extends class{constructor(){this.events=new Map}on(t,e){return this.events.has(t)?this.events.get(t).push(e):this.events.set(t,[e]),this}off(t){this.events.delete(t)}trigger(t,e,i=null){if(this.events.has(t))for(const s of this.events.get(t))s({data:i,object:e})}}{constructor(t,e){super(),this.isUserTouch=!1,this.isUserMove=!1,this.setting=null,this.pages=null,this.setting=(new x).getSettings(e),this.block=t}destroy(){this.ui.destroy(),this.block.remove()}update(){this.render.update(),this.pages.show()}loadFromImages(t){this.ui=new u(this.block,this,this.setting);const e=this.ui.getCanvas();this.render=new d(this,this.setting,e),this.flipController=new g(this.render,this),this.pages=new n(this,this.render,t),this.pages.load(),this.render.start(),this.pages.show(this.setting.startPage),setTimeout(()=>{this.ui.update(),this.trigger(\"init\",this,{page:this.setting.startPage,mode:this.render.getOrientation()})},1)}loadFromHTML(t){this.ui=new c(this.block,this,this.setting,t),this.render=new w(this,this.setting,this.ui.getDistElement()),this.flipController=new g(this.render,this),this.pages=new o(this,this.render,this.ui.getDistElement(),t),this.pages.load(),this.render.start(),this.pages.show(this.setting.startPage),setTimeout(()=>{this.ui.update(),this.trigger(\"init\",this,{page:this.setting.startPage,mode:this.render.getOrientation()})},1)}updateFromImages(t){const e=this.pages.getCurrentPageIndex();this.pages.destroy(),this.pages=new n(this,this.render,t),this.pages.load(),this.pages.show(e),this.trigger(\"update\",this,{page:e,mode:this.render.getOrientation()})}updateFromHtml(t){const e=this.pages.getCurrentPageIndex();this.pages.destroy(),this.pages=new o(this,this.render,this.ui.getDistElement(),t),this.pages.load(),this.ui.updateItems(t),this.render.reload(),this.pages.show(e),this.trigger(\"update\",this,{page:e,mode:this.render.getOrientation()})}clear(){this.pages.destroy(),this.ui.clear()}turnToPrevPage(){this.pages.showPrev()}turnToNextPage(){this.pages.showNext()}turnToPage(t){this.pages.show(t)}flipNext(t=\"top\"){this.flipController.flipNext(t)}flipPrev(t=\"top\"){this.flipController.flipPrev(t)}flip(t,e=\"top\"){this.flipController.flipToPage(t,e)}updateState(t){this.trigger(\"changeState\",this,t)}updatePageIndex(t){this.trigger(\"flip\",this,t)}updateOrientation(t){this.ui.setOrientationStyle(t),this.update(),this.trigger(\"changeOrientation\",this,t)}getPageCount(){return this.pages.getPageCount()}getCurrentPageIndex(){return this.pages.getCurrentPageIndex()}getPage(t){return this.pages.getPage(t)}getRender(){return this.render}getFlipController(){return this.flipController}getOrientation(){return this.render.getOrientation()}getBoundsRect(){return this.render.getRect()}getSettings(){return this.setting}getUI(){return this.ui}getState(){return this.flipController.getState()}getPageCollection(){return this.pages}startUserTouch(t){this.mousePosition=t,this.isUserTouch=!0,this.isUserMove=!1}userMove(t,e){this.isUserTouch||e||!this.setting.showPageCorners?this.isUserTouch&&h.GetDistanceBetweenTwoPoint(this.mousePosition,t)>5&&(this.isUserMove=!0,this.flipController.fold(t)):this.flipController.showCorner(t)}userStop(t,e=!1){this.isUserTouch&&(this.isUserTouch=!1,e||(this.isUserMove?this.flipController.stopMove():this.flipController.flip(t)))}},Object.defineProperty(t,\"__esModule\",{value:!0})}));\n\n};\nwindow.__FB_PAGEFLIP.call(window);\n<\/script><script>window.__FB_VIEWER = function(){\n  \"use strict\";\n\n  var CSS = ''\n  + '.fb-root{--fb-bg:#17191c;--fb-fg:#f2f3f4;--fb-dim:#8d949c;--fb-line:rgba(255,255,255,.16);'\n  + '--fb-soft:rgba(255,255,255,.08);--fb-panel:#17191c;--fb-shadow:rgba(0,0,0,.55);'\n  + 'position:relative;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;'\n  + 'background:var(--fb-bg);color:var(--fb-fg);outline:none;box-sizing:border-box;'\n  + 'font:14px\/1.3 system-ui,-apple-system,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;}'\n  + '.fb-root.fb-light{--fb-bg:#e8eaec;--fb-fg:#15171a;--fb-dim:#646b73;--fb-line:rgba(21,23,26,.2);'\n  + '--fb-soft:rgba(21,23,26,.07);--fb-panel:#e8eaec;--fb-shadow:rgba(21,23,26,.28);}'\n  + '.fb-root *{box-sizing:border-box;}'\n  + '.fb-head{flex:0 0 auto;height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 0 18px;z-index:20;}'\n  + '.fb-title{font-size:14px;font-weight:600;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}'\n  + '.fb-tools{display:flex;gap:2px;flex:0 0 auto;}'\n  + '.fb-btn{appearance:none;-webkit-appearance:none;background:transparent;border:0;color:var(--fb-fg);width:40px;height:40px;'\n  + 'border-radius:8px;display:grid;place-items:center;cursor:pointer;padding:0;font:inherit;transition:background .15s;}'\n  + '.fb-btn:hover{background:var(--fb-soft);} .fb-btn.on{background:var(--fb-fg);color:var(--fb-bg);}'\n  + '.fb-btn:focus-visible,.fb-side:focus-visible,.fb-th:focus-visible{outline:2px solid var(--fb-fg);outline-offset:2px;}'\n  + '.fb-btn:disabled{opacity:.3;cursor:default;background:transparent;}'\n  + '.fb-btn svg{width:19px;height:19px;display:block;}'\n  + '.fb-stage{position:relative;flex:1 1 auto;min-height:0;display:grid;place-items:center;overflow:hidden;}'\n  + '.fb-wrap{position:relative;z-index:2;transition:transform .55s cubic-bezier(.3,.7,.2,1);}'\n  + '.fb-wrap::after{content:\"\";position:absolute;left:4%;right:4%;bottom:-16px;height:26px;z-index:-1;'\n  + 'background:radial-gradient(closest-side,var(--fb-shadow),rgba(0,0,0,0));filter:blur(5px);}'\n  + '.fb-book{user-select:none;-webkit-user-select:none;}'\n  + '.fb-page{background:#fff;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.06);}'\n  + '.fb-page img{width:100%;height:100%;display:block;pointer-events:none;-webkit-user-drag:none;}'\n  + '.fb-page img:not([src]){visibility:hidden;}'\n  + '.fb-page::after{content:\"\";position:absolute;top:0;bottom:0;width:9%;pointer-events:none;}'\n  + '.fb-page.--left::after{right:0;background:linear-gradient(to left,rgba(0,0,0,.2),rgba(0,0,0,.05) 35%,rgba(0,0,0,0));}'\n  + '.fb-page.--right::after{left:0;background:linear-gradient(to right,rgba(0,0,0,.2),rgba(0,0,0,.05) 35%,rgba(0,0,0,0));}'\n  + '.fb-single .fb-page::after,.fb-lone .fb-page::after{display:none;}'\n  + '.fb-wrap.fb-lone-r::after{left:52%;} .fb-wrap.fb-lone-l::after{right:52%;}'\n  + '.fb-side{position:absolute;top:50%;z-index:10;width:44px;height:64px;margin-top:-32px;appearance:none;-webkit-appearance:none;'\n  + 'border:1px solid var(--fb-line);background:transparent;color:var(--fb-fg);border-radius:8px;display:grid;place-items:center;'\n  + 'cursor:pointer;padding:0;transition:background .15s,opacity .15s;}'\n  + '.fb-side:hover{background:var(--fb-soft);} .fb-side:disabled{opacity:.22;cursor:default;background:transparent;}'\n  + '.fb-side svg{width:20px;height:20px;} .fb-side.prev{left:14px;} .fb-side.next{right:14px;}'\n  + '.fb-narrow .fb-side{display:none;}'\n  + '.fb-hint{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);z-index:9;font-size:12.5px;color:var(--fb-dim);'\n  + 'white-space:nowrap;pointer-events:none;transition:opacity .5s;}'\n  + '.fb-foot{flex:0 0 auto;height:56px;display:flex;align-items:center;gap:14px;padding:0 18px;z-index:20;}'\n  + '.fb-foot .fb-btn{flex:0 0 auto;display:none;} .fb-narrow .fb-foot .fb-btn{display:grid;}'\n  + '.fb-narrow .fb-foot{padding:0 6px;gap:6px;} .fb-narrow .fb-head{padding-left:14px;}'\n  + '.fb-label{flex:0 0 auto;min-width:118px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;}'\n  + '.fb-label span{color:var(--fb-dim);} .fb-narrow .fb-label{min-width:0;font-size:12px;}'\n  + '.fb-range{-webkit-appearance:none;appearance:none;flex:1 1 auto;min-width:0;height:28px;background:transparent;cursor:pointer;margin:0;}'\n  + '.fb-range::-webkit-slider-runnable-track{height:3px;border-radius:3px;'\n  + 'background:linear-gradient(to right,var(--fb-fg) 0 var(--pct,0%),var(--fb-line) var(--pct,0%) 100%);}'\n  + '.fb-range::-moz-range-track{height:3px;border-radius:3px;background:var(--fb-line);}'\n  + '.fb-range::-moz-range-progress{height:3px;border-radius:3px;background:var(--fb-fg);}'\n  + '.fb-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-6px;width:15px;height:15px;border-radius:50%;'\n  + 'background:var(--fb-fg);border:3px solid var(--fb-bg);box-shadow:0 0 0 1px var(--fb-fg);}'\n  + '.fb-range::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--fb-fg);border:3px solid var(--fb-bg);box-shadow:0 0 0 1px var(--fb-fg);}'\n  + '.fb-range:focus-visible{outline:2px solid var(--fb-fg);outline-offset:2px;border-radius:4px;}'\n  + '.fb-ov{position:absolute;inset:0;z-index:60;display:none;flex-direction:column;background:var(--fb-panel);}'\n  + '.fb-ov.show{display:flex;}'\n  + '.fb-ov-head{flex:0 0 auto;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 18px;'\n  + 'border-bottom:1px solid var(--fb-line);font-weight:600;}'\n  + '.fb-grid{flex:1 1 auto;overflow-y:auto;padding:18px 18px 32px;display:grid;'\n  + 'grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:16px 12px;align-content:start;}'\n  + '.fb-th{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;cursor:pointer;color:var(--fb-dim);'\n  + 'font:inherit;font-size:12px;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;border-radius:4px;}'\n  + '.fb-th img{width:100%;display:block;background:#fff;box-shadow:0 0 0 1px var(--fb-line);transition:transform .15s;}'\n  + '.fb-th:hover img{transform:translateY(-2px);} .fb-th.cur{color:var(--fb-fg);font-weight:600;}'\n  + '.fb-th.cur img{box-shadow:0 0 0 2px var(--fb-fg);}'\n  + '.fb-zoom{position:absolute;inset:0;z-index:70;display:none;background:var(--fb-panel);overflow:hidden;touch-action:none;cursor:zoom-in;}'\n  + '.fb-zoom.show{display:block;} .fb-zoom.can-pan{cursor:grab;} .fb-zoom.panning{cursor:grabbing;}'\n  + '.fb-zrow{position:absolute;top:50%;left:50%;display:flex;transform-origin:center center;will-change:transform;box-shadow:0 18px 60px var(--fb-shadow);}'\n  + '.fb-zrow img{display:block;background:#fff;-webkit-user-drag:none;user-select:none;pointer-events:none;}'\n  + '.fb-zbar{position:absolute;z-index:71;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;'\n  + 'background:var(--fb-bg);border:1px solid var(--fb-line);border-radius:10px;padding:3px;}'\n  + '.fb-zpct{min-width:54px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;width:auto;padding:0 6px;}'\n  + '.fb-zclose{position:absolute;z-index:71;top:6px;right:10px;}'\n  + '@media (prefers-reduced-motion:reduce){.fb-wrap,.fb-th img{transition:none;}}';\n\n  function injectStyleOnce(){\n    if(document.getElementById('fb-style')) return;\n    var s=document.createElement('style'); s.id='fb-style'; s.textContent=CSS;\n    document.head.appendChild(s);\n  }\n\n  function svg(d){ return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">'+d+'<\/svg>'; }\n  var ICON = {\n    grid: svg('<rect x=\"3.5\" y=\"3.5\" width=\"7\" height=\"7\"\/><rect x=\"13.5\" y=\"3.5\" width=\"7\" height=\"7\"\/><rect x=\"3.5\" y=\"13.5\" width=\"7\" height=\"7\"\/><rect x=\"13.5\" y=\"13.5\" width=\"7\" height=\"7\"\/>'),\n    zoom: svg('<circle cx=\"11\" cy=\"11\" r=\"6.5\"\/><path d=\"M16 16l4.5 4.5M11 8.2v5.6M8.2 11h5.6\"\/>'),\n    full: svg('<path d=\"M8.5 3.5h-5v5M15.5 3.5h5v5M8.5 20.5h-5v-5M15.5 20.5h5v-5\"\/>'),\n    x:    svg('<path d=\"M6 6l12 12M18 6L6 18\"\/>'),\n    prev: svg('<path d=\"M14.5 5l-7 7 7 7\"\/>'),\n    next: svg('<path d=\"M9.5 5l7 7-7 7\"\/>'),\n    plus: svg('<path d=\"M12 6v12M6 12h12\"\/>'),\n    minus:svg('<path d=\"M6 12h12\"\/>')\n  };\n  function pad3(n){ n=String(n); while(n.length<3) n='0'+n; return n; }\n  function clamp(v,a,b){ return Math.min(b,Math.max(a,v)); }\n\n  function mount(root, cfg){\n    injectStyleOnce();\n    var NUM = Math.max(1, cfg.num|0), COVER = !!cfg.cover, ASPECT = cfg.aspect || (1\/1.414);\n    var TITLE = cfg.title || 'Flipbook';\n    var standalone = !!cfg.standalone;\n    var reduce = !!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches);\n    var touch = !!(window.matchMedia && window.matchMedia('(hover: none)').matches);\n    var src = cfg.src || (cfg.srcs ? function(i){ return cfg.srcs[i]; }\n      : function(i){ return (cfg.srcPrefix||'pages\/') + 'page-' + pad3(i+1) + '.jpg'; });\n\n    root.classList.add('fb-root');\n    root.classList.toggle('fb-light', cfg.theme==='light');\n    if(!root.hasAttribute('tabindex')) root.setAttribute('tabindex','0');\n    root.innerHTML =\n      '<div class=\"fb-head\"><div class=\"fb-title\"><\/div><div class=\"fb-tools\">'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"contents\" title=\"All pages (G)\" aria-label=\"All pages\">'+ICON.grid+'<\/button>'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"zoom\" title=\"Zoom (Z)\" aria-label=\"Zoom\">'+ICON.zoom+'<\/button>'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"full\" title=\"Full screen (F)\" aria-label=\"Full screen\">'+ICON.full+'<\/button>'\n      + '<\/div><\/div>'\n      + '<div class=\"fb-stage\">'\n      + '<button type=\"button\" class=\"fb-side prev\" data-a=\"prev\" aria-label=\"Previous page\">'+ICON.prev+'<\/button>'\n      + '<div class=\"fb-wrap\"><\/div>'\n      + '<button type=\"button\" class=\"fb-side next\" data-a=\"next\" aria-label=\"Next page\">'+ICON.next+'<\/button>'\n      + '<div class=\"fb-hint\"><\/div><\/div>'\n      + '<div class=\"fb-foot\">'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"prev\" aria-label=\"Previous page\">'+ICON.prev+'<\/button>'\n      + '<input class=\"fb-range\" type=\"range\" min=\"0\" max=\"'+(NUM-1)+'\" value=\"0\" step=\"1\" aria-label=\"Go to page\">'\n      + '<div class=\"fb-label\" aria-live=\"polite\"><\/div>'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"next\" aria-label=\"Next page\">'+ICON.next+'<\/button><\/div>'\n      + '<div class=\"fb-ov\" data-ov=\"contents\"><div class=\"fb-ov-head\"><span>All pages<\/span>'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"contents-close\" aria-label=\"Close\">'+ICON.x+'<\/button><\/div><div class=\"fb-grid\"><\/div><\/div>'\n      + '<div class=\"fb-zoom\"><div class=\"fb-zrow\"><\/div>'\n      + '<button type=\"button\" class=\"fb-btn fb-zclose\" data-a=\"zclose\" aria-label=\"Close zoom\">'+ICON.x+'<\/button>'\n      + '<div class=\"fb-zbar\"><button type=\"button\" class=\"fb-btn\" data-a=\"zout\" aria-label=\"Zoom out\">'+ICON.minus+'<\/button>'\n      + '<button type=\"button\" class=\"fb-btn fb-zpct\" data-a=\"zrst\" title=\"Reset zoom\">100%<\/button>'\n      + '<button type=\"button\" class=\"fb-btn\" data-a=\"zin\" aria-label=\"Zoom in\">'+ICON.plus+'<\/button><\/div><\/div>';\n\n    var $ = function(s){ return root.querySelector(s); };\n    var $$ = function(s){ return root.querySelectorAll(s); };\n    $('.fb-title').textContent = TITLE;\n    if(standalone) document.title = TITLE;\n\n    var stage=$('.fb-stage'), wrap=$('.fb-wrap'), hint=$('.fb-hint');\n    var slider=$('.fb-range'), label=$('.fb-label'), grid=$('.fb-grid');\n    var contents=$('[data-ov=\"contents\"]'), zoom=$('.fb-zoom'), zrow=$('.fb-zrow'), zpct=$('.fb-zpct');\n    var pf=null, bookEl=null, cur=clamp(cfg.startPage|0,0,NUM-1), geo=null, S=[[0]], dead=false;\n\n    var fsOK = !!(root.requestFullscreen || root.webkitRequestFullscreen);\n    if(!fsOK) $('[data-a=\"full\"]').style.display='none';\n    if(NUM<2){ slider.style.visibility='hidden'; }\n\n    hint.textContent = touch ? 'Swipe to turn the page' : 'Click a page, or drag a corner, to turn it';\n    var hintTimer = setTimeout(hideHint, 6000);\n    function hideHint(){ clearTimeout(hintTimer); hint.style.opacity='0'; }\n\n    \/* ---------- geometry ---------- *\/\n    function measure(){\n      var W=root.clientWidth, narrow = W < 640;\n      var padX = narrow ? 10 : 74, padY = narrow ? 14 : 26;\n      var aw = stage.clientWidth - padX*2, ah = stage.clientHeight - padY*2;\n      if(aw < 60 || ah < 60) return null;\n      var h2 = Math.min(ah, aw\/(2*ASPECT)), h1 = Math.min(ah, aw\/ASPECT);\n      var one = NUM < 2 || h1 > h2*1.4;              \/\/ a single page reads much bigger -> one-page mode\n      var ph = Math.floor(one ? h1 : h2), pw = Math.floor(ph*ASPECT);\n      return { narrow:narrow, one:one, pw:pw, ph:ph };\n    }\n    function makeSpreads(one){\n      var s=[], i=0;\n      if(one){ for(;i<NUM;i++) s.push([i]); return s; }\n      if(COVER){ s.push([0]); i=1; }\n      for(;i<NUM;i+=2) s.push(i+1<NUM ? [i,i+1] : [i]);\n      return s;\n    }\n    function spreadIdx(i){ for(var k=0;k<S.length;k++){ if(S[k].indexOf(i)>=0) return k; } return 0; }\n    function labelHTML(sp){\n      var t;\n      if(sp.length===2) t='Pages '+(sp[0]+1)+'\u2013'+(sp[1]+1);\n      else if(COVER && sp[0]===0) t='Cover';\n      else if(COVER && NUM>2 && sp[0]===NUM-1) t='Back cover';\n      else t='Page '+(sp[0]+1);\n      return t+' <span>of '+NUM+'<\/span>';\n    }\n    function shiftFor(sp){\n      if(!geo || geo.one || sp.length===2) return 0;\n      return sp[0]===NUM-1 ? geo.pw\/2 : -geo.pw\/2;   \/\/ lone last page sits left, lone cover sits right\n    }\n    function setShift(sp){\n      var x=shiftFor(sp);\n      wrap.style.transform='translateX('+x+'px)';\n      wrap.classList.toggle('fb-lone',x!==0);\n      wrap.classList.toggle('fb-lone-r',x<0);\n      wrap.classList.toggle('fb-lone-l',x>0);\n    }\n\n    function ensure(center){\n      if(!bookEl) return;\n      for(var i=Math.max(0,center-3); i<=Math.min(NUM-1,center+4); i++){\n        var img=bookEl.querySelector('#'+uid+'p'+i+' img');\n        if(img && !img.getAttribute('src')) img.setAttribute('src', img.getAttribute('data-src'));\n      }\n    }\n    function setChrome(i){\n      cur=i;\n      var k=spreadIdx(i), sp=S[k];\n      label.innerHTML=labelHTML(sp);\n      slider.value=sp[0];\n      slider.style.setProperty('--pct',(NUM>1?sp[0]\/(NUM-1)*100:0).toFixed(2)+'%');\n      var atStart=(k<=0), atEnd=(k>=S.length-1);\n      [].forEach.call($$('[data-a=\"prev\"]'),function(b){ b.disabled=atStart; });\n      [].forEach.call($$('[data-a=\"next\"]'),function(b){ b.disabled=atEnd; });\n      setShift(sp); ensure(i);\n      var c=grid.querySelector('.fb-th.cur'); if(c)c.classList.remove('cur');\n      var t=grid.querySelector('[data-i=\"'+sp[0]+'\"]'); if(t)t.classList.add('cur');\n      if(zoom.classList.contains('show')) zRender();\n    }\n\n    \/* ---------- book ---------- *\/\n    var uid='fb'+Math.random().toString(36).slice(2,7);\n    function teardown(){\n      if(!pf) return;\n      try{ var r=pf.getRender(); pf.destroy(); r.render=function(){}; }catch(e){}\n      pf=null; bookEl=null;\n    }\n    function build(startAt){\n      var m=measure(); if(!m || dead) return;\n      teardown();\n      geo=m; S=makeSpreads(m.one);\n      root.classList.toggle('fb-narrow',m.narrow);\n      root.classList.toggle('fb-single',m.one);\n      wrap.style.transition='none';\n      wrap.innerHTML='<div class=\"fb-book\"><\/div>';\n      bookEl=wrap.firstChild;\n      bookEl.style.width=(m.one?m.pw:m.pw*2)+'px';\n      bookEl.style.height=m.ph+'px';\n      var html='';\n      for(var i=0;i<NUM;i++){\n        var hard=(COVER && (i===0 || (i===NUM-1 && NUM>2)))?' data-density=\"hard\"':'';\n        html+='<div class=\"fb-page\" id=\"'+uid+'p'+i+'\"'+hard+'><img alt=\"Page '+(i+1)+'\" draggable=\"false\" data-src=\"'+src(i)+'\"><\/div>';\n      }\n      bookEl.innerHTML=html;\n      pf=new St.PageFlip(bookEl,{\n        width:m.pw, height:m.ph, size:'fixed', autoSize:false,\n        usePortrait:m.one, showCover:COVER, startPage:startAt||0, startZIndex:1,\n        drawShadow:true, maxShadowOpacity:0.45, flippingTime:reduce?1:720,\n        useMouseEvents:true, showPageCorners:!touch, disableFlipByClick:false,\n        mobileScrollSupport:true, swipeDistance:24\n      });\n      pf.loadFromHTML(bookEl.querySelectorAll('.fb-page'));\n      pf.on('flip', function(e){ setChrome(e.data); });\n      pf.on('changeState', function(e){\n        if(e.data!=='read') hideHint();\n        if(e.data!=='flipping') return;\n        try{                                          \/\/ start sliding towards where the book will end up\n          var d=pf.getFlipController().getCalculation().getDirection();\n          var k=spreadIdx(cur)+(d===0?1:-1);\n          if(S[k]) setShift(S[k]);\n        }catch(err){}\n      });\n      setChrome(clamp(startAt||0,0,NUM-1));\n      void wrap.offsetWidth; wrap.style.transition='';\n    }\n\n    var rt=null;\n    function onResize(){\n      clearTimeout(rt);\n      rt=setTimeout(function(){\n        var m=measure(); if(!m) return;\n        if(geo && m.pw===geo.pw && m.ph===geo.ph && m.one===geo.one && m.narrow===geo.narrow) return;\n        build(cur);\n        if(zoom.classList.contains('show')) zFit();\n      },140);\n    }\n    var ro=null;\n    if(window.ResizeObserver){ ro=new ResizeObserver(onResize); ro.observe(stage); }\n    window.addEventListener('resize', onResize);\n    build(cur);\n\n    function next(){ if(pf && spreadIdx(cur)<S.length-1) pf.flipNext('bottom'); }\n    function prev(){ if(pf && spreadIdx(cur)>0) pf.flipPrev('bottom'); }\n    function go(i){ if(!pf) return; i=clamp(i,0,NUM-1); ensure(i); pf.turnToPage(i); }\n\n    \/* ---------- all pages ---------- *\/\n    var gridBuilt=false;\n    function buildGrid(){\n      if(gridBuilt) return; gridBuilt=true;\n      var html='';\n      for(var i=0;i<NUM;i++){\n        var name = COVER&&i===0 ? 'Cover' : (COVER&&NUM>2&&i===NUM-1 ? 'Back cover' : String(i+1));\n        html+='<button type=\"button\" class=\"fb-th\" data-i=\"'+i+'\"><img decoding=\"async\" loading=\"lazy\" src=\"'+src(i)+'\" '\n            +'style=\"aspect-ratio:'+ASPECT.toFixed(4)+'\" alt=\"\">'+name+'<\/button>';\n      }\n      grid.innerHTML=html;\n    }\n    grid.addEventListener('click',function(e){\n      var b=e.target.closest('.fb-th'); if(!b) return;\n      showContents(false); go(parseInt(b.getAttribute('data-i'),10));\n    });\n    function showContents(show){\n      var will=(show===undefined)?!contents.classList.contains('show'):show;\n      if(will){\n        zClose(); buildGrid();\n        var all=grid.querySelectorAll('.fb-th'), first=S[spreadIdx(cur)][0];\n        [].forEach.call(all,function(b){ b.classList.remove('cur'); });\n        if(all[first]){ all[first].classList.add('cur'); }\n      }\n      contents.classList.toggle('show',will);\n      $('[data-a=\"contents\"]').classList.toggle('on',will);\n      if(will){ var c=grid.querySelector('.fb-th.cur'); if(c) c.scrollIntoView({block:'center'}); }\n    }\n\n    \/* ---------- full screen ---------- *\/\n    function fsEl(){ return document.fullscreenElement || document.webkitFullscreenElement; }\n    function full(){\n      if(!fsOK) return;\n      if(!fsEl()) (root.requestFullscreen||root.webkitRequestFullscreen).call(root);\n      else (document.exitFullscreen||document.webkitExitFullscreen).call(document);\n    }\n    function onFs(){ var b=$('[data-a=\"full\"]'); if(b) b.classList.toggle('on', fsEl()===root); onResize(); }\n    document.addEventListener('fullscreenchange', onFs);\n    document.addEventListener('webkitfullscreenchange', onFs);\n\n    \/* ---------- zoom ---------- *\/\n    var Z={s:1,x:0,y:0,bw:0,bh:0}, ZMAX=5;\n    function zFit(){\n      var W=zoom.clientWidth, H=zoom.clientHeight, n=zrow.children.length||1;\n      var h=Math.max(80, Math.min(H-110, (W-32)\/(ASPECT*n)));\n      Z.bh=h; Z.bw=h*ASPECT*n;\n      [].forEach.call(zrow.children,function(im){ im.style.height=h+'px'; im.style.width=(h*ASPECT)+'px'; });\n      zApply();\n    }\n    function zApply(){\n      var W=zoom.clientWidth, H=zoom.clientHeight;\n      var mx=Math.max(0,(Z.bw*Z.s-W)\/2+24), my=Math.max(0,(Z.bh*Z.s-H)\/2+24);\n      if(Z.s<=1.001){ Z.s=1; Z.x=0; Z.y=0; } else { Z.x=clamp(Z.x,-mx,mx); Z.y=clamp(Z.y,-my,my); }\n      zrow.style.transform='translate(-50%,-50%) translate('+Z.x+'px,'+Z.y+'px) scale('+Z.s+')';\n      zpct.textContent=Math.round(Z.s*100)+'%';\n      zoom.classList.toggle('can-pan',Z.s>1);\n    }\n    function zTo(ns,cx,cy){                          \/\/ zoom keeping the point (cx,cy) \u2014 relative to centre \u2014 in place\n      ns=clamp(ns,1,ZMAX); cx=cx||0; cy=cy||0;\n      Z.x=cx-(cx-Z.x)*(ns\/Z.s); Z.y=cy-(cy-Z.y)*(ns\/Z.s); Z.s=ns; zApply();\n    }\n    function zRender(){\n      var sp=S[spreadIdx(cur)];\n      zrow.innerHTML=sp.map(function(i){ return '<img decoding=\"async\" draggable=\"false\" alt=\"Page '+(i+1)+'\" src=\"'+src(i)+'\">'; }).join('');\n      Z.s=1; Z.x=0; Z.y=0; zFit();\n    }\n    function zOpen(){ showContents(false); zoom.classList.add('show'); $('[data-a=\"zoom\"]').classList.add('on'); zRender(); }\n    function zClose(){ zoom.classList.remove('show'); $('[data-a=\"zoom\"]').classList.remove('on'); }\n    function zRel(e){ var r=zoom.getBoundingClientRect(); return { x:e.clientX-r.left-r.width\/2, y:e.clientY-r.top-r.height\/2 }; }\n    zoom.addEventListener('wheel',function(e){\n      e.preventDefault(); var p=zRel(e);\n      zTo(Z.s*Math.exp(-e.deltaY*(e.ctrlKey?0.012:0.0022)),p.x,p.y);\n    },{passive:false});\n    var ptrs={}, pcount=0, pinch=null, moved=0, lastTap=0;\n    zoom.addEventListener('pointerdown',function(e){\n      if(e.target.closest('.fb-btn')) return;\n      try{ zoom.setPointerCapture(e.pointerId); }catch(err){}\n      ptrs[e.pointerId]={x:e.clientX,y:e.clientY}; pcount=Object.keys(ptrs).length; moved=0;\n      if(pcount===2){ var k=Object.keys(ptrs), a=ptrs[k[0]], b=ptrs[k[1]];\n        pinch={ d:Math.hypot(a.x-b.x,a.y-b.y)||1, s:Z.s }; }\n      zoom.classList.add('panning');\n    });\n    zoom.addEventListener('pointermove',function(e){\n      var p=ptrs[e.pointerId]; if(!p) return;\n      var dx=e.clientX-p.x, dy=e.clientY-p.y; p.x=e.clientX; p.y=e.clientY; moved+=Math.abs(dx)+Math.abs(dy);\n      if(pcount===1 && Z.s>1){ Z.x+=dx; Z.y+=dy; zApply(); }\n      else if(pcount===2 && pinch){\n        var k=Object.keys(ptrs), a=ptrs[k[0]], b=ptrs[k[1]], r=zoom.getBoundingClientRect();\n        zTo(pinch.s*Math.hypot(a.x-b.x,a.y-b.y)\/pinch.d, (a.x+b.x)\/2-r.left-r.width\/2, (a.y+b.y)\/2-r.top-r.height\/2);\n      }\n    });\n    function pUp(e){\n      if(!ptrs[e.pointerId]) return;\n      delete ptrs[e.pointerId]; pcount=Object.keys(ptrs).length; if(pcount<2) pinch=null;\n      if(pcount===0){\n        zoom.classList.remove('panning');\n        if(moved<6 && e.type==='pointerup'){          \/\/ tap: double-tap toggles zoom\n          var now=Date.now();\n          if(now-lastTap<320){ var p=zRel(e); if(Z.s>1) zTo(1); else zTo(2.5,p.x,p.y); lastTap=0; }\n          else lastTap=now;\n        }\n      }\n    }\n    zoom.addEventListener('pointerup',pUp); zoom.addEventListener('pointercancel',pUp);\n\n    \/* ---------- wiring ---------- *\/\n    function onClick(e){\n      var b=e.target.closest('[data-a]'); if(!b || b.disabled) return;\n      var a=b.getAttribute('data-a');\n      if(a==='prev')prev(); else if(a==='next')next();\n      else if(a==='contents')showContents(); else if(a==='contents-close')showContents(false);\n      else if(a==='full')full();\n      else if(a==='zoom'){ if(zoom.classList.contains('show')) zClose(); else zOpen(); }\n      else if(a==='zclose')zClose();\n      else if(a==='zin')zTo(Z.s*1.5); else if(a==='zout')zTo(Z.s\/1.5); else if(a==='zrst')zTo(1);\n    }\n    root.addEventListener('click', onClick);\n    slider.addEventListener('input', function(){\n      var v=parseInt(slider.value,10);\n      label.innerHTML=labelHTML(S[spreadIdx(v)]);\n      slider.style.setProperty('--pct',(NUM>1?v\/(NUM-1)*100:0).toFixed(2)+'%');\n    });\n    slider.addEventListener('change', function(){ go(parseInt(slider.value,10)); });\n\n    function handleKey(e){\n      if(e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey) return;\n      var t=e.target, k=e.key;\n      if(t && t!==slider && \/^(INPUT|TEXTAREA|SELECT)$\/.test(t.tagName)) return;\n      var used=true, inZoom=zoom.classList.contains('show'), inGrid=contents.classList.contains('show');\n      if(k==='Escape'){ if(inZoom) zClose(); else if(inGrid) showContents(false); else used=false; }\n      else if(inGrid){ if(k==='g'||k==='G') showContents(false); else used=false; }\n      else if(t===slider && \/^(Arrow|Page|Home|End)\/.test(k)){ used=false; }\n      else if(k==='ArrowRight'||k==='PageDown'){ if(inZoom) go(S[Math.min(S.length-1,spreadIdx(cur)+1)][0]); else next(); }\n      else if(k==='ArrowLeft'||k==='PageUp'){ if(inZoom) go(Math.max(0,S[Math.max(0,spreadIdx(cur)-1)][0])); else prev(); }\n      else if(k==='Home'){ go(0); } else if(k==='End'){ go(NUM-1); }\n      else if(k==='f'||k==='F'){ full(); }\n      else if(k==='g'||k==='G'){ showContents(); }\n      else if(k==='z'||k==='Z'){ if(inZoom) zClose(); else zOpen(); }\n      else if(inZoom && (k==='+'||k==='=')){ zTo(Z.s*1.5); }\n      else if(inZoom && (k==='-'||k==='_')){ zTo(Z.s\/1.5); }\n      else if(inZoom && k==='0'){ zTo(1); }\n      else used=false;\n      if(used) e.preventDefault();\n    }\n    function onRootKey(e){ handleKey(e); }\n    function onDocKey(e){ if(!root.contains(e.target)) handleKey(e); }\n    root.addEventListener('keydown', onRootKey);\n    if(standalone) document.addEventListener('keydown', onDocKey);\n\n    return {\n      go: go, next: next, prev: prev,\n      page: function(){ return cur; },\n      destroy: function(){\n        dead=true; clearTimeout(rt); clearTimeout(hintTimer);\n        teardown();\n        if(ro) ro.disconnect();\n        window.removeEventListener('resize', onResize);\n        document.removeEventListener('fullscreenchange', onFs);\n        document.removeEventListener('webkitfullscreenchange', onFs);\n        document.removeEventListener('keydown', onDocKey);\n        root.removeEventListener('keydown', onRootKey);\n        root.removeEventListener('click', onClick);\n        root.classList.remove('fb-root','fb-light','fb-narrow','fb-single');\n        root.innerHTML='';\n      }\n    };\n  }\n\n  window.Flipbook = { mount: mount };\n\n  if(window.FLIP_CONFIG){\n    var boot=function(){\n      var c=window.FLIP_CONFIG;\n      if(c.standalone===undefined) c.standalone=true;\n      var el=document.getElementById(c.rootId||'flip-root');\n      if(el) mount(el, c);\n    };\n    if(document.readyState==='loading') document.addEventListener('DOMContentLoaded', boot); else boot();\n  }\n};\nwindow.__FB_VIEWER();\n<\/script>\n\t\t<\/div>\n\t<\/div>\n\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"Company Introduction 2026 Pyramid Consulting International at a glance Download PDF","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1175","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/pages\/1175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/comments?post=1175"}],"version-history":[{"count":3,"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/pages\/1175\/revisions"}],"predecessor-version":[{"id":1201,"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/pages\/1175\/revisions\/1201"}],"wp:attachment":[{"href":"https:\/\/pc-international.com\/fr\/wp-json\/wp\/v2\/media?parent=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}